Repository navigation
fix(ui): Clear the UI audit's deferred Minors - #283
Conversation
Section 3 still described the weekly chart geometry branch as awaiting its PR after PR #281 merged. Record the merge and open the owner-approved side task that bundles the UI audit's deferred Minors on fix/ui-audit-minors. The smoothing defect that headed that list is already fixed on main.
The owner accepted a triage of the UI audit's deferred Minors. Record the chosen rows with their evidence in a spec and slice the fixes into eleven atomic tasks, four of which land only after an owner preview. The plan's one review found a pointer-focus gap and a false export claim; both are fixed here. Validation: `pytest -q` -- **3108 passed**.
The canvas font parser treated `normal` as weight 400, so a shorthand like `600 normal 26px` read as 400 and the saved-image headline check could misreport the drawn weight. `normal` is no longer a weight token. Also correct two earlier Section 4 headings from the UTC date to the local commit date, 2026-10-30. Validation: `pytest -q` -- **3109 passed**.
With no drawn layers min() on the contrast ratios raised before the named failure; the contrast line is now skipped then. The keyboard check's cleanup ran sequentially, so a raising first step skipped the viewport restore and the job delete; each step now runs in a nested finally and the first error still surfaces. Closes audit rows 23 and 30. Existing tests edited: none. Validation: `pytest -q` -- **3109 passed**.
The paused-hold probe stored ss-motion=still and only the Play click cleared it, so an early return left the choice in the shared browser context. The probe now removes the key in its finally, before closing the page, tolerating a page that never navigated. Validation: `pytest -q` -- **3111 passed**.
The stream panel was always a live region, Escape did not dismiss it, a pointer leave dropped the week while the keys were driving it, and the gate never checked that arrow keys were consumed. The live region now exists only while the stream has keyboard focus, Escape hides the panel and keeps the position, and a leave clears the week only without keyboard focus. The keyboard check asserts each arrow press was consumed, and covers click-then-leave and Escape. Validation: `pytest -q` -- **3111 passed**.
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 23 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
positionForm built the same 860px query the desktop const already holds. It now reads the const, which is declared above positionForm so it is plainly initialised before any call. No behaviour change. Closes audit row 13 of the UI audit Minors. Validation: `pytest -q` -- **3111 passed**.
Two 1.5rem literals held the footer gap (the footer row padding in shell.css and the home hero bottom padding in index.css), kept equal only by a gate equality check. One --shell-footer-gap property now feeds both; computed values are unchanged. Validation: `pytest -q` -- **3111 passed**.
The ramp carried its own 0.875rem top margin on top of the key's 0.75rem grid gap, leaving about 28px under the last row at 1920. The reference is a 12px grid gap; dropping the margin leaves the gap alone, scaled by --index-scale (12.9px at 1920). The owner previewed and kept the change. Closes audit row 5. Validation: `pytest -q` -- **3111 passed**.
The stream's bottom month labels lacked the heatmap labels' small capitals and 0.12em tracking, so the two month rows looked different at the same rendered size. The stream labels now take both attributes; the saved image gains them too, since the export already copies them. The stream alignment gate compares family, variant, tracking and rendered size against the heatmap and fails closed on empty or mismatched label sets. The owner previewed and kept the change. Validation: `pytest -q` -- **3111 passed**.
streamFit moved the baseline only when the stack overflowed the plot band, so ordinary data sat about 10px low. It now always centres the outer envelope, halo and Bezier-control margins included, on the band's centre line. The owner viewed it on their own data and kept it. Validation: `pytest -q` -- **3113 passed**.
Tick the plan's delivery boxes for the landed tasks, mark Task 6 as dropped on the owner's word and note Task 9b (added, then dropped as already satisfied). Add an Execution record: each task's commit, review outcome, the owner's preview decisions, the deviations and the gate results at the final head. results-behavior is still owed there. Validation: `pytest -q` -- **3113 passed** (docs only, count unchanged).
Take the F-B23-33 fix and its bookkeeping into the UI audit Minors branch (owner ruling: a merge commit, not a rebase). Only PLAYBOOK and the log archive conflicted; both sides' history is kept, with PR #282 recorded as merged. Validation: `pytest -q` -- **3118 passed**.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Graphify reviewed this change.
No issues found by static checks — no coupling regressions or blocking issues in the code graph. That is not the same as safe to merge: see what was not checked.
Not checked: tests were not run; formal verification proved 0 of 11 changed function(s) (1 sampled, not proven, 10 not verified).
Formal verification. PR-changed functions: 1/11 verified (0 proven, 1 may-equivalent, 0 distinguished) · 10 not verified (10 vacuous).
Not verified on this run: \_pause\_hold\_failures (vacuous: never exercised), \_paint\_failures (vacuous: never exercised), check\_stream\_is\_one\_keyboard\_tab\_stop (vacuous: never exercised), drawStream (vacuous: never exercised), handleStreamBlur (vacuous: never exercised), handleStreamFocus (vacuous: never exercised), handleStreamKey (vacuous: never exercised), showWeek (vacuous: never exercised), streamFit (vacuous: never exercised), positionForm (vacuous: never exercised).
Graphify review — findings
Fixes the minor findings the 2026-10-27 UI audit deferred, starting with centring the streamgraph in its plot band: streamFit now always shifts the baseline by half the sum of the envelope's high and low edges, where before it shifted only on overflow and ordinary data sat about 10px low. The streamgraph's bottom month labels now match the heatmap's in typeface and size, and the heatmap preview card and panel ordering get matching tweaks in heatmap.js and its pure-function tests. Extends the frontend gate with checks that the stream aligns with the grid columns, that the saved theme survives a reload, and that a headline font-family mismatch is reported with both names. It also checks that the artist spotlight card hides when there is no photo and that object-fit: cover crops fail, with a timed-out hold wait judged by tick count. Bumps the pinned test count from 3113 to 3118 and updates the PLAYBOOK, FINDINGS and session context to record the work. The owner dropped the 13px panel-header change after previews.
Review partial — this diff was larger than one review pass covers, so later files were not reviewed; some findings may be missing.
Analysis details — impact, health, verification
Impact & health
Graphify review
Impact — 601 functions depend on the 600 functions this change touches.
Health — this change adds coupling hotspots:
- worse:
_step_failures()— 6 callers, 3 callees
Verification — 601 functions in the blast radius were not formally verified this run (proofs are advisory here).
Gate & verification
graphify gate
PASS — objectively clean (no health regressions, tests not run — proofs not run this pass (advisory)). Grounded, not self-assessed.
Advisory (not blocking):
- verification_scope: 601 function(s) in the blast radius were not formally verified this run
Formal verification
Could not verify: Could not verify \_pause\_hold\_failures.
The verifier did not have enough to check \_pause\_hold\_failures, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: not verifiable: all 243 sampled inputs raised on both versions — the function never executed, so 'no divergence' would be vacuous (mostly ModuleNotFoundError — names the real obstacle, not a sampling gap)
No difference found (not proven): No behavior difference found in \_alignment\_failures (not a proof).
The verifier ran both versions of \_alignment\_failures on many inputs and saw identical behavior every time. Strong evidence the change is safe, but evidence, not a proof.
Guarantee: Empirical: differential testing (both versions run on many generated inputs). A divergence on an untested input remains possible, so this is 'no counterexample found', not 'proven equivalent'.
Note: An input the sampler did not try could still differ.
Could not verify: Could not verify \_paint\_failures.
The verifier did not have enough to check \_paint\_failures, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: not verifiable: all 100 sampled inputs raised on both versions — the function never executed, so 'no divergence' would be vacuous (mostly TypeError — names the real obstacle, not a sampling gap)
Could not verify: Could not verify check\_stream\_is\_one\_keyboard\_tab\_stop.
The verifier did not have enough to check check\_stream\_is\_one\_keyboard\_tab\_stop, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: not verifiable: all 245 sampled inputs raised on both versions — the function never executed, so 'no divergence' would be vacuous (mostly AttributeError — names the real obstacle, not a sampling gap)
Could not verify: Could not verify drawStream.
The verifier did not have enough to check drawStream, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: not verifiable: all 23 sampled inputs raised on both versions — the function never executed, so 'no divergence' would be vacuous (mostly ReferenceError: streamGeometry is not defined — names the real obstacle, not a sampling gap)
Could not verify: Could not verify handleStreamBlur.
The verifier did not have enough to check handleStreamBlur, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: not verifiable: all 1 sampled inputs raised on both versions — the function never executed, so 'no divergence' would be vacuous (mostly ReferenceError: streamState is not defined — names the real obstacle, not a sampling gap)
Could not verify: Could not verify handleStreamFocus.
The verifier did not have enough to check handleStreamFocus, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: not verifiable: all 1 sampled inputs raised on both versions — the function never executed, so 'no divergence' would be vacuous (mostly ReferenceError: streamState is not defined — names the real obstacle, not a sampling gap)
Could not verify: Could not verify handleStreamKey.
The verifier did not have enough to check handleStreamKey, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: not verifiable: all 23 sampled inputs raised on both versions — the function never executed, so 'no divergence' would be vacuous (mostly ReferenceError: streamState is not defined — names the real obstacle, not a sampling gap)
Could not verify: Could not verify showWeek.
The verifier did not have enough to check showWeek, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: not verifiable: all 23 sampled inputs raised on both versions — the function never executed, so 'no divergence' would be vacuous (mostly ReferenceError: streamState is not defined — names the real obstacle, not a sampling gap)
Could not verify: Could not verify streamFit.
The verifier did not have enough to check streamFit, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: not verifiable: all 23 sampled inputs raised on both versions — the function never executed, so 'no divergence' would be vacuous (mostly ReferenceError: streamEnvelope is not defined — names the real obstacle, not a sampling gap)
Could not verify: Could not verify positionForm.
The verifier did not have enough to check positionForm, so it is saying so rather than guessing. No false assurance is the whole point.
Guarantee: No guarantee either way, this is an honest abstention, not a pass.
Note: Reason: not verifiable: all 1 sampled inputs raised on both versions — the function never executed, so 'no divergence' would be vacuous (mostly ReferenceError: desktop is not defined — names the real obstacle, not a sampling gap)
· 1 more finding(s) on lines outside this diff (see the check run).
Summary
Bundles the minor findings the 2026-10-27 UI audit's reviews deferred into one bug-fix PR. A read-only audit checked every deferred Minor against
main; the owner accepted a triage of the 43 still true. Plan:docs/superpowers/plans/2026-10-31-ui-audit-minors.md; spec:docs/superpowers/specs/2026-10-31-ui-audit-minors-design.md. The smoothing defect that headed the list (negative band thickness beside a one-week spike) was already fixed onmainby #280.Four visual tasks landed only after the owner previewed before/after screenshots: T6 (panel header 13px) was dropped; T8 (key ramp spacing), T9 (month labels) and T10 (centring, viewed on the owner's own data) were kept. T9b (match the label text colour) was added by the owner and then dropped: both tokens already resolve to the same colour.
main(PR #282) was merged into the branch in its own commit; only PLAYBOOK and the log archive conflicted, both sides kept, review approved.State
normaldesktopmedia query inindex.jsmainafter #282Validation at this head
Head
9189933d, final verification (every gate,when:ignored):suite-docsync702,suite-subdirs1511,suite-core905 passed (3118),pre-commitanddocsync-checkpass, frontend gate 58 checks in 89 runs across Chromium and Firefox,results_behavior_tests.pyOK. Intermittent failures seen on the way and re-run green (recorded for the findings triage): frontend-gateERR_NO_BUFFER_SPACE/ navigation errors under load (F-B23-58), and onetest_importing_the_app_runs_no_shell_commandrun that saw aversubprocess. Codex review: waived by the owner (usage limit reached). CI for this head: run 41179303328 green (2958 + 156 tests, frontend gate 58 checks). Codacy 0 new issues; qlty no blocking issues; no open review threads.Checklist
pytest -qpasses (update SESSION_CONTEXT Section 1 if test count changed)pre-commit run --all-filespasses (all hooks)python scripts/doc_state_sync.py --checkexits 0- Batch WP: inside
DOCSYNC:CURRENT-BATCH-START/ENDmarkers- Side task: after
DOCSYNC:CURRENT-BATCH-ENDmarker(or deviation is logged in the Section 4 entry)