Skip to content

refactor(ui): move page work to owned publications - #176484

Merged
steipete merged 2 commits into
mainfrom
solid2/w-zero-pages-followup
Oct 18, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/w-zero-pages-followup

Conversation

@steipete

@steipete steipete commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The remaining page lifecycle cleanup moves Cron's post-publication DOM work and Meetings' summary-generation/focus work to the actions that request them. Cloud inventory refreshes subscribe to their existing config and Gateway owners and use the shared timeout helper. Approval and Question callbacks read the bridge's live synchronous ID while their tracked effects still own request admission; the redundant Approval connection-time DOM query is removed.

Meetings passes its prepared route into request admission instead of rereading reactive props inside effect apply. Current-route, connection, and authorization checks still reject stale asynchronous results. Tags, classes, routes, and lazy boundaries stay unchanged; no visual design change is intended.

Evidence

Check Result
UI typecheck Passed on original 3ef5580; replacement 12051cb typecheck passed
Focused behavior tests Initial candidate: Approval page, Question page, and Meetings summaries passed 29 tests across three files. After the prepared-route correction, all 7 Meetings summary tests passed again with no Solid diagnostics.
Targeted lint/format Format, whitespace, and line-cap check passed. Local lint setup timed out generating plugin-SDK declarations; PR CI supplies lint proof.
Production Knip Original committed 3ef5580 reports the same two unused core files recorded on the preceding base: reply-admission-ticket.ts and reply-turn-admission-owner.ts. No unused UI files. Refreshed 12051cb Knip reports those same two core files.
Independent review P0–P2 scoped-clean on final complete candidate, including coherent line-cap cleanup and complete owner context
Startup Only lazy page modules changed; no new startup imports. Local build omitted under the campaign's focused-proof budget. Initial CI measured startup at 336,621 B gzip / one CSS request; chat boot decreased by 27 B, but its 1,494,437 B total exceeds the pre-existing absolute chat budget.
Broad proof Completed current-head ci:full run 39168148538 passes all UI/browser/lint/type/security jobs. Three Gateway cases and the existing absolute chat-size limit remain.

Refactor checklist

Nine touched production files against refreshed merge base d851443:

Metric Before After
Production LOC 4,282 4,319
createEffect 10 6
createRenderEffect 0 0
untrack 5 0
Raw listeners 0 0
DOM queries 3 0
Controller patterns / manual class composition / flush / owner escapes 0 0

The 37-line growth makes owned focus targets and cleanup explicit. Remaining effects integrate live route/connection state with request admission: Approval and Question each have two, Meetings has one, Secrets has one. They preserve immediate authority and cancellation; this checkpoint does not claim the lane-wide 70% target.

No remote leases were created. External proof checkouts remain for coordinator cleanup under the campaign's metadata-I/O rule.

The initial CI run selected only two browser shards despite the later full-coverage label. Replacement head 12051cb61541 merges main conflict-free with the label already attached, so exact-head review and the required nine browser shards are refreshed. Prior-head test/review proof is retained as historical evidence, not a completed verdict for this head.

Current full CI measures chat boot at 1,494,544 → 1,494,583 B (+39 B), both over the 1,490,000 B absolute limit. Native evidence binds this current-base failure and the three exact-name Gateway failures to the tested merge/tree; no failed job is claimed green.

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

clawsweeper Bot commented Oct 18, 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 18, 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-18T21:33:53.371209Z 12051cb New commits
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3ef55808c2

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

);
let exportAbort: AbortController | null = null;
let focusSelection = false;
const focusTargets: Partial<Record<"search" | "reader-title" | "reader-error", HTMLElement>> = {};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Shrink this Solid refactor to a net LOC reduction

This refactor increases the touched production code from 4,282 to 4,319 lines according to the commit's own checklist, largely through the new focus-target registry and callback plumbing introduced here. The required Solid refactor checklist says net production LOC must decrease and treats an increase as an incomplete conversion, so consolidate this focus ownership path or separate the additional behavior until the refactor is net-negative.

AGENTS.md reference: ui/AGENTS.md:L3-L5

Useful? React with 👍 / 👎.

@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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 18, 2026
@clawsweeper

clawsweeper Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR moves page lifecycle work to existing publication owners, replaces Meetings DOM queries with owned refs, and reads live Approval and Question IDs from their bridge hosts.

Example: Open Meetings with ?selector=meeting and no saved summary.

  • Before: A summary-watching effect requests generation, and a separate effect queries the rendered focus target.
  • After: The accepted summary read schedules generation after settlement, while registered refs supply the focus target.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is coherent and has no definite introduced defect; supplied behavioral evidence is harness-based.
Proof confidence 🦐 gold shrimp (3/6) The ordinary contributor proof gate is exempt for this maintainer-authored refactor; supplied evidence consists of focused behavior tests and CI, without a new live demonstration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: No intended user-visible behavior change; the maintenance goal is to make page work follow the owners that request and publish it.
Reason: The supplied maintainer-author status settles direction, and the diff consolidates lifecycle work while preserving routes, rendered structure, and request authority.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: the maintainer-directed refactor is coherent, and no definite introduced bug was found; the remaining performance-check failure needs attribution before landing.

Priority: P3
Reviewed head: 12051cb615411bac0e620af45e9ea78e6df9a68a

Before merge

  • Complete next step - Inspect the head and base performance comparison outputs and establish whether the failing assertion is inherited or caused by this PR.

Findings

None.

Agent review details

How this fits together

Control UI pages consume route, config, and Gateway publications, admit requests through synchronous owners, and publish results into Solid-rendered views.

flowchart TD
  A[Route and bridge inputs] --> C[Page request owners]
  B[Config and Gateway publications] --> C
  C --> D[Gateway RPC client]
  D --> E[Current result publication]
  E --> F[Solid views and owned refs]
Loading

Technical review

Best possible solution:

Retain the existing synchronous request owners and land this focused lifecycle cleanup once the remaining CI attribution is settled.

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

This is a behavior-preserving refactor; source inspection and the reported focused tests support its intent, and no target code was executed during this read-only review.

Is this the best way to solve the issue?

The change uses existing publication, request, bridge, projection, and timer owners and removes the replaced lifecycle paths without introducing a competing domain owner.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +37. Total +37 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 9 318 281 +37
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 9 318 281 +37

Review metrics

Metric Value Why it matters
Production versus test growth Production net +37 LOC; tests +0 LOC Growth supplies explicit focus refs and cleanup while removing effects and DOM queries; no unnecessary parallel owner was identified.

Labels

Label changes:

  • add P3: Behavior-preserving UI lifecycle cleanup with no established urgent user-facing defect.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: Behavior-preserving UI lifecycle cleanup with no established urgent user-facing defect.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 18, 2026, 5:48 PM ET / 21:48 UTC.

@steipete
steipete merged commit 1cc1efe into main Oct 18, 2026
105 of 110 checks passed
@steipete
steipete deleted the solid2/w-zero-pages-followup branch October 18, 2026 22:28
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

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: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant