Skip to content

Fix tech languages#256

Merged
dricazenck merged 3 commits intomainfrom
fix_tech_languages
Mar 19, 2026
Merged

Fix tech languages#256
dricazenck merged 3 commits intomainfrom
fix_tech_languages

Conversation

@dricazenck
Copy link
Copy Markdown
Collaborator

@dricazenck dricazenck commented Mar 19, 2026

Description

Mentorship registration forms previously defined Zod schemas and option arrays inline and independently in both menteeSchema.ts and mentorSchema.ts, leading to duplication and divergence. This PR introduces src/schemas/commonSchema.ts as the single source of truth for shared schemas (technicalAreaSchema, technicalLanguageSchema, proficiency schemas, countrySchema, networkSchema, mentorshipFocusAreaSchema), and consolidates all UI option arrays into mentorshipConstants.ts. It also expands the available tech areas (Security, SRE, Network Engineering) and languages (Bash, Dart, HCL, Scala, Swift, Terraform, OpenTofu, Rego, YAML) to align with the backend changes introduced in Women-Coding-Community/wcc-backend#563. Implements the frontend counterpart of Women-Coding-Community/wcc-backend#559.

Type

  • Bug Fix
  • New Feature
  • Code Refactor
  • Documentation
  • Other

Related Issue

Women-Coding-Community/wcc-backend#559
Related backend PR: Women-Coding-Community/wcc-backend#563

Screenshots

⚠️ Screenshots required — add before/after images before opening the PR.
image
image

Testing

Unit tests added:

  • src/schemas/__tests__/commonSchema.test.ts — covers technicalAreaSchema, technicalLanguageSchema, proficiency schemas, countrySchema, networkSchema, and mentorshipFocusAreaSchema including the newly added enum values

Manual testing steps:

  1. Open the mentee registration form and reach Step 2 — verify the label reads "Technologies & Languages — select your skill level" and the expanded language list is present
  2. Open the mentor registration form and reach Step 4 — verify the section title reads "Technologies & Languages — mentorship goals" and new tech areas (Security, SRE, Network Engineering) appear
  3. Navigate to /mentorship/mentors — verify the experience filter still works correctly

Pull request checklist

  • 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

womencodingcommunity and others added 3 commits March 12, 2026 14:24
…tions

Shared Zod schemas (technicalAreaProficiency, languageProficiency,
mentorshipFocusArea, country, network) were duplicated verbatim between
mentorSchema.ts and menteeSchema.ts, so any enum change required editing
two files and risked silent divergence. These are extracted into a new
commonSchema.ts with dedicated unit tests.

Hardcoded option arrays (spoken languages, experience levels, filter
options) scattered across form components are consolidated into named
exports in mentorshipConstants.ts. New technical areas (Security, SRE,
Network Engineering) and technologies (Bash, Terraform, HCL, Scala,
Swift, Dart, Rego, YAML, OpenTofu) are added to reflect a broader range
of mentor skills. UI labels updated from "Programming languages" to
"Technologies & Languages" to accurately reflect the expanded list.
@sonarqubecloud
Copy link
Copy Markdown

@dricazenck dricazenck merged commit 2eff5a4 into main Mar 19, 2026
5 checks passed
@dricazenck dricazenck deleted the fix_tech_languages branch March 19, 2026 13:13
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