Skip to content

refactor(ui): project the plugin page owner - #174125

Merged
steipete merged 1 commit into
mainfrom
solid2/w-idiom-plugin-page-owner
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-idiom-plugin-page-owner

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The plugin page kept a manual revision signal beside two reactive source adapters. Replace that invalidation plumbing with the standard owner projection and subscribe directly to ordered Gateway/plugin notifications. Authentication grants, cancellation, and frame retirement remain synchronous in the plain TypeScript PluginPageOwner.

User Impact

No user-visible behavior changes. The lazy route and bundled-view imports, host tags, selectors, rendering, and external-frame security checks are unchanged. The remaining effect tracks route identity; the untracked callback deliberately samples route props during owner notifications. Native document/window listeners retain their paired disposal.

Evidence

Proof Result
UI typecheck pnpm tsgo:ui passed
Focused tests 22 passed: 15 PluginPage unit cases and 7 Chromium frame-navigation cases
Focused lint/format Passed
Production Knip Passed
Independent review No actionable P0–P2 findings
Visual/startup scope No visual or boot-path change; no local build/E2E battery under the campaign compute policy

The bundled Logbook reconnect test emits six strict-untracked-read warnings from its unchanged effect; all assertions pass. That effect reads model.state in its apply callback and is a separate cleanup candidate.

Touched production files: 778 → 771 LOC (−7). Controller-pattern refs 0 → 0; effects 1 → 1; untrack 1 → 1; addEventListener 4 → 4; self-DOM queries 0 → 0. One standard projection replaces three local invalidation paths. Full cross-page proof is requested with ci:full.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 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 16, 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-16T10:47:55.715967Z 00976b8 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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces plugin-page revision plumbing with one owner projection and direct Gateway and plugin subscriptions.

Example: The Logbook tab remains open while the Gateway disconnects and reconnects.

  • Before: Separate Gateway and page-revision adapters propagate lifecycle updates.
  • After: One page-owner projection propagates updates while preserving bundled-view retirement and reload behavior.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-consistent, with useful existing lifecycle coverage; runtime evidence is limited to reported harness runs.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored internal refactor is outside the ordinary contributor proof gate; supplied evidence reports focused unit and Chromium harness coverage, with no shipped-entry-point recording.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
Reason: The maintainer-authored direction follows the repository's established owner/projection architecture and removes local invalidation machinery while preserving behavior.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored refactor follows the existing projection contract, preserves synchronous lifecycle decisions, and has no actionable correctness findings; the failed PR-context check needs separate adjudication.

Priority: P3
Reviewed head: 00976b845f912b5c3cdf9590913934375dd99a5b

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI plugin page consumes route identity, Gateway snapshots, and plugin registrations, then renders native contributions, bundled views, or authenticated sandboxed frames.

flowchart TD
  A[Route props] --> C[Plugin page owner]
  B[Gateway and plugin notifications] --> C
  C --> D[Owner projection]
  D --> E[Solid plugin page]
  C --> F[Frame grants and retirement]
  E --> G[Bundled views and plugin frames]
Loading

Technical review

Best possible solution:

Keep the standard owner projection while preserving synchronous authentication, cancellation, and retirement decisions in the existing owner.

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

This PR addresses internal invalidation complexity rather than a reported product failure; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

The change uses the existing revision-based projection contract and removes redundant adapters without creating another authority or changing lazy rendering boundaries.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Paul Pitchford: Raw commit efa8075 adds ui/src/pages/plugin/plugin-page.ts:268 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: efa8075c6831; files: ui/src/pages/plugin/plugin-page.ts)

PR surface

Source -7. Total -7 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 25 32 -7
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 2 25 32 -7

Labels

Label changes:

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

Label justifications:

  • P3: This is a focused internal simplification with no intended user-visible behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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 16, 2026, 7:06 AM ET / 11:06 UTC.

@steipete
steipete merged commit 83567fb into main Oct 16, 2026
106 of 107 checks passed
@steipete
steipete deleted the solid2/w-idiom-plugin-page-owner branch October 16, 2026 11:10
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S 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