Skip to content

Conversation

@annavik
Copy link
Member

@annavik annavik commented Oct 29, 2025

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

  • Setup a new GBIF select component (similar to our taxa select component, except this will call the GBIF API in the background)
  • Setup a form where users with taxa create permissions can add global taxa

Related Issues

Closes #975

Detailed Description

Notes

  • Add globally or to project? I couldn't notice a difference when testing.
  • What happens if a user adds the wrong parent? Do we need more checks here?
  • How to limit the GBIF search? Currently allowing add all taxa below Insecta. Is this too flexible?

Screenshots and videos

Screenshot 2025-10-29 at 11 42 46
Screen.Recording.2025-10-29.at.11.39.21.mov

@netlify
Copy link

netlify bot commented Oct 29, 2025

Deploy Preview for antenna-preview ready!

Name Link
🔨 Latest commit 8074731
🔍 Latest deploy log https://app.netlify.com/projects/antenna-preview/deploys/6901f4e676880b000865be20
😎 Deploy Preview https://deploy-preview-1020--antenna-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 27 (🔴 down 4 from production)
Accessibility: 80 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

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
Copy link
Member Author

@annavik annavik Oct 29, 2025

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!

@annavik annavik requested a review from mihow October 29, 2025 16:41
@annavik annavik marked this pull request as ready for review October 29, 2025 16:41
Copy link
Collaborator

@mihow mihow left a 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.

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.

Make it possible for users to add missing species

3 participants