Skip to content

Conversation

@annavik
Copy link
Member

@annavik annavik commented Jan 20, 2026

Background

Will be a help for the upcoming class masking feature, but also something we have been wanting in general. This PR is still in draft mode.

Related to #997.

Missing BE stuff

  • Make it possible to add and remove taxa from taxa lists using the API ✅
  • Make it possible to access direct taxa only (exclude children) when using the API
  • Getting error 500 when creating new taxa list after the BE updates in this branch

Missing FE stuff

  • Make sure breadcrumbs are rendered correctly ✅
  • Show taxon details from taxa list detail view without changing route ✅
  • Update logic after API updates ✅

Notes

  • When we have decided on naming, setup new tab "Collections" and add "Taxa lists" as a sub view to this tab (can happen in follow up PR)
  • Expand taxa list detail view with more columns, or is it nice to keep it simple?
  • Fetching taxa is very slow in production, can we make it quicker by not consider related occurrences BE side? Similar to what we did for captures? Or is child taxa the problem?
  • If we can return more information about taxa lists in the taxa response, it would open up for more display options and quick actions in the generic taxa view

Screenshots

List view:
Screenshot 2026-01-20 at 15 03 48

Create view:
Screenshot 2026-01-20 at 15 03 56

Edit view:
Screenshot 2026-01-20 at 15 04 11

Delete view:
Screenshot 2026-01-20 at 15 04 21

Detail view:
Screenshot 2026-01-20 at 15 04 31

annavik and others added 13 commits January 14, 2026 12:07
* Initial plan

* Add sorting, timestamps and taxa_count to TaxaList API

Co-Authored-By: Claude <noreply@anthropic.com>

Co-authored-by: mihow <158175+mihow@users.noreply.github.com>

* Optimize taxa_count with query annotation

Co-Authored-By: Claude <noreply@anthropic.com>

Co-authored-by: mihow <158175+mihow@users.noreply.github.com>

* Format lists with trailing commas per black style

Co-Authored-By: Claude <noreply@anthropic.com>

Co-authored-by: mihow <158175+mihow@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mihow <158175+mihow@users.noreply.github.com>
Co-authored-by: Anna Viklund <annamariaviklund@gmail.com>
@netlify
Copy link

netlify bot commented Jan 20, 2026

Deploy Preview for antenna-preview ready!

Name Link
🔨 Latest commit dffa27d
🔍 Latest deploy log https://app.netlify.com/projects/antenna-preview/deploys/69739a942bf8df0008b994fc
😎 Deploy Preview https://deploy-preview-1094--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: 60 (🔴 down 20 from production)
Accessibility: 80 (🔴 down 9 from production)
Best Practices: 100 (🟢 up 8 from production)
SEO: 92 (🔴 down 8 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.

@netlify
Copy link

netlify bot commented Jan 20, 2026

👷 Deploy Preview for antenna-ssec processing.

Name Link
🔨 Latest commit dffa27d
🔍 Latest deploy log https://app.netlify.com/projects/antenna-ssec/deploys/69739a94f82f2100084cc534

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 20, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Co-Authored-By: Claude <noreply@anthropic.com>
@mihow
Copy link
Collaborator

mihow commented Jan 22, 2026

Exciting! I will look into the missing BE parts. But would love to merge some version of this sooner and continue to improve

@annavik
Copy link
Member Author

annavik commented Jan 23, 2026

Exciting! I will look into the missing BE parts. But would love to merge some version of this sooner and continue to improve

Yes, let's try get something out! I'm fine leaving everything under "Notes" for later. I have updated the PR description with current status. We can now add and remove taxa lists members from UI! 🎉

I think these two backend issues would be nice to fix before we try get this out, at least the first one (listed under "Missing BE stuff")...

Screenshot 2026-01-23 at 12 58 39 Screenshot 2026-01-23 at 12 59 12

@annavik
Copy link
Member Author

annavik commented Jan 23, 2026

Some observations when using the new endpoints to add and remove taxa from lists:

  • The endpoint to add taxon to a list returns 200 even if the taxon is already added
  • The endpoint to remove taxon from a list returns 200 even if the taxon is not a member if the list
  • The endpoint to remove taxon from a list uses method POST, maybe should beDELETE?
  • Maybe these endpoints should follow same structure as the project member endpoints? I'm thinking we have a similar situation of "related objects"...

Just some thoughts, I'm fine leaving this as is for now! Thank you so much for the help @mohamedelabbas1996, it worked well to hook up with FE 🙏

@annavik
Copy link
Member Author

annavik commented Jan 23, 2026

Question: does it make sense to check "can update" permission for the taxa list, before rendering controls for "Add taxon" and "Remove taxon"? This is what I do know! :)

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.

4 participants