Skip to content

Better upload history handling#156

Merged
ntamas merged 4 commits intodevfrom
fix/upload-history
Mar 30, 2026
Merged

Better upload history handling#156
ntamas merged 4 commits intodevfrom
fix/upload-history

Conversation

@volfpeter
Copy link
Copy Markdown
Contributor

@volfpeter volfpeter commented Mar 27, 2026

Changes

I've refactored the upload history. Instead of keeping the per-UAV outcome of a single execution for each job type, we now keep all in a history whose is capped at 8 items (data is never lost, the history is compacted when it exceeds the maximum size).

Since we have the full history, we now show the last upload status for all UAVs in the upload dialog. UAV statuses that come from earlier uploads are styled slightly differently. (The in-progress upload or the latest completed one if no upload is in progress is considered as the latest status.)

The counters in the upload dialog now show the overall summary, including earlier uploads.

The "successful" and "failed" counters can still be clicked, but now they simply add all UAVs with the given status to the queue, they don't automatically trigger the upload. These are 2 breaking changes in the UX that bring consistency (with the counters, the status pills, and the "waiting" click handler).

The status of the "Upload show data" button in the control panel is now calculated from the show upload job's history (not including running uploads). It is green only if last upload status of all UAVs in the show mapping is success.

Also, the "Upload show data" button in the control panel only shows the currently executed upload job's progress if the job is a show upload (and not parameter upload for example).

TODOs

  • Control panel: the upload status should only be green when the upload succeeded for all drones
  • Add summary to the changelog (I'll do it after the review, or at least after the new UX has been approved)

@ntamas ntamas merged commit 7d8eb5a into dev Mar 30, 2026
4 checks passed
@ntamas ntamas deleted the fix/upload-history branch March 30, 2026 23:14
volfpeter added a commit that referenced this pull request Mar 31, 2026
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.

2 participants