Skip to content

feat: Mentee registration - Final#247

Merged
womencodingcommunity merged 10 commits intomainfrom
mentee_registration_fix_ui
Mar 7, 2026
Merged

feat: Mentee registration - Final#247
womencodingcommunity merged 10 commits intomainfrom
mentee_registration_fix_ui

Conversation

@dricazenck
Copy link
Collaborator

@dricazenck dricazenck commented Mar 7, 2026

Description

Add components for Steps 1-3 of the mentee registration form. Included form inputs, validations, and supporting tests to ensure functionality aligns with design.

Type

  • New Feature
  • Code Refactor

Screenshots

After:
Mentee Page 1:
image
image
image

Mentor Selection:
image
image
image
image

Before:
image

Pull request checklist

Please check if your PR fulfills the following requirements:

  • I checked and followed the contributor guide
  • I have tested my changes locally.
  • I have added a screenshot from the website after I tested it locally

Part of #230

Add components for Steps 1-3 of the mentee registration form. Included form inputs, validations, and supporting tests to ensure functionality aligns with design.
Simplify form schema and UI by eliminating the unused `cycleYear` field. Updated validations and adjusted mentorship type section to reflect current form logic.
…tants, update form schema and experience options

Removed redundant `Software Development` group in `TECHNICAL_AREA_GROUPS`, adjusted `Slack display name` and `LinkedIn URL` validation, and refined experience dropdown labels for better clarity.
Replace the placeholder console.log and fake promise delay with a real
/api/mentee-registration Next.js route that proxies the payload to the
backend platform endpoint. The page now renders a success screen on
completion and surfaces API error messages as an inline alert. Schema
validation was tightened (50-char minimum for whyMentor, availableHsMonth
capped at 224, isWomen field added). Structured logging via bs-logger
replaces console.* calls in api.ts, and merge conflicts in pnpm-lock.yaml
are resolved.
The `global` object is Node.js-specific, while `globalThis` is the
standard ECMAScript cross-platform equivalent. Using `globalThis`
improves compatibility and follows modern best practices. Also removes
a stale comment and reformats an assertion for better readability.
dricazenck and others added 3 commits March 7, 2026 20:38
Add project conventions documentation (CLAUDE.md) covering the pre-commit
hook, Prettier config, ESLint rules, and testing standards. Also apply
Prettier auto-formatting to several components and tests that had lines
exceeding the 80-char print width, keeping the codebase consistent with
the enforced style config.
Fix all ESLint violations flagged after enabling stricter linting:
reorder imports to satisfy the import/order rule (external before
internal, with newlines between groups), escape an unescaped apostrophe
in Step5Review, replace console.log/error calls with the bs-logger
utility to satisfy the no-console rule, and normalise import paths to
use the configured TypeScript aliases.
…tration_complete

feat: mentee registration API submission
The @schemas path alias is not configured in tsconfig, causing a runtime
resolution error. Revert to the working relative-style path
`schemas/mentorSchema`. Also revert the bs-logger usage in onSubmit
since it was incorrectly introduced — the logger import was removed but
the call remained, which would cause a build error.
Reorganise test files from co-located __tests__ folders (next to source)
into a centralised src/__tests__/ directory, mirroring the api/ and
pages/ sub-structure. This aligns with the project's preferred test
layout and makes test files easier to discover across the codebase.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 7, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
5.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@womencodingcommunity womencodingcommunity merged commit 4699f9d into main Mar 7, 2026
2 of 5 checks passed
@womencodingcommunity womencodingcommunity deleted the mentee_registration_fix_ui branch March 7, 2026 22:58
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.

2 participants