You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(dashboard): one shared shadcn sidebar on every route (#1113)
* feat(dashboard): add shadcn Base UI sidebar primitives
Port the shadcn "base" (Base UI, not Radix) Sidebar and the primitives it needs
(sheet, separator, input, skeleton, a useIsMobile hook), adapted to this repo's
@base-ui-components/react: the collapsed-state tooltip uses our Tooltip API and
the mobile branch does not forward wrapper props onto the Sheet root. Tooltip
gains optional side/align, and the --sidebar-* theme tokens map onto the existing
palette so the rail stays in step with the rest of the UI. Not wired yet.
* feat(dashboard): pool recent sessions across projects for the Overview
Add buildRecentRuns + an onRecentRuns telefunc that pool every project's sessions
newest-first (capped), each tagged with the project it belongs to. This is what
lets the shared sidebar show recents on the home/Overview, where no single project
is selected. Exported through the package surface and the client shim; the telefunc
auto-registers under its export name.
* feat(dashboard): one shared sidebar on every route with a project-aware New
Render the shadcn Sidebar on every route via SidebarProvider, so the home/Overview
and a session page share the exact same left column instead of the rail vanishing
with no project selected. The rail shows a project's own runs when one is selected
and the pooled cross-project recents on the Overview.
"New" is now project-aware: no projects opens the add-project dialog, one project
starts a session there, several open a picker; in a project it starts another
session there. Retires the unused bespoke collapse (#862) in favour of the shadcn
Sidebar's own model.
One shared sidebar on every route, rebuilt on the shadcn Base UI sidebar.
6
+
7
+
The sessions rail used to vanish the moment no project was selected, so the home/Overview had no left column while a session page did. It is now the shadcn Base UI sidebar, rendered on every route, so the two read as the same app.
8
+
9
+
On the Overview it pools recent sessions across every project (a new cross-project read), each row naming its project and jumping into it when selected; a selected project still shows its own runs.
10
+
11
+
"New" is now project-aware: with no project it opens the add-project dialog (there is nowhere to run a session yet), with one project it starts there, and with several it opens a picker so you choose where. In a project already, it starts another session there.
0 commit comments