Skip to content

refactor(ui): present shared approval decisions with Solid actions - #180545

Merged
steipete merged 2 commits into
mainfrom
solid2/pages-c-shared-approval-action
Oct 22, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/pages-c-shared-approval-action

Conversation

@steipete

@steipete steipete commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Modal, inline, and Inbox approval decisions still present pending writes solely through the shared owner's busy field. Keyboard and button paths do not share a Solid action presentation.

User Impact

The existing approval owner continues to admit requests, enforce grants and connection identity, and record outcomes. A shared Solid action now presents the admitted completion with an optimistic busy flag. Modal keyboard shortcuts use the same card action as buttons, and Inbox decisions keep their existing focus restoration.

The presentation retires when the card's approval or access changes, its host disconnects, or the Inbox closes or changes routes. Retirement releases pending UI work without cancelling the authorized decision. Countdown rendering moved unchanged into its own component to keep the card below the file-size limit.

Evidence

Check Result
UI typecheck Passed
Focused tests 59 passed across approval card, modal, and sidebar files; 12 browser layout cases pass after completing their fixture
Scoped lint/format and controller guard Passed
Independent review Passed with no actionable P0–P2 findings
Paired build and strict performance Passed: startup 316,962 → 316,948 B gzip; identical 953,228 raw bytes; 7 JS requests and 1 CSS request
Production Knip Base/head both report only unused heartbeat-active-hours.ts and heartbeat-wake-policy.ts; no new finding
Visual proof Six inspected synthetic before/after pairs; every pair byte-identical
Production LOC 2,201 → 2,305 (+104)
Test LOC 2,263 → 2,324 (+61), including the repaired browser fixture

The additional code owns presentation retirement at existing native host/panel lifetimes. There is no new domain state, authorization path, dependency, or eager page import. Broad UI and real-Gateway proof runs with ci:full.

Solid 2 checklist in touched production files
Item Before → after
Conditional intrinsic handlers 0 → 0
Component-level onCleanup 1 → 0
Manual async read presentation 0 → 0
Manual approval mutation presentation 3 surfaces → 0; 2 call sites use one shared action/optimistic implementation
Manual component loaders 0 → 0
Copied collection state 0 → 0
Handwritten createComponent 0 → 0
Throw-only context wrappers 0 → 0
Eligible sibling Loading groups 0 → 0
Explicit owner APIs 0 → 0

Visual proof

Synthetic Gateway data at 1366 × 900 covers modal, inline chat, and Inbox decisions in pending and rejected states. All twelve full captures were inspected. Version, commit, timestamp, and native plugin inputs match across builds. CSS remains 40,894 B gzip with one request.

Before: modal pending approval

Before: modal rejected approval

Before: inline pending approval

Before: inline rejected approval

Before: sidebar pending approval

Before: sidebar rejected approval

After: modal pending approval

After: modal rejected approval

After: inline pending approval

After: inline rejected approval

After: sidebar pending approval

After: sidebar rejected approval

CI fixture correction

CI 39768555004 passed all 7,688 test assertions but reported four unhandled errors in the two collapsed-sidebar layout cases. Their partial application fixture omitted the overlays owner now subscribed to by the sidebar. The fixture now creates the existing owner and disposes it per test; assertions and production behavior are unchanged. On the prior head, the exact file reproduces 12 passing assertions plus four errors; with this correction, all 12 cases pass without errors. Targeted types, lint/format, and independent review pass. Existing paired builds, production Knip comparison, and all twelve screenshots remain unchanged.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 22, 2026
@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.

@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-22T11:14:04.876348Z baed39f PR opened
ℹ️ 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.

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label 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 shares Solid action presentation across approval buttons, modal shortcuts, and Inbox decisions.

Example: An operator presses Ctrl+Enter to approve printf 'Synthetic modal approval proof'.

  • Before: The shortcut called the decision owner directly, with pending presentation supplied by its busy field.
  • After: The shortcut and buttons share the card action while the existing owner admits and settles the decision.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, scoped refactor with inspected production-UI evidence, passing focused CI, and the prior finding resolved; broader CI is still running.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected all six before/after screenshot pairs from the built Control UI with synthetic Gateway data at 1366 × 900: modal, inline, and Inbox pending controls and rejected-result recovery remain consistent; supplied lifecycle tests cover replacement and reopened-panel focus.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Approval surfaces need consistent pending presentation without allowing UI lifetimes to take ownership of authorized decisions.
Reason: The maintainer-authored direction consolidates presentation across existing surfaces without introducing configuration, policy, or another decision authority.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-directed refactor preserves approval ownership, fixes the previous fixture finding, and has no remaining actionable defect identified.

Priority: P3
Reviewed head: f5a5f88bc1af0c11e17c8af2095c1f817ce117aa

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control UI approval surfaces send operator decisions to the overlay owner, which checks access and connection identity, calls the Gateway, and publishes outcomes.

flowchart LR
  A[Buttons and modal shortcuts] --> B[Overlay decision owner]
  C[Inbox decisions] --> B
  B --> D[Gateway resolution]
  B --> E[Recorded outcome]
  B --> F[Solid action presentation]
  F --> G[Pending controls]
  E --> G
Loading

Technical review

Best possible solution:

Keep one decision authority and one shared presentation helper, with retirement tied to the existing host and panel lifetimes.

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

This is a behavior-preserving refactor; source and exact-head CI establish the previous fixture repair without executing target code locally.

Is this the best way to solve the issue?

The shared helper follows the existing Solid action recipe while leaving synchronous admission and write settlement with the established owner.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +104, Tests +61. Total +165 across 11 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 170 66 +104
Tests 4 64 3 +61
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 234 69 +165

Review metrics

Metric Value Why it matters
Production versus test growth Production +104 LOC; tests +61 LOC Growth supplies shared action presentation, synchronous retirement hooks, and distinct keyboard, replacement, and fixture coverage.

Labels

Label changes:

  • add P3: This is an internal presentation refactor with no established production outage or changed approval policy.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is an internal presentation refactor with no established production outage or changed approval policy.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-22T11:25:20.669Z sha baed39f :: needs changes before merge. :: [P2] Supply overlays in the Inbox browser layout fixture

Reviewed October 22, 2026, 7:59 AM ET / 11:59 UTC (Revision 2).

@steipete
steipete enabled auto-merge (squash) October 22, 2026 11:48
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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:feature Preliminary submission classification; full source review pending. labels Oct 22, 2026
@steipete
steipete merged commit e10d507 into main Oct 22, 2026
106 of 108 checks passed
@steipete
steipete deleted the solid2/pages-c-shared-approval-action branch October 22, 2026 12:04
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
…penclaw#180545)

* refactor(ui): present shared approval decisions with Solid actions

* test(ui): provide overlay owner in sidebar layout fixture
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 ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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.

1 participant