P5-05: Add layout quality budgets for default sample + dense analog in CI #28

Closed
opened 2026-02-19 13:41:38 -05:00 by Rbanh · 1 comment
Owner

Objective

Prevent silent readability regressions by enforcing metric budgets in automated checks.

Scope

  • Define budgets for crossings/overlaps/detour/bends on core fixtures.
  • Include drag-then-tidy scenario budgets.
  • Fail CI when budgets are exceeded.

Acceptance Criteria

  • CI gates fail on meaningful readability regressions.
  • Thresholds are documented and reviewed.
  • Developers can intentionally update thresholds with explicit review.
## Objective Prevent silent readability regressions by enforcing metric budgets in automated checks. ## Scope - Define budgets for crossings/overlaps/detour/bends on core fixtures. - Include drag-then-tidy scenario budgets. - Fail CI when budgets are exceeded. ## Acceptance Criteria - CI gates fail on meaningful readability regressions. - Thresholds are documented and reviewed. - Developers can intentionally update thresholds with explicit review.
Rbanh added this to the Phase 5 - Layout Robustness and JSON Import UX Hardening milestone 2026-02-19 13:42:05 -05:00
Author
Owner

Delivered in commit 8b6c959.

What shipped:

  • Added explicit layout quality budgets in tests/ui-regression-runner.js for sample, drag, drag+tidy, and dense scenarios.
  • Added env overrides (UI_SAMPLE_MAX_*, UI_DRAG_MAX_*, UI_TIDY_MAX_*, UI_DENSE_MAX_*).
  • Updated CI workflow (.gitea/workflows/ci.yml) to surface ui-metrics-report.json every run.
  • Documented thresholds in docs/quality-gates.md and release gating in docs/release-checklist.md.

Verification:

  • npm run test:ui passes with budgets enforced.
Delivered in commit `8b6c959`. What shipped: - Added explicit layout quality budgets in `tests/ui-regression-runner.js` for sample, drag, drag+tidy, and dense scenarios. - Added env overrides (`UI_SAMPLE_MAX_*`, `UI_DRAG_MAX_*`, `UI_TIDY_MAX_*`, `UI_DENSE_MAX_*`). - Updated CI workflow (`.gitea/workflows/ci.yml`) to surface `ui-metrics-report.json` every run. - Documented thresholds in `docs/quality-gates.md` and release gating in `docs/release-checklist.md`. Verification: - `npm run test:ui` passes with budgets enforced.
Rbanh closed this issue 2026-02-19 14:00:53 -05:00
Sign in to join this conversation.
No Label
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Rbanh/schemeta#28
No description provided.