Skip to content

refactor: fold private usage rendering helpers into their owners - #177401

Merged
steipete merged 1 commit into
mainfrom
deslop/z25-40-ui-owner-area-20261015
Oct 19, 2026
Merged

steipete merged 1 commit into
mainfrom
deslop/z25-40-ui-owner-area-20261015

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Usage rendering exposes internal helper modules for one production consumer.

User Impact

No user-visible change, migration, or required action is intended. Existing markup, text, selection, query callbacks, and clipboard behavior remain.

Why This Change Was Made

Fold query markup into its page, session-row markup into the keyed sessions-card owner, and heatmap preparation into its renderer. Retain genuine private helpers and test behavior through the existing renderers rather than test-only production exports.

This is the UI area slice of an original 89-path family, split under campaign rule 11's area floor waiver: 69 net production lines removed (+289/-358), six production paths / nine total paths. Tests/support/generated files are excluded. The separate Gateway-client boot-path candidate is not part of this PR; it remains parked pending canonical generation/build proof. No generated manifest changes here.

Best-effort tradeoffs accepted

  • No guard or supported failure path is removed.
  • Query callbacks, DOM/classes/text, keyed row identity and clipboard payload-retirement lifetime remain. Heatmap UTC day arithmetic, 364-day cap, Sunday padding, quartile buckets, host locale and interrupted-response lower bounds remain.
  • The old heatmap helper's optional locale parameter had no production caller supplying it. Its private replacement uses the same host locale the public renderer always used. Direct helper tests now exercise the existing renderers; no test-only production seam is retained.
  • Public SDK/package/protocol/config/data surfaces, lazy boundaries, security and realistic concurrency remain. Phase E is untouched.

Evidence

Frozen/prefer-offline setup, canonical formatting, six-root source-backed native types, typed UI lint, keyless i18n verification, staged line-cap ratchet (five changed source files), mock-export ratchet (8,283 factories), whitespace, runtime cycles (zero), and Madge cycles (zero) pass.

Initial focused proof: 45 passing / one failing unique case across the five UI owner/sibling files and mandatory suppression audit (39.51s wrapper; UI group 18.59s). The new heatmap lower-bound test selected a legend swatch sharing the intensity class rather than the SVG cell. Scoping its selector to the SVG preserves the exact tooltip and accessibility assertions; the six-case heatmap replay passes (5.19s file / 10.59s wrapper). Reusing the unchanged other-file results gives 46 unique selected passing cases, not a claimed all-green rerun. Focused lint and format of the repaired test also pass.

Fresh independent P0-P2 review of this final UI-only candidate and selector repair is scoped-clean (0.98), including final source-integrity verification; status and report inspected. No local build, E2E, broad suite, whole-graph typecheck, live claim, or operator-state access is claimed. Exact-head hosted CI is the broad gate.

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 19, 2026 14:40
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T14:43:32.699788Z 9b730dd Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete merged commit b9340af into main Oct 19, 2026
136 of 137 checks passed
@steipete
steipete deleted the deslop/z25-40-ui-owner-area-20261015 branch October 19, 2026 14:54
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Oct 19, 2026
Use the canonical SessionsUsageOverview filterOptions type directly in query suggestions and their fixture after #177401 removed the alias production consumer. Filter generation, page controls, APIs, and assertions remain unchanged.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
Use the canonical SessionsUsageOverview filterOptions type directly in query suggestions and their fixture after openclaw#177401 removed the alias production consumer. Filter generation, page controls, APIs, and assertions remain unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant