Repository navigation
feat(web): list a project's active sessions under it on its page too - #237
Merged
Merged
Conversation
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.
kalaspuff
approved these changes
Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.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.Made in fctl session https://app.fctl.sh/s/ses_01M5MGFAQ9D5TRYXDKE2EA95NM.