Repository navigation
✨ tracker: hive notes show for 30s then tuck into an info icon - #15588
Merged
Merged
Conversation
The row's "Hive: …" event line opens for STAGE_TRACKER_CAPTION_SHOW_MS (30 s) when written, then slides left into a ⬡-i button whose tooltip keeps the note and its age. Click / Enter / Space re-opens it for another 30 s; a click while open tucks it at once. One shared timer, per-row windows, frozen while the tab is hidden. Reduced motion toggles instantly. ⚙ → Hive notes → Auto-collapse hive notes (default on, hive.tracker.notetuck) restores the old two-minute fade when off. Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Contributor
Open PR overlap checkBase branch: Conflicts are checked with every PR merged onto the current tip of
|
This was referenced Oct 30, 2026
Contributor
|
Thank you for your contribution! Your PR has been merged. We'd love to hear how your experience was: share feedback |
This was referenced Oct 30, 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.
Fixes #15587
Owner (Activity Monitor tracker rows, screenshot 20:17 EDT): "we should show the hive comments when they are new for 30s. then they should shrink to the left inside a hive-info icon. nice subtle animation. someone can click on the icon to expand the info for another 30s. then it shrinks back again."
What changes
STAGE_TRACKER_CAPTION_SHOW_MS = 30000. A row's "Hive: …" event line opens for 30 s from the moment it is written (new caption / stage word from the payload diff, or an owner action), then tucks: the text slides a few px left and fades while aclip-pathwipe closes it from the right (≈400 ms ease-in-out) into a small ⬡-i button (.cue-event-ico,aria-label="Hive note",aria-expanded) sitting where "Hive:" sat. The line keeps one fixed height either way, so the chevrons never shift.titleis the whole line plus its age (Hive: … · 26s ago), refreshed by the existing 15 s cue tick. Hover shows only that; it never opens the line.stageTrackerNoteSchedulearms a singlesetTimeoutfor the earliest due tuck; every render / tick runsstageTrackerNoteSyncin place). The tucked flag,aria-expandedand the ageing title are stripped fromstageTrackerRowSrcKey, so a tuck never swaps a row's node mid-slide; a freshly rendered node arrives already tucked.visibilitychange→stageTrackerNoteVisibility: while hidden the open windows are frozen at the moment the tab went hidden and the timer is cleared; on return the hidden time is given back and the timer re-armed. A note is never spent unseen.hive.tracker.notetuck, same localStorage pattern as Celebrate merges). Off: no button, the line stays open and keeps the old 2-minute fade — existing behaviour and tests unchanged.prefers-reduced-motion: reduce, and the.ham-rm-previewbody class): instant toggle.Screenshots
Dark — expanded (new line, first 30 s):
Dark — mid-animation (≈180 ms into the tuck; the text wipes/slides left into the icon):
Dark — collapsed (hover the ⬡-i for the full note + age; click to re-open):
Light — expanded / collapsed:
Tests
TestStageTrackerNoteTuckNode(fake clock + DOM): new line open → tucked at exactly 30 s → click re-opens → tucks again after 30 s → click while open tucks at once; hidden tab freezes a 20 s-old window across 60 s hidden and the remaining 10 s run on return; two rows, independent windows, one shared timer;stageTrackerNoteShiftonly moves open windows; ttlInfinitykeeps lines until the row leaves while the default ttl still expires;stageTrackerRowSrcKeyis stable across tuck / re-open / age; preference off keeps every line open, restores the fade, un-tucks in place and arms no timer.TestStageTrackerNoteTuckWiring: the 30 s constant, pref key, markup, ⚙ toggle, visibility hook, CSS (fixed height, transition, reduced-motion rule) are in the page.TestStageTrackerCuesNode/TestStageTrackerCuesWiring/TestStyleRatchetpass unchanged (tokens +color-mixonly; no#NNNNin CSS comments).Docs
src/docs/dashboard-sections.md(Event line → Show, then tuck),src/docs/dashboard-copy-inventory.md(new section),changelog.d/added-tracker-hive-note-tuck.md.