Skip to content

Deep implement community members list#4281

Merged
one-community merged 6 commits intodevelopmentfrom
deep-implement-community-members-list
Dec 9, 2025
Merged

Deep implement community members list#4281
one-community merged 6 commits intodevelopmentfrom
deep-implement-community-members-list

Conversation

@deep3072
Copy link
Contributor

Description

Screenshot 2025-10-25 at 18 18 25

Related PRS (if any):

None

Main changes explained:

  • Reworked /hgnhelp/community so it loads all members up front. Added name/skill search, client-side skill filters, and A to Z sorting, backed by a new CommunityMembersPage layout with reusable RankedUserList data handling.
  • Scoped the member card styles into CSS modules, expanded the responsive grid, and tweaked typography/alignment so cards match the Figma design and render cleanly across screen sizes.

How to test:

  1. check into current branch
  2. do npm install and ... to run this PR locally
  3. Clear site data/cache
  4. log as owner user
  5. go to http://localhost:5173/hgnhelp/community
  6. Use the search bar with a member name and with a skill keyword. Verify results update accordingly.
  7. Open Filters, toggle one or more skills, and ensure only matching members remain. Hit Clear All to reset.
  8. Click the sort toggle (A to Z / Z to A) and make sure card order flips between ascending and descending name order.

Screenshots or videos of changes:

Screen.Recording.2025-10-12.at.00.45.42.mov

@netlify
Copy link

netlify bot commented Oct 26, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 904f9e2
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/6936412b70fab9000886dc38
😎 Deploy Preview https://deploy-preview-4281--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@one-community one-community added the High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible label Nov 13, 2025
import styles from './style/CommunityMembersPage.module.css';

const availableSkills = ['React', 'Redux', 'HTML', 'CSS', 'MongoDB', 'Database', 'Agile'];
const RANKED_USERS_ENDPOINT = 'http://localhost:4500/api/hgnform/ranked';
Copy link
Contributor

Choose a reason for hiding this comment

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

RANKED_USERS_ENDPOINT is hard-coded to http://localhost:4500, so the page will 404 in any deployed environment unless a proxy rewrites it. Current frontend standards recommend sourcing API roots from environment config to keep builds environment-agnostic and testable.

const [error, setError] = useState(null);

useEffect(() => {
const fetchRankedUsers = async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

The fetch always sends either the selected skills or the fixed availableSkills list. That means the “load all members up front” requirement is never met; users outside that seven-skill whitelist can never appear, breaking search/filter parity.

Aditya-gam
Aditya-gam previously approved these changes Nov 15, 2025
Copy link
Contributor

@Aditya-gam Aditya-gam left a comment

Choose a reason for hiding this comment

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

I followed the test plan provided in this PR (fresh install, cache cleared, logged in as owner) to verify the revamped /hgnhelp/community page. The video capture shows the behaviors described below.

TestVideo.mov

Findings

  • Search bar filters cards by both name and skill keyword in real time, matching the PR description.
  • Alphabetical toggle reliably switches between ascending and descending order across the loaded dataset.
  • Skill filters support single and multi-select; the card list updates immediately, and “Clear All” resets both filters and search as expected.
  • Layout remains responsive down to phone widths; typography/spacing are consistent with the shared screenshot.
  • Dark mode styling isn’t implemented yet. Otherwise, UI parity with Figma looks solid.

No blocking issues were observed; it matches the stated requirements.

@bhanuanishakkineni bhanuanishakkineni requested review from Aditya-gam and removed request for Aditya-gam November 21, 2025 06:32
Copy link
Contributor

@bhanuanishakkineni bhanuanishakkineni left a comment

Choose a reason for hiding this comment

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

Hello,
I tried to test your PR.
I have checked out to deep-implement-community-members-list branch and installed dependencies.
then ran the app.
When I logged in as a owner and visited the 'http://localhost:5173/hgnhelp/community' page, it correctly renders all users upfront and the page is responsive enough.
Also, the filter works fine as well as the A-Z | Z-A sort.
I am also able to search members using their names
PR #4281

PR.4281.mp4

@beblicarl
Copy link
Contributor

This functionality works as intended, and this code works well

https://www.loom.com/share/69865f02f95f4becac4ebaa23060fd65

@beblicarl beblicarl self-requested a review November 21, 2025 11:47
beblicarl
beblicarl previously approved these changes Nov 21, 2025
VijayAnirudh
VijayAnirudh previously approved these changes Dec 5, 2025
Copy link

@VijayAnirudh VijayAnirudh left a comment

Choose a reason for hiding this comment

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

image

This PR reworks the /hgnhelp/community page so that all members are loaded up front, ensuring complete visibility from the start, and introduces real‑time name and skill search along with client‑side skill filters and an A–Z/Z–A sorting toggle. It is backed by a new CommunityMembersPage layout that leverages reusable RankedUserList data handling, making the implementation more maintainable. The member card styles have been scoped into CSS modules, the responsive grid has been expanded, and typography and alignment have been refined so that the cards match the Figma design and render cleanly across different screen sizes. All intended functionality works as expected, and the changes meet the design and usability goals, making this PR ready for approval and merge.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 8, 2025

@one-community
Copy link
Member

Thank you all, merging!

@one-community one-community merged commit e1f8947 into development Dec 9, 2025
10 checks passed
Copy link

@debadyuti23 debadyuti23 left a comment

Choose a reason for hiding this comment

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

Hi @deep3072 I have reviewed your changes as per the instructions and it seems working for different skills, filter and reset. Here's the full video

PR_4281.mp4

However I would recommend to change the localhost as per others mentioned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

High Priority - Please Review First This is an important PR we'd like to get merged as soon as possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

Comments