canvas-website/src/routes
Jeff Emmett 52503167c8 feat: flip permissions model - everyone edits by default, protected boards opt-in
NEW PERMISSION MODEL:
- All users (including anonymous) can now EDIT by default
- Boards can be marked as "protected" by admin - only listed editors can edit
- Global admins (jeffemmett@gmail.com) have admin on ALL boards
- Added BoardSettingsDropdown with view-only toggle for admins

Backend changes:
- Added is_protected column to boards table
- Added global_admins table
- New getEffectivePermission logic prioritizes: token > global admin > owner > protection status
- New API endpoints: /auth/global-admin-status, /admin/request, /boards/:id/info, /boards/:id/editors
- Admin request sends email via Resend API

Frontend changes:
- BoardSettingsDropdown component with protection toggle and editor management
- Updated AuthContext and Board.tsx to default to 'edit' permission
- isReadOnly now only true for protected boards where user is not an editor

Task: task-052

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 12:43:14 -05:00
..
Auth.tsx feat: rebrand CryptoLogin to CryptID 2025-11-16 14:09:23 -07:00
Board.tsx feat: flip permissions model - everyone edits by default, protected boards opt-in 2025-12-15 12:43:14 -05:00
Contact.tsx update contact page with calendar booking & added presentations 2025-07-27 16:07:44 -04:00
Dashboard.tsx feat: update mulTmux terminal tool and improve shape utilities 2025-11-26 04:08:08 -08:00
Default.tsx feat: update mulTmux terminal tool and improve shape utilities 2025-11-26 04:08:08 -08:00
Inbox.tsx automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
LinkDevice.tsx Add backlog tasks from worktrees and feature branches 2025-12-03 21:56:54 -08:00
Presentations.tsx feat: update mulTmux terminal tool and improve shape utilities 2025-11-26 04:08:08 -08:00
Resilience.tsx feat: update mulTmux terminal tool and improve shape utilities 2025-11-26 04:08:08 -08:00
VerifyEmail.tsx Add backlog tasks from worktrees and feature branches 2025-12-03 21:56:54 -08:00