style(uprootnutrition): elm review baseline #115

Merged
nick merged 3 commits from nick/dotfiles:elm-review-baseline into main 2026-11-10 10:51:36 -05:00
Owner
No description provided.
Every NoUnused and Docs.ReviewAtDocs finding uproot-review reported
across web, Enaychi and Android. Each export was taken from the merged
report, which keeps a finding on a shared file only when every tree
containing it agrees, so nothing an Android or Enaychi override, or a
page a target removes, still uses was touched. The plain run's three
override-only modules (AppChrome, SiteFooter, Showcase.Enaychi) stay.

- Unused imports and let bindings, and two private values, removed.
- Exports no other module uses un-exposed; what that left unused in its
  own module removed, in rounds until the merged report settled:
  SubscriptionPlans' demo and section, Headers.headerMaker and its
  type, Text's list helpers, the chart date picker's inline popover,
  Carousel's slideshow view, HealthDiary's time-input ids and the rest.
- Components.StrengthBar, used nowhere, deleted with its inventory row.
- The scrollIntoViewNearest port, which nothing sends, removed with its
  interop.ts handler; no compiled app contained the port.
- @docs lines no longer name types their module doesn't expose.

Kept as deliberate, with their reasons in ReviewConfig: Overlay.elm's
exports are the modal layer's API (NoRawOverlays points at `shell`),
and each tracker's Assets/ icon set is a catalog, as Style/Assets/ is.

The dev builds of all three apps differ from before only by the
removed unused `scheme` bindings (getScheme is pure). elm-test passes,
nix build .#uproot-frontend .#uproot-enaychi passes, and uproot-review
is down from 150 findings to the one raw Http.request in Auth.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`Auth.verifySession` was the last hand-rolled `Http.request`, because it
needs a timeout (startup fails closed after 10 s) and Backend.Api.Request
had no way to set one. `getCmdWithin` is `getCmd` with a timeout, on the
same `requestWithin` every helper now shares. The request it sends is
field for field the one it replaces, in all three compiled apps.

That leaves uproot-review at zero findings across web, Enaychi and
Android, so the review baseline is gone: AGENTS.md's check is "no
findings", the Frontend pass no longer lists it, and the snapshot in
CHECK_SUITE_ISSUES.md goes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(uprootnutrition): uproot-review as the pre-commit gate, with kept exports
Some checks failed
CI / build (ceres) (pull_request) Has been cancelled
CI / build (deimos) (pull_request) Has been cancelled
CI / build (eris) (pull_request) Has been cancelled
CI / build (lamdagibson) (pull_request) Has been cancelled
CI / build (mars) (pull_request) Has been cancelled
CI / build (phobos) (pull_request) Has been cancelled
CI / check (pull_request) Has been cancelled
e00b0a7af2
The old hook, commented out, ran a plain elm-review, which can't see the
Android and Enaychi overrides and so calls exports only they use dead,
and had no way to keep a single export: it was a gate that had to be
argued with. The hook now runs uproot-review whenever staged Elm, the
review project or elm.json changes.

- review/kept-exports.json lists exports kept with no caller on purpose,
  each with its reason. The merge drops their NoUnused.Exports findings
  and reports an entry that no longer matches one (the export has a
  caller now, or is gone), so the list can't rot. It is read from the
  checkout, so an entry needs no rebuild.
- Overlay.shell moves there from a whole-file ignore in ReviewConfig,
  so Overlay's other exports are checked again. The icon catalogs stay
  directory ignores.
- uproot-review exits non-zero on any finding.
- The hook skips itself inside a Nix build: the pre-commit flake check's
  sandbox has no checkout, cache or network, and deploy runs that check.

Tried: an empty keep list reports Overlay.shell and exits 1; a stale
and a missing entry each report and exit 1; the real tree is at zero;
.#checks.x86_64-linux.pre-commit builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nick merged commit 5a8812a3ca into main 2026-11-10 10:51:36 -05:00
nick deleted branch elm-review-baseline 2026-11-10 10:51:37 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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
upRootNutrition/dotfiles!115
No description provided.