clean up frontend

This commit is contained in:
felix
2026-09-26 18:22:27 +02:00
parent 4c81c21261
commit ac05a5ed2b
10 changed files with 199 additions and 28 deletions

View File

@@ -10,13 +10,17 @@ export default class ConversationRoute extends Route {
}
async model({ id }) {
const [conversation, agents] = await Promise.all([
const [conversation, agents, conversations] = await Promise.all([
this.store.findRecord('chat-conversation', id, {
include: 'messages.attachments',
reload: true,
}),
this.store.query('chat-agent', { 'page[size]': 1 }),
this.store.query('chat-conversation', {
sort: '-last-activity',
'page[size]': 50,
}),
]);
return { conversation, assistant: agents[0] };
return { conversation, assistant: agents[0], conversations };
}
}