/**
 * Phyllis Schlafly historical timeline.
 *
 * This module owns the canonical sequence, dates, narrative summaries,
 * and media intent for the Timeline page. Keep this as the single source of
 * truth for the timeline's historical content and metadata.
 */

export interface PhyllisTimelineEvent {
  /** Stable identifier used for list keys and interactive state. */
  id: string;
  /** Display date text, preserving year-only and exact-date formatting. */
  dateLabel: string;
  /** Ordering key for chronological rendering. */
  sortDate: string;
  /** Short title shown in the timeline card header. */
  title: string;
  /** One-line summary always visible in the card preview. */
  summary: string;
  /** Optional expanded paragraph shown on click/tap. */
  description?: string;
  /** High-level period grouping label. */
  category: "Early Life" | "Early Career" | "Political Career" | "Organization" | "Legacy";
  /** Indicates a card with major historical significance. */
  isMajor: boolean;
  /** Whether this event reserves space for a future media image. */
  hasImageSlot?: boolean;
  /** Optional image slot copy shown until real media is added. */
  imageSlotLabel?: string;
  /**
   * Path under `/public/` (e.g. `phyllis/phyllis-books.jpg` or
   * `eagle-action/molly-portrait-768.webp`). Omit only when the slot is still
   * a placeholder.
   */
  imagePath?: string;
  /**
   * Visual treatment for `imagePath`. Document media is rendered as an archival
   * scan and links to the full-size file; ordinary images default to photo treatment.
   */
  mediaKind?: "photo" | "document";
  /**
   * When set, the media slot renders this video instead of `imagePath`.
   * Path under `/public/` (e.g. `eagle-action/eagle-action-rebrand.mp4`).
   */
  videoPath?: string;
  /** Reserved 16:9 slot for a future `videoPath`; shows a placeholder until the file ships. */
  videoPlaceholder?: boolean;
}

export const PHYL_TIMELINE_EVENTS: readonly PhyllisTimelineEvent[] = [
  {
    id: "birth-1924",
    dateLabel: "August 15, 1924",
    sortDate: "1924-08-15",
    title: "Birth in St. Louis",
    summary: "Phyllis McAlpin Stewart is born in St. Louis, Missouri.",
    description:
      "Her early years in Missouri and her Catholic upbringing would later shape her political and cultural priorities.",
    category: "Early Life",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "Birth & Early Years",
    imagePath: "phyllis/phyllis-1924.jpg",
  },
  {
    id: "ordnance-college-1942",
    dateLabel: "1942–1944",
    sortDate: "1942-08-15",
    title: "Washington University and WWII Ordnance Plant",
    summary:
      "Begins ordnance plant work after turning 18; transfers from Maryville College to Washington University and graduates with honors in August 1944.",
    description:
      "She began working at the ordnance plant after she turned 18 on August 15, 1942. About the same time, she transferred from Maryville College to Washington University and graduated with honors at the late-summer commencement in August 1944, after a little more than three years in college. At the plant she tested .30- and .50-caliber rounds by firing rifles and machine guns, investigated misfires, and photographed tracer bullets as part of production quality control and weapons testing.",
    category: "Early Life",
    isMajor: false,
    hasImageSlot: true,
    imageSlotLabel: "Factory Work",
    imagePath: "phyllis/phyllis-young-portrait.jpg",
  },
  {
    id: "master-1945",
    dateLabel: "1945",
    sortDate: "1945-01-01",
    title: "Master of Arts, Radcliffe College",
    summary: "Completes her M.A. in government at Radcliffe College, Harvard.",
    description:
      "This training in government and policy sharpened the research skills she later applied in campaign work and political writing.",
    category: "Early Life",
    isMajor: false,
    hasImageSlot: true,
    imageSlotLabel: "Radcliffe M.A.",
    imagePath: "phyllis/phyllis-master-1945.jpg",
  },
  {
    id: "early-career-1945",
    dateLabel: "1945–1949",
    sortDate: "1945-06-01",
    title: "Research and Financial-sector Communications Work",
    summary:
      "Works at AEI, then as a research librarian and newsletter editor for St. Louis Union Trust and briefly First National Bank.",
    description:
      "Her role included writing and promoting content focused on free enterprise and policy analysis, skills that would later transfer directly into her conservative organizing.",
    category: "Early Career",
    isMajor: false,
    hasImageSlot: true,
    imageSlotLabel: "1949 newspaper clipping",
    imagePath: "phyllis/clippings/phyllis-1949-newspaper-clipping.webp",
    mediaKind: "document",
  },
  {
    id: "marriage-1949",
    dateLabel: "October 20, 1949",
    sortDate: "1949-10-20",
    title: "Marriage to John Fred Schlafly Jr.",
    summary: "Schlafly marries and settles in Alton, Illinois.",
    description:
      "Fred Schlafly had moved to Alton in 1934 after graduating from Harvard Law School. Family life and activism become intertwined as she raises children while increasing her political activity.",
    category: "Early Life",
    isMajor: false,
    hasImageSlot: true,
    imageSlotLabel: "Wedding",
    imagePath: "phyllis/phyllis-fred-wedding.jpg",
  },
  {
    id: "children-1950s",
    dateLabel: "1950–1964",
    sortDate: "1950-01-01",
    title: "Family Milestones",
    summary: "Births of six children: John, Bruce, Roger, Liza, Andrew, and Anne.",
    description:
      "She balanced public engagement and family life while building an expanding conservative voice through early publications and organizing.",
    category: "Early Life",
    isMajor: false,
    hasImageSlot: true,
    imageSlotLabel: "Schlafly Family",
    imagePath: "phyllis/phyllis-family-sailboat.jpg",
  },
  {
    id: "congressional-run-1952",
    dateLabel: "1952",
    sortDate: "1952-01-01",
    title: "Republican Congressional Run",
    summary:
      "Wins the Republican primary but loses the general election in a heavily Democratic district.",
    description:
      "Her campaign centered on anti-communism and helped launch her national visibility inside Republican circles.",
    category: "Political Career",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "Campaign 1952",
    imagePath: "phyllis/phyllis-congressional-campaign.jpg",
  },
  {
    id: "mindsighty-1958",
    dateLabel: "1958",
    sortDate: "1958-01-01",
    title: "Cardinal Mindszenty Foundation",
    summary: "Co-founds the Cardinal Mindszenty Foundation, an anti-communist Catholic education initiative.",
    description:
      "The foundation positioned her as a public organizer against Soviet influence and strengthened her network within anti-communist circles.",
    category: "Political Career",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "Foundation Work",
    imagePath: "phyllis/phyllis-nixon.jpg",
  },
  {
    id: "irw-president-1960-1964",
    dateLabel: "1960–1964",
    sortDate: "1960-01-01",
    title: "President, Illinois Federation of Republican Women",
    summary: "Leads the Illinois Federation of Republican Women for multiple years.",
    description:
      "Her work during these years builds deep ties to state Republican activism and sets a base for later national work.",
    category: "Political Career",
    isMajor: false,
  },
  {
    id: "choice-not-an-echo-1964",
    dateLabel: "1964",
    sortDate: "1964-01-01",
    title: "Publishes 'A Choice Not an Echo'",
    summary:
      "Self-publishes a major conservative political book that helps energize support for Barry Goldwater’s nomination.",
    description:
      "The book becomes one of the most influential campaign tools in that election cycle and cements Schlafly as a persuasive movement voice.",
    category: "Political Career",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "A Choice Not an Echo",
    imagePath: "phyllis/phyllis-books.jpg",
  },
  {
    id: "grave-diggers-1964",
    dateLabel: "1964",
    sortDate: "1964-06-01",
    title: "Co-authors 'The Gravediggers'",
    summary: "Co-authors 'The Gravediggers' with Rear Adm. Chester Ward.",
    category: "Political Career",
    isMajor: false,
  },
  {
    id: "strike-from-space-1965",
    dateLabel: "1965",
    sortDate: "1965-01-01",
    title: "Publishes 'Strike from Space'",
    summary: "Releases another major collaboration with Chester Ward.",
    category: "Political Career",
    isMajor: false,
    hasImageSlot: true,
    imageSlotLabel: "1966 newspaper review",
    imagePath: "phyllis/clippings/phyllis-strike-from-space-newspaper-clipping.webp",
    mediaKind: "document",
  },
  {
    id: "nfrw-leadership-1966",
    dateLabel: "1966",
    sortDate: "1966-03-01",
    title: "National Republican Women Leadership Bid",
    summary:
      "A newspaper editorial urges Republican women to choose Schlafly to lead the National Federation of Republican Women.",
    category: "Political Career",
    isMajor: false,
    hasImageSlot: true,
    imageSlotLabel: "NFRW newspaper clipping",
    imagePath: "phyllis/clippings/phyllis-nfrw-newspaper-clipping.webp",
    mediaKind: "document",
  },
  {
    id: "eagle-trust-fund-1967",
    dateLabel: "1967",
    sortDate: "1967-08-01",
    title: "Eagle Trust Fund Launches Phyllis Schlafly Report",
    summary:
      "Establishes Eagle Trust Fund and begins the monthly publication of The Phyllis Schlafly Report.",
    description:
      "The newsletter becomes her most consistent platform for organizing communication and conservative commentary.",
    category: "Organization",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "Newsletter Era",
    imagePath: "phyllis/phyllis-capitol-we-the-people.jpg",
  },
  {
    id: "eagle-councils-1972",
    dateLabel: "1972",
    sortDate: "1972-01-01",
    title: "Eagle Council Network Takes Shape",
    summary:
      "Begins sponsoring annual Eagle Council gatherings tied to the Stop ERA campaign.",
    description:
      "These early conferences became the durable event backbone for broader activist coordination.",
    category: "Organization",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "Eagle Councils",
    imagePath: "phyllis/phyllis-friedan-1973.jpg",
  },
  {
    id: "eagle-forum-1975",
    dateLabel: "1975",
    sortDate: "1975-06-01",
    title: "Eagle Forum Founded",
    summary:
      "Founds Eagle Forum as a national volunteer pro-family organization; the first meeting was held during Eagle Council in 1975.",
    description:
      "Eagle Forum grows from the Stop ERA network into a long-running national advocacy and policy movement.",
    category: "Organization",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "Eagle Forum Birth",
    imagePath: "phyllis/phyllis-pro-family-rally-1977.jpg",
  },
  {
    id: "jd-1978",
    dateLabel: "1978",
    sortDate: "1978-01-01",
    title: "Juris Doctor, Washington University",
    summary: "Earns a J.D. while maintaining full-time activism.",
    description:
      "The law degree reinforced policy work during a period of intense organizing and rapid movement expansion.",
    category: "Organization",
    isMajor: false,
  },
  {
    id: "eagle-defense-1981",
    dateLabel: "1981",
    sortDate: "1981-01-01",
    title: "Eagle Forum Education & Legal Defense Fund",
    summary: "Founds the Eagle Forum Education & Legal Defense Fund (EFELDF).",
    description:
      "Schlafly had access to other 501(c)(3) organizations in the 1960s and 1970s, but those predecessor entities are now defunct.",
    category: "Organization",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "Defense Fund",
    imagePath: "phyllis/phyllis-reagan.jpg",
  },
  {
    id: "education-center-1993",
    dateLabel: "1993",
    sortDate: "1993-01-01",
    title: "Eagle Forum Education Center",
    summary:
      "The Eagle Forum Education Center was renamed the Phyllis Schlafly Center in 2016.",
    description:
      "The Eagle Forum Education Center was renamed the Phyllis Schlafly Center in 2016. EFEL continues to maintain Phyllis Schlafly\u2019s archives there and it continues as EFEL\u2019s active headquarters.",
    category: "Legacy",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "Bonhomme headquarters",
    imagePath: "phyllis/phyllis-boardroom.jpg",
  },
  {
    id: "relocation-1994",
    dateLabel: "1994",
    sortDate: "1994-01-01",
    title: "Relocation to St. Louis",
    summary:
      "After 44 years of marriage to her late husband, Fred Schlafly, Phyllis relocated her home and office to St. Louis.",
    category: "Legacy",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "St. Louis headquarters",
    imagePath: "phyllis/phyllis-office.jpg",
  },
  {
    id: "martin-successor-2015",
    dateLabel: "September 28, 2015",
    sortDate: "2015-09-28",
    title: "Ed Martin Named Phyllis's Successor",
    summary:
      "Phyllis names Ed Martin her successor, preparing her organization for a transition in leadership.",
    category: "Legacy",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "Ed Martin appointed",
    imagePath: "phyllis/phyllis-ed-martin.jpg",
  },
  {
    id: "martin-departs-2025",
    dateLabel: "January 2025",
    sortDate: "2025-01-20",
    title: "Ed Martin Joins the Trump Administration",
    summary:
      "Ed Martin leaves his position as President of Eagle Forum Education & Legal and Phyllis Schlafly Eagles to join the Trump administration. John Schlafly begins to consider who should lead Phyllis\u2019s legacy forward.",
    category: "Legacy",
    isMajor: true,
  },
  {
    id: "trump-endorsement-2016",
    dateLabel: "March 11, 2016",
    sortDate: "2016-03-11",
    title: "Endorses Donald Trump for President",
    summary:
      "Phyllis publicly endorses Donald Trump's presidential campaign, lending her grassroots conservative authority to his bid.",
    description:
      "Her endorsement shifted a large voting base to support Trump\u2019s candidacy rather than that of Ted Cruz. Phyllis proved she was, even then, still a political visionary with courage and independence.",
    category: "Legacy",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "Trump endorsement",
    imagePath: "phyllis/phyllis-trump-endorsement.jpeg",
  },
  {
    id: "pse-501c4-2016",
    dateLabel: "May 11, 2016",
    sortDate: "2016-05-11",
    title: "Founds Phyllis Schlafly Eagles",
    summary:
      "Establishes Phyllis Schlafly Eagles, a new 501(c)(4) advocacy organization, to carry forward the grassroots political action arm of her movement.",
    description:
      "Phyllis Schlafly Eagles complements the 501(c)(3) Eagle Forum Education & Legal Defense Fund: the 501(c)(4) handles direct advocacy and political work that the educational arm cannot.",
    category: "Legacy",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "Phyllis Schlafly Eagles founding",
    imagePath: "phyllis/phyllis-portrait.jpg",
  },
  {
    id: "death-2016",
    dateLabel: "September 5, 2016",
    sortDate: "2016-09-05",
    title: "Passing of Phyllis Schlafly",
    summary: "Dies at age 92.",
    description:
      "Donald Trump and his wife Melania attended Phyllis\u2019s funeral at the Cathedral Basilica of St. Louis.",
    category: "Legacy",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "Legacy and Remembrance",
    imagePath: "phyllis/phyllis-trump-coffin.jpg",
  },
  {
    id: "mccann-sanders-efel-president-2025",
    dateLabel: "November 2025",
    sortDate: "2025-11-01",
    title: "Molly McCann Sanders Elected President of EFEL",
    summary:
      "John Schlafly presents Molly McCann Sanders to the Eagle Forum Education & Legal board. She is elected by unanimous vote on November 1, 2025.",
    description:
      "A constitutional lawyer and longtime voice in the America First movement, Sanders takes the helm and prepares to open a new era for the Eagle entities and carry forward Phyllis\u2019s legacy for a new generation.",
    category: "Legacy",
    isMajor: true,
  },
  {
    id: "mccann-sanders-pse-president-2026",
    dateLabel: "January 2026",
    sortDate: "2026-01-01",
    title: "Molly McCann Sanders Appointed President of Phyllis Schlafly Eagles",
    summary:
      "Sanders is appointed President of Phyllis Schlafly Eagles, the 501(c)(4) Phyllis founded in 2016.",
    category: "Legacy",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "Phyllis Schlafly Eagles leadership",
    imagePath: "eagle-action/molly-homepage-2026-768.webp",
  },
  {
    id: "eagle-action-rebrand-2026",
    dateLabel: "February 2026",
    sortDate: "2026-02-01",
    title: "Phyllis Schlafly Eagles Rebrands as Eagle Action",
    summary:
      "Phyllis Schlafly Eagles rebrands as Eagle Action, signaling a new chapter of advocacy under Molly McCann Sanders\u2019 leadership.",
    description:
      "The rebrand carries Phyllis\u2019s grassroots model forward under a name oriented toward live political action, the public-facing identity for the next era of the movement.",
    category: "Legacy",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "Eagle Action launch video",
    videoPath: "eagle-action/eagle-action-rebrand.mp4",
  },
  {
    id: "abigail-circles-launch-2026",
    dateLabel: "May 2026",
    sortDate: "2026-05-01",
    title: "Eagle Action Launches Abigail Circles",
    summary:
      "Eagle Action launches Abigail Circles, its women\u2019s network to foster friendship, community, and the civic action Phyllis and her supporters used to change the course of American history.",
    category: "Legacy",
    isMajor: true,
    hasImageSlot: true,
    imageSlotLabel: "Abigail Circles",
    imagePath: "abigail-circles/abigail-circles-logo.png",
  },
] as const;

export const PHYL_TIMELINE_EVENTS_SORTED = [...PHYL_TIMELINE_EVENTS].sort((a, b) =>
  a.sortDate.localeCompare(b.sortDate),
);
