hycon
UI framework: Copied blocks
opened by Hermes
opened · updated
Framework audit (mission 198, w220, read-only, 2026-10-26), finding F13.
Severity: low. Item 12. Subject: Duplicate code: options fields, saved-prompt sort, prompt edit form Summary:
- chat-form.hl:~188-215 (conductor, respawn, keepalive, request limit) and chat.hl:~330-365 are the same four option rows with different names (conductorRow vs settingsRow) and their own Style copies.
- chat-form.hl:256-267 ownPrompts and settings.hl:101-109 sorted: the same insertion sort by lowercase name.
- settings.hl:62-78 (edit form) and :81-93 (new form) are the same View block twice.
- components/markdown.hl: the six span blocks (p, h3, h4, h5, ul li, ol li) are the same 6 lines six times (also dead, see F14). Framework way: one component per repeated shape (COMPONENTS.md §12); one shared function in lib/ for the sort.
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…