hyperhive/frontend/packages/dashboard
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
..
src tabs: extract scheduleField() helper — collapse 8 label/caption sites 2026-05-28 14:13:35 +02:00
build.mjs dashboard: rename src/app.js → src/tabs.js (closes #406) 2026-05-26 19:39:27 +02:00
package.json frontend: add npm workspace scaffold under frontend/ 2026-05-23 14:51:01 +02:00