Update Prism Notes branding and OneNote sync UI

This commit is contained in:
2026-03-24 17:15:19 +00:00
parent 04ae0c0c82
commit c76739d0d7
5 changed files with 747 additions and 3394 deletions
+16
View File
@@ -31,3 +31,19 @@ Open http://localhost:3030 and sign in with Microsoft.
- `getGraphToken()` in `server.ts` is ready for Graph API calls; extend with additional routes as needed.
- `/api/submit` validates the provided `pbToken` then writes the payload to `PB_COLLECTION`; adjust fields to match your schema.
- Static file serving uses `index.html` from the repo root.
## OneNote sync (append MVP)
- Backend endpoint: `POST /api/onenote/append`
- Required headers:
- `Authorization: Bearer <delegated Microsoft access token>`
- `x-pb-token: <PocketBase user token>`
- Current hardcoded target in `server.ts`:
- Host: `czflex.sharepoint.com`
- Site path: `/sites/Team`
- Section ID: `ed504699-67be-47a3-838a-e01ec17198fb`
- Page ID: `addbbca7-18ce-4d8d-833e-96cc08d990bc`
- Frontend buttons:
- New note: `Submit + Sync OneNote`
- Note detail: `Sync to OneNote`
Important: sync requires a delegated Microsoft token with OneNote write permissions. The UI captures this from PocketBase Microsoft OAuth metadata when available.