---
id: TASK-58
title: >-
  Auto-route users to personal/demo space + landing overlay + demo content for
  all rApps
status: Done
assignee:
  - '@claude'
created_date: '2026-02-25 23:53'
labels:
  - feature
  - routing
  - ux
  - demo
dependencies: []
priority: high
---

## Description

<!-- SECTION:DESCRIPTION:BEGIN -->
Anon users automatically land on the demo space when viewing any rApp (standalone or unified). Logged-in users auto-redirect to their personal space (auto-provisioned on first visit). Landing page renders as a quarter-screen popup overlay on the demo space. Demo space seeded with content for all 22 rApps.
<!-- SECTION:DESCRIPTION:END -->

## Acceptance Criteria
<!-- AC:BEGIN -->
- [ ] #1 Anon users on standalone domains (rpubs.online/) see demo space
- [ ] #2 Logged-in users auto-redirect from demo to personal space
- [ ] #3 POST /api/spaces/auto-provision creates personal space on first auth visit
- [ ] #4 Standalone domains support /<space> path prefix (rpubs.online/jeff)
- [ ] #5 rspace.online/ redirects to /demo/canvas
- [ ] #6 Quarter-screen welcome overlay shows on first demo visit
- [ ] #7 Full landing page accessible at /about
- [ ] #8 Sign-in/register triggers auto-space-resolution redirect
- [ ] #9 Demo space seeded with shapes for all 22 rApps (55 shapes total)
<!-- AC:END -->

## Final Summary

<!-- SECTION:FINAL_SUMMARY:BEGIN -->
Implemented auto-routing: anon→demo, auth→personal space. Added POST /api/spaces/auto-provision endpoint, modified standalone domain rewrite to support /<space> paths, added welcome overlay to shell, wired auth flow to auto-redirect after sign-in. Seeded demo with 18 new shapes covering files, forum, books, pubs, swag, providers, work, cal, network, tube, inbox, data, choices, splat. Deployed to production, demo reset to 55 shapes.
<!-- SECTION:FINAL_SUMMARY:END -->
