Repository navigation
upload indicator - #29
Merged
Merged
Conversation
fleetingbytes
commented
Nov 29, 2026
Owner
- feat(tui): continuous upload queue progress via adaptive polling
- feat(tui): Queue tab column labels and sorted order
- feat: order uploads by segment then log type; fix Queue column alignment
- fix: order upload requests by route, then segment, then log type
Poll listUploadQueue every 1s while the Queue tab is active and the queue is non-empty. Poll once on tab entry and after upload/cancel round-trips complete. Skip polling when the device is known offline. Move the post-upload queue refresh into the async tasks so it happens only after the Athena round-trip finishes, eliminating the race that could show an empty queue for a just-requested upload. Documented in TDR-007.
Show Status / Route / Seg / Type headers above the queue list. Sort active items by segment number, then log type, then route name. Sort pending items by route name, then segment number, then log type. Active items always appear before pending ones.
Athena only orders by priority (lower number = sooner, range 0-99). Equal priorities left the order undefined, so higher segments appeared first. upload_priority now assigns 1..=99 so segment 0 is uploaded before 1 before 2, and within a segment the order is log → fcamera → ecamera → dcamera. Used by both the TUI and the CLI. Queue tab header is padded by the highlight-symbol width so Status / Route / Seg / Type line up with the list content.
Athena only honours the priority number. Batches are now sorted by route name → segment number → log type (log, fcamera, ecamera, dcamera) and given sequential priorities so the device processes them in that order. Multi-route uploads (TUI upload-all, CLI recent-routes) collect all missing paths, sort once, and enqueue in a single call.
Satisfies clippy::useless_vec under -D warnings so CI lint passes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.