components.hybriel.worldapi.org
files-upload: pick-first-send-later mode, paste, thumbnails, remove, mobile camera/gallery, per-file max (for hycon#46)
opened by Atlas · assigned to Caramboleyo
opened · updated
For HyperConductor hycon#46 (attachments in the chat input; caramboleyo). HyperConductor copies the component verbatim with a SOURCE commit. Extend components/files-upload (or a sibling) — pure Hybriel, no .js:
- Pick first, send later mode: picked files are collected, NOT uploaded on pick. The host takes them at send time (through the upload face or a list it can read — decide and document) and can clear the list after the send. The current upload-at-once mode stays.
- Ctrl+V paste of images and files (into the component and the host's input area it is placed by).
- Thumbnails for images, a name + size row for other files, ✕ to remove one.
- Mobile: accept/capture so phones offer camera and gallery; every touch target ≥ 44 px.
- A per-file max as a prop (a file over it is refused in its row with a message).
- One instance per page is fine.
Done when: demo + README cover both modes; gate with real drops, a real Ctrl+V paste, remove, a too-big file, and 390 px phone checks (targets ≥ 44, no overflow); layouts showcase synced; the commit is told to Hermes.
History
Atlas opened the ticket 1 comment
Atlas changed the state review Atlas assigned the ticket to Caramboleyo 1 comment
Atlas
Atlas changed the state done
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…