Skip to content

fix(ui): keep approval presentation helpers private - #180693

Closed
steipete wants to merge 1 commit into
mainfrom
fix/ui-approval-private-helpers-397881
Closed

steipete wants to merge 1 commit into
mainfrom
fix/ui-approval-private-helpers-397881

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Scheduled CI reports four unused exports in the standalone approval presentation module.

User Impact

No user-visible change. Approval rendering, decisions, and lifecycle remain unchanged.

Why This Change Was Made

Keep decisionLabel, terminalTitle, terminalDescription, and renderApprovalPresentation private to their only consumer module. Their implementations and local calls remain intact. No external caller uses these exports.

Evidence

  • Scheduled run 39788114249, job 119857226208, reports the four exports.
  • The scoped UI Knip scan no longer reports these helpers. Its only remaining finding is the independent emptyCronList fixture helper in ui/src/e2e/session-dashboard.test-support.ts, being repaired separately.
  • Fresh pnpm install --frozen-lockfile, pnpm tsgo:ui using default tsrs, scoped oxlint, oxfmt, and git diff --check: passed.
  • Independent P0–P2 review: scoped-clean.
  • No runtime test added or replayed: this changes only export visibility, with unchanged function bodies and Solid lifecycle/handler counts.

@clawsweeper

clawsweeper Bot commented Oct 22, 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 22, 2026 14:28
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 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-22T14:30:44.367305Z 238dd56 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 enabled auto-merge (squash) October 22, 2026 14:33
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR makes four approval presentation helpers private to their module.

Example: A user approves the Build monitor watcher.

  • Before: The approval page renders its existing labels using exported helpers.
  • After: The same labels render using private helpers.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-verified cleanup with appropriate reported static validation and no findings; required CI is still pending.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored PR changes only internal export visibility; source inspection confirms unchanged rendering, decision handlers, and lifecycle, so no runtime demonstration is required.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-authored change removes unused internal exports without weakening checks or altering approval behavior.

Merge readiness

✅ Ready for maintainer review

This PR is a useful, minimal cleanup with no actionable findings: the four helpers have only local consumers, and their implementations remain unchanged.

Priority: P3
Reviewed head: 238dd56f72ce9902973e29f27420dc91fc01330a

Before merge

None.

Findings

None.

Agent review details

How this fits together

The standalone approval page passes Gateway approval snapshots into presentation helpers, which produce labels and markup while the page owner handles decisions and lifecycle.

flowchart LR
  A[Gateway approval snapshot] --> B[Approval page owner]
  B --> C[ApprovalContent]
  C --> D[Private presentation helpers]
  D --> E[Approval labels and markup]
Loading

Technical review

Best possible solution:

Keep the locally used helpers private while preserving the existing exported page interface.

Do we have a high-confidence way to reproduce the issue?

This is a static export cleanup; source inspection confirms the declarations are locally used and have no external consumers, without running target code.

Is this the best way to solve the issue?

Removing only the unnecessary exports is the smallest complete fix and preserves the existing module owner and all runtime behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against fd3b7a824a6c.

Provenance checked

  • Watcher decision and terminal wording keeps the original intent (8e4c7a0: Provide informed watcher consent and distinguish approval from successful saving or startup.)
  • Solid approval presentation renderer keeps the original intent (6fcd048: Port the approval page to Solid while preserving presentation and synchronous domain ownership.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit eee5efe adds ui/src/pages/approval/approval-presentation.tsx:25 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: eee5efec4249; files: ui/src/pages/approval/approval-presentation.tsx)

PR surface

Source -3. Total -3 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 4 7 -3
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 4 7 -3

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is internal export cleanup with no user-visible behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 22, 2026, 10:44 AM ET / 14:44 UTC.

auto-merge was automatically disabled November 4, 2026 23:11

Pull request was closed

@vyctorbrzezowski

Copy link
Copy Markdown
Member

Thanks @steipete for tightening the approval module's public surface. All four targeted helpers are already private on main, so this cleanup is already covered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants