-
Notifications
You must be signed in to change notification settings - Fork 11
Add taxa from UI #1020
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add taxa from UI #1020
Conversation
✅ Deploy Preview for antenna-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| import { useEffect, useState } from 'react' | ||
| import { GBIFTaxon } from './types' | ||
|
|
||
| const BASE_URL = 'https://api.gbif.org/v1/species' // See docs at https://techdocs.gbif.org/en/openapi/v1/species |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More details about the GBIF API call in this file!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a awesome! The search works well.
- I like the rank filter. I'm not sure everyone will, but as long as it defaults to SPECIES I think it's an effective way to limit the search results and find what you are looking for.
- I think the Name field should be presented more as a search field, or at least say "Search" instead of "Select a value".
- I think it's important that we add parents automatically. That seems quite cumbersome for users. The GBIF API should return a parent ID. But we will likely need a backend function to connect the parent to existing parents in the Antenna DB.
- OR you could reverse the form fields a bit. Ask: "Where do you want to place the new taxa?" Then you search our existing taxa for the proper parent. Then we will know the rank of the parent, and we could even show existing children. Then when you search for a taxa, we already know the rank to filter on.
I'm guessing the global vs. project taxa filter was added to the ood branch but not in main.
I think we can allow users to add global taxa if they are from GBIF. But I know Yves and Chris will want to add custom taxa not in GBIF, which should be just for their project.

Summary
A small first step towards more flexible taxa management. Still more work and discussions to have related to this, but at least this will make it possible for users to add missing taxa that is present on GBIF. See notes below for some specific questions to discuss before merge.
List of Changes
Related Issues
Closes #975
Detailed Description
Notes
Screenshots and videos
Screen.Recording.2025-10-29.at.11.39.21.mov