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

Add dropdowns to router route form for destinations and targets #2448

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

charliepark
Copy link
Contributor

This PR converts the text fields in the VPC Router Routes form to be — when appropriate — prepopulated dropdowns.

For Destinations, that's when the Destination Type has been selected as Subnet; for Targets, Instances.

Screenshot 2024-09-16 at 12 37 14 PM

Closes #2388

Copy link

vercel bot commented Sep 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Sep 20, 2024 9:28pm

name="destination.value"
label="Destination value"
control={control}
placeholder="Enter a destination value"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do like matching the API shape roughly, but maybe we can tweak some words to make this a little more human-feeling. Maybe it's enough to just change the placeholder based on the type selected, or maybe we want to go as far as changing the label? It would also be nice to get some kind of guidance about the right format for an IP network. I assume it's some kind of block, maybe we can give an example.

image

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

Successfully merging this pull request may close these issues.

Add combobox for routes
2 participants