Skip to content

refactor(ui): consolidate static artwork registries - #177692

Merged
steipete merged 1 commit into
mainfrom
solid2/w-deslop-artwork-registry
Oct 19, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-deslop-artwork-registry

Conversation

@steipete

@steipete steipete commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The palette artwork repeats its membership in a separate freckle-suppression set and forwards named constants through registry entries. Theme critters also wrap static SVG in one-use renderers and a shared forwarding component.

User Impact

No user-visible change. The palette and theme artwork render with the same SVG geometry, attributes and freckle behavior.

Why This Change Was Made

Keep palette overlays and membership in the existing palette registry, with null entries for palettes rendered by geometry or CSS. Inline its one-use static declarations and reuse the existing staticSprite parser for the theme art. Delete the retired set, aliases, and PasserSprite wrapper. Tags, classes, SVG attributes, lazy boundaries and dependencies stay unchanged.

Evidence

Check Base Head
Production LOC, four files 752 629
Explicit memos / effects / render effects / untrack / listeners / queries / flush / owner escapes 0 0
Startup JS gzip 326,333 B 326,324 B (−9)
Startup JS requests 7 7
Startup CSS gzip / requests 38,500 B / 1 38,500 B / 1
Build and strict performance check Pass Pass
Typecheck, scoped lint/format, controller guard, i18n verification — Pass
Three focused component test files — 10 tests passed
Production Knip — Pass
Independent P0–P2 review — No actionable findings

Base: 16aee9219d04a2bad2e076a018e2c21f06f802e6. Net −123 production lines; no test changes. This removes duplicate registry data and forwarding code without a new utility or owner. No baseline or ignore is raised.

The visual capture mounts actual artwork renderers with synthetic data: 49 palettes, two critters and five hats; four unchanged brand icons supply context. All 60 cases have identical canonical SVG DOM and byte-identical before/after PNGs in both states, with zero browser errors. Every changed source file on this branch matches the corresponding captured before/after source snapshot byte for byte. The full images were inspected for private or incidental data.

The capture covers open/freckled and closed/unfreckled states at one light-theme viewport. It is a renderer gallery, not a full shell/lifecycle run. Focused component tests and ci:full supply broader integration proof; no local E2E battery or parity run.

State Before After
Open eyes, freckles on Open before Open after
Closed eyes, freckles off Closed before Closed after

CI exception: PR run 39316347586 fails only ui/src/e2e/quota-reset-status.real-gateway.e2e.test.ts > Running Gateway quota status: automatic-during-catalog > serves the same account and shows ready status after recovery without restarting (Checking models… instead of Ready). The exact same name and assertion fail in completed scheduled main run 39311481040. All other root jobs, including security-fast, pass or skip. The actual CI merge checkout, ordered parents, merge tree, and unchanged failure inputs are recorded in native inherited-failure evidence. CI remains failed; landing uses the documented inherited/admin route.

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

clawsweeper Bot commented Oct 19, 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 19, 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-19T20:09:33.442122Z 0e469fa 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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR consolidates palette patterns and freckle suppression into one registry and reuses the static SVG parser for theme artwork.

Example: Render the lumen palette with freckles enabled.

  • Before: The overlay registry draws photophores while a separate palette set suppresses freckles.
  • After: One palette registry draws the same photophores and suppresses freckles through its membership.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused refactor has no actionable correctness or security finding; visual evidence covers the renderer boundary, while shipped-entry-point coverage is not supplied and broad CI remains pending.
Proof confidence 🦐 gold shrimp (3/6) The maintainer-authored PR is outside the ordinary contributor proof gate; inspected browser screenshots exercise the actual palette and theme renderers with synthetic fixtures, showing matching before/after artwork in two states without establishing full-shell lifecycle coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes
Reason: The established feature owner has chosen this direction, and the patch reduces duplicate maintenance without adding capability, state, dependencies, or public contracts.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: the maintainer-directed cleanup removes duplicate artwork bookkeeping without an identified regression, and required CI is still pending.

Priority: P3
Reviewed head: 0e469fa0260b6f86aabca6a13a7997580ab8e68a

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied gallery does not exercise critter crossings or avatar changes through the shipped Control UI.
Agent review details

How this fits together

The Control UI artwork layer consumes lobster looks and theme identifiers and produces SVG nodes for pets, passing critters, and avatar hats.

flowchart TD
  A[Lobster look] --> B[Lobster SVG renderer]
  C[Palette pattern registry] --> B
  D[Static SVG parser] --> C
  D --> E[Theme artwork registries]
  B --> F[Pet scene]
  E --> F
  E --> G[Identity avatar]
Loading

Technical review

Best possible solution:

Keep palette membership in the existing registry and render static theme SVG through the existing parser while preserving all artwork output.

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

No bug reproduction is applicable; this PR proposes an internal refactor and supplies before/after renderer captures.

Is this the best way to solve the issue?

The change uses existing owners, removes the duplicate membership set and forwarding paths, and preserves the old registry mappings and SVG attributes.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit cd7834b adds ui/src/components/lobster-pet-sprite.tsx:7 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: cd7834ba3ff3; files: ui/src/components/lobster-pet-sprite.tsx)

PR surface

Source -123. Total -123 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 150 273 -123
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 4 150 273 -123

Labels

Label changes:

  • add P3: This is a behavior-preserving artwork cleanup with no reported user-facing failure.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • 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 behavior-preserving artwork cleanup with no reported user-facing failure.
  • 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.
  • 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.

Reviewed October 19, 2026, 4:19 PM ET / 20:19 UTC.

@steipete
steipete merged commit 42e05fb into main Oct 19, 2026
114 of 119 checks passed
@steipete
steipete deleted the solid2/w-deslop-artwork-registry branch October 19, 2026 21:01
@steipete

Copy link
Copy Markdown
Contributor Author

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

vincentkoc added a commit that referenced this pull request Oct 19, 2026
* commit '08e32fdb4df002c9d4eea158b855d6521dd1e916': (52 commits)
  test(gateway): restore local probe deferred import
  fix(agents): release prompt diagnostics for retired sessions (#177614)
  fix(release): tag restart plugin cohorts consistently (#177725)
  refactor(ui): inline single-caller detail requests (#177705)
  chore(i18n): refresh native locales (#177721)
  refactor(codex): drop unread private runtime reports (#177689)
  refactor(ui): consolidate static artwork registries (#177692)
  refactor(ui): derive settings schema analysis in the view (#177624)
  refactor(media): consolidate capability defaults and compression grids (#177665)
  refactor(auth): bind OAuth managers to native provider operations (#177676)
  refactor(ui): remove redundant component rendering layers (#177607)
  fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (#166082)
  fix(agents): report failed secret input prompt delivery (#177688)
  refactor(ui): share chat message render contracts (#177668)
  fix(ui): settle model status after overlapping publication (#177667)
  refactor(gateway): reuse native workspace and lifecycle facts (#177670)
  refactor(runtime): rely on canonical async lifecycle owners (#177635)
  refactor: fold private operation helpers into their callers (#177655)
  refactor(ui): remove unused chat leaf element adapters (#177582)
  perf(talk): use published authority for foreign voice writes (#177533)
  ...
vincentkoc added a commit that referenced this pull request Oct 19, 2026
#167350)

* fix(pr): retain the admitted workflow across maintainer commands

* fix: refresh the reviewed correction baseline

Baseline-Refresh: a89bd166b79d54b343b93ad374f8ebfa4f3d1163

* fix(pr): preserve cold workflow admission and repository identity

* chore(pr): integrate canonical main CI repair

* commit '08e32fdb4df002c9d4eea158b855d6521dd1e916': (52 commits)
  test(gateway): restore local probe deferred import
  fix(agents): release prompt diagnostics for retired sessions (#177614)
  fix(release): tag restart plugin cohorts consistently (#177725)
  refactor(ui): inline single-caller detail requests (#177705)
  chore(i18n): refresh native locales (#177721)
  refactor(codex): drop unread private runtime reports (#177689)
  refactor(ui): consolidate static artwork registries (#177692)
  refactor(ui): derive settings schema analysis in the view (#177624)
  refactor(media): consolidate capability defaults and compression grids (#177665)
  refactor(auth): bind OAuth managers to native provider operations (#177676)
  refactor(ui): remove redundant component rendering layers (#177607)
  fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (#166082)
  fix(agents): report failed secret input prompt delivery (#177688)
  refactor(ui): share chat message render contracts (#177668)
  fix(ui): settle model status after overlapping publication (#177667)
  refactor(gateway): reuse native workspace and lifecycle facts (#177670)
  refactor(runtime): rely on canonical async lifecycle owners (#177635)
  refactor: fold private operation helpers into their callers (#177655)
  refactor(ui): remove unused chat leaf element adapters (#177582)
  perf(talk): use published authority for foreign voice writes (#177533)
  ...

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
openclaw#167350)

* fix(pr): retain the admitted workflow across maintainer commands

* fix: refresh the reviewed correction baseline

Baseline-Refresh: a89bd166b79d54b343b93ad374f8ebfa4f3d1163

* fix(pr): preserve cold workflow admission and repository identity

* chore(pr): integrate canonical main CI repair

* commit '4f8617589b6c71d754171052b603fe534901bfa1': (52 commits)
  test(gateway): restore local probe deferred import
  fix(agents): release prompt diagnostics for retired sessions (openclaw#177614)
  fix(release): tag restart plugin cohorts consistently (openclaw#177725)
  refactor(ui): inline single-caller detail requests (openclaw#177705)
  chore(i18n): refresh native locales (openclaw#177721)
  refactor(codex): drop unread private runtime reports (openclaw#177689)
  refactor(ui): consolidate static artwork registries (openclaw#177692)
  refactor(ui): derive settings schema analysis in the view (openclaw#177624)
  refactor(media): consolidate capability defaults and compression grids (openclaw#177665)
  refactor(auth): bind OAuth managers to native provider operations (openclaw#177676)
  refactor(ui): remove redundant component rendering layers (openclaw#177607)
  fix(ios): model sign-in is a permanent row under the composer instead of an item in the model menu (openclaw#166082)
  fix(agents): report failed secret input prompt delivery (openclaw#177688)
  refactor(ui): share chat message render contracts (openclaw#177668)
  fix(ui): settle model status after overlapping publication (openclaw#177667)
  refactor(gateway): reuse native workspace and lifecycle facts (openclaw#177670)
  refactor(runtime): rely on canonical async lifecycle owners (openclaw#177635)
  refactor: fold private operation helpers into their callers (openclaw#177655)
  refactor(ui): remove unused chat leaf element adapters (openclaw#177582)
  perf(talk): use published authority for foreign voice writes (openclaw#177533)
  ...

Co-authored-by: Vincent Koc <[email protected]>
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. 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