Commit 34b4c41
feat: deterministic sync progress indicator + related housekeeping (#160)
* feat: deterministic sync progress indicator + related housekeeping
Bookmark list (initial sync):
- Add BookmarkSyncProgress sealed interface (Idle / Running) to
BookmarkRepository; emit Running(page, totalPages) after each page in
performFullSync(), reset to Idle in finally block.
- Fix BookmarkRepositoryImpl binding in AppModule: add @singleton so the
Worker and ViewModel share the same instance and progress state is
visible across both.
- Expose syncFraction: StateFlow<Float?> from BookmarkListViewModel,
mapped from syncProgress.
- Replace pull-to-refresh spinner on initial load with a deterministic
LinearProgressIndicator below the TopAppBar; PullToRefreshBox spinner
is now only shown for user-initiated refreshes.
- Auto-scroll list to top when initial sync completes via snapshotFlow
on isInitialLoading → scrollToTopTrigger.
Highlights (initial sync / pull-to-refresh):
- Add indeterminate LinearProgressIndicator below TopAppBar for
auto-syncs (guarded by isRefreshing && !isUserRefreshing &&
!isInitialLocalLoad).
- Add isUserRefreshing tracking to HighlightsViewModel: set on retry(),
reset via init observer when sync state leaves Running. Wire into
HighlightsUiState and PullToRefreshBox so the circular spinner only
shows for user-initiated pulls.
- Remove inline CircularProgressIndicator from the empty-state body
(replaced by top-bar LinearProgressIndicator).
Logging:
- Revert HttpLoggingInterceptor from BODY back to BASIC; full response
bodies were excessive for large libraries and impacted app load time.
Housekeeping:
- Update CHANGELOG.md with entries for 0.11.0 through 0.13.0.
- Update docs/WORKFLOW.md: add CHANGELOG.md update step to release prep.
- Remove _notes/reader-top-bar-scroll-behavior-spec.md from git
tracking (_notes/ is local-only per .gitignore).
- Add docs/specs/deterministic-sync-progress-indicator-spec.md.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* ci: pin JDK to 17.0.14 and capture JVM crash logs
Intermittent C2 JIT crashes (Node::uncast SIGSEGV) were occurring on
the verify job. Pin the Temurin patch version for deterministic builds
and upload hs_err/replay/core files as artifacts on failure to enable
diagnosis if the crash recurs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* Fix sync progress review issues and pin CI JDK
- Show bookmark sync progress in the list UI only during initial loading, keeping background and user-triggered periodic full syncs visually quiet.
- Reset highlights user-refresh tracking when a retry is skipped or fails, preventing later automatic refreshes from being mislabeled as user refreshes.
- Add regression coverage for skipped highlights retry followed by automatic refresh.
- Stub `BookmarkRepository.syncProgress` in `BookmarkListViewModelTest` to fix MockK unit test failures.
- Pin the quality checks workflow to Temurin JDK 17.0.13 to avoid the GitHub Actions JVM crash seen with 17.0.14.
Verification:
- `./gradlew :app:assembleDebugAll`
- `./gradlew :app:testDebugUnitTestAll`
- `./gradlew :app:lintDebugAll`
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 3fc92de commit 34b4c41
15 files changed
Lines changed: 335 additions & 94 deletions
File tree
- .github/workflows
- _notes
- app/src
- main/java/com/mydeck/app
- domain
- io/rest
- ui
- highlights
- list
- test/java/com/mydeck/app/ui
- highlights
- list
- docs
- specs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
10 | 61 | | |
11 | 62 | | |
| 63 | + | |
| 64 | + | |
12 | 65 | | |
13 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
14 | 70 | | |
15 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
16 | 106 | | |
17 | 107 | | |
18 | 108 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
86 | 94 | | |
87 | 95 | | |
88 | 96 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
69 | 76 | | |
70 | 77 | | |
71 | 78 | | |
| |||
755 | 762 | | |
756 | 763 | | |
757 | 764 | | |
| 765 | + | |
| 766 | + | |
758 | 767 | | |
759 | 768 | | |
760 | 769 | | |
| |||
816 | 825 | | |
817 | 826 | | |
818 | 827 | | |
| 828 | + | |
819 | 829 | | |
820 | 830 | | |
821 | 831 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
Lines changed: 4 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
217 | 220 | | |
218 | 221 | | |
219 | 222 | | |
| |||
246 | 249 | | |
247 | 250 | | |
248 | 251 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | 252 | | |
260 | 253 | | |
261 | 254 | | |
| |||
274 | 267 | | |
275 | 268 | | |
276 | 269 | | |
277 | | - | |
| 270 | + | |
278 | 271 | | |
279 | 272 | | |
280 | 273 | | |
| |||
0 commit comments