Repository navigation
feat(web): group flagged threads into sidebar sections with a colour rail - #43
Merged
Merged
Conversation
…rail Urgent, In progress and Later get their own headers inside the active section, above unflagged threads (Other). Flagged card rows carry a coloured rail in Pinned, the flag sections and the Working shelf. Headers show only when an active thread is flagged; project folders keep their own grouping.
Flag sections regrouped the active list and drew rails for everyone, including with thread flags off and inside project folders, where no header explains the new order. A Flag sections switch under Settings → Ari now controls the grouping and the rail (on by default). It follows Thread flags: with flags off, the sidebar keeps its usual order and shows no rail. Folders keep their own order. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Contributor
|
Review notes before merging. I pushed one follow-up commit (8c0ac00) instead of asking for changes:
Left as is, worth knowing:
Checked: 🤖 Generated with Claude Code |
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.
Problem
Thread flags (urgent / later / working, #21) only show as a small icon per row. In a long sidebar, flagged threads don't stand out, so people fall back to title prefixes like "WORKING:".
Change
threadFlags.ts, the header and rail in a newSidebarFlagSectionHeader.tsx. Upstream files get small hooks only (a marker type,SortableSidebarMarkerexported, an optionalrailClassNameon card rows), to keep upstream syncs easy.Not in this PR:
Scope
Livemap fork feature on top of the thread flags, not for upstream.
Verification
groupThreadsByFlagunit tests (section order, order within sections, empty sections left out); existingSidebar.logic+Sidebar.dragtests pass (131).vp run check:changed: format, typecheck and react compiler pass; knip passes after the fix. Lint fails only on existing untranslated copy in other fork files; tests fail only inpackages/sshtunnel tests (macOS shasum/gzip), both untouched here.vp run devon a pruned copy of real threads: sections appear and update when flagging from the context menu; red/amber/grey rails show on flagged rows, including pinned ones.🤖 Generated with Claude Code