Repository navigation
feat(ui): add halftone QR previews for public shares - #194559
Conversation
Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 7d8ccffe-e528-444c-8a63-885ab24128e1
|
🦞👀 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 adds locally generated lobster QR previews and PNG downloads to public-session sharing while retaining the standard QR default. Example: Share https://example.com/chat/openclaw/demo from the session-sharing view.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: it adds a distinct optional feature, addresses both earlier findings, and has no actionable correctness findings on the reviewed head. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherDesktop and mobile sharing pass an already-published URL into one lazy presentation component, which renders either the existing standard QR or a browser-generated lobster PNG. flowchart TD
A[Published session URL] --> B[Desktop or mobile sharing]
B --> C[Lazy QR presentation]
C --> D[Standard QR renderer]
C --> E[Local halftone generator]
F[Canonical mascot SVG] --> E
E --> G[Preview and PNG download]
Technical reviewBest possible solution: Extend the existing lazy QR presentation with optional local artwork and downloads while preserving standard codes, copying, and sharing authority. Do we have a high-confidence way to reproduce the issue? This is an optional feature rather than a reported upstream bug; current main provides standard QR sharing but lacks lobster previews and PNG downloads. Is this the best way to solve the issue? The change uses the existing sharing component, encoder, mascot, and menu registrar, with no competing sharing owner or unnecessary persistence. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5ac21026addd. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +156, Tests +144, Docs 0, Other +2. Total +302 across 11 files. Added test files: 2. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 HistoryReview history (1 earlier review cycle)
Reviewed November 10, 2026, 6:34 AM ET / 11:34 UTC (Revision 2). |
Corrected halftone preview — local candidateReal built Control UI, synthetic published-session fixtures. The original PR's artwork is nearly invisible; the corrected candidate uses the canonical monochrome lobster across data cells while keeping function modules, module centers and the four-module quiet zone intact. Standard QR remains the default/fallback. Before After Actual mobile sharing pageBefore After The mobile page scrolls; the complete code is visible in this frame, with later controls below the fold. Four built-UI flows passed (desktop/mobile, light/dark), including desktop Tab/Enter entry and standard-code restoration. ZBar independently decoded all four displayed same-frame crops and PNG exports to the displayed long public URL; three additional realistic Team URLs decoded at 240px and export resolution. This is software-decoder proof, not a phone-camera guarantee. Fresh independent candidate review and source publication are still pending. |
Build on the shared plain QR owner, preserve module centers and function marks, register menu controls, and keep the standard fallback. Allocate the exact 144 lines of regression coverage for artwork, focus and download behavior. Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
Baseline-Refresh: e13552b9beef0a65ce6bda19e31c05660435ad82 Co-authored-by: vincentkoc <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Preserve image readiness and all download assertions while satisfying the owning UI E2E compiler graph. Adjust the exact regression-line allocation for the four added lines. Co-authored-by: vincentkoc <[email protected]>
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Related: #194559 Use a single lobster pincer in the optional halftone public-share QR instead of the full mascot. Keep standard QR as the default and fallback, retain PNG download and keyboard controls, and leave encoding and sharing permissions unchanged. Remove the obsolete QR-only monochrome mascot export without changing ordinary status-page markup. Verified four built-UI desktop/mobile light/dark flows, three focused browser tests, owning typechecks, lint/format/i18n, and eight independent ZBar display/download decodes. Exact-head CI run 42865477366 attempt 1 and enforced openclaw/ci-gate passed. Screenshots are embedded in the PR and delivered in the originating chat. Mock-Gateway proof only; no phone-camera claim. Allocate exactly 17 regression-test lines for the rendered pincer notch/wrist. Matched local base/candidate test-line and performance debt is documented without changing shared limits. Co-authored-by: vincentkoc <[email protected]>
* feat(ui): add halftone QR previews for public shares Co-authored-by: vincentkoc <[email protected]> * feat(ui): add halftone QR previews for public shares Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: 7d8ccffe-e528-444c-8a63-885ab24128e1 * docs: describe public-link lobster QR controls Co-authored-by: vincentkoc <[email protected]> * fix(test): await lobster QR decoding with a void callback Preserve image readiness and all download assertions while satisfying the owning UI E2E compiler graph. Adjust the exact regression-line allocation for the four added lines. Co-authored-by: vincentkoc <[email protected]> --------- Co-authored-by: vincentkoc <[email protected]>
…196770) Related: openclaw#194559 Use a single lobster pincer in the optional halftone public-share QR instead of the full mascot. Keep standard QR as the default and fallback, retain PNG download and keyboard controls, and leave encoding and sharing permissions unchanged. Remove the obsolete QR-only monochrome mascot export without changing ordinary status-page markup. Verified four built-UI desktop/mobile light/dark flows, three focused browser tests, owning typechecks, lint/format/i18n, and eight independent ZBar display/download decodes. Exact-head CI run 42865477366 attempt 1 and enforced openclaw/ci-gate passed. Screenshots are embedded in the PR and delivered in the originating chat. Mock-Gateway proof only; no phone-camera claim. Allocate exactly 17 regression-test lines for the rendered pincer notch/wrist. Matched local base/candidate test-line and performance debt is documented without changing shared limits. Co-authored-by: vincentkoc <[email protected]>




What Problem This Solves
People sharing a public conversation want a recognizable OpenClaw lobster inside its QR without sending the link to an outside QR service.
User Impact
The standard QR remains the default. Use lobster QR displays image-led lobster artwork across the code, Download lobster QR saves its full-size PNG, and Use standard QR returns to the original fallback. Desktop keyboard navigation and the actual mobile sharing page use the same implementation. Copying and sharing permissions are unchanged.
Why This Change Was Made
Requested by @vincentkoc: https://x.com/vincent_koc/status/2118984081904214120
This builds on the shared plain QR owner landed in #180292, rather than adding a second sharing renderer. It follows Hackaday’s module-center technique: preserve each 3×3 center, every function region and a four-module white quiet zone while the surrounding cells carry the canonical monochrome lobster. High error correction and modest peripheral QR contrast support scanning; the image is not pasted over data.
The original faint periphery, density cutoff, duplicate plain-PNG encoder, DOM parsing and eager shared CSS/copy were removed. One lazy presentation retains standard fallback, resets artwork selection when the URL changes, and registers its embedded controls with menu navigation. No dependency, configuration, schema or access-policy change is introduced. The exact +148 regression-test lines have a separate justified allocation; the shared scalar is unchanged.
Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.
Evidence
CI follow-up: Run 42807656715 caught a test-only callback returning
false | Promise<void>. An explicit async callback retains image decoding and every assertion while returningPromise<void>on both paths. The exact owning graph,test/tsconfig/tsconfig.core.test.ui-e2e-chat.json, fails before the repair and passes after it; all four UI flows pass again (18.75 s). Targeted lint/format and independent Codex P0–P2 delta review pass. Production code and the inspected visual/decoder proof are unchanged. The separate regression allocation now includes the four added callback lines.Remaining CI qualification: Run 42810375390 passes the repaired type stripe and QR E2E checks, but fails the sidebar archive-transition assertion at
app-sidebar-archive-exit.browser.test.ts:90. The same assertion is independently recorded in earlier run 42801398913, before this halftone source existed. Its test, animation owner, window and transition styles are byte-identical to the tested baseline; the tested PR merge changes none of the sidebar component, helper, style, reactive or session input trees. The selected local replay passes, which is not a claimed fix. CI remains failed; landing uses only the native, evidence-bound inherited-failure route with normal review, security and live writer-authority checks.Visual proof
Before — faint original artwork
After — recognizable lobster
Desktop/mobile comparison and decoding evidence
View the OpenClaw team session