Repository navigation
feat(focus-mode): collapse the title-bar pill strip to current/total past 12 items - #384
truongthinh1412 wants to merge 5 commits into
Conversation
|
🔍 Reviewed – no blocking issues found at Thanks for the PR! This collapses the focus-mode title-bar strip to a single "name · current / total" pill past 12 open items, as item 5 of #212 asks. The boundary, the fallback when the active item is not in the strip, and board view are all covered by the new tests. Nits
Automated review pass (Claude Code). Anything unclear or wrong – say so and I'll take a look. |
|
This fits #212 well. On the two open points:
Could you add both? I'll take another look after that. |
|
yes ill get on this |
|
Thanks so much for the detailed review and for the two follow-up suggestions — really appreciate the guidance! 🙏 Both points, plus the
Verified locally: |
Description
Implements item 5 of #212 ("Focus mode wayfinding") — per the audit's prescription: "Collapse the dot strip to 'current/total' text past ~12 tasks."
With ≤12 open items the title-bar strip behaves exactly as today (one named pill per item). Past 12, it collapses to a single compact pill showing current / total (e.g.
3 / 13), because the pills otherwise clip silently against the title bar's reserved padding (the container isoverflow: hiddenwith fixed control-space padding). Details:focus-mode-task-indicatorclass, so it inherits the drag carve-out (pointer-events: auto+-webkit-app-region: no-drag), hover, and focus-visible styles — no CSS changes needed.onMouseDownstopPropagation is retained.aria-current="true"andtitle/aria-labelcarrying the active item's name and position ("Task X, current item (3 of 13)"); clicking re-activates the current item, same semantics as the old active pill (activateTaskFromPointer).Tests: a new
FocusModeTaskIndicators.client.test.tsx(5 tests — the component had none) covering the 12/13 boundary, compact content/classes/aria, click observability viastore.sidebarFocused, both fallback edge cases, and board view, following theTaskBoard.client.test.tsxfixture idiom.Scope note: items 1 and 3 of #212 are already on
main; items 2 and 4 remain open, so this does not auto-close the issue.Issues Resolved
Part of #212 (implements item 5; issue stays open for items 2 and 4)
Check List