Update Prism Notes branding and OneNote sync UI
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user