Repository navigation
feat(ui): the sidebar orders the stacks by name or by last opened (#377, ADR-0084) - #411
Merged
Merged
Conversation
…, ADR-0084) A menu beside the "Stacks" heading's + chooses the order: by name (the default) or last opened first. Last opened is a snapshot taken when the page loads or the choice is made, so opening a stack moves nothing while the page is open; a start or a stop never does. The choice and the times live in this browser, as the fold state does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Refs #377 (favourites and hiding stay open there).
A button (↕) beside the "Stacks" heading's
+chooses the order of the stacks: by name (default) or last opened first. Last opened is a snapshot taken when the page loads or the choice is made: opening a stack moves nothing while the page is open, and a start or a stop never does. Choice and times live in this browser (devstack.sidebar.order,devstack.sidebar.opened), as the fold state does. ADR-0084 records it.Review card
Approved by the owner in the conversation on 2026-11-02, points 1 to 5:
+: by name (the default) or last opened first.localStorage, as the fold state does.Decided on my own: the icon (↕) and the English labels; a stack counts as opened whenever it is shown (sidebar, switcher, palette, link), not only on a sidebar click; removing a stack from the dashboard drops its time.
Tests
ui/src/lib/stackOrder.test.ts: the order, its storage.ui/src/components/Sidebar.test.ts: choosing "last opened" reorders; opening a stack afterwards moves nothing.npm run typecheckclean,vitest run133 passed.🤖 Generated with Claude Code