Skip to content

fix: standardise breadcrumbs across mentorship pages (#201)#280

Open
IrynaLypnyk wants to merge 2 commits into
Women-Coding-Community:mainfrom
IrynaLypnyk:fix/201-breadcrumbs-visibility
Open

fix: standardise breadcrumbs across mentorship pages (#201)#280
IrynaLypnyk wants to merge 2 commits into
Women-Coding-Community:mainfrom
IrynaLypnyk:fix/201-breadcrumbs-visibility

Conversation

@IrynaLypnyk

Copy link
Copy Markdown
Contributor

Description

Breadcrumbs were inconsistent across pages (missing, conditionally rendered, or implemented differently).

issue #201

This PR:

  • unifies usage of BreadCrumbsDynamic
  • removes inconsistent isMobile conditions
  • replaces custom breadcrumbs with the shared component
  • adds consistent spacing to breadcrumbs
  • updates tests to mock router pathname

Type

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

Related Issue

Screenshots

BEFORE:

Screenshot 2026-05-02 at 22 15 28 Screenshot 2026-05-02 at 22 21 39 Screenshot 2026-05-02 at 22 22 03 Screenshot 2026-05-02 at 22 28 51

AFTER:

Screenshot 2026-05-02 at 23 00 17 Screenshot 2026-05-02 at 23 02 23 Screenshot 2026-05-02 at 23 02 50 Screenshot 2026-05-02 at 23 06 58

Testing

  • pnpm test
  • pnpm lint:fix
  • pnpm format
  • pnpm type-check
  • pnpm run test:e2e:docker

Note: pnpm run test:e2e:docker currently fails with an existing HP-004 Become Mentor section failure. I reproduced the same failure on main, so it appears unrelated to this PR.

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

…mmunity#201)

- unify usage of BreadCrumbsDynamic
- remove inconsistent isMobile conditions
- replace custom breadcrumbs with shared component
- add consistent spacing to breadcrumbs
- update tests to mock router pathname

@dricazenck dricazenck left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you review the tests that are failing:

Check here

Validate Home Page › HP-004: Become Mentor section › Verify page contains text "Welcome to the MentorRegistrationPage"

@sonarqubecloud

sonarqubecloud Bot commented May 3, 2026

Copy link
Copy Markdown

@IrynaLypnyk

Copy link
Copy Markdown
Contributor Author

@dricazenck Thanks for pointing this out!

The failing test was expecting outdated text ("Welcome to the MentorRegistrationPage"), which no longer exists in the UI.

I’ve updated it to match the current heading ("WCC: Registration Form for Mentors") and verified it locally.

It looks like this test might have reverted to an older state after previous revert changes.

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