Skip to content
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

Adoptable Pets Refactor - show collection by species #1069

Closed
jmilljr24 opened this issue Oct 19, 2024 · 0 comments
Closed

Adoptable Pets Refactor - show collection by species #1069

jmilljr24 opened this issue Oct 19, 2024 · 0 comments
Assignees

Comments

@jmilljr24
Copy link
Collaborator

jmilljr24 commented Oct 19, 2024

We should render collections based on species
We discussed separate routes per species but think a single controller with URL param that works with Ransack directly e.g., q%5Bspecies%5D=1
We'd need to update the UI to allow users to click on each species (e.g. dropdown on the Pets nav link)

To do:
We'd need to enable Orgs to define which species they have (e.g. some are dogs only)

@jmilljr24 jmilljr24 self-assigned this Oct 19, 2024
kasugaijin pushed a commit that referenced this issue Oct 23, 2024
* add species url param

* remove species select from index

* update select for breed

* add species param to breed select

* add pet species button's to nav

* add species link to home page for logged in user

* adjust font size

* change dropdown to individual buttons

* change external form page to use individual buttons

* remove unused page

* use module

* change logout path

* i18n

* more i18n

* add species to header

* change link helper

* update tests for species specific / remove brital tests

* change test to use module

* add set_species and move breeds method to Pet model

* remove useless conditional

* update test

* comments
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

No branches or pull requests

1 participant