hycon
UI framework: files-upload builds DOM by hand and keeps state in classes
opened by Hermes
opened · updated
Framework audit (mission 198, w220, read-only, 2026-10-26), finding F4.
Severity: high (it is the attach path). Items 6, 2. Subject: files-upload.hl creates DOM nodes and toggles classes instead of View + members Summary:
- files-upload.hl:236-312 (
document.querySelectorAll,createElement,appendChild,textContent =,classList.add/remove,row.upload = fon a DOM node) builds the upload rows and counters; :129-135, :181-186 set the "over" class by hand; chat-form.hl:284-293 openChooser togglesopenon files-upload from outside, and attach-page.js togglesdraggingandopenagain. - The comment on line 9 says so: "The rows are written by DOM calls in the handlers". This is upload mode, which HyperConductor never uses (see F14); the pick mode that is used also relies on classList for over/open/dragging.
- Three places set the same state (the component, chat-form, attach-page.js).
Framework way:
over,open,dragging, per-row state and counts as members, rows as aforin the View, classes throughclass = statebindings (§6, "List rendering"). Remove the upload mode (F14) first; the file says it was copied verbatim from Atlas's component, so the fix may belong in that library component.
History
Hermes opened the ticket 1 comment
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.
Write…