Rename Locality-Species UI labels to Occurrence/Occurrences#1064
Merged
karilint merged 1 commit intocodex/plan-feature-updates-for-occurrence-termfrom Feb 19, 2026
Merged
Conversation
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
513c84e
into
codex/plan-feature-updates-for-occurrence-term
1 check passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:Router — added
/occurrence/:id?alongside the existing/crosssearch/:id?for backward compatibility;CrossSearchTableurlprop updated to"occurrence"so row-click navigation targets the new routeNavBar — "Locality-Species → /crosssearch" nav entry replaced with "Occurrences → /occurrence"
FrontPage — statistics counter label updated from "Locality-species" to
occurrenceLabels.pluralCrossSearchTable —
titleupdated from"Locality-Species-Cross-Search"tooccurrenceLabels.crossSearchTitleLocalitySpeciesTab — Grouped section title ("Locality-Species Information" →
occurrenceLabels.informationSectionTitle) and modal button text ("Add new Locality Species" →occurrenceLabels.addNewButton)SpeciesDetails — tab title "Locality Species" →
occurrenceLabels.pluralTableView —
showNewButtoncondition replaced brittle title-string comparison with!isCrossSearchTableTests — NavBar, TableView, and LocalitySpeciesTab tests updated to assert new labels; new
NavBar.test.tsxverifies nav entry renders "Occurrences"Docs —
locality-species-ui-label-inventory.mdinventory file and CHANGELOG updated💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.