Add mobile email-approval bell (#6) (v0.1.0:102)
An admin-only bell in the mobile top bar (left of the camera) surfaces the
SAME pending email-capture proposals the web "Email Capture" panel and the
Matrix review room decide — a third surface over the existing endpoints, no
new backend.
- Count badge (iPhone-style) from a 45s poll of GET /api/activity/proposals;
dim when there are none.
- Tap → card list of proposals → tap one → review screen (investor name,
direction/date, subject, summary, editable proposed note) → Approve & log to
grid (POST .../{id}/approve {note}) or Reject (POST .../{id}/dismiss).
- Bidirectional sync is automatic: an app decision flips the proposal status
and the bot's poll redacts the Matrix thread; a Matrix/web decision drops the
proposal from the pending list the bell polls, clearing the badge.
- No LLM round-trip (edit-then-approve, like the web panel). Mobile-gated
(isMobile && admin) so the hidden desktop top bar never polls the endpoint.
Frontend-only; no schema, migration, or dependency change.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import { VersionInfo } from '@start9labs/start-sdk'
|
||||
|
||||
// Mobile email-approval bell (#6) — a third surface over the EXISTING email-capture proposal
|
||||
// flow, alongside the web "Email Capture" panel and the Matrix review room. Admin-only,
|
||||
// frontend-only; no backend, schema, migration, or dependency change.
|
||||
// - A bell in the mobile top bar (left of the camera) shows an iPhone-style count badge of
|
||||
// pending proposals; dim when there are none.
|
||||
// - Tap → a card list of proposals → tap one → a review screen (investor name, direction/date,
|
||||
// subject, one-line summary, and the editable proposed note) → Approve & log to grid / Reject.
|
||||
// - Reuses GET /api/activity/proposals + POST /api/activity/proposals/{id}/approve|dismiss
|
||||
// (both require_admin). No LLM round-trip — edit-then-approve, exactly like the web panel.
|
||||
// - Sync is automatic and bidirectional: deciding here flips the proposal status and the bot's
|
||||
// poll redacts the Matrix thread; a Matrix- or web-side decision drops the proposal from the
|
||||
// pending list the bell polls (every 45s), clearing the badge. Mobile-gated so the hidden
|
||||
// desktop top bar never polls the admin endpoint.
|
||||
export const v_0_1_0_102 = VersionInfo.of({
|
||||
version: '0.1.0:102',
|
||||
releaseNotes: {
|
||||
en_US: [
|
||||
'Email approvals on your phone: a bell in the mobile top bar shows how many captured-email',
|
||||
'notes are waiting to be logged. Tap to review each one (investor + the proposed note),',
|
||||
'edit it if needed, then Approve to log it to the grid or Reject — staying in sync with the',
|
||||
'web panel and the Matrix review room.',
|
||||
].join(' '),
|
||||
},
|
||||
migrations: { up: async () => {}, down: async () => {} },
|
||||
})
|
||||
Reference in New Issue
Block a user