Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/frontend/packages/dashboard/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris bc1c910044 tabs: extract scheduleField() helper — collapse 8 label/caption sites
Every field on the new- and edit-schedule forms (plus buildIntervalComposer
and buildTargetChips) builds the same wrapper shape:

    el('label', { class: 'schedule-field' },
      el('span', { class: 'schedule-field-label' }, '…'))

then appends an input. Eight identical-modulo-text sites. Extracting one
small helper:

    function scheduleField(labelText, ...children) {
      return el('label', { class: 'schedule-field' },
        el('span', { class: 'schedule-field-label' }, labelText),
        ...children);
    }

drops the per-site cost to a single `form_.append(scheduleField('caption',
input));` line. -10 LOC net; no behaviour change.
2026-05-28 14:13:35 +02:00
..
common.js frontend/dashboard: heartbeat + watchdog so a dead SharedWorker self-heals (#515) 2026-05-27 23:37:21 +02:00
dashboard.css approvals: manager can withdraw pending approvals (closes #250) 2026-05-27 12:48:30 +02:00
flow.html dashboard: rename src/app.js → src/tabs.js (closes #406) 2026-05-26 19:39:27 +02:00
flow.js flow.js: subscribe to /dashboard/stream with ?kinds= filter (closes #408) 2026-05-26 23:02:52 +02:00
index.html dashboard: rename src/app.js → src/tabs.js (closes #406) 2026-05-26 19:39:27 +02:00
stream-worker.js stream-worker: honest comment on heartbeat catch (argus nit on #529) 2026-05-27 23:40:38 +02:00
tabs.js tabs: extract scheduleField() helper — collapse 8 label/caption sites 2026-05-28 14:13:35 +02:00