Skip to content
SprecherEast
Issue 348

enhancement: Show the date on search results, so repeated events can be told apart

Back to our plan
Open
enhancementfrontendcmspriority: low

Type

enhancement

Summary

Search results can't tell repeated events apart: "council" lists four cards all titled "Common Council Meeting", with no date.

Problem

The search index (@payloadcms/plugin-search, src/modules/news/cms/searchSync.ts) copies an entry's title, slug, categories and search-engine fields, but no date, so toSearchResult gives every result publishedAt: null and event cards show no date. Found during the visual review for #200 (all six widths, both themes).

Proposed fix

Copy the event's start date (and a post's publishedAt) into the search entry in beforeSyncWithSearch, add the field to searchFields, generate a migration and reindex, and show it on the card.

Acceptance criteria

  • Not done: An event in search results shows its date; a post shows its publish date.
  • Not done: Existing entries get the date after a reindex.

Area

frontend, cms

Priority

priority: low


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab