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

Ability to Manage Custom Commute Methods #278

Open
dct0 opened this issue Feb 20, 2023 · 0 comments
Open

Ability to Manage Custom Commute Methods #278

dct0 opened this issue Feb 20, 2023 · 0 comments
Labels
difficulty::medium Challenging tasks enhancement New feature or request frontend Task must have a front end issue point::3 Issue will take quite some work and time to resolve. priority::low Low priority issue

Comments

@dct0
Copy link
Contributor

dct0 commented Feb 20, 2023

Is your feature request related to a problem? Please describe.
The Commute Method selector in the visit form uses local storage to store its options (see usePersistentState hook), but has no way of modifying them after creating custom options.

Describe the solution you'd like
Replace the default Option component for CreateSelect with a custom one with an X button on the right so options can be deleted.
https://react-select.com/components#replacing-components

Describe alternatives you've considered
Something on the profile page to manage them is also possible if you can keep it consistent with the design.

Additional context
This issue might be harder simply because the react select docs are hell.

@dct0 dct0 added enhancement New feature or request frontend Task must have a front end issue difficulty::medium Challenging tasks priority::low Low priority issue point::3 Issue will take quite some work and time to resolve. labels Feb 20, 2023
@dct0 dct0 changed the title Ability to manage saved Commute Methods Ability to Manage Custom Commute Methods Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty::medium Challenging tasks enhancement New feature or request frontend Task must have a front end issue point::3 Issue will take quite some work and time to resolve. priority::low Low priority issue
Projects
None yet
Development

No branches or pull requests

1 participant