bug(ui): native "Choose File" input in edit form is inconsistent with design system #102
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Low — visual inconsistency
On the document Edit page, the file replacement section shows the current filename and a native browser "Choose File" button. The native button renders in the OS default style (gray, system font, varying appearance per browser/OS) — completely inconsistent with the rest of the form's design language.
The new document form already has a custom drop zone with a styled upload area. The edit form should use the same component.
Fix
Replace the native
<input type="file">button in the edit form with the same custom upload zone component already used on the new document page. It should show the current filename prominently (e.g. "Current file: minimal.pdf") and a styled "Replace file" affordance below it, using the dashed drop zone or a simple outlined button:This is a visual-only fix — the form submission logic stays the same.