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 () => {} },
})
