Repository navigation
Add a no-signup demo to the web dashboard and phone app - #113
Merged
Merged
Conversation
The mobile redesign in #110 and #111 rewrote the screens the phone demo touched. I kept the redesigned screens and re-applied the demo changes on top: each screen reads its API client from the session, the home screen hides the Resident/Gate toggle during a demo and shows the demo identity instead, and sign-in gets the demo entry through a SignInForm slot. Push registration stays inside the live Clerk tree, so a demo never registers a device. The demo client answers the new vehicle alert and returns an error for push token calls. Mobile tests now run both the vitest demo suites and the node build-environment test.
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.
This adds a sandboxed demo society so anyone can try OpenSociety without signing up. The web dashboard has it at
/demoand on the home page, and the phone app offers Try demo on the welcome and sign-in screens as a Resident or a Guard. Every screen has fictional data to work with, and changes stay in the browser tab or on the device. Neither demo calls the society API or Clerk, and demo writes never enter the live offline queue.The branch started from an older main, so I merged dev into it and re-applied the phone demo on top of the redesigned screens from #110 and #111. The demo client also handles the new vehicle alert, and push registration only mounts for live Clerk sessions. I also added dev to the CI triggers now that dev is the default branch.
pnpm build,check-types,lintandtestpass locally (436 API, 43 web and 14 mobile tests), andexpo export --platform allbundles for web, iOS and Android. I clicked through the phone demo in a browser: approved a visitor as Resident, then as Guard checked them in, redeemed the sample pass and checked the sample vehicle. It hasn't been tried on a physical device yet.