Skip to content

Ability to Manage Custom Commute Methods #278

@dct0

Description

@dct0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty::mediumChallenging tasksenhancementNew feature or requestfrontendTask must have a front end issuepoint::3Issue will take quite some work and time to resolve.priority::lowLow priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions