Skip to content

Open source file-system and knowledge based agent template. Build AI agents that stay up to date with your knowledge base

improve ui

Hugo Richard41984ede2fec
diff --git a/apps/chat/app/assets/css/main.css b/apps/chat/app/assets/css/main.css
index d3eeeec..81b5125 100644
--- a/apps/chat/app/assets/css/main.css
+++ b/apps/chat/app/assets/css/main.css
@@ -21,6 +21,7 @@
:root {
--ui-container: var(--container-3xl);
+ --ui-radius: 0.15rem;
}
html {
diff --git a/apps/chat/app/components/UserMenu.vue b/apps/chat/app/components/UserMenu.vue
index 217a93e..99456d3 100644
--- a/apps/chat/app/components/UserMenu.vue
+++ b/apps/chat/app/components/UserMenu.vue
@@ -49,7 +49,7 @@ const items = computed<DropdownMenuItem[][]>(() => {
<UDropdownMenu
:items
:content="{ align: 'center', collisionPadding: 12 }"
- :ui="{ content: [collapsed ? 'w-48' : 'w-(--reka-dropdown-menu-trigger-width)', 'min-w-48'].join(' ') }"
+ :ui="{ content: 'min-w-48' }"
size="xs"
>
<UButton
@@ -64,7 +64,6 @@ const items = computed<DropdownMenuItem[][]>(() => {
:size
color="neutral"
variant="ghost"
- block
:square="collapsed"
class="data-[state=open]:bg-elevated transition-colors"
:ui="{
diff --git a/apps/chat/app/composables/useModels.ts b/apps/chat/app/composables/useModels.ts
index 529abda..fb0693e 100644
--- a/apps/chat/app/composables/useModels.ts
+++ b/apps/chat/app/composables/useModels.ts
@@ -15,12 +15,12 @@ export function formatModelName(modelId: string): string {
export function useModels() {
const models = [
- 'anthropic/claude-opus-4.5',
- 'openai/gpt-5.1-instant',
'google/gemini-3-flash',
+ 'anthropic/claude-sonnet-4.5',
+ 'anthropic/claude-opus-4.6',
]
- const model = useCookie<string>('model', { default: () => 'google/gemini-3-flash' })
+ const model = useCookie<string>('model', { default: () => 'anthropic/claude-sonnet-4.5' })
return {
models,
diff --git a/apps/chat/app/layouts/default.vue b/apps/chat/app/layouts/default.vue
index 4d4aa42..67e1333 100644
--- a/apps/chat/app/layouts/default.vue
+++ b/apps/chat/app/layouts/default.vue
@@ -184,9 +184,22 @@ defineShortcuts({
class="border-e-0"
>
<template #header="{ collapsed }">
- <div v-if="!collapsed" class="flex items-center gap-1.5 w-full">
- <div class="flex-1 min-w-0">
- <UserMenu v-if="loggedIn" size="xs" />
+ <template v-if="isAdminRoute">
+ <UButton
+ v-if="!collapsed"
+ icon="i-lucide-chevron-left"
+ label="Back to app"
+ variant="ghost"
+ color="neutral"
+ size="xs"
+ to="/"
+ class="self-start"
+ />
+ </template>
+
+ <template v-else>
+ <div v-if="!collapsed" class="flex items-center justify-between w-full">
+ <UserMenu v-if="loggedIn" size="sm" />
<UButton
v-else
label="Sign in"
@@ -194,24 +207,22 @@ defineShortcuts({
color="neutral"
variant="soft"
size="xs"
- block
@click="navigateTo('/login')"
/>
+ <UDashboardSearchButton collapsed size="xs" />
</div>
- <UDashboardSearchButton collapsed size="xs" />
- </div>
- <template v-if="!collapsed">
- <UserStats v-if="loggedIn && !isAdminRoute" />
+ <template v-if="!collapsed">
+ <UserStats v-if="loggedIn" />
- <UButton
- v-if="!isAdminRoute"
- label="New chat"
- variant="soft"
- block
- to="/"
- @click="open = false"
- />
+ <UButton
+ label="New chat"
+ variant="soft"
+ block
+ to="/"
+ @click="open = false"
+ />
+ </template>
</template>
</template>
@@ -227,14 +238,13 @@ defineShortcuts({
</div>
<template v-if="collapsed">
- <UserMenu v-if="loggedIn" collapsed />
- <UTooltip v-else text="Sign in">
+ <UTooltip text="Back to app">
<UButton
- icon="i-lucide-log-in"
+ icon="i-lucide-chevron-left"
+ variant="ghost"
color="neutral"
- variant="soft"
square
- @click="navigateTo('/login')"
+ to="/"
/>
</UTooltip>
<UDashboardSearchButton collapsed />
@@ -284,15 +294,15 @@ defineShortcuts({
v-for="chat in group.items"
:key="chat.id"
:items="chatContextItems(chat)"
- size="xs"
+ size="sm"
>
<NuxtLink
:to="chat.to"
class="group flex items-center gap-1.5 px-2 py-1 rounded-md text-sm overflow-hidden transition-colors"
:class="[
route.params.id === chat.id
- ? 'text-highlighted font-medium bg-linear-to-r from-primary/30 to-primary/0'
- : 'text-muted hover:bg-linear-to-r from-elevated to-primary/0',
+ ? 'text-highlighted bg-linear-to-r from-elevated to-elevated/0 brightness-125'
+ : 'text-muted hover:bg-linear-to-r from-elevated to-elevated/0',
chat.generating && 'text-muted!',
]"
@click="open = false"
@@ -350,16 +360,7 @@ defineShortcuts({
<div class="flex-1 flex rounded-xl ring ring-default bg-muted shadow-sm min-w-0 overflow-hidden" :class="(isAdminRoute || isSettingsRoute) && 'flex-col'">
<template v-if="isAdminRoute || isSettingsRoute">
- <div class="shrink-0 flex items-center gap-1.5 sm:px-4 h-12">
- <UButton
- icon="i-lucide-arrow-left"
- label="Back"
- variant="ghost"
- color="neutral"
- size="xs"
- to="/"
- />
- <div class="flex-1" />
+ <div class="shrink-0 flex items-center justify-end sm:px-4 h-12">
<UColorModeButton />
</div>
<div ref="adminContentArea" class="flex-1 overflow-y-auto">