@tristan2828/ui-foundation 4.34.0 → 4.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,8 +13,8 @@ to the device, where the app's service worker shows it.
|
|
|
13
13
|
| `usePushPermission()` | the package | Whether this device gets reminders, and `enable`/`disable` |
|
|
14
14
|
| `AllowReminders` | the package | The control: says what reminders are, then asks, on a click |
|
|
15
15
|
| `/push/public-key`, `/push/subscriptions` | `openapi.yaml`, the foundation's part (optional) | The VAPID key to subscribe with; this device's subscription saved or dropped |
|
|
16
|
-
| `
|
|
17
|
-
| `
|
|
16
|
+
| `foundation_backend.push` | `ui-foundation-backend` | `send_push(session, user_id, title, body, url)`: encrypted (RFC 8291), signed (VAPID), to every device the user allowed |
|
|
17
|
+
| `foundation_backend.reminders`, `reminders` | `ui-foundation-backend` | A reminder row (when, which days, the text, the path), and the `send-reminders` job that sends each one when it's due |
|
|
18
18
|
|
|
19
19
|
Off until the backend turns it on (`PUSH_ENABLED`, `docs/deploy.md`
|
|
20
20
|
"Reminders (Web Push)"). An app without reminders leaves `/push/*` out of
|
|
@@ -82,4 +82,4 @@ reads `mock` and never subscribes: screens show the `mock` state, and a
|
|
|
82
82
|
Playwright spec checks it the same way. The rest is the backend's: its
|
|
83
83
|
tests decrypt every message as a browser would. To try it end to end, run
|
|
84
84
|
the real backend with push on, allow reminders in the browser, then
|
|
85
|
-
`
|
|
85
|
+
`python -m foundation_backend.scripts.send_test_push <email>` (from `backend/`).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tristan2828/ui-foundation",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.35.0",
|
|
4
4
|
"description": "Shared UI foundation for contract-first, database-backed React apps: shadcn primitives, DataTable/EntityForm composites, auth, the gateway error seam, design tokens, lint rules and the AI playbook.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|