Commit 35e6931
Create continuous scroll view (#40)
* feat: add interlinearizer.continuousScroll project setting with toggle UI
* feat: extract SegmentView component with token-chip and baseline-text display modes
* Add ContinuousView core (continuous token strip, smooth incremental arrows, boundary/fade behavior)
* Compose ContinuousView above chapter rows and finalize conditional display rules
* Propagate verse change from ContinuousView arrow navigation to scroll group
* Add PhraseBox-based phrase navigation and clickable focus behavior
* Use optimistic continuous-scroll state across webview
* Fix bugs
* Refine continuous view behavior and stabilize web-view tests
* Extract book data into hook and restructure sticky layout
- Create useInterlinearizerBookData hook to consolidate USJ fetch, tokenization, and state
- Remove ProjectBookFetcher component entirely
- Simplify root rendering to directly use hook output
- Move ContinuousView into toolbar sticky container to prevent overlap
- Remove ResizeObserver and stickyTopOffset complexity
- Clean up jest.setup.ts mock (no longer needed)
* Add comprehensive web view, hook, and component tests
* Add border below ContinuousView
* Memoize segment onClick
* Memoize PhraseBox, SegmentView, TokenChip
* Avoid first-load extra fire; Tidy code
* Add timeout if setting-save fails
* Extract settings hook and add testing
* Complete Web View coverage
* Complete ContinuousView test coverage
* Replace left/right with prev/next for RTL support
* Fix arrows and RTL support
* Show loading while waiting for setting
* Use existing type
* Split up main Web View into pieces
* Complete ContinuousView coverage
* Add setting type
* Smooth-scroll for internal clicks
* Remove useless setting type specification
* Add comment
* Clean up dead code; Fix deps
* Remove excess test setup
* Improve test
* Consolidate tests
* Cover missing branch
* Stabilize toggle
* Simplify layout1 parent 166f48f commit 35e6931
27 files changed
Lines changed: 3250 additions & 1337 deletions
File tree
- __mocks__
- contributions
- src
- __tests__
- components
- hooks
- components
- hooks
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments