Skip to content

feat(tasks): bulk upload of card assets - #882

Merged
artempartos merged 2 commits into
developfrom
feature/350-bulk-upload-card-assets
Nov 26, 2026
Merged

artempartos merged 2 commits into
developfrom
feature/350-bulk-upload-card-assets

Conversation

@aixle-com

@aixle-com aixle-com Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

A card's Assets tab gets the same drop zone as project assets (extracted into shared/ui/FileDropZone), and Upload new takes several files. Files go to the existing task assets endpoint three at a time and the list reloads once; refused files are named with their reason in one toast.

🤖 Generated with Claude Code

@aixle-com

aixle-com Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Code Review — round 1 — PASS

No critical issues. The change follows the Tech Design: shared FileDropZone used by both the project and card zones, several POSTs with concurrency 3, one reload at the end, summary toast on partial failure, zone hidden unless canExecute. Tests cover the zone and the card tab. Changelog and docs are updated.

Non-critical suggestions

  • TaskDetailSidebar.tsx handleAssetFiles: the guard assetUploadTotal > 0 reads state, so two drops in the same tick could both pass. The disabled zone makes this unlikely; a ref would be stricter.
  • The 1 GB hint on the card zone matches the uploader's validate_max_size, so no change is needed.

@artempartos
artempartos force-pushed the feature/350-bulk-upload-card-assets branch from 58339eb to ae53e5c Compare November 26, 2026 03:58
Aixle Flow and others added 2 commits November 26, 2026 12:32
Share the project assets drop zone as FileDropZone and use it in the card Assets tab. Upload new and the drop zone attach several files, three POSTs at a time, with one reload at the end.

Signed-off-by: Aixle Flow <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>
Each refused file raised the server's toast on its own ("File is too large"),
so in a batch nobody could tell which file it was about. The upload now
collects the refusals and shows one toast that names each file with its
reason, under "N of M files failed to upload" when several were sent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>
@artempartos
artempartos force-pushed the feature/350-bulk-upload-card-assets branch from ae53e5c to 22d1e15 Compare November 26, 2026 04:32
@artempartos
artempartos marked this pull request as ready for review November 26, 2026 04:39
@artempartos
artempartos merged commit e0ecfab into develop Nov 26, 2026
18 checks passed
aixle-com Bot pushed a commit that referenced this pull request Nov 26, 2026
Files of #880, #881, #882 and #884 (whose earlier heads staging carried) are
merged with those heads as the base, so their final rounds land; the dropped
strip-changes migration and its test go, schema.rb keeps the higher version.
artempartos added a commit that referenced this pull request Nov 26, 2026
The same unreleased section now removes Upload new, so the Added entry
from #882 must not promise it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>
artempartos added a commit that referenced this pull request Nov 26, 2026
* refactor(tasks): remove redundant Upload new button from task assets

Refs #356

Signed-off-by: Aixle Flow <[email protected]>

* fix(frontend): fix indentation in task assets panel

Signed-off-by: Aixle Flow <[email protected]>

* fix(assets): open the file drop zone from the keyboard

With Upload new gone, the drop zone is the only upload control on a
card's Assets tab, and it was a plain div: no focus, no key handling,
and its file input is display:none. Keyboard and screen-reader users
could not attach files. It is now a focusable role="button" that opens
the picker on Enter or Space.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>

* docs(changelog): drop Upload new from the unreleased drop-zone entry

The same unreleased section now removes Upload new, so the Added entry
from #882 must not promise it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>

---------

Signed-off-by: Aixle Flow <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>
Co-authored-by: Aixle Flow <[email protected]>
Co-authored-by: Artem Petrov <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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