Repository navigation
fix: keep authored timeline steps selectable - #4265
Merged
Merged
Conversation
Use the shared selectable control constructor in initial rendering as well as widget modules. Timeline steps keep their page words available to passage selection and print while their own command scope supplies Enter and Space activation. A selection drag leaves the current step unchanged. Closes #4243
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.
Timeline step rows contained the event text inside native buttons, preventing the reader from selecting a passage. The step list now uses Leaf's existing selectable control primitive, with Enter and Space activation supplied by each step's command scope. Clicks, arrows, saved step position and printed event text keep their behavior; dragging across a step's words leaves the playhead unchanged.
The selectable constructor now lives beside the other initial-render control constructors, so early drawing and live widget modules use the same implementation. This preserves #3973's stepping and print behavior while fixing its inaccessible event text.
Validation: the reported
test_page_fixture_renders[lost-update]failed on main and passes with this change. Both timeline tests pass, including real passage selection, Enter/Space activation, arrow focus, resizing and print.pnpm run checkand the configured pre-commit checks pass (including 668 runtime tests). The served startup comparison uses 44 requests in both arms; code loaded before presentation changes from 2,842,898 to 2,842,996 bytes.All four before/after still pairs are unchanged: the initial timeline, a keyboard-focused active step in light and dark, and the initial phone view. Independent code and browser review found no actionable issues.
Closes #4243 — automated triage