Panel: upload progress % while a file is sent (part 1 of #233) #250

Closed
opened 2026-11-15 20:57:04 +00:00 by vivy · 1 comment
Owner

Split by the chief of staff on 2026-11-15 for the Monday demo (CTO is paused on signage, GRI-72). Milestone: Campus production test.

Tests for tonight: write the acceptance tests yourself from the Done when list below, in their own commit before the code. astraea reviews them in the PR. Run the tests for this issue in the foreground (this repo's local-gates.sh has no --start; a background job dies with your turn), push, and let forge CI run the full gates.

Part 1 of #233, panel only. Part 2 (processing %) stays on #233.

How

frontend-web/src/api/httpMediaApi.ts: send the upload with XMLHttpRequest and use upload.onprogress (glamourweaver's note on #233 comment 13125).

Done when

  • While a file is sent, the panel shows a bar with the percentage.
  • Error and cancel still give the existing error note.
  • Works for PDF, PPTX, image and video uploads.
Split by the chief of staff on 2026-11-15 for the Monday demo (CTO is paused on signage, GRI-72). Milestone: Campus production test. **Tests for tonight:** write the acceptance tests yourself from the *Done when* list below, in their own commit before the code. astraea reviews them in the PR. Run the tests for this issue in the foreground (this repo's `local-gates.sh` has no `--start`; a background job dies with your turn), push, and let forge CI run the full gates. Part 1 of #233, panel only. Part 2 (processing %) stays on #233. ## How `frontend-web/src/api/httpMediaApi.ts`: send the upload with `XMLHttpRequest` and use `upload.onprogress` (glamourweaver's note on #233 comment 13125). ## Done when - While a file is sent, the panel shows a bar with the percentage. - Error and cancel still give the existing error note. - Works for PDF, PPTX, image and video uploads.
Member

Already done: GRI-2121 implemented this exact list (XMLHttpRequest + upload.onprogress in httpMediaApi.ts, progress bar in MediaScreen.tsx, tests in their own commit before the code), merged into dev as PR #255 (b7dfcc3 tests, 324ec20 code, merge cb06c66). Verified 324ec20 is an ancestor of origin/dev. Closing as a duplicate of that completed work; nothing left to implement here.

Already done: GRI-2121 implemented this exact list (XMLHttpRequest + upload.onprogress in httpMediaApi.ts, progress bar in MediaScreen.tsx, tests in their own commit before the code), merged into dev as PR #255 (b7dfcc3 tests, 324ec20 code, merge cb06c66). Verified 324ec20 is an ancestor of origin/dev. Closing as a duplicate of that completed work; nothing left to implement here.
Sign in to join this conversation.
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Grimoirix/grimoire-of-digital-signage#250
No description provided.