Repository navigation
refactor(ui): compact lobster sprites and reader sections - #169269
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces static lobster JSX with cloned SVG templates and consolidates repeated reader links and section markup. Example: Open the reader showing 1 of 2 files and 1 of 3 comments.
Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness✅ Ready for maintainer review Keep this PR open: it provides a useful rendering cleanup, preserves existing behavior, and has no actionable review findings; CI is still running. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI renders lobster artwork from look and scene properties and reader content from passive document data, producing SVG and accessible HTML. flowchart TD
A[Lobster look and scene] --> B[Artwork renderer]
B --> C[Cloned static SVG]
B --> D[Dynamic JSX geometry]
E[Reader document] --> F[Reader links and sections]
C --> G[Control UI DOM]
D --> G
F --> G
Technical reviewBest possible solution: Retain this focused cleanup with the existing artwork, animation structure, reader behavior, and loading boundaries preserved. Do we have a high-confidence way to reproduce the issue? No bug reproduction is required for this refactor; source inspection and the supplied browser comparison establish its preservation goal. Is this the best way to solve the issue? The shared template factory and reader components reduce repetition while retaining dynamic JSX and the existing rendering owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ff1e1582fbdb. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -414. Total -414 across 5 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 11, 2026, 2:22 PM ET / 18:22 UTC. |
|
Merged via squash.
|
What Problem This Solves
The Solid ports expanded static lobster artwork and repeated link-reader markup, making the rendering code longer without adding behavior.
User Impact
No user-visible change. Existing tags, classes, selectors, artwork, animation parentage, link policies, and lazy loading boundaries remain intact.
Why This Change Was Made
Cache and clone source-owned SVG templates for static sprites, retaining JSX for dynamic geometry and eyes. Reuse the reader's repeated external-link attributes and files/comments section chrome. The synchronous request and admission owners in the MCP and canvas components remain unchanged.
Touched production files: 2,218 → 1,804 LOC (-414, -18.7%). No dependencies, public APIs, or test cases added.
Evidence
Compared merge base
4d36172e3d7d2c7174fe1a4b8f1c68a91771cee5with head1f90c2c091b5960c39fd6b2cf7a8a2b120bfc80aon the same Blacksmith Testbox, Node 24.19.0 / Chromium 151.0.7922.0.pnpm tsgo:uipnpm ui:build, base / headpnpm ui:parity, 24 light/dark shots covering all 49 palettes plus reader files/comments/checksStartup gzip is 421,975 → 421,976 bytes (+1 byte), with the same 12 startup JS requests and no changed loading boundaries. This is within the checker's 64-byte build-variance allowance; both builds use identical supported build metadata. Both revisions exceed the existing 374,861-byte enforced ceiling and have two startup CSS requests against a limit of one. CSS bytes are identical (50,124). Those failures are inherited, not newly waived budgets.
The capture recipes are temporary synthetic fixtures, identical on both revisions. The temporary linked baseline initially lacked a Mermaid dependency and lost Git metadata when the source capsule refreshed; a standalone frozen-lockfile baseline resolved those proof setup failures. The final comparison above is complete.
The four images below are, in order: lobster before, lobster after, reader before, reader after. All captures were inspected and contain synthetic data only.