canvas-website/worker
Jeff Emmett 5af19bbbb2 feat: integrate read-only mode for board permissions
- Add permission fetching and state management in Board.tsx
- Fetch user's permission level when board loads
- Set tldraw to read-only mode when user has 'view' permission
- Show AnonymousViewerBanner for unauthenticated users
- Banner prompts CryptID sign-up with your specified messaging
- Update permission state when user authenticates
- Wire up permission API routes in worker/worker.ts
  - GET /boards/:boardId/permission
  - GET /boards/:boardId/permissions (admin)
  - POST /boards/:boardId/permissions (admin)
  - DELETE /boards/:boardId/permissions/:userId (admin)
  - PATCH /boards/:boardId (admin)
- Add X-CryptID-PublicKey to CORS allowed headers
- Add PUT, PATCH, DELETE to CORS allowed methods

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-05 22:45:31 -08:00
..
shapes pin object, fix fathom, and a bunch of other things 2025-11-11 22:32:36 -08:00
AutomergeDurableObject.ts feat: implement user permissions system (view/edit/admin) 2025-12-05 22:27:12 -08:00
assetUploads.ts fix asset upload rendering errors 2025-03-19 18:30:15 -07:00
automerge-init.ts feat: implement binary Automerge CRDT sync and open-mapping module 2025-12-04 19:45:02 -08:00
automerge-r2-storage.ts feat: implement binary Automerge CRDT sync and open-mapping module 2025-12-04 19:45:02 -08:00
automerge-sync-manager.ts feat: implement user permissions system (view/edit/admin) 2025-12-05 22:27:12 -08:00
boardPermissions.ts feat: implement user permissions system (view/edit/admin) 2025-12-05 22:27:12 -08:00
cryptidAuth.ts Add backlog tasks from worktrees and feature branches 2025-12-03 21:56:54 -08:00
networkingApi.ts feat: integrate read-only mode for board permissions 2025-12-05 22:45:31 -08:00
schema.sql feat: integrate read-only mode for board permissions 2025-12-05 22:45:31 -08:00
types.ts feat: integrate read-only mode for board permissions 2025-12-05 22:45:31 -08:00
wasm.d.ts feat: implement binary Automerge CRDT sync and open-mapping module 2025-12-04 19:45:02 -08:00
worker.ts feat: integrate read-only mode for board permissions 2025-12-05 22:45:31 -08:00