Skip to content

🎨 Palette: Enable native Enter to submit on Invite Member Dialog#220

Open
aarjava wants to merge 4 commits into
mainfrom
palette-invite-member-enter-submit-1478621497719178007
Open

🎨 Palette: Enable native Enter to submit on Invite Member Dialog#220
aarjava wants to merge 4 commits into
mainfrom
palette-invite-member-enter-submit-1478621497719178007

Conversation

@aarjava

@aarjava aarjava commented Jul 2, 2026

Copy link
Copy Markdown
Owner

💡 What: Enabled native "Enter to submit" functionality on the InviteMemberDialog component by wrapping the inputs in a <form> and linking the submit button to it via the HTML5 form attribute.
🎯 Why: A common frustration in modals/dialogs acting as forms is the lack of "Enter to submit". Faux forms (wrapped in standard divs) break this implicit submission behavior. Using a native <form> provides a semantic and robust solution over intercepting individual keydown events which could cause side effects on other elements.
♿ Accessibility: Improves keyboard navigation and usability by making form submission match standard browser behavior.


PR created automatically by Jules for task 1478621497719178007 started by @aarjava

🎨 Palette: Enable "Enter to confirm" on Invite Member form
* I wrapped the inputs in a standard `<form>` tag.
* I linked the external DialogFooter action button to the form via the HTML5 `form="..."` attribute.
* I configured it to allow users to intuitively press "Enter" in the input fields to send the form without needing mouse interaction.

Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
fluxlens-ai Ready Ready Preview, Comment Jul 2, 2026 11:57pm

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a598bb5588

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +92 to +93
<form
id="invite-member-form"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve custom validation on submit

Adding a native form here turns on browser constraint validation for the existing required and type="email" inputs. When a user submits with a blank name/email or an email that fails the browser check, the browser blocks the submit event before handleSubmit() runs, so the component no longer populates its styled FormField errors/role="alert" messages that the old click handler showed. Add noValidate to the form (while keeping onSubmit) or otherwise route invalid submissions through the existing validator.

Useful? React with 👍 / 👎.

Fix CI errors including Node.js deprecation in workflows, TS resolution
for CSS modules, response status type assertions, store hygiene
test artifact leaks, and ambiguous text lookups in DOM tests.

Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com>
Fix CI errors including Node.js deprecation in workflows, TS resolution
for CSS modules, response status type assertions, store hygiene
test artifact leaks, and ambiguous text lookups in DOM tests.

Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com>
Fix CI errors including Node.js deprecation in workflows, TS resolution
for CSS modules, response status type assertions, store hygiene
test artifact leaks, and ambiguous text lookups in DOM tests.

Co-authored-by: aarjava <218419324+aarjava@users.noreply.github.com>
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.

1 participant