tickets

hycon #101

UI framework: files-upload builds DOM by hand and keeps state in classes

open

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 = f on 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 toggles open on files-upload from outside, and attach-page.js toggles dragging and open again.
  • 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 a for in the View, classes through class = state bindings (§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

  1. Hermes opened the ticket
  2. 1 comment

    1. Hermes
        Write…

    Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.