-
Notifications
You must be signed in to change notification settings - Fork 19
Rearrange firewall rules form and add help text #2190
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
app/forms/firewall-rules-create.tsx
Outdated
| <div className="flex flex-col gap-3"> | ||
| <TextField | ||
| name="portRange" | ||
| label="Port filters" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to add a prop that lets me tweak the styling on this label to match the others. Or just use the inner components directly, but that’s fiddly too.
|
Some of those notes could possible be moved to the help text / description directly on the input. Whilst you're in here, some placeholder values would be wonderful. |
|
I don't think I can squeeze the help into individual fields because it's really about the whole thing. Placeholders are also kind of tough because they depend on which type you have picked in the listbox. |
|
That's a cool idea. I'll see if there's a way to make it work. |
|
What you might be thinking of that came up before was making Enter submit the mini form when you're in one of those fields rather than submitting the whole form, we fixed that. |
56e9108 to
75c40d1
Compare
|
I don't think I can make it make sense to block leftover stuff in the input. You wouldn't want to just disable submit, you'd want it to be a validation error you can go find, but you'd only want it to be triggered by submit. We'd have to get pretty elaborate and I don't think it's worth it. I added validation for port range because it's easy, but for the target and host fields, it's a lot more complicated because the way you validate the value input depends on which type is selected in the listbox. That's captured in #2187. |
|
I'm going to merge this as-is and we can redo the text boxes in a different style as a followup per design feedback. |
oxidecomputer/console@d2a9345...43f325d * [43f325d6](oxidecomputer/console@43f325d6) oxidecomputer/console#2200 * [3b574e53](oxidecomputer/console@3b574e53) oxidecomputer/console#2163 * [b8c79ca8](oxidecomputer/console@b8c79ca8) oxidecomputer/console#2198 * [f7fb90aa](oxidecomputer/console@f7fb90aa) oxidecomputer/console#2197 * [2e7e4a0a](oxidecomputer/console@2e7e4a0a) oxidecomputer/console#2190 * [1e576fcb](oxidecomputer/console@1e576fcb) oxidecomputer/console#2192 * [7c56214f](oxidecomputer/console@7c56214f) oxidecomputer/console#2188
oxidecomputer/console@d2a9345...e7b243b * [e7b243ba](oxidecomputer/console@e7b243ba) oxidecomputer/console#2203 * [43f325d6](oxidecomputer/console@43f325d6) oxidecomputer/console#2200 * [3b574e53](oxidecomputer/console@3b574e53) oxidecomputer/console#2163 * [b8c79ca8](oxidecomputer/console@b8c79ca8) oxidecomputer/console#2198 * [f7fb90aa](oxidecomputer/console@f7fb90aa) oxidecomputer/console#2197 * [2e7e4a0a](oxidecomputer/console@2e7e4a0a) oxidecomputer/console#2190 * [1e576fcb](oxidecomputer/console@1e576fcb) oxidecomputer/console#2192 * [7c56214f](oxidecomputer/console@7c56214f) oxidecomputer/console#2188
oxidecomputer/console@d2a9345...e7b243b * [e7b243ba](oxidecomputer/console@e7b243ba) oxidecomputer/console#2203 * [43f325d6](oxidecomputer/console@43f325d6) oxidecomputer/console#2200 * [3b574e53](oxidecomputer/console@3b574e53) oxidecomputer/console#2163 * [b8c79ca8](oxidecomputer/console@b8c79ca8) oxidecomputer/console#2198 * [f7fb90aa](oxidecomputer/console@f7fb90aa) oxidecomputer/console#2197 * [2e7e4a0a](oxidecomputer/console@2e7e4a0a) oxidecomputer/console#2190 * [1e576fcb](oxidecomputer/console@1e576fcb) oxidecomputer/console#2192 * [7c56214f](oxidecomputer/console@7c56214f) oxidecomputer/console#2188

The diff is a nightmare compared to the amount of changes because it's a lot of shuffling and fiddly margin stuff. I'd focus on checking the rendered result.
https://console-git-firewall-rules-help-oxidecomputer.vercel.app/projects/mock-project/vpcs/mock-vpc