Skip to content

Update occurrence creation through locality -> occurrences tab, and improve tables - #1241

Merged
juhanikat merged 57 commits into
mainfrom
update-occurrence-creation-and-locality-occurrence-tab
Oct 15, 2026
Merged

juhanikat merged 57 commits into
mainfrom
update-occurrence-creation-and-locality-occurrence-tab

Conversation

@juhanikat

@juhanikat juhanikat commented Sep 3, 2026 •

Copy link
Copy Markdown
Collaborator

New occurrences can now be created directly from the Locality -> Occurrences tab. Creating new Occurrences directly from the Occurrences table is still disabled.

When creating a new Occurrence, the locality is set automatically, and the species can only be selected from a table of existing species. Species that are already listed as Occurrences for that locality are not able to be selected.

This PR also changes some functionality for the tableviews, for example, clicking rows in some editing tables no longer navigates the user to the details of those rows.

@juhanikat juhanikat changed the title Update occurrence creation, and locality -> occurrences tab Update occurrence creation through locality -> occurrences tab, and add tests Sep 7, 2026
@juhanikat juhanikat changed the title Update occurrence creation through locality -> occurrences tab, and add tests Update occurrence creation through locality -> occurrences tab, and improve tables Sep 19, 2026
@karilint
karilint self-requested a review October 6, 2026 08:54

@karilint karilint left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When a new Occurrence is created and a new Species is made using an existing species as a template, the value of Succlass or Suborder is not copied to the new species.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Comment thread backend/src/services/locality.ts
Comment thread frontend/src/components/Occurrence/OccurrenceDetails.tsx Outdated
Comment thread cypress/e2e/locality.cy.js Outdated
Comment thread cypress/e2e/ui.cy.js Outdated
Comment thread frontend/src/components/Occurrence/OccurrenceDetails.tsx
Comment thread frontend/src/components/Occurrence/Tabs/OccurrenceCoreTab.tsx Outdated
Comment thread frontend/src/components/Occurrence/Tabs/OccurrenceWearTab.tsx
Comment thread frontend/src/components/TableView/TableView.tsx Outdated
juhanikat and others added 3 commits October 15, 2026 11:28
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@juhanikat
juhanikat marked this pull request as ready for review October 15, 2026 09:37
@juhanikat
juhanikat merged commit af4d022 into main Oct 15, 2026
3 of 5 checks passed
@juhanikat
juhanikat deleted the update-occurrence-creation-and-locality-occurrence-tab branch October 15, 2026 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants