-
Notifications
You must be signed in to change notification settings - Fork 5
Ability to Manage Custom Commute Methods #278
Copy link
Copy link
Open
Labels
difficulty::mediumChallenging tasksChallenging tasksenhancementNew feature or requestNew feature or requestfrontendTask must have a front end issueTask must have a front end issuepoint::3Issue will take quite some work and time to resolve.Issue will take quite some work and time to resolve.priority::lowLow priority issueLow priority issue
Metadata
Metadata
Assignees
Labels
difficulty::mediumChallenging tasksChallenging tasksenhancementNew feature or requestNew feature or requestfrontendTask must have a front end issueTask must have a front end issuepoint::3Issue will take quite some work and time to resolve.Issue will take quite some work and time to resolve.priority::lowLow priority issueLow priority issue
Type
Fields
Give feedbackNo fields configured for issues without a type.
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
usePersistentStatehook), but has no way of modifying them after creating custom options.Describe the solution you'd like
Replace the default Option component for
CreateSelectwith 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.