-
Notifications
You must be signed in to change notification settings - Fork 5
Signup form updated with bootstrap #1044
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThe user registration form was refactored to enhance its structure and visual appearance by incorporating Bootstrap classes, improving accessibility, and making the markup more semantically organized. The form now uses explicit local submission and updated input types and labels for clarity and consistency. Changes
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
dlwr
left a comment
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.
🚀 🚀
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.
Actionable comments posted: 1
🧹 Nitpick comments (4)
app/views/registrations/new.html.erb (4)
1-1: Eliminate redundantmethod: :postand use route helper
form_withdefaults to POST for new records, so you can dropmethod: :post. Also prefer using your named route (e.g.signup_path) instead of the hardcoded string.
2-5: Leverage Rails’ auto-generated IDs
You’re manually settingid: "user_name"even though Rails will generate the matchingidandforattributes. Dropping the explicitidreduces boilerplate and risk of mismatches.
12-15: Add password guidance text
Consider adding a<div class="form-text">below the password field (or a placeholder) to outline requirements (min length, character rules). This improves UX and reduces support friction.
22-23: Ensure proper button spacing
For consistent vertical rhythm, wrap the submit button in a<div class="mb-3">or add a utility class likemt-3on the button.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
app/views/registrations/new.html.erb(1 hunks)
🔇 Additional comments (1)
app/views/registrations/new.html.erb (1)
17-20: Confirmation label clarity
Great update changing the default symbol to “Confirm Password”—it’s clear and user-friendly.
| <div class="mb-3"> | ||
| <%= form.label :email, "Email address", class: "form-label" %> | ||
| <%= form.email_field :email, class: "form-control", id: "user_email", aria: { describedby: "emailHelp" } %> | ||
| </div> |
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.
Resolve missing aria-describedby reference
You’ve added aria: { describedby: "emailHelp" } but there’s no element with that ID. Either remove the attribute or add a help text block, for example:
<div id="emailHelp" class="form-text">We'll never share your email.</div>🤖 Prompt for AI Agents
In app/views/registrations/new.html.erb around lines 7 to 10, the email input
field has an aria-describedby attribute referencing "emailHelp" but no element
with that ID exists. To fix this, add a help text element with id="emailHelp"
below the email field, for example a div with class "form-text" containing the
message "We'll never share your email." This will ensure the aria-describedby
attribute correctly references an existing element.
Summary by CodeRabbit