fix(web): auto-reveal newer days when scrolling up after a deep timeline jump #1396
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/timeline-auto-reveal-newer-days"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Root cause
Lost wakeup with three compounding gaps: (1) the top reveal sentinel renders inside the IntersectionObserver's 900px rootMargin but above the viewport after a deep jump — the single transition callback fires at the -900px crossing where the geometry check correctly rejects it (ISSUE-074 guard), and while the user scrolls the remaining distance the sentinel stays continuously intersecting, so no further callback ever fires; (2) every hydration-pump reveal check early-returned while
jumpingDayKeywas set; (3)jumpToTimelineDay's finally cleared the guard without a follow-up check, stranding any pending reveal. Result: the user reached the top with only the manual „Neuere Tage anzeigen" button.Fix (wiring only, no new machinery)
schedulePreviousDaysRevealCheck()now also runs from the scroll handler (tick-coalesced, strict-geometry-gated, so the ISSUE-074 prepend drift loop cannot resurrect — its regression test stays green).jumpToTimelineDay's finally consumes the reveal state once at settle, with the guard lifted and settled geometry.Testing
--repeat-each=2; fullscroll stabilitydescribe x2 (8 passed); newer-days-hydration + live-insert suites 5 passed.npm run check: 0 errors;npm run test:unit: 356 passed.