-
Notifications
You must be signed in to change notification settings - Fork 5
Taxon cover images and external references #940
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
Conversation
* feat: management command for updating fields on existing Taxa from CSV * feat: try another title for example occurrence image * feat: allow manual filter for showing taxa without occurrences * feat: allow sorting by reference image for better demos
* feat: add fields for Taxon cover images and Fieldguide ID * feat: add cover image fields to Taxon model for the UI
✅ Deploy Preview for antenna-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…overs-and-references
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.
Pull Request Overview
This PR adds support for taxon cover images and external references (Fieldguide) by introducing new database fields and API endpoints. The changes enable species to have associated cover images with credits and fieldguide references for external taxonomy resources.
- Added database fields for fieldguide_id, cover_image_url, and cover_image_credit to the Taxon model
- Updated API serializers to expose the new fields in various endpoints
- Enhanced the TypeScript Species model with getters for the new fields
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
ami/main/models.py | Added three new fields to Taxon model for external references and cover images |
ami/main/migrations/0074_taxon_cover_image_credit_taxon_cover_image_url_and_more.py | Database migration to add the new fields |
ami/main/api/serializers.py | Updated serializers to include new fields in API responses |
ami/main/api/views.py | Added cover_image_url to TaxonViewSet ordering fields |
ui/src/data-services/models/species.ts | Added TypeScript getters for fieldguide_id, cover images, and refactored fieldguideUrl |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Summary
Fields for species cover images and external references (Fieldguide)
This is a remake of #871 and #822 that were added to the experimental #820 branch.
Follow-up PR with auto-selection of cover image: #832
I tested with our existing global species list with image fields & fieldguide IDs. It still works!
This has been tested more thoroughly in a previous environments. I am cherry picking this feature to main now.