Skip to content

Add a no-signup demo to the web dashboard and phone app - #113

Merged
ankitsejwal merged 15 commits into
devfrom
ankitsejwal/demo-sandbox
Nov 13, 2026
Merged

ankitsejwal merged 15 commits into
devfrom
ankitsejwal/demo-sandbox

Conversation

@ankitsejwal

Copy link
Copy Markdown
Member

This adds a sandboxed demo society so anyone can try OpenSociety without signing up. The web dashboard has it at /demo and 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, lint and test pass locally (436 API, 43 web and 14 mobile tests), and expo export --platform all bundles 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.

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.
@ankitsejwal
ankitsejwal merged commit 70e0261 into dev Nov 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant