Skip to content

refactor(ui): own dashboard sources and plugin focus targets - #176547

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

steipete merged 2 commits into
mainfrom
solid2/w-zero-page-targets

Conversation

@steipete

@steipete steipete commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Dashboard rebuilt its session-list projection for each agent scope, and plugin pages rediscovered their own progress controls and focus headings through DOM queries. Keep one Dashboard projection and replace its source from the existing selection owner. Register plugin progress handles and heading refs with their mounted lifetime instead of searching the page.

The list owner still decides pagination and request admission. Plugin Escape ordering, removal focus, tags, classes, routes, and lazy imports remain unchanged. This is a lifecycle refactor with no intended visual design change.

Evidence

Check Result
Focused tests Dashboard: 4 passed; plugin routing: 12 passed. Untouched base and candidate both emit the same 47 Dashboard tracking warnings; no suppression was added.
UI typecheck Passed again after the final extraction
Independent review P0–P2 scoped-clean on the final complete candidate and owner context; captured source verified
Production Knip Final exact repaired head reports only the two existing unused core files; no unused UI files.
Lint / line cap Normal commit hook passed. Targeted lint timed out during the plugin-SDK declaration prerequisite; CI found one import-order error. The type import was moved to the top and independently reviewed; replacement CI owns the final lint verdict.
Build and strict startup comparison Both builds completed on the same host/toolchain: 336,638 → 336,650 B gzip (+12 B), one CSS request on both. Strict comparison fails only the pre-existing absolute chat limit: 1,494,558 → 1,494,624 B (+66 B), both over 1,490,000 B. Startup stays below its budget.
Broad CI Full run 39172597620: all UI units, Control UI E2E, real Gateway, lint/type and security passed. Only the absolute chat-size check failed; native inherited-failure admission records the exception.

Refactor checklist

Eleven production files against aa384cc:

Metric Before After
Production LOC 3,685 3,762
createEffect 3 2
createRenderEffect 0 0
untrack 1 1
Raw listeners 0 0
DOM queries 6 1

The added 77 lines provide typed registration and teardown across the three plugin presentations; they do not copy component state. The existing plain state initializer now lives in the page model, keeping the behavior owner under its enforced line cap; registration methods declare their unbound-call contract. The remaining untrack is Dashboard's named initial loader-data seed. The remaining query guards the shell-owned mobile drawer and needs the shell's read-only owner boundary; the two plugin effects retain live request/route synchronization. This checkpoint does not claim the lane-wide effect target is complete.

The completed CI performance job measured its exact base at 1,490,230 B and tested merge at 1,490,231 B (+1 B), both above the unchanged 1,490,000 B chat limit. Startup measured 337,234 B with one CSS request. Tested merge 0144ca22d2ccba7801112f9ed7e3ab4595d25678 has ordered parents 4393498591bbd3bbff3371e2821ae2305c0f19ea and 51ff2d496c6ec498d07c1bf7fd53fdd5c54e747f; its tree matches the reconstructed merge. The failed check remains failed; every other full CI job passed.

@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.

@steipete
steipete marked this pull request as ready for review October 18, 2026 22:07
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Oct 18, 2026
@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-18T22:11:20.996268Z f3b4e1a 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.

@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: f3b4e1a900

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

}
import type { PluginInstallActionHandle } from "./install-action.tsx";

export function createPluginPageTargets() {

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 Reduce this refactor instead of expanding it

This target-registration abstraction and its cross-component prop plumbing turn an existing-code refactor into a net production increase of 77 lines (157 additions versus 80 deletions). The scoped UI guide makes the Solid refactor checklist mandatory, and that checklist requires production LOC to decrease; consolidate the ownership/ref wiring or narrow the change until the refactor is net-negative rather than adding a larger maintenance surface.

AGENTS.md reference: ui/AGENTS.md:L5-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: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 18, 2026
@clawsweeper

clawsweeper Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR retains one Dashboard session projection and registers plugin progress controls and removal-focus headings with their mounted lifetimes.

Example: Switch the Dashboard agent scope from all agents to writer.

  • Before: The page creates a replacement session-list projection.
  • After: The existing projection replaces its source with the writer query while retaining loading and pagination behavior.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation is coherent and no actionable defect was found; supplied behavior evidence is harness-based rather than a demonstrated shipped UI flow.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored lifecycle refactor is outside the ordinary contributor proof gate; supplied validation reports exercise Dashboard and plugin routing harnesses, with no changed authority or persisted-data contract.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Dashboard and plugin interactions must retain their existing loading, pagination, keyboard dismissal, and removal-focus behavior as UI lifecycle ownership is simplified.
Reason: The maintainer-authored direction replaces owned-DOM discovery and projection reconstruction with explicit lifetimes while preserving existing behavior contracts.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored PR open: the ownership refactor is coherent, no concrete introduced defect was found, and the required CI gate remains unresolved.

Priority: P3
Reviewed head: f3b4e1a90092675c26b06ca76bcc1397ae9268d8

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied body and discussion contain no shipped-entry-point trace of Dashboard scope replacement, install-progress Escape, or removal-focus behavior on this head.
Agent review details

How this fits together

Control UI pages consume synchronous session and plugin owners, derive displayed data, and coordinate keyboard dismissal and focus through mounted components.

flowchart TD
  A[Agent selection] --> B[Dashboard projection]
  C[Session list owner] --> B
  B --> D[Dashboard gallery]
  E[Plugin presentations] --> F[Mounted target registry]
  F --> G[Escape and removal focus]
Loading

Technical review

Best possible solution:

Retain the existing session and plugin decision owners while completing this focused projection and mounted-target cutover.

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

This is a refactor rather than a reported product failure; source inspection confirms the replaced projection and DOM-discovery paths, and no target code was executed.

Is this the best way to solve the issue?

The change uses the existing source-replacement API and component cleanup contracts without adding a competing domain store; the necessary registration growth is explained.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit a2676de adds ui/src/pages/dashboards/dashboards-page.tsx:19 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a2676def7241; files: ui/src/pages/dashboards/dashboards-page.tsx)
  • ToToKr: Raw commit 6759726 adds ui/src/pages/plugins/plugin-removal-focus.ts:2 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 67597262027f; files: ui/src/pages/plugins/plugin-removal-focus.ts)

PR surface

Source +77. Total +77 across 11 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 11 157 80 +77
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 11 157 80 +77

Labels

Label changes:

  • add P3: This is an internal UI lifecycle refactor with no intended user-visible behavior change or demonstrated urgent regression.
  • 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 an internal UI lifecycle refactor with no intended user-visible behavior change or demonstrated urgent regression.
  • 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 18, 2026, 6:24 PM ET / 22:24 UTC.

@steipete
steipete merged commit 7a494ba into main Oct 18, 2026
101 of 104 checks passed
@steipete
steipete deleted the solid2/w-zero-page-targets branch October 18, 2026 23:30
@steipete

Copy link
Copy Markdown
Contributor Author

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

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 19, 2026
…w#176547)

* refactor(ui): own dashboard sources and plugin focus targets

* fix(ui): keep plugin target type imports first
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: 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