import { VersionInfo } from '@start9labs/start-sdk'

// Repurpose the Communications tab as the admin-only email-activity panel. Code-only,
// no schema change (migrations are no-ops):
//   * New GET /api/email/activity (admin-enforced server-side): captured-Gmail activity
//     over the email_* tables, filterable by investor / mailbox / direction with
//     free-text search. Soft-delete is honored on the per-mailbox sighting; direction is
//     decided at the email level (outbound if the sender is one of our mailboxes).
//   * Communications page rewritten to render that panel; the classic manual
//     "Log Communication" form was retired (the grid context menu remains the log path).
//     Nav item + page are admin-only.
export const v_0_1_0_80 = VersionInfo.of({
  version: '0.1.0:80',
  releaseNotes: {
    en_US: [
      'The Communications tab is now an admin-only email-activity view: search captured',
      'Gmail by investor, mailbox, and direction. No data changes.',
    ].join(' '),
  },
  migrations: { up: async () => {}, down: async () => {} },
})
