Repository navigation
Demo pages in the SeatLayer demos design, hosted examples, customer README (held) - #8
Merged
Merged
Conversation
Every demo page now has the same frame: a light SeatLayer demos header (Hosted, SDK, Charts & 3D), breadcrumbs, a switcher showing all five SDK demos, a Try-it strip, the demo at full width, the code to copy with its source file and docs, and a link to the next demo. - Routes: seat-picker, best-available, season-tickets (was /season), multiple-events (was /events) and checkout-handoff, which now runs the own cart flow with the server steps. / lists the five demos. - Prices follow NEXT_PUBLIC_SEATLAYER_CURRENCY, which now defaults to EUR. - The renewal-offer form and the duplicated side panel are gone from the screen. Renewal intent is explained in components/SeasonFlow.tsx. - Control room and Plain HTML are no longer in the menu; both routes remain. - SEATLAYER_BASE_PATH (optional) serves the app under a sub-path. fetch() calls go through withBase() so they follow it.
examples/hosted/ has copy-paste pages for one event, a collection of dates, a season card and a run-of-shows card. hosted/ has React components that render the same tags (SeatLayerEvent, SeatLayerCollection, BookingCard) and load each script once, scanning again after a client-side route change.
wrangler.jsonc, open-next.config.ts, public/_headers and the deploy scripts only served our own copy of the demos. This repository is example code for your app: npm run build and npm start run it on any Node host.
Starts with the live demos at seatlayer.io/demo, then the one-tag Hosted integration, the SDK routes, where to find each key in the dashboard, and how to run the app locally. .env.example points at the same places and documents SEATLAYER_BASE_PATH.
Contributor
Author
|
Release set: paiteq/seatmap#1143 (static /demo/ pages), #1146 (/demo/sdk proxy), #1147 (deploy with base path /demo/sdk, stacked on #1136). Deploy this commit with deploy.sh before the marketing site. |
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.
Held: do not merge until the owner's go. This PR replaces the README in #2 and should merge in place of it. It is released together with the hosting config in paiteq/seatmap#1136, the base path deploy, and the seatlayer.io
/demo/sdk/*proxy.What changes
/seat-picker,/best-available,/season-tickets(was/season),/multiple-events(was/events),/checkout-handoff(now the live own-cart flow: hold → server reads it back → book)./lists the demos./control-roomand/htmlare still there but no longer in the menu.NEXT_PUBLIC_SEATLAYER_CURRENCY, which now defaults to EUR.createRenewalIntentis explained incomponents/SeasonFlow.tsxand the README.SEATLAYER_BASE_PATH, set at both build and start.next.config.mjspasses it to the browser, andfetch()calls go throughwithBase(). With no config, a fork still runs at/.examples/hosted/*.htmlholds the event tag, the collection, the season card and the run-of-shows card.hosted/holds the matching React components (SeatLayerEvent,SeatLayerCollection,BookingCard), which load each script once and scan again after a client-side route change.wrangler.jsonc,open-next.config.ts,public/_headers, the deploy scripts and the@opennextjs/cloudflareandwranglerdeps now live in paiteq/seatmap#1136.Checks
npx tsc --noEmitpasses.npm run buildpasses at/and withSEATLAYER_BASE_PATH=/demo/sdk.scripts/check-routes.mjsagainstnpm startwith test keys: all 16 route loads pass (8 routes, each with and without?embed=1).