Repository navigation
feat(tape): add floating back-to-top button when scrolling tape - #95
Merged
Merged
Conversation
✅ PR Validation Passed
Ready for review by @mlgitdev! |
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.
Summary
Resolves #94
Adds an automatic floating
↑ Back to Top(#tape-scroll-top) pill to the Running Momentum Tape (in both the embedded pane and detachedweb/tape.htmlwindow) that appears as soon as the trader scrolls down past24px, sits cleanly side-by-side withNew Events ↑inside a bottom-centered.tape-float-barwith zero overlap, and jumps immediately back toscrollTop = 0while preserving manual pause state.Motivation / Context
The Running Tape stores up to 5,000 alerts (3,000 DOM rows across 4-day persistence), making manual scrolling back to the top tedious during historical or off-hours review when no new events are arriving to trigger
New Events ↑.Changes
Resolves #94
web/js/tape.js,web/css/app.css,web/index.html,web/tape.html):#tape-scroll-top(↑ Back to Top) inside a bottom-centered flex bar.tape-float-bar(bottom: 18px; gap: 8px) alongside#tape-new-eventsso both pills can display simultaneously with zero overlap against each other,.pane-head, sticky<thead>, scrollbars, or#corner-version-badge.@keyframes bobto vertical-onlytranslateY(3px)once horizontal centering moved to.tape-float-bar.SCROLL_TOP_THRESHOLD = 24,Tape.updateScrollTopBtn(), and race-free instantTape.scrollToTop()that preservesTape.pausedand clears unpausedscrolledNewstate.?v=12asset cache-buster versions across bothweb/index.htmlandweb/tape.html.VERSION,docs/SPEC.md,docs/RELEASES.md,docs/releases/v2.16.0.md,docs/wiki/):VERSIONfrom2.15.0→2.16.0(MINOR user-facing feature) and synceddocs/wiki/_Footer.md.docs/SPEC.md(spec-sync),docs/RELEASES.md,docs/releases/v2.16.0.md, anddocs/wiki/Running-Momentum-Tape.md.tests/test_tape_scroll_top.py):#tape-scroll-top, bottom-anchored.tape-float-bar, vertical-only@keyframes bob,index.html/tape.html?v=parity, anddocs/SPEC.mddocumentation.Verification & Testing
.venv\Scripts\python.exe -m compileall -q app run_app.py: passed..venv\Scripts\python.exe -m unittest discover -s tests -p "test_*.py": 115/115 tests passed (1.050s).ui-qa-pass(isolated tempNEWSALERTS_DIRserver with seeded rows + live EventBus drip):top: 44pxoverlap against.pane-head/<thead>on first pass, relocated.tape-float-bartobottom: 18px, and re-verified PASS across all viewports:1600x900(single pill & simultaneousNew Events ↑ (1)+↑ Back to Topside-by-side with+8.00pxgap, pause preservation on click, unpause onNew Events ↑click)1920x1080,820x900,640x520(zero overlap with.pane-head, sticky<thead>, and#corner-version-badge)web/tape.htmlat1280x7200across every screen and viewport..\build.ps1 -Task buildand.\build.ps1 -Task verify-packagespassed (NewsAlerts.exe15.1 MB, valid PE header, zero secrets).Checklist
Resolves #94).worktrees/feat-tape-back-to-top-94)VERSIONbumped (2.16.0),docs/SPEC.mdsynced (spec-sync), release notes & wiki updatedweb/index.htmlandweb/tape.htmlsibling parity verifiedui-qa-passpassed with 0 console errors and 0 overlaps.exebuilt and verified (verify-packages)