Show received Universal Checkout events in the sample overlay - #843
Draft
tiagocandido wants to merge 1 commit into
Draft
tiagocandido wants to merge 1 commit into
tiagocandido wants to merge 1 commit into
Conversation
tiagocandido
added this pull request to stack #845
September 28, 2026 15:20
tiagocandido
marked this pull request as ready for review
September 28, 2026 15:23
Package Size
Web file breakdown
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
force-pushed
the
uc-sample-overlay
branch
from
September 28, 2026 15:45
6e9065b to
7ae8fa1
Compare
tiagocandido
marked this pull request as draft
September 29, 2026 10:01
tiagocandido
force-pushed
the
uc-sample-overlay
branch
from
September 29, 2026 12:46
7ae8fa1 to
d86e980
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:buildThe 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