Skip to content

Show received Universal Checkout events in the sample overlay - #843

Draft
tiagocandido wants to merge 1 commit into
uc-sample-sessionfrom
uc-sample-overlay
Draft

tiagocandido wants to merge 1 commit into
uc-sample-sessionfrom
uc-sample-overlay

Conversation

@tiagocandido

@tiagocandido tiagocandido commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

What changes are you making?

Open the prepared Universal Checkout URL directly from a buyer click and show received Checkout Kit events in a slotted overlay. Resource cards and a bounded timeline display status, revision, safe totals and aggregate summaries; shops use generic labels and raw checkout payloads, identifiers, keyed URLs and buyer/order details are excluded.

The page mirrors the event view and provides focus, close and clear controls. Opening a new presentation resets its timeline, clearing events preserves current resource state, and disposal/page restoration keep listeners and pending work consistent.

How to test

From the repository root, with dependencies installed:

pnpm --dir platforms/web lint
pnpm --dir platforms/web test
pnpm --dir platforms/web build
pnpm --dir platforms/web verify
pnpm --dir platforms/web sample:build

The full stack passes 440 Web tests plus lint/typechecks, build and package verification. Overlay tests cover redaction, scoped failures, stale error removal, bounded history, configuration invalidation, close/reopen and cleanup. Open a prepared two-shop session and inspect the overlay as statuses change.

tophat results

On the public-base revision, the browser loaded two shops from ignored environment configuration, loaded both catalogs, created separate carts and prepared a continuation URL. The overlay opened and its close event appeared in the DOM. Removing a shop invalidated the prepared URL; reload restored configured shops with empty carts. This configuration retest did not receive live start/update events in the in-app browser; the earlier live event evidence remains separate.

An earlier live two-shop run displayed received start/update events, generic shop labels and expandable redacted details. Close/reopen was verified separately with fresh events. The short clip demonstrates event rendering only; it does not show session preparation, completion or payment. Live completion and producer errors remain unverified.

universal-checkout-live-overlay.mp4

@tiagocandido
tiagocandido added this pull request to stack #845 September 28, 2026 15:20
@github-actions github-actions Bot added the #gsd:50662 Rebase Checkout Kit on UCP label Sep 28, 2026
@tiagocandido
tiagocandido marked this pull request as ready for review September 28, 2026 15:23
@tiagocandido
tiagocandido requested a review from a team as a code owner September 28, 2026 15:23
@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Web — Coverage Report

Lines Statements Branches Functions
Coverage: 89%
87.96% (753/856) 82.72% (479/579) 92.18% (177/192)

@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Package Size

Platform Artifact Base Head Delta
Web npm tarball 126.3 KiB 126.3 KiB 0 B
Web file breakdown
File Base Head Delta
dist/telemetry-BhYuVVw_.js.map 215.7 KiB 215.7 KiB 0 B
dist/custom-elements.json 90.8 KiB 90.8 KiB 0 B
dist/universal.js.map 63.9 KiB 63.9 KiB 0 B
dist/index.d.ts 47.7 KiB 47.7 KiB 0 B
dist/universal.d.ts 44.7 KiB 44.7 KiB 0 B
dist/index.js.map 34.8 KiB 34.8 KiB 0 B
dist/telemetry-BhYuVVw_.js 34.4 KiB 34.4 KiB 0 B
README.md 20.1 KiB 20.1 KiB 0 B
dist/universal.js 18.9 KiB 18.9 KiB 0 B
dist/index.js 8.3 KiB 8.3 KiB 0 B
package.json 3.1 KiB 3.1 KiB 0 B
LICENSE 1.1 KiB 1.1 KiB 0 B

Measured from the PR base SHA and PR head SHA. The file breakdown shows uncompressed sizes within each package artifact, so individual files do not sum to the compressed artifact total. This comment reports package artifact sizes only; it is not a final app binary-size report.

@tiagocandido
tiagocandido marked this pull request as draft September 29, 2026 10:01

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#gsd:50662 Rebase Checkout Kit on UCP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant