Refine segment view#98
Conversation
|
Note Reviews pausedUse the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughRefactors navigation to a provider with cross-book fade, implements scroll-window + recenter/snap lifecycle, centralizes phrase-strip hooks, adds a chapter-label-in-verse setting with UI and wiring, and expands tests and test infrastructure. ChangesInterlinearizer Navigation & Windowing Refactor
Sequence DiagramsequenceDiagram
participant WebView as Host WebView
participant Loader as InterlinearizerLoader
participant Nav as InterlinearNavProvider
participant Inter as Interlinearizer
participant Window as useSegmentWindow
participant Recenter as useRecenterSnap
WebView->>Loader: useWebViewScrollGroupScrRef()
Loader->>Nav: wrap subtree with provider
Nav->>Inter: useInterlinearNav() => rawScrRef/scrRef/navigate()
Inter->>Window: useSegmentWindow(scrRef, consumeInternalNav)
alt External cross-book navigation
Inter->>Nav: navigate(ref, 'external')
Nav->>Inter: fadePhase='out'
Inter->>Recenter: markRecenterStarted()
Recenter->>Window: snapActiveToTop()
Window->>Inter: rebuild windowSegments
Recenter->>Inter: beginRecenterSettle() -> onSettled
Nav->>Inter: fadePhase='in' then 'idle' after RECENTER_FADE_MS
else Internal same-book navigation
Inter->>Nav: navigate(ref, 'internal')
Window->>Inter: update display refs immediately (no fade)
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
a18e2c8 to
c78343e
Compare
…fade/realignment timing issues, add chapter markers and associated setting
a00112f to
dbd2d6b
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
…rse-0 dead code (#103) Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
imnasnainaec
left a comment
There was a problem hiding this comment.
@imnasnainaec partially reviewed 12 files.
Reviewable status: 12 of 38 files reviewed, all discussions resolved (waiting on alex-rawlings-yyc).
alex-rawlings-yyc
left a comment
There was a problem hiding this comment.
@alex-rawlings-yyc reviewed 38 files and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on alex-rawlings-yyc).
This change is
Summary by CodeRabbit
New Features
Improvements