Skip to content

fix(uploader): render upload progress inside the dropzone - #4143

Merged
tvdeyen merged 1 commit into
mainfrom
uploader-progress-in-dropzone
Aug 17, 2026
Merged

fix(uploader): render upload progress inside the dropzone#4143
tvdeyen merged 1 commit into
mainfrom
uploader-progress-in-dropzone

Conversation

@tvdeyen

@tvdeyen tvdeyen commented Aug 11, 2026

Copy link
Copy Markdown
Member

What is this pull request for?

While an upload is running, the progress indicator always mounted on
document.body, so it floated over the whole admin regardless of where the
upload was started. This moves the progress into the dropzone that received the
files (falling back to the body when an uploader has no dropzone), and adds a
layout attribute so the indicators fit the view they belong to: row for
resource tables and card for the picture archive's thumbnail grid.

Notable changes

Alchemy::Admin::UploaderButton gains a layout option that is reflected onto
<alchemy-uploader> and, in turn, onto the <alchemy-upload-progress> element,
which the stylesheet uses to switch between the row and card layouts. The
picture archive opts into layout: "card"; every other uploader keeps the
default row layout, so existing behaviour is unchanged.

Screenshots

Visual change: the upload progress now renders inside the archive/dropzone,
shown as a thumbnail grid in the picture library and as stacked rows elsewhere.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@tvdeyen
tvdeyen requested a review from a team as a code owner August 11, 2026 16:10
@tvdeyen tvdeyen added this to the 8.4 milestone Aug 11, 2026
@tvdeyen
tvdeyen marked this pull request as draft August 11, 2026 16:17
@tvdeyen tvdeyen self-assigned this Aug 11, 2026
@tvdeyen
tvdeyen force-pushed the uploader-progress-in-dropzone branch from b82aefe to 9ded264 Compare August 11, 2026 16:33
@tvdeyen tvdeyen changed the title feat(uploader): render upload progress inside the dropzone fix(uploader): render upload progress inside the dropzone Aug 11, 2026
@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.28%. Comparing base (52f949f) to head (ef91220).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4143   +/-   ##
=======================================
  Coverage   98.28%   98.28%           
=======================================
  Files         352      352           
  Lines        9292     9293    +1     
=======================================
+ Hits         9133     9134    +1     
  Misses        159      159           
Flag Coverage Δ
mariadb 96.83% <100.00%> (+<0.01%) ⬆️
postgresql 95.71% <100.00%> (+<0.01%) ⬆️
sqlite 95.71% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tvdeyen
tvdeyen force-pushed the uploader-progress-in-dropzone branch 2 times, most recently from ee4c646 to 4302fbe Compare August 14, 2026 10:08
Previously the upload progress always mounted on document.body, so it
floated over the whole admin regardless of where the upload started. Mount
it inside the dropzone element instead (falling back to the body) and let a
layout attribute pick the shape: "row" for resource tables and "card" for
the picture archive grid, so the indicators match the view they upload into.
@tvdeyen
tvdeyen force-pushed the uploader-progress-in-dropzone branch from 4302fbe to ef91220 Compare August 17, 2026 10:06
@tvdeyen
tvdeyen marked this pull request as ready for review August 17, 2026 10:25
@tvdeyen tvdeyen removed their assignment Aug 17, 2026
@tvdeyen
tvdeyen merged commit e1a86c9 into main Aug 17, 2026
28 checks passed
@tvdeyen
tvdeyen deleted the uploader-progress-in-dropzone branch August 17, 2026 10:26
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