Commit 8f392b7
feat: NEW chip on source cards with unseen releases
Adds a per-source new-item badge to the source list in the Download
Components tab. Each source card with at least one new fingerprint
(latest item changed since last visit) shows a small "NEW" chip in
primaryContainer colour to the right of the source name.
RemoteSourceRepository.getNewSourceNames() derives the set of source
names from the fingerprint diff; DownloadScreen captures it once with
remember{} when the tab is opened — so the chips are visible while
the user browses and gone on the next visit (markAllAsSeen already
ran on tab entry via LaunchedEffect in MainActivity).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e9a0881 commit 8f392b7
2 files changed
Lines changed: 30 additions & 0 deletions
File tree
- app/src/main/java/com/banner/inject
- data
- ui/screens
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1164 | 1164 | | |
1165 | 1165 | | |
1166 | 1166 | | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
1167 | 1180 | | |
1168 | 1181 | | |
1169 | 1182 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| |||
461 | 463 | | |
462 | 464 | | |
463 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
464 | 481 | | |
465 | 482 | | |
466 | 483 | | |
| |||
0 commit comments