Skip to content

refactor(tasks): remove redundant Upload new button - #899

Merged
artempartos merged 4 commits into
developfrom
feature/356-remove-upload-new-button
Nov 26, 2026
Merged

artempartos merged 4 commits into
developfrom
feature/356-remove-upload-new-button

Conversation

@aixle-com

@aixle-com aixle-com Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Removes the redundant Upload new button and its hidden file input from the task Assets panel (TaskDetailSidebar, shared by the board drawer and the task page). FileDropZone stays as the only upload control and still supports click-to-select of multiple files. Also removes the unused fileInputRef/handleUploadAsset, the obsolete test, and updates the docs line and CHANGELOG.

Card: https://flow.aixle.com/company/projects/56/board?n=356

Checks

  • Not run: tsc, eslint, vitest. Docker and node_modules are unavailable in this container.
  • Verified by reading: useRef and fileInputRef have no remaining uses; Button and IconCloudUpload are still used.

🤖 Generated with Claude Code

@aixle-com

aixle-com Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Code Review — round 1 — PASS

No critical issues. The change follows the Tech Design: the button, hidden input, fileInputRef and handleUploadAsset are removed, the useRef import is dropped (no other use), Button and IconCloudUpload are still used elsewhere, the old test is replaced by one asserting the drop zone is present and no "Upload new" button exists, and the docs line and changelog entry are updated.

Non-critical suggestions

  • app/frontend/pages/Projects/Board/TaskDetailSidebar.tsx (~line 1741): the opening <Box has stray indentation after the comment line was deleted. Prettier/lint will likely flag it; run the formatter.

Aixle Flow and others added 3 commits November 26, 2026 07:09
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]>
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
artempartos marked this pull request as ready for review November 26, 2026 12:19
@artempartos
artempartos merged commit 1e97775 into develop Nov 26, 2026
18 checks 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