Skip to content

Conversation

mihow
Copy link
Collaborator

@mihow mihow commented Sep 4, 2025

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!

image image

This has been tested more thoroughly in a previous environments. I am cherry picking this feature to main now.

* 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
Copy link

netlify bot commented Sep 4, 2025

Deploy Preview for antenna-preview ready!

Name Link
🔨 Latest commit f6e70cb
🔍 Latest deploy log https://app.netlify.com/projects/antenna-preview/deploys/68ca3fdd9dcfef00087063b8
😎 Deploy Preview https://deploy-preview-940--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: 72 (🟢 up 12 from production)
Accessibility: 89 (🟢 up 9 from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 100 (🟢 up 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.

@mihow mihow changed the title Feat/taxa covers and references Taxon cover images and external references Sep 4, 2025
@mihow mihow marked this pull request as ready for review September 17, 2025 04:58
@Copilot Copilot AI review requested due to automatic review settings September 17, 2025 04:58
Copy link
Contributor

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

@mihow mihow merged commit 3866aff into main Sep 17, 2025
8 checks passed
@mihow mihow deleted the feat/taxa-covers-and-references branch September 17, 2025 05:06
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.

1 participant