Skip to content

feat(ui): show a QR code next to the public session link - #180292

Merged
roboclaw-bot merged 9 commits into
mainfrom
openclaw/public-share-qr-code
Nov 10, 2026
Merged

roboclaw-bot merged 9 commits into
mainfrom
openclaw/public-share-qr-code

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

People sharing a public session in person need a way to open its link on another device without typing or sending the URL.

User Impact

When Anyone with the link is enabled, desktop and mobile sharing show a scannable QR for the same URL as Copy public link. Sharing permissions and anonymous-reader behavior are unchanged.

Why This Change Was Made

The existing pinned QR encoder renders black modules on white with a four-module quiet zone. The encoder, copy and layout load behind the public-sharing view, with no external QR service or shared stylesheet growth. If loading or encoding fails, the code and its caption disappear while copying remains available.

The branch now incorporates the current filename-normalized performance comparison rather than changing its limits. The separate 173-line test allocation covers desktop/mobile payload and geometry checks in both themes and the unavailable-code fallback; the shared scalar is unchanged.

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

Evidence

Local candidate: 4857132; integration baseline: 442bf4a.

  • 27 sharing tests passed in two files (9.66 s wrapper wall time), including public-access gating and encoding failure without losing copy.
  • 4 built-UI browser tests passed (20.45 s): desktop 1280×900 and mobile 390×844, light/dark, rendered QR matrix matches the displayed public URL and stays within its container. Baseline captures used the same fixture on main (19.03 s).
  • Production bundle comparison passed against that baseline: normalized startup JS, chat/new boot JS, and all CSS changed by 0 bytes. No budget was raised.
  • UI typecheck, targeted lint (8 files), formatting, i18n baseline generation, exact test-line ratchet and feature-delta whitespace checks passed.
  • Fresh independent autoreview through Codex, P0–P2, reviewed the complete local candidate against the integration baseline: no actionable findings. The reviewer did not execute tests and did not have unchanged repository context; runtime proof above is from the implementing run.
  • Screenshots use synthetic session data. This is the real built Control UI with a mocked Gateway, not a live authenticated Gateway or physical phone-camera test. Earlier independent jsQR pixel decoding covered the unchanged renderer in all four layouts; no hardware-camera guarantee is claimed.

Before

Before: public sharing offers only the copy link

After

After: the public link also has a scannable QR

@clawsweeper

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

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 22, 2026 04:23
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Oct 22, 2026
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Dependency graph changes

This maintainer PR changes the dependency graph.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 42fbea8a66cfbebc0bc38a30aa5f66ffe370a651
  • Maintainer: @roboclaw-bot
  • Repository role: maintain

These dependency graph changes were made:

  • pnpm-lock.yaml
  • ui/package.json

Carefully review these changes before merging.

@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 22, 2026 04:27
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Adds a locally generated QR code beside public session links in desktop and mobile sharing views.

Example: Share https://team.example/chat/main/demo with someone nearby.

  • Before: The recipient must receive or type the public URL.
  • After: The recipient can scan a QR encoding the same URL.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, focused implementation with inspected visual proof and the earlier finding resolved; broad exact-head CI remains incomplete.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the built Control UI desktop sharing menu and visibly show the added QR beside Copy public link; the declared environment uses synthetic data and a mocked Gateway, with reported browser checks for both layouts and themes, without claiming a physical-camera scan.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: People sharing a session in person must type or send its URL to open it on another device.
Reason: The maintainer-authored direction provides a practical cross-device shortcut with local encoding and preserved copy behavior.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR adds useful sharing functionality absent from current main, and the previous caption finding is fixed. No actionable patch defect was found; overlapping QR work and incomplete CI need coordination.

Priority: P3
Reviewed head: 4857132f17092de5b986fe0f883e01810482552b

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI sharing views consume the pane owner's confirmed publication state and canonical public URL, then lazily render an SVG QR without changing Gateway authorization.

flowchart LR
  A[Gateway sharing result] --> B[Existing sharing owner]
  B --> C[Desktop sharing menu]
  B --> D[Mobile sharing page]
  C --> E[Lazy QR presentation]
  D --> E
  E --> F[Local SVG encoder]
  F --> G[Recipient device]
Loading

Technical review

Best possible solution:

Keep one lazy public-link QR implementation, with the larger preview work building on whichever implementation lands first.

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

This is a feature addition; current-main source confirms that public sharing currently offers copying without a QR.

Is this the best way to solve the issue?

The focused implementation reuses the existing sharing owner and pinned encoder, and its shared lazy presentation is justified by the desktop/mobile consumers and startup boundary.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit c8e1ef9 adds scripts/lib/control-ui-i18n-catalog.ts:32 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c8e1ef929577; files: scripts/lib/control-ui-i18n-catalog.ts)
  • Vyctor H. Brzezowski: Raw commit fb7cd93 adds ui/src/pages/chat/components/chat-session-sharing-mobile.tsx:21 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fb7cd9305667; files: ui/src/pages/chat/components/chat-session-sharing-mobile.tsx)

PR surface

Source +135, Tests +173, Docs 0, Config +1, Other +8. Total +317 across 13 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 6 135 0 +135
Tests 2 173 0 +173
Docs 1 1 1 0
Config 1 1 0 +1
Generated 0 0 0 0
Other 3 8 0 +8
Total 13 318 1 +317

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 P3: This is a sharing convenience feature; the existing public-link copy flow remains available.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster 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 sharing convenience feature; the existing public-link copy flow remains available.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • 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-10-22T04:41:15.442Z sha c515c3f :: needs changes before merge. :: [P3] Hide scan instructions when QR rendering fails

Reviewed November 10, 2026, 5:29 AM ET / 10:29 UTC (Revision 2).

@roboclaw-bot
roboclaw-bot disabled auto-merge October 22, 2026 04:58
roboclaw-bot and others added 4 commits October 24, 2026 10:33
Resolve conflicts with the sharing refactors on main: the desktop QR now renders in chat-session-sharing-content.tsx beside the copy action.

Co-authored-by: steipete <[email protected]>
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: ad12b1d4-3e9a-4e1b-bc56-e85a7c498eda
Main now holds chat boot JS and total CSS to the merge base. Move the QR
wrapper and its copy into modules that only the lazily loaded sharing
views import, and draw the code's fixed colors and layout inline in that
chunk instead of growing shared stylesheets.

Co-authored-by: steipete <[email protected]>
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: b7e71ded-e164-4cfa-99a1-5aa9c5d5c5c7
Integrate the corrected filename-normalized asset gate, document scanning, and allocate the existing 173 lines of desktop/mobile and failure-state regression coverage.

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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper clawsweeper Bot added the status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. label Nov 10, 2026
@roboclaw-bot
roboclaw-bot merged commit 66f7455 into main Nov 10, 2026
116 of 123 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/public-share-qr-code branch November 10, 2026 10:57
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 11, 2026
…0292)

* feat(ui): show a QR code for the public session link

* feat(ui): show a QR code next to the public session link

OpenClaw-Publication: c885f01d-47fd-45e5-b8aa-12c791a68b02

* fix(ui): hide the QR scan caption when no code renders

* Publish openclaw/public-share-qr-code

OpenClaw-Publication: 80007692-596c-4ddb-b648-c1274e706cf8

* Publish openclaw/public-share-qr-code

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: ad12b1d4-3e9a-4e1b-bc56-e85a7c498eda

* perf(ui): keep the public-link QR code out of chat boot

Main now holds chat boot JS and total CSS to the merge base. Move the QR
wrapper and its copy into modules that only the lazily loaded sharing
views import, and draw the code's fixed colors and layout inline in that
chunk instead of growing shared stylesheets.

Co-authored-by: steipete <[email protected]>

* Publish openclaw/public-share-qr-code

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: b7e71ded-e164-4cfa-99a1-5aa9c5d5c5c7

---------

Co-authored-by: steipete <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 14, 2026
Update only the Control UI and shared Mermaid renderer DOMPurify pins from
3.4.16 to 3.4.17 for #196925. Regenerate the matching pnpm importers,
package integrity, snapshot, and Mermaid transitive resolution using pnpm.

Release adaptation: extract only the DOMPurify portion of the broad
93-file dependency refresh in #178071. Keep all other release dependency
versions, overrides, patches, and runtime source unchanged. Generate the
lock with pnpm 12.15.0 in this independently owned worktree; no shared
install or parent checkout changes.

Companion closure: both direct consumers and Mermaid's transitive edge
resolve 3.4.17 with the source commit's exact integrity. Later same-path
changes #179116, #181047, #182010, #182251, #184482, #185194, #188576,
#189983, #189746, #192352, #194544, #180292 and 9651d63 are
not prerequisites: other dependency updates, UI features/test setup, or
the deliberately excluded Mermaid-to-Pele migration. Later source-PR
mentions 8c9a696, b394c80 and #178708 concern plugin publish
docs, MCP Apps ownership and the security-review token action, not DOMPurify. No DOMPurify API or consumer
code companion is required for this patch-only version substitution.

Validation: isolated frozen-lockfile install; 27 Markdown boundary tests;
shared Mermaid renderer production build; dependency-pin guard (749
specifications, zero violations); exact-only manifest/lock delta audit;
git diff --check. Browser Mermaid tests remain unqualified: Chromium
cannot load libatk-1.0.so.0 on this host. No broad release qualification
or publication is claimed.

(cherry picked from commit f91bca9)

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
(cherry picked from commit 9fd8f627dcfcd8553cf634474678587893d03992)
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 dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts 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