Skip to content

fix: close the review followups from PR #166 - #185

Closed
diegokingston wants to merge 1 commit into
mainfrom
fix/pr166-mobile-followups
Closed

fix: close the review followups from PR #166#185
diegokingston wants to merge 1 commit into
mainfrom
fix/pr166-mobile-followups

Conversation

@diegokingston

Copy link
Copy Markdown
Collaborator

Fixes for the review findings posted in #166 (comment). Base is basic/mobile-ui (the #166 head), not main.

What changed

Should-fix

  1. MobileResultsPanel removed entirely. After its opener button was deleted, the panel could only auto-appear on top of the results sheet after a solve and never be reopened. The sheet is the results surface now, so the panel goes: component, mount, store field (mobileResultsPanelOpen), the auto-open writes in solve.ts/live-calc.ts, its locale keys in all 12 locales, and the zup-field-names assertion that read the component file.
  2. Dead store writes: leftDrawerOpen writes removed from solve.ts (and the mode-switch handler in App.svelte); tour-steps.ts deleted — it had no importers left.
  3. Stale comments in App.svelte rewritten to describe what the markup actually does now (.pmt-wrap, .pmt-btn).

Nits

  • SheetGrab: onDestroy teardown for the window-level drag listeners, a one-drag-at-a-time guard (multitouch), and the callerless onResizeEnd prop removed.
  • The canvas re-frame on sheet open/close now covers PRO too (the same sheetWasOpen watcher, keyed on rightDrawerOpen for PRO), not just Basic.
  • Educación's .drawer-right uses var(--st-sheet-h) instead of hardcoded 58vh.
  • Dead CSS removed: .pmt-btn.active, .rb-cmd.prominent; unused ribbon.groupData locale key dropped.
  • Tour: the sections/materials steps open the data sheet in their own onEnter rather than relying on an earlier step leaving it open.

Not addressed: audit-demos.mjs still audits walkthroughs only at 1500×950 (dev script, not CI) — happy to add the viewport argument here if wanted.

Verification

  • npm run typecheck: 479 = baseline, no new errors.
  • npm run test: unit + build passes green (includes the updated zup-field-names).
  • npx playwright test: not run locally; CI e2e covers it.

- Remove MobileResultsPanel entirely: after its opener button was
  removed, the panel could only appear on top of the results sheet after
  a solve and never be reopened. The sheet is the results surface now.
  Drops the component, its store field, the auto-open writes in
  solve.ts/live-calc.ts, its locale keys in all 12 locales, and the
  zup-field-names assertion that read the file.
- Remove dead leftDrawerOpen writes (the left drawer renders nowhere)
  and tour-steps.ts, which had no importers left.
- SheetGrab: tear down the window-level drag listeners on destroy, guard
  against a second pointer mid-drag, drop the callerless onResizeEnd.
- Re-frame the canvas when the PRO sheet opens/closes too, not just
  Basic's — the same watcher covers both.
- Educacion's right drawer takes --st-sheet-h instead of hardcoded 58vh.
- Tour: the sections/materials steps open the data sheet in their own
  onEnter instead of relying on earlier steps leaving it open.
- Rewrite stale App.svelte comments describing removed controls; drop
  dead .pmt-btn.active / .rb-cmd.prominent CSS and the unused
  ribbon.groupData locale key.
@diegokingston
diegokingston changed the base branch from basic/mobile-ui to main September 10, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant