feat(sign-up-page): implement sign-up page with form fields, validation, and Google sign-in option - #11
feat(sign-up-page): implement sign-up page with form fields, validation, and Google sign-in option#11LikithaYadavG wants to merge 1 commit into
Conversation
…on, and Google sign-in option
|
@cw-pr-agent review |
Change SummaryImplements the Sign Up page UI with form fields, submission handling, and Google sign-in action. Adds tests covering form field rendering, input interaction, and supporting buttons/links to ensure the page behaves as expected. Provides navigation guidance to the Sign In page from the new screen. File Changes
Based on 34933d8...8022a9d |
PR ScorecardScoreScoring MethodologyCommunication Scoring FrameworkThe overall communication score is a weighted average:
Formula: Code Scoring FrameworkThe scorecard evaluates code using 3 key reviewer questions:
PR Communication NotesDescription Quality
PR Size & Scope
Commit Messages
Issue NotesCode Correctness & Design Quality
Test Quality & Coverage
Code Readability & Maintainability
💬 Minor Issues (Nitpicks)Test Quality & Coverage
Code Readability & Maintainability
Based on 34933d8...8022a9d |
| const [password, setPassword] = useState(""); | ||
| const [confirmPassword, setConfirmPassword] = useState(""); | ||
|
|
||
| const handleSubmit = (event: React.FormEvent) => { |
There was a problem hiding this comment.
Severity: 🟠 Major
handleSubmit currently prevents default but never validates or triggers a sign-up flow; add at least a password/confirm match check and surface an error (and/or call into your auth API).
if (password !== confirmPassword) return setFormError("Passwords do not match");| </div> | ||
| </div> | ||
|
|
||
| <Button variant="outline" className="w-full"> |
There was a problem hiding this comment.
Severity: 🟠 Major
The “Continue with Google” button has no action; wire it to a handler (or accept an onGoogleSignIn prop) and set type="button" to avoid accidental form submits if layout changes.
<Button type="button" onClick={handleGoogleSignIn} ...>| import { render, screen } from "@testing-library/react"; | ||
| import userEvent from "@testing-library/user-event"; | ||
| import { describe, it } from "vitest"; | ||
| import { BrowserRouter } from "react-router-dom"; |
There was a problem hiding this comment.
Severity: 🟠 Major
Tests are mostly presence checks; add behavior assertions (e.g., sign-in link target and validation) and use MemoryRouter for isolation.
render(<MemoryRouter><SignUpPage /></MemoryRouter>);
expect(screen.getByRole('link',{name:/sign in/i})).toHaveAttribute('href','/signin');
PR OverviewPR Type: Feature Focus Areas for Architect Review
PR InsightsPotential PR Improvements
PR Strengths
|
PR Template & Definition of Done
What does this PR do?
What steps does your reviewer have to take to test this PR manually?
Pull Request standards checklist - Please check off
Testing checklist - Please check off
If you have not followed and completed any of the above, please explain why below.
N/A
Definition of Done - Please check off