From f917d7bdd2bbf48580b499a86c579b45db2c8292 Mon Sep 17 00:00:00 2001 From: Guilhem Date: Fri, 30 Oct 2026 12:34:55 +0100 Subject: [PATCH] feat: list ai sessions inline in the sidebar and regroup its pages (#12103) * fix: stop the breadcrumb sliding when switching sessions Co-Authored-By: Claude Opus 5.5 * feat: make the sidebar switch a button row that only swaps the list Co-Authored-By: Claude Opus 5.5 * feat: list ai sessions inline in the workspace sidebar Co-Authored-By: Claude Opus 5.5 * feat: keep home's composer open while switching workspace Co-Authored-By: Claude Opus 5.5 * feat: data stores in the data menu and a customizable sidebar Co-Authored-By: Claude Opus 5.5 * feat: move folders and groups to settings and add a data section to the sidebar Co-Authored-By: Claude Opus 5.5 * feat: space the sidebar's sections apart and give its rows a little more height Co-Authored-By: Claude Opus 5.5 * chore: remove the session mode switch the sidebar no longer renders Co-Authored-By: Claude Opus 5.5 * fix: follow same-page chat links, restore new session on the rail and list ai chats once Co-Authored-By: Claude Opus 5.5 * fix: follow a chat link whenever the panel shows another conversation Co-Authored-By: Claude Opus 5.5 * feat: let the sidebar's session list fill the space above its pinned rows Co-Authored-By: Claude Opus 5.5 * refactor: drop the group data pages option and keep data as a sidebar section Co-Authored-By: Claude Opus 5.5 * fix: keep home's composer open only in an empty workspace Co-Authored-By: Claude Opus 5.5 * feat: tell admins without ai credentials they can also hide ai sessions Co-Authored-By: Claude Opus 5.5 * fix: fold home's composer on an outside click while the sidebar is hidden Co-Authored-By: Claude Opus 5.5 * feat: scroll the sidebar as one list and pin the session edit actions Co-Authored-By: Claude Opus 5.5 --------- Co-authored-by: Claude Opus 5.5 --- frontend/src/lib/assets/app.css | 81 ++---- .../src/lib/components/FolderEditor.svelte | 4 + .../src/lib/components/GroupsPageLink.svelte | 13 + .../src/lib/components/NavBreadcrumb.svelte | 62 +++-- frontend/src/lib/components/ShareModal.svelte | 4 + .../lib/components/copilot/chat/AIChat.svelte | 10 +- .../copilot/chat/AIChatDisplay.svelte | 30 +- .../copilot/chat/ContextTextarea.svelte | 3 +- .../components/copilot/chat/composerBox.ts | 7 +- .../copilot/chat/starter/composerCollapse.ts | 14 +- .../chat/starter/starterPrompts.svelte.ts | 8 +- .../lib/components/details/FlowDetail.svelte | 2 + .../flows/content/AgentEditorHost.svelte | 4 + .../flows/conversations/FlowChat.svelte | 20 +- .../flows/conversations/agentEditorChat.ts | 5 + .../components/home/CreateActionsMenu.svelte | 6 + .../src/lib/components/home/HomeAIChat.svelte | 2 - .../components/home/HomeQuickAccess.svelte | 4 +- .../src/lib/components/home/ItemsList.svelte | 17 +- .../lib/components/meltComponents/Menu.svelte | 8 + .../search/GlobalSearchModal.svelte | 16 ++ .../sessions/HomeSessionStarter.svelte | 9 +- .../sessions/SessionModeSwitch.svelte | 65 ----- .../components/sessions/SessionPicker.svelte | 117 ++++---- .../sessions/homeComposerContext.svelte.ts | 14 +- .../sessions/homeSessionsTransition.svelte.ts | 30 -- .../sessions/sessionState.svelte.ts | 23 +- .../sessions/sessionSwitch.svelte.ts | 92 ++---- .../components/sessions/sessionSwitch.test.ts | 28 +- .../components/sessions/sidebarList.svelte.ts | 29 +- .../settings/WorkspaceUserSettings.svelte | 10 +- .../components/sidebar/AiChatsSection.svelte | 98 +++++++ .../sidebar/FavoritesSection.svelte | 97 +++++++ .../lib/components/sidebar/MenuButton.svelte | 6 +- .../lib/components/sidebar/MenuLink.svelte | 4 +- .../components/sidebar/SettingsMenu.svelte | 45 ++- .../components/sidebar/SidebarContent.svelte | 175 +++++++----- .../sidebar/SidebarScrollArea.svelte | 2 +- .../sidebar/SidebarSectionHeader.svelte | 41 +++ .../sidebar/WorkspacePickerBody.svelte | 5 +- .../components/sidebar/sidebarPrefs.svelte.ts | 8 + .../components/sidebar/workspaceSwitchUrl.ts | 56 ++-- .../workspaceSettings/RulesetEditor.svelte | 4 + frontend/src/lib/newDraftFlag.test.ts | 11 +- frontend/src/lib/newDraftFlag.ts | 9 +- .../src/routes/(root)/(logged)/+layout.svelte | 263 +++++++++--------- .../src/routes/(root)/(logged)/+page.svelte | 16 +- .../agents/get/[...path]/+page.svelte | 1 + .../(root)/(logged)/sessions/+page.svelte | 14 +- 49 files changed, 910 insertions(+), 682 deletions(-) create mode 100644 frontend/src/lib/components/GroupsPageLink.svelte delete mode 100644 frontend/src/lib/components/sessions/SessionModeSwitch.svelte create mode 100644 frontend/src/lib/components/sidebar/AiChatsSection.svelte create mode 100644 frontend/src/lib/components/sidebar/FavoritesSection.svelte create mode 100644 frontend/src/lib/components/sidebar/SidebarSectionHeader.svelte create mode 100644 frontend/src/lib/components/sidebar/sidebarPrefs.svelte.ts diff --git a/frontend/src/lib/assets/app.css b/frontend/src/lib/assets/app.css index b833582069..e551dd1595 100644 --- a/frontend/src/lib/assets/app.css +++ b/frontend/src/lib/assets/app.css @@ -423,6 +423,25 @@ input[type='time']::-webkit-calendar-picker-indicator { outline: 2px solid rgb(var(--color-border-accent, 59 130 246)); } +/* Home's composer, pointed at by New session (AIChatDisplay's flashComposer): its box's outline + lights up in the accent color and fades, as a setting does when the settings search lands on + it. Scoped to the flash, so the box carries no outline otherwise. */ +[data-composer-flash] [data-composer-box] { + outline: 2px solid transparent; + outline-offset: 1px; + animation: wm-composer-flash 0.8s ease-in; +} +@keyframes wm-composer-flash { + from { + outline-color: rgb(var(--color-border-accent, 59 130 246)); + } +} +@media (prefers-reduced-motion: reduce) { + [data-composer-flash] [data-composer-box] { + animation: none; + } +} + .svelte-flow__edges { z-index: -10; } @@ -443,65 +462,3 @@ input[type='time']::-webkit-calendar-picker-indicator { :root[data-home-sessions-transition='fade'] * { view-transition-name: none !important; } - -/* Home's Workspace ⇄ AI Sessions switch (swapHomeSide in homeSessionsTransition.svelte.ts). - Home is the same page beside either list, so only the sidebar's list moves. The page shows - its new state at once, live, which lets the composer's own opening or folding play; named, - the composer would be held to the size it had when the switch began. The list's name exists - only while the switch runs: carried at all times, a send's move to the session page would - animate it too. */ -:root[data-home-side-transition] .wm-vt-sidebar-list { - view-transition-name: home-sidebar-list; -} -:root[data-home-side-transition] [data-session-composer] { - view-transition-name: none !important; -} -:root[data-home-side-transition]::view-transition-old(root) { - display: none; -} -:root[data-home-side-transition]::view-transition-new(root) { - animation: none; -} -/* The list comes in from the side of the button pressed: AI Sessions is the right one. */ -:root[data-home-side-transition]::view-transition-old(home-sidebar-list), -:root[data-home-side-transition]::view-transition-new(home-sidebar-list) { - animation-duration: 260ms; - animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); - animation-fill-mode: both; -} -:root[data-home-side-transition='sessions']::view-transition-old(home-sidebar-list) { - animation-name: wm-side-out-left; -} -:root[data-home-side-transition='sessions']::view-transition-new(home-sidebar-list) { - animation-name: wm-side-in-right; -} -:root[data-home-side-transition='workspace']::view-transition-old(home-sidebar-list) { - animation-name: wm-side-out-right; -} -:root[data-home-side-transition='workspace']::view-transition-new(home-sidebar-list) { - animation-name: wm-side-in-left; -} -@keyframes wm-side-out-left { - to { - opacity: 0; - transform: translateX(-28px); - } -} -@keyframes wm-side-in-right { - from { - opacity: 0; - transform: translateX(28px); - } -} -@keyframes wm-side-out-right { - to { - opacity: 0; - transform: translateX(28px); - } -} -@keyframes wm-side-in-left { - from { - opacity: 0; - transform: translateX(-28px); - } -} diff --git a/frontend/src/lib/components/FolderEditor.svelte b/frontend/src/lib/components/FolderEditor.svelte index 7af2066fa6..7221f4f1f9 100644 --- a/frontend/src/lib/components/FolderEditor.svelte +++ b/frontend/src/lib/components/FolderEditor.svelte @@ -35,6 +35,7 @@ import Badge from './common/badge/Badge.svelte' import InputError from './InputError.svelte' import Popover from './meltComponents/Popover.svelte' + import GroupsPageLink from './GroupsPageLink.svelte' import { deepEqual } from 'fast-equals' import { folderPermissionDiff, @@ -652,6 +653,9 @@
Add a member