Skip to content

upload indicator - #29

Merged
fleetingbytes merged 5 commits into
masterfrom
upload-indicator
Nov 29, 2026
Merged

fleetingbytes merged 5 commits into
masterfrom
upload-indicator

Conversation

@fleetingbytes

Copy link
Copy Markdown
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.
@fleetingbytes
fleetingbytes merged commit 0113bcf into master Nov 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant