Skip to content

feat(tape): add floating back-to-top button when scrolling tape #94

Done

Description

@mlgitdev

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-events and #tape-scroll-top inside 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-top scrolls the tape cleanly back to scrollTop = 0 without unexpectedly unpausing a manually paused tape; if unpaused and scrolledNew was set, returning to top clears scrolledNew.
    • Automatically hides when back at top (scrollTop <= 24) or when the tape is cleared/re-rendered at top.
  • Sibling Entry Point Parity: Update cache-buster ?v=N query strings consistently in both web/index.html and web/tape.html.
  • Versioning & Docs: Bump VERSION from 2.15.0 → 2.16.0 (MINOR new user-facing feature), update docs/SPEC.md (spec-sync), docs/releases/v2.16.0.md, docs/RELEASES.md, and docs/wiki/ (_Footer.md + tape guide).

Alternatives Considered

  • Repurposing #tape-new-events to 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

  1. self-assigned this
    on Dec 4, 2026
  2. added
    enhancement
    on Dec 4, 2026
  3. github-actions commented on Dec 4, 2026

    @github-actions

    ✅ Issue Validation Passed

    • Conventional Commit title syntax (feat(tape))
    • Verified issue type: FEATURE
    • Required template sections present and filled out

    This issue is well-structured and ready for work according to the Issue-First Protocol.

  4. mlgitdev commented on Dec 4, 2026

    @mlgitdev
    OwnerAuthor

    Opened Pull Request: #95 (commit 5e59ea42a2d0ac6f948a7d969e5b4414bef4305b) resolving #94.

    Implementation Summary

    • Added floating ↑ Back to Top (#tape-scroll-top) pill inside bottom-centered .tape-float-bar (bottom: 18px, 8px gap beside New Events ↑) in web/js/tape.js and web/css/app.css.
    • Preserves manual Tape.paused state on click and jumps immediately to scrollTop = 0 (avoiding mid-flight cancellation during live tape cascades).
    • Synchronized ?v=12 cache-buster versions across both web/index.html and detached web/tape.html.
    • Bumped VERSION to 2.16.0, updated docs/SPEC.md (spec-sync), docs/releases/v2.16.0.md, docs/RELEASES.md, and docs/wiki/.

    Verification

    • Test-first suite tests/test_tape_scroll_top.py + full suite: 115/115 passed.
    • Live browser ui-qa-pass across 1920x1080, 1600x900, 820x900, 640x520, and /tape.html (1280x720): 0 overlaps, 0 console errors, simultaneous pill gap verified (+8.00px).
    • Portable build & verify-packages gate passed (NewsAlerts.exe, 15.1 MB).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions