Repository navigation
feat(ui): favourite stacks list first (#377) - #422
Merged
Merged
Conversation
A star in a stack's sidebar row, or "Add to favourites" in its menu, marks it; favourites list first in the sidebar and in the stack switcher, the others below, each part in the chosen order. Marking moves the stack at once. Favourites live in the browser's localStorage (devstack.sidebar.favourites), as the order does (ADR-0086). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Favourite stacks: a star in a stack's sidebar row, or "Add to favourites" in its menu, marks it; favourites list first in the sidebar and in the stack switcher, the others below, each part in the chosen order (#377, ADR-0086).
Review card
The owner approved points 1–5 in the conversation on 2026-11-03 (with the plan).
localStorage(devstack.sidebar.favourites, a list of stack ids), as the order does; removing a stack from the dashboard drops it.Decided on my own: the star sits at the right of the row, before "…" (the left keeps the fold toggle and the state dot); it shows on hover like "…" and always (filled) on a favourite; spelling "favourite" as in ADR-0084; a
staricon (Lucide) inicons.ts.Changes
ui/src/lib/stackOrder.ts:useFavourites(),forgetFavourite();orderStackstakes the favourites and sorts them first.ui/src/components/Sidebar.vue: the star button, the menu entry, forgetting on remove.ui/src/components/StackSwitcher.vue: favourites first, with a small star.Verification
npm run typecheckclean;vitest run: 137 passed (new:stackOrder.test.ts,Sidebar.test.ts).shopmoved it to the top at once with a filled star, it stayed first after a reload, and the switcher at phone width listed it first.🤖 Generated with Claude Code