Repository navigation
Description
Summary & Motivation
The Running Tape holds up to 5,000 alerts (3,000 DOM rows across 4-day history), so scrolling deep down through earlier momentum alerts can be very long. Currently, the floating New Events ↑ pill only appears when new events arrive while scrolled or while the tape is paused. When reviewing historical rows during quiet periods or off-hours, traders have no quick one-click way to jump back to the top of the tape.
Proposed Solution
Add a floating ↑ Back to Top (#tape-scroll-top) pill button inside #tape-pane that appears automatically as soon as the user scrolls down past a small threshold (e.g. > 24px), and hides automatically once back at the top. Works identically in both the embedded tape (web/index.html) and the detached pop-out tape window (web/tape.html).
Technical & UI Specifications
- Layout & Non-Overlap: Group
#tape-new-eventsand#tape-scroll-topinside a centered floating pill container (.tape-float-bar) below the tape header so both pills can appear cleanly side-by-side without overlapping each other, the sticky table header, the scrollbar, or.version-corner. - Behavior:
- Appears when
body.scrollTop > 24(even with zero pending/new events and whether paused or unpaused). - Clicking
#tape-scroll-topscrolls the tape cleanly back toscrollTop = 0without unexpectedly unpausing a manually paused tape; if unpaused andscrolledNewwas set, returning to top clearsscrolledNew. - Automatically hides when back at top (
scrollTop <= 24) or when the tape is cleared/re-rendered at top.
- Appears when
- Sibling Entry Point Parity: Update cache-buster
?v=Nquery strings consistently in bothweb/index.htmlandweb/tape.html. - Versioning & Docs: Bump
VERSIONfrom2.15.0→2.16.0(MINOR new user-facing feature), updatedocs/SPEC.md(spec-sync),docs/releases/v2.16.0.md,docs/RELEASES.md, anddocs/wiki/(_Footer.md+ tape guide).
Alternatives Considered
- Repurposing
#tape-new-eventsto always show on scroll: rejected because traders distinguish between "new live alerts arrived while I was scrolled" (amber urgent pill that also resumes a paused tape) and "I am scrolling history and want to jump back to top" (neutral dark-glass utility pill that preserves pause state).
Additional Context
Tested end-to-end with the new progressive-disclosure agent playbook (story-kickoff, test-first unit tests, ui-qa-pass multi-viewport browser QA, spec-sync, ponytail-review, portable .exe build + verify-packages, and wait_for_ci.py).
Activity
github-actions commentedon Dec 4, 2026
✅ Issue Validation Passed
feat(tape))This issue is well-structured and ready for work according to the Issue-First Protocol.
mlgitdev commentedon Dec 4, 2026
Opened Pull Request: #95 (commit
5e59ea42a2d0ac6f948a7d969e5b4414bef4305b) resolving #94.Implementation Summary
↑ Back to Top(#tape-scroll-top) pill inside bottom-centered.tape-float-bar(bottom: 18px,8pxgap besideNew Events ↑) inweb/js/tape.jsandweb/css/app.css.Tape.pausedstate on click and jumps immediately toscrollTop = 0(avoiding mid-flight cancellation during live tape cascades).?v=12cache-buster versions across bothweb/index.htmland detachedweb/tape.html.VERSIONto2.16.0, updateddocs/SPEC.md(spec-sync),docs/releases/v2.16.0.md,docs/RELEASES.md, anddocs/wiki/.Verification
tests/test_tape_scroll_top.py+ full suite: 115/115 passed.ui-qa-passacross1920x1080,1600x900,820x900,640x520, and/tape.html(1280x720): 0 overlaps, 0 console errors, simultaneous pill gap verified (+8.00px).verify-packagesgate passed (NewsAlerts.exe, 15.1 MB).