-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: Feature search UI #841
Conversation
Preview Firebase Hosting URL: https://mobility-feeds-dev--pr-841-7x16zl5k.web.app |
@Alessandro100 This looks fabulous! I think you mentioned this in standup, but the -planned- backend functionality would be for everything within 1 feature group to be an OR and selections across feature groups would be an AND? For later: we're going to have a lot of chips at a certain point as search becomes more comprehensive...wondering about design patterns for how to delineate different subsearches (location vs. feature vs maybe mode in the future) Please make the other issues and we'll prioritize them to make this launch ready sometime in January 🚀 |
@emmambd we discussed it further amongst the dev and it was decided that it would make more sense for it to all be OR statements. I did some UX research and found that its VERY contextual to the problem If the main use case will be to broadly discover feed, then OR everywhere would make sense I think for the default case, having everything being an OR is good and simple. In the future we could have an "Advanced" Search to accommodate the power users / researchers who are looking for something very specific For the Chips (and having many of them) I already thought of ideas on grouping them and then having a drop down ex:
this could be a future enhancement |
@Alessandro100 This solution makes a ton of sense to me! And agreed on the future chip improvement. Awesome work on this and taking something complex and giving it clarity in a short period of time |
I think if we click a parent category like |
@davidgamez we could have |
If we convert the operation to an "AND," then nothing disappears. Example "Flexible Services" and "Booking rules" |
@davidgamez Discussing these enhancements would be easier done in person or in a call, but I agree there is improvement to be done in regards to grouping and dealing with UI clutter of many search filters |
@Alessandro100 and I connected and went over the design. For features, it is OK to leave it as it is; in the case of more complex filtering like location, we will need to apply a different strategy as this behavior doesn't scale nicely for filters with many sub-categories. cc: @emmambd |
closes: #806
Summary:
Note
The feature search will be commented out before merge + will reduce the left column width size
Note
The feature filters do not connect to the backend and are just UI ready
Expected behavior:
For gtfs / gtfs_rt selection, functionality should remain the same. You will now be able to refresh the page and have all the data type stay permanent
You should be able to see the selected filters through the chips
Follow up tickets
Testing tips:
Play with the Feeds search page
Note: It's expected for pagination to reset when selecting a datatype or feature
Please make sure these boxes are checked before submitting your pull request - thanks!
./scripts/api-tests.sh
to make sure you didn't break anythingWith Feature filter
![Screenshot 2024-11-28 at 15 17 32](https://private-user-images.githubusercontent.com/18631060/391110946-3edb3037-a09c-46de-9033-acfa400a9a11.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5ODE2NTgsIm5iZiI6MTczODk4MTM1OCwicGF0aCI6Ii8xODYzMTA2MC8zOTExMTA5NDYtM2VkYjMwMzctYTA5Yy00NmRlLTkwMzMtYWNmYTQwMGE5YTExLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDAyMjIzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUyNDgyOTMxYzc3M2YyMWM0MDFmNmY2MjJlOWM1ZjkyZDIwNDgyMjA2ZjI4NjBjOTVhZmI4NWM2ZTNiZjUzOWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.bZ5KBvuPBiv8eXVvXD406Y_1X18H8X405p-Hw8cDTWc)
Feature Filter Mobile
![image](https://private-user-images.githubusercontent.com/18631060/391112544-990ca5a7-8c1c-4281-abb7-7999638aed77.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5ODE2NTgsIm5iZiI6MTczODk4MTM1OCwicGF0aCI6Ii8xODYzMTA2MC8zOTExMTI1NDQtOTkwY2E1YTctOGMxYy00MjgxLWFiYjctNzk5OTYzOGFlZDc3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDAyMjIzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVhNDcxODk4YjQyZTFkNjFlNDBiNzk0ZTVkOWQ3ZTczMzA2MDk0MTE3NzY5NWQzMWQ4MzEyMmYxNTM1NmI5NjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.H1B31XqzWOk0EehwfivHB-3A6_LfiQYo-PRMCc4aHKQ)
With feature search commented out
![Screenshot 2024-11-28 at 15 17 04](https://private-user-images.githubusercontent.com/18631060/391111020-71d382ec-b8d1-412b-9720-8816a387d7ee.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5ODE2NTgsIm5iZiI6MTczODk4MTM1OCwicGF0aCI6Ii8xODYzMTA2MC8zOTExMTEwMjAtNzFkMzgyZWMtYjhkMS00MTJiLTk3MjAtODgxNmEzODdkN2VlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDAyMjIzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRhYmUxMTk3ZTQwZjEyOWRiZDA2NmNkNGRjZGJhNjcxZGUwNzhmYmI2NDc3ZDFmOTQxYTdiNTM5MWEwNWZlZTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hwNrwiOkhzKTUayb21u58DMgsXpDyYVOOHPdnHYMI8g)
Url parameters
![Screenshot 2024-11-28 at 15 17 44](https://private-user-images.githubusercontent.com/18631060/391111081-5e01e09c-23cf-4375-bd3e-2dee35a4bbcb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5ODE2NTgsIm5iZiI6MTczODk4MTM1OCwicGF0aCI6Ii8xODYzMTA2MC8zOTExMTEwODEtNWUwMWUwOWMtMjNjZi00Mzc1LWJkM2UtMmRlZTM1YTRiYmNiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA4VDAyMjIzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEwMDBhNDFjODgwNmI2MTQ2YzQ3NTAzMzgzODlmZDMyMWNiOTExZjEyMmY4Y2VkNTBlNDNlNWM1OWY0NWE4OTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.UH1jXfXmCQ3o6mqrnlw397tNtwbQgmgPaNg3mkb2828)