Skip to content

Species Suggestion Frontend#468

Merged
BryonLewis merged 34 commits intomainfrom
species-suggestion-frontend
Apr 10, 2026
Merged

Species Suggestion Frontend#468
BryonLewis merged 34 commits intomainfrom
species-suggestion-frontend

Conversation

@BryonLewis
Copy link
Copy Markdown
Collaborator

@BryonLewis BryonLewis commented Apr 2, 2026

Depends on #467

Used as a separate PR to work on the UI portion of the Species Suggestion.

  • Suggested specieis utilize newer endpoint for get_specieis that allows providing a recording Id and getting back a new format where species have in_range set to true, false or null for if the species is suggested
  • The species listing in the table will sort the suggested species to the top and provide a background color and a map icon indicating that they are suggested species.
  • The dropdown has a filter at the top for the "Species in the suggested recording range" that will show the suggested species at the top

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 2, 2026

Deploying bats-ai with  Cloudflare Pages  Cloudflare Pages

Latest commit: 827a664
Status: ✅  Deploy successful!
Preview URL: https://536fc1c8.bats-ai.pages.dev
Branch Preview URL: https://species-suggestion-frontend.bats-ai.pages.dev

View logs

BryonLewis and others added 20 commits April 6, 2026 13:31
Co-authored-by: Brian Helba <brian.helba@kitware.com>
Co-authored-by: Brian Helba <brian.helba@kitware.com>
Co-authored-by: Brian Helba <brian.helba@kitware.com>
Base automatically changed from species-suggestion-backend to main April 8, 2026 18:23
@BryonLewis BryonLewis marked this pull request as ready for review April 10, 2026 14:39
@BryonLewis BryonLewis requested a review from naglepuff April 10, 2026 14:40
};

const categoryPriority: Record<string, number> = {
"suggested species by range location": 0,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this key ever used? If not, I think we should either remove it or use a constant to hold the value, which could be used here and above on L61 for the categoryColors array.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll update it. The other keys were smaller (typically 'single' , 'multiple', 'fequency') but I felt this one needed to have a title that was a bit more descriptive.

@BryonLewis BryonLewis force-pushed the species-suggestion-frontend branch from 24de27a to 827a664 Compare April 10, 2026 15:59
@BryonLewis BryonLewis merged commit aa979c2 into main Apr 10, 2026
5 checks passed
@BryonLewis BryonLewis deleted the species-suggestion-frontend branch April 10, 2026 17:16
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.

2 participants