From c76739d0d72ecedfb8688de8885cf54bdb9d27c2 Mon Sep 17 00:00:00 2001 From: aewing Date: Tue, 24 Mar 2026 17:15:19 +0000 Subject: [PATCH] Update Prism Notes branding and OneNote sync UI --- README.md | 16 + index.html | 3761 ++++-------------------------- package.json | 1 + server.ts | 321 ++- tools/user-email-lookup/index.js | 42 +- 5 files changed, 747 insertions(+), 3394 deletions(-) diff --git a/README.md b/README.md index be56e67..a2b7afe 100644 --- a/README.md +++ b/README.md @@ -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 ` + - `x-pb-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. diff --git a/index.html b/index.html index 7cd5b9a..3c3d073 100644 --- a/index.html +++ b/index.html @@ -1,1209 +1,205 @@ - - + + Prism Notes - + - + - - - - - - - - -
- v1.0.0-alpha3 -
- - -
-
-

PB + Microsoft Graph

-

Sign in with Microsoft

-
- -
-

Sign in with your Microsoft account

- -
- - -
- - -