Skip to content

Comments

Rename Locality-Species UI labels to Occurrence/Occurrences#1064

Merged
karilint merged 1 commit intocodex/plan-feature-updates-for-occurrence-termfrom
copilot/sub-pr-1063
Feb 19, 2026
Merged

Rename Locality-Species UI labels to Occurrence/Occurrences#1064
karilint merged 1 commit intocodex/plan-feature-updates-for-occurrence-termfrom
copilot/sub-pr-1063

Conversation

Copy link
Contributor

Copilot AI commented Feb 19, 2026

User-facing "Locality-Species" labels are replaced with "Occurrence/Occurrences" across the frontend. Backend identifiers (now_ls, API contracts, Prisma schema) are untouched.

Changes

  • New constants file frontend/src/constants/occurrenceLabels.ts — single source of truth for all occurrence-related UI strings:

    export const occurrenceLabels = {
      singular: 'Occurrence',
      plural: 'Occurrences',
      crossSearchTitle: 'Occurrences',
      informationSectionTitle: 'Occurrences',
      addNewButton: 'Add new Occurrence',
    } as const
  • Router — added /occurrence/:id? alongside the existing /crosssearch/:id? for backward compatibility; CrossSearchTable url prop updated to "occurrence" so row-click navigation targets the new route

  • NavBar — "Locality-Species → /crosssearch" nav entry replaced with "Occurrences → /occurrence"

  • FrontPage — statistics counter label updated from "Locality-species" to occurrenceLabels.plural

  • CrossSearchTabletitle updated from "Locality-Species-Cross-Search" to occurrenceLabels.crossSearchTitle

  • LocalitySpeciesTab — Grouped section title ("Locality-Species Information" → occurrenceLabels.informationSectionTitle) and modal button text ("Add new Locality Species" → occurrenceLabels.addNewButton)

  • SpeciesDetails — tab title "Locality Species" → occurrenceLabels.plural

  • TableViewshowNewButton condition replaced brittle title-string comparison with !isCrossSearchTable

  • Tests — NavBar, TableView, and LocalitySpeciesTab tests updated to assert new labels; new NavBar.test.tsx verifies nav entry renders "Occurrences"

  • Docslocality-species-ui-label-inventory.md inventory file and CHANGELOG updated


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add T1 inventory of Locality-Species UI label usages Rename Locality-Species UI labels to Occurrence/Occurrences Feb 19, 2026
Copilot AI requested a review from karilint February 19, 2026 15:07
@karilint karilint marked this pull request as ready for review February 19, 2026 15:09
@karilint karilint merged commit 513c84e into codex/plan-feature-updates-for-occurrence-term Feb 19, 2026
1 check passed
@karilint karilint deleted the copilot/sub-pr-1063 branch February 19, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants