Skip to content

feat(web): list a project's active sessions under it on its page too - #237

Merged
kalaspuff merged 1 commit into
mainfrom
fctl/178-sidebar-sessions-on-project-page
Oct 23, 2026
Merged

kalaspuff merged 1 commit into
mainfrom
fctl/178-sidebar-sessions-on-project-page

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Since #234, the sidebar lists a project's sessions that haven't ended (starting, at work, waiting or paused) under the project on the pages of its sessions. Now it lists them on the project's own page too, so the list stays in place going between the project and its sessions, and the project's other tabs (Settings, Memory, …) are a click from its sessions as well.

How

The sidebar takes the project from a project's page's path (/p/<slug>, or /p/<id>, which the page also opens) as it takes a session's project from a session's page. The list is the same query (useLiveSessions), so going from the project to one of its sessions and back asks for nothing new. On a project's page no session is marked; the project's row is, as before. The getting-started guide says so.

Verified

  • A new test in web/src/components/shell/app-shell.test.tsx: on a project's page, by its slug and by its id, the sidebar lists the project's sessions that haven't ended under it. It fails without the change.
  • cargo xtask check web (Biome, TypeScript, the web and standalone tests, the production build) passes.
  • In cargo xtask dev, driven with Playwright, sampling the sidebar's list on every animation frame: going from Playground's page to one of its sessions from the sidebar, and back from the project's row, kept its three sessions on every frame; Docs site's page swapped in its own list without an empty frame, and Billing, with none at work, shows no list.

Screenshots

At 8ab356d, in cargo xtask dev, Playground's page: playground#2 is working, #3 waits for a message, #4 is paused, #1 and #5 are stopped and don't show. The sidebar at 2x, then the whole page.

Before After
Before: Playground's page, its row marked and nothing under it, dark theme After: Playground's three active sessions under its marked row, dark theme
Before: Playground's page, its row marked and nothing under it, light theme After: Playground's three active sessions under its marked row, light theme

After: Playground's whole page, 1440 px wide, dark theme

Made in fctl session https://app.fctl.sh/s/ses_01M5MGFAQ9D5TRYXDKE2EA95NM.

Since #234, the sidebar lists a project's sessions that haven't ended
under it on the pages of its sessions. It now does on the project's own
page too (/p/<slug>, or its id), so that the list stays in place going
between the project and its sessions.
@fctl-sh
fctl-sh Bot requested a review from kalaspuff as a code owner October 23, 2026 14:52
@kalaspuff
kalaspuff merged commit 920c1e8 into main Oct 23, 2026
10 checks passed
@kalaspuff
kalaspuff deleted the fctl/178-sidebar-sessions-on-project-page branch October 23, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant