Skip to content

feat(ui): add halftone QR previews for public shares - #194559

Merged
roboclaw-bot merged 6 commits into
mainfrom
openclaw/x-halftone-share-qr
Nov 10, 2026
Merged

roboclaw-bot merged 6 commits into
mainfrom
openclaw/x-halftone-share-qr

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • 30 focused tests passed across four files (7.69 s wall). The image-led regression fails the incoming implementation: zero image-led pixels versus the required >68,445.
  • 4 built-UI E2E flows passed (20.06 s): desktop/mobile × light/dark, realistic long URL, actual desktop Tab/Enter entry, PNG download and standard-code restoration.
  • Independent ZBar decoding: all four same-frame displayed crops and all four actual downloaded PNGs decoded to the displayed URL. Three additional realistic Team URLs decoded at 240px and native export size.
  • Production UI build including its performance gate passed: normalized chat boot gzip 1,300,511 B ≤ 1,301,131 B. No budgets were raised. UI typecheck, targeted lint/format, controller guard, English baseline/verification and product whitespace checks pass.
  • Parent independent autoreview through Codex, P0–P2, reviewed the complete local candidate against integrated main 437b199: no actionable findings. Parent also inspected the complete product patch and rendered desktop/mobile artwork. The reviewer did not execute tests; the runtime results above are from the implementation lane. A subsequent documentation-only change describes the verified control labels.
  • The built Control UI uses synthetic mock-Gateway fixtures, not an authenticated live Gateway. No phone-camera test or universal scanning guarantee is claimed; standard QR and copying remain available. WebKit is left to PR CI.

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 returning Promise<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

Before: original PR halftone preview

After — recognizable lobster

After: recognizable lobster QR, keyboard-accessible controls

Desktop/mobile comparison and decoding evidence


View the OpenClaw team session

roboclaw-bot and others added 2 commits November 7, 2026 08:58
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 7d8ccffe-e528-444c-8a63-885ab24128e1
@clawsweeper

clawsweeper Bot commented Nov 7, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 7, 2026
@clawsweeper

clawsweeper Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: The sharing view offers a standard QR code.
  • After: Select Use lobster QR to display lobster artwork, download openclaw-public-link-qr.png, or return to the standard code.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused implementation with inspected product screenshots, relevant behavioral coverage, preserved fallbacks, and both prior findings addressed; exact-head CI remains pending.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show the changed renderer in the built desktop menu and actual mobile sharing page using synthetic Gateway fixtures; submitted results cover keyboard entry, PNG download, standard-code restoration, and independent software decoding, without claiming authenticated-Gateway or phone-camera coverage.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: People sharing public conversations want recognizable OpenClaw artwork in a QR they can download without using an outside service.
Reason: The maintainer-authored direction is established, the feature is optional, and implementation preserves the existing working default.

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
Reviewed head: 032dc9074884c8d026f21c795c47e6973d877d0f

Before merge

None.

Findings

None.

Agent review details

How this fits together

Desktop 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]
Loading

Technical review

Best 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

  • Public-link QR presentation and sharing integration keeps the original intent (66f7455: Provide a locally generated, scannable twin of the copied public URL without changing sharing permissions or loading the encoder during chat boot.)
  • Canonical mascot rendering keeps the original intent (68d944f: Share inline canonical artwork with asset-free Gateway status pages while retaining their CSS animation structure.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +156, Tests +144, Docs 0, Other +2. Total +302 across 11 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 6 177 21 +156
Tests 3 149 5 +144
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 11 329 27 +302

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster. Replaced prior rating: 🦪 silver shellfish.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: Optional sharing polish preserves the working standard QR and copy-link paths.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster. Replaced prior rating: 🦪 silver shellfish.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-07T09:15:16.416Z sha 30785f6 :: needs changes before merge. :: [P2] Register the QR controls with desktop menu navigation | [P2] Keep QR-only assets within the existing performance budgets

Reviewed November 10, 2026, 6:34 AM ET / 11:34 UTC (Revision 2).

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Corrected halftone preview — local candidate

Real 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

Before: original PR halftone preview

After

After: recognizable lobster QR, keyboard-accessible controls

Actual mobile sharing page

Before

Before: mobile original halftone preview

After

After: mobile lobster QR

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.

roboclaw-bot and others added 3 commits November 10, 2026 11:23
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]>
Baseline-Refresh: e13552b9beef0a65ce6bda19e31c05660435ad82
Co-authored-by: vincentkoc <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Nov 10, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 10, 2026
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) November 10, 2026 11:34
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]>
@roboclaw-bot
roboclaw-bot merged commit 30bdbed into main Nov 10, 2026
116 of 119 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/x-halftone-share-qr branch November 10, 2026 12:12
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

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

roboclaw-bot added a commit that referenced this pull request Nov 10, 2026
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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 11, 2026
* 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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 11, 2026
…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]>
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 clawsweeper:intake:feature Preliminary submission classification; full source review pending. docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M 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