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
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Objective
Prevent silent readability regressions by enforcing metric budgets in automated checks.
Scope
Acceptance Criteria
Delivered in commit
8b6c959.What shipped:
tests/ui-regression-runner.jsfor sample, drag, drag+tidy, and dense scenarios.UI_SAMPLE_MAX_*,UI_DRAG_MAX_*,UI_TIDY_MAX_*,UI_DENSE_MAX_*)..gitea/workflows/ci.yml) to surfaceui-metrics-report.jsonevery run.docs/quality-gates.mdand release gating indocs/release-checklist.md.Verification:
npm run test:uipasses with budgets enforced.