Connected to frontend with e2e testing on create member and sign up form - #60
Merged
Conversation
Member
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Allimonae
force-pushed
the
create-member-connect
branch
4 times, most recently
from
July 24, 2026 17:10
c3deb0a to
d3b485e
Compare
Allimonae
marked this pull request as ready for review
July 24, 2026 17:17
Graphite Automations"Request reviewers once CI passes" took an action on this PR • (07/24/26)2 reviewers were added to this PR based on Henry Chen's automation. |
spiffyy99
reviewed
Jul 26, 2026
spiffyy99
reviewed
Jul 26, 2026
Allimonae
force-pushed
the
create-member-connect
branch
2 times, most recently
from
July 31, 2026 17:21
447a9d9 to
81f1c34
Compare
arklian
approved these changes
Aug 3, 2026
Member
Author
Merge activity
|
Allimonae
force-pushed
the
create-member-connect
branch
from
August 3, 2026 17:04
81f1c34 to
4ec82f8
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




Summary
matchingPreftomatchPrefacross the frontend/api/membersendpointWhat changed?
matchingPreftomatchPrefin theMemberProfileValuesinterface, Zod schema, and all related form field bindings and handlers inSignUpForm.tsx.matchingPrefOptionsvariable tomatchingPreferenceOptionsfor clarity.Promise.resolve()stub inSignUpForm's submit handler with a realPOST /api/membersfetch call. On success, the form is reset; on failure, an error message from the API response (or a fallback) is displayed; on network error, a connection-specific message is shown.MemberControllerTestcovering successful member creation, validation rejection on blankfullName, and conflict response on duplicate email.MemberServiceTestcovering successful member creation with all fields and duplicate email detection (verifyingcreateMemberon the repo is never called in that case).How to test?
/api/members, resets on success, and displays appropriate error messages on failure or network issues.MemberControllerTestandMemberServiceTestand confirm all tests pass.Why make this change?
The
matchingPreffield name was inconsistent with the backend'smatchPrefnaming convention, causing a mismatch between the frontend payload and the API contract. The form also lacked a real API integration, relying on a placeholder stub that never actually persisted data. Tests were added to establish baseline coverage for the member creation flow.