Show live progress while archiving saved posts #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "t3code/archive-progress-display"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The archive row gave no feedback during a pass: just a disabled Start button and an open-ended "Archiving…". A large library could look stuck for minutes.
The core's bulk pass now reports a running tally.
archive_all_saved_postscalls an optionalArchiveProgressListeneronce before the first post and again after every post is considered, carryingcompleted(skipped posts included),total, and the failure count. The listener is a UniFFI callback interface, so both clients get it from the same core change.GNOME: the row subtitle counts up ("Archiving 3 of 45…", plus " · N failed" when uploads fail), and a progress bar under the row fills as the pass advances. Updates come through a channel from the worker thread onto the main loop, and stop once the pass settles so a late update can't clobber the final subtitle.
Android:
ArchiveCoordinatorfeeds the same tally intoArchiveUiState, and the row subtitle shows "Archiving X of Y" while the WorkManager pass runs.A core test pins the callback sequence: one initial tally, one per post, monotonic
completed, and the finalfailedcount.