Timeline MVVM 1 - Shared TimelineView and Overlay Buttons (#34464)

* Add shared timeline overlay buttons and view contract

The TimelineOverlayButtons presentational component (unread bar, jump-to-bottom)
plus the shared TimelineView VM contract (types) and its i18n strings. Consumed
by the TimelineView virtualizer in a follow-up commit.

* Add shared TimelineView component (TanStack Virtual)

Headless TanStack-Virtual timeline driven from RoomTimelineViewModel: anchorTo:"end"
viewport stability across prepends/trims, cold-load cover, jump-to via scrollToOffset,
and visible-state reporting via the virtualizer's onChange. Adds the @tanstack/react-virtual
dependency and the virtual-core isValidAnchorItem patch (runtime + types).

* Use Compound spacing tokens in timeline overlay and clarify comments

- Use Compound spacing tokens for overlay margins/insets instead of raw px
- Drop the stale Virtuoso reference from the overlay CSS comment
- Note the real-world duration of COLD_CAP_FRAMES
- Describe each load phase in plain English

* Remove jargon and explain/expand things in simple terms.

* Use time rather than a frame count and improve description.
This commit is contained in:
David Langley
2026-08-12 09:40:26 +01:00
committed by GitHub
parent 23a666a9de
commit badb35bd1f
25 changed files with 1681 additions and 1 deletions
+1
View File
@@ -68,6 +68,7 @@
"@element-hq/element-web-module-api": "workspace:*",
"@matrix-org/emojibase-bindings": "catalog:",
"@matrix-org/spec": "^1.7.0",
"@tanstack/react-virtual": "3.14.8",
"@vector-im/compound-design-tokens": "catalog:",
"classnames": "^2.5.1",
"counterpart": "^0.18.6",