aboutsummaryrefslogtreecommitdiff
path: root/scripts/hypr-live-update-guard
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-07-17 18:39:03 -0500
committerCraig Jennings <c@cjennings.net>2026-07-17 18:39:03 -0500
commit50aa5ac052db9b12f049276799898089e2226f80 (patch)
treeecd8338f083a5f95ad26e4f87b33a8d3ef08ae66 /scripts/hypr-live-update-guard
parentd14ab82a8c2ad974304477e29014d3a565e64504 (diff)
downloadarchsetup-50aa5ac052db9b12f049276799898089e2226f80.tar.gz
archsetup-50aa5ac052db9b12f049276799898089e2226f80.zip
refactor(gallery): extract the shared tally-row markup
The validation and policy tallies were built from the same dot/label/count row template, written out per bucket in both. That template is now tallyRow() and tallyTotal(), so the markup has one source and the next index tally reuses it. The differing count and jump logic stays in each function, since those genuinely diverge: the validation tally drives the floating audit stepper, the policy tally a plain hash cycle. Also hoisted GW.POLICIES[kind] to a local in card(), where it was read three times. Behaviour-preserving: the output HTML is byte-identical.
Diffstat (limited to 'scripts/hypr-live-update-guard')
0 files changed, 0 insertions, 0 deletions