Skip to content

refactor(profile): move user search from peer review to profile action bar

Laxman Reddy requested to merge refactor/profile-user-search-relocation into develop

Summary

This merge request improves user discovery and profile navigation by relocating the User Search feature from the Peer Review page to the Profile page.

The existing user search functionality was tightly coupled with Peer Review, even though searching for users is more relevant to profile exploration and navigation. This change moves the feature to a dedicated action bar on the Profile page while preserving the existing search behavior and backend integration.


Changes Made

1. Removed User Search from Peer Review

Before

  • Peer Review contained:
    • Records tab
    • Users tab
    • User search functionality
    • User search suggestions and navigation

After

  • Removed the Users tab from Peer Review.
  • Removed user search UI and related interactions.
  • Peer Review now focuses only on reviewing records and contributions.

2. Added User Search to Profile Page

Before

Profile page contained separate action icons:

  • Language Switch
  • Navigation Tour (Help)
  • Logout

After

A unified profile action bar has been introduced containing:

  • Language Switch
  • Navigation Tour
  • User Search
  • Logout

The user search functionality reuses the existing implementation from Peer Review, including:

  • Existing API integration
  • Existing autocomplete logic
  • Existing suggestion dropdown
  • Existing user navigation behavior
  • Existing loading and error handling

No backend changes were required.


3. Profile Action Bar Enhancement

The Profile page header actions were reorganized into a compact horizontal action bar inspired by modern applications such as Duolingo.

Benefits:

  • Improved discoverability
  • Better use of available header space
  • Consistent action grouping
  • Cleaner mobile and desktop experience

Technical Notes

  • Reused existing user search logic.
  • Reused existing user search API calls.
  • No changes to backend services.
  • No changes to user search response structure.
  • No modifications to record review functionality.
  • No changes to existing profile navigation routes.

Testing Performed

Peer Review

  • Verified Users tab removal.
  • Verified Records functionality remains unchanged.
  • Verified review workflow is unaffected.

Profile Page

  • Verified action bar rendering.
  • Verified user search suggestions appear correctly.
  • Verified selecting a user navigates to the correct profile.
  • Verified language switch functionality.
  • Verified navigation tour functionality.
  • Verified logout functionality.

Responsive Testing

  • Desktop
  • Tablet
  • Mobile

All actions remain accessible and properly aligned across screen sizes.


Impact

Before

User discovery was located inside Peer Review.

After

User discovery is available directly from the Profile page, creating a more intuitive and user-focused navigation experience while keeping Peer Review dedicated to contribution review workflows.

Merge request reports

Loading