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

// Grid/contacts unification (step 1): the fundraising grid is the single front
// door. Adds a real link (fundraising_contacts.contact_id, migration 0004) from
// each grid contact "pill" to its contacts-table row — populated by the grid sync
// and backfilled once on upgrade — so entity resolution links by id instead of
// heuristic name/email matching (ending the duplicate-people class of bug). UI:
// the grid's "+ Row" is now "+ Investor"; the Contacts page is a read/search/edit
// view (new people are added from the grid). Additive migration; no data loss.
export const v_0_1_0_52 = VersionInfo.of({
  version: '0.1.0:52',
  releaseNotes: {
    en_US: [
      'Grid/contacts unification: the Fundraising Grid is now the single place to',
      'add investors and contacts, each grid contact is linked to its contact record',
      'by a real id (no more name-matching), and the Contacts page becomes a',
      'view/search/edit list. Existing links are backfilled automatically on upgrade.',
    ].join(' '),
  },
  migrations: { up: async () => {}, down: async () => {} },
})
