feat: one-click public demo via ?try=demo URL parameter#100
Merged
Conversation
Adds frictionless entry to the public demo from external surfaces (marketing site, README, social posts) without removing the manual sign-in path for real users. - Login.svelte: on mount, if demo mode is enabled and the URL carries ?try=demo (in hash or search), auto-invoke loginAsDemo() and redirect to the home route. Existing sessions still take priority. - website/index.html: the three 'Live Demo' CTAs (nav, hero banner, CTA section) now point at /#/login?try=demo. - README.md: prominent brand-coloured 'Try the live demo' badge added at the top of the badge block; all in-body demo links updated to the one-click URL. Note: requires the demo deployment to rebuild the embedded SPA to pick up the Login.svelte change. Marketing site (Cloudflare Pages) and README take effect on merge.
Deploying archipulse with
|
| Latest commit: |
ff7e56b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f236b9fe.archipulse.pages.dev |
| Branch Preview URL: | https://feat-demo-auto-login.archipulse.pages.dev |
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.
Summary
Removes friction from the public demo entry path. Visitors arriving from external surfaces (marketing site, README, LinkedIn, Reddit) land directly in the workspace list — no form to fill, no credentials to copy.
Changes
Login.svelte: inonMount, when demo mode is enabled and the URL carries?try=demo(in either hash or search), auto-invokeloginAsDemo()and redirect to the home route. Existing sessions take priority — real users with an active session are sent to/before the demo branch runs.website/index.html: the three "Live Demo" CTAs (nav link, hero banner, demo banner) now point athttps://demo.archipulse.org/#/login?try=demo.README.md: prominent brand-coloured "Try the live demo" badge added at the top of the badge block; all in-body demo links updated to the one-click URL.Security notes
if (u) push('/')guard before any demo logic runs.?try=demois a trigger string, not a secret.Deploy note
The marketing site (Cloudflare Pages) and README update take effect on merge. The
Login.sveltechange requires the demo deployment (Railway) to rebuild the embedded SPA — confirm that auto-build is configured or trigger manually after merge.Test plan
https://demo.archipulse.org/#/login?try=demolands directly on workspace list