managarten/apps/storage/apps/web
Till JS b737240ec1 feat(auth): add access tier system for phased app releases
Introduces a tiered access control system so apps can be released
gradually (founder → alpha → beta → public) without extra infrastructure.
Users are gated at the AuthGate level based on their tier vs the app's
requiredTier. All apps remain deployed and reachable, but only users
with sufficient tier can enter.

- Add accessTier enum + column to users schema (default: 'public')
- Add tier claim to JWT payload in better-auth config
- Add requiredTier field to ManaApp interface + all 25 apps
- Add hasAppAccess(), getAccessibleManaApps(), ACCESS_TIER_LABELS
- Update AuthGate with tier check + access denied screen
- Update getPillAppItems + Home page to filter by user tier
- Update all 22 app layouts to pass user tier to PillNav
- Add admin API: GET/PUT /api/v1/admin/users/:id/tier
- Document access tier system in CLAUDE.md

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 21:50:06 +02:00
..
e2e feat(storage): add integration E2E tests with real backend 2026-03-26 13:43:51 +01:00
scripts fix(storage): add PWA icons and meta tags to fix build and enable install 2026-03-24 19:22:16 +01:00
src feat(auth): add access tier system for phased app releases 2026-03-30 21:50:06 +02:00
static fix(storage): add PWA icons and meta tags to fix build and enable install 2026-03-24 19:22:16 +01:00
Dockerfile refactor(docker): standardize all web Dockerfiles to use sveltekit-base 2026-03-28 21:56:44 +01:00
eslint.config.js feat: restore presi and storage apps from archive 2026-01-25 13:25:51 +01:00
package.json refactor(auth): centralize auth stores — 21 apps use createManaAuthStore factory 2026-03-28 18:04:27 +01:00
playwright.config.ts feat(storage): add drag & drop file moving and Playwright E2E tests 2026-03-21 13:16:29 +01:00
svelte.config.js fix(presi,storage): use adapter-node for Docker builds 2026-01-25 17:47:49 +01:00
tsconfig.json feat: restore presi and storage apps from archive 2026-01-25 13:25:51 +01:00
vite.config.ts feat(storage): add controller tests, Caddy config, and PWA improvements 2026-03-21 12:48:11 +01:00