Skip to content

Meenashi application page category#4014

Merged
one-community merged 16 commits intodevelopmentfrom
meenashi-application-page-category
Sep 26, 2025
Merged

Meenashi application page category#4014
one-community merged 16 commits intodevelopmentfrom
meenashi-application-page-category

Conversation

@jeyanthi-sm
Copy link
Copy Markdown
Contributor

@jeyanthi-sm jeyanthi-sm commented Sep 4, 2025

Description

Main Changes

  • Updated the Collaboration page with the following features:
    • Search Term with Go button
    • Dropdown Category
    • Dropdown Position (new)
    • Show Summaries toggle button to switch between Tiles view and Summaries view

How to Test

  1. Setup

    • Switch to the current branch

    • Delete node_modules:

    • rm -rf node_modules

    • Run:

      npm install
      npm run start:local
    • Clear site data/cache in your browser

    • Note: If the backend is not running, the page will display:

      • "Error fetching jobs"
      • "Error fetching positions"
      • "Error fetching categories"
      • And it will show a Loading indicator
  2. Login

    • Log in as an admin user
  3. Navigate

    • Go to /collaboration
  4. Verify Page Elements

    • Search Title with Go button is displayed
    • Dropdown Category list is displayed
    • Dropdown Position list is displayed
    • Show Summaries toggle button is visible
  5. Test Search and Filters

    • Type a search term and click Go
      • Results are displayed in Tiles format
      • Shows 10 job ads per page
      • You can delete the typed search term and results update accordingly
    • Select an item from Category dropdown
      • Results refresh immediately based on selected category
      • A delete button is available to remove the filter
    • Select an item from Position dropdown
      • Results refresh immediately based on selected position
      • A delete button is available to remove the filter
    • Click on the image icon of a job
      • Redirects to the jobDetailsLink
    • If no matching results are found (for search term, category, or position), a message is displayed: “No jobAds found” or “No Summaries found”
  6. Test Show Summaries

    • Toggle Show Summaries
      • Results are displayed in one page (Summaries view)
  7. Additional Checks

    • Verify the page in Dark Mode and Light Mode
    • Ensure the page is responsive on different screen sizes

Related PRS (if any):

This frontend PR is related to the OneCommunityGlobal/HGNRest#1701 backend PR.

Screenshots or videos of changes:

Application.Page.Category.04Sep.mp4

Note:

  • If the backend is not up, the page will display:
    • "Error fetching jobs"
    • "Error fetching positions"
    • "Error fetching categories"
    • Loading indicators may appear until the backend is available
  • If you encounter any issues, make sure the backend PR steps are followed and MongoDB is connected (if applicable).
  • For debugging, attach screenshots or a short video to demonstrate the issue.
  • At the moment, all positions are displayed and are not filtered by category, even when a category is selected. This behavior is intentional for now and will be refined in future releases.

@netlify
Copy link
Copy Markdown

netlify Bot commented Sep 4, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit e646f32
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/68d395fdd0be7700084e320e
😎 Deploy Preview https://deploy-preview-4014--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 Sep 7, 2025
Copy link
Copy Markdown
Contributor

@akshith312 akshith312 left a comment

Choose a reason for hiding this comment

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

Tested the PR locally. Filters and search bar work as expected. Page is responsive to different layouts.

image image image image image

SreePujitha01
SreePujitha01 previously approved these changes Sep 10, 2025
Copy link
Copy Markdown
Contributor

@SreePujitha01 SreePujitha01 left a comment

Choose a reason for hiding this comment

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

Tested the collaboration page – search, filters, summaries toggle, dark/light mode, and responsiveness. Everything is working fine as expected.

image

@somramnani
Copy link
Copy Markdown
Contributor

I tested the collaboration page and everything works as expected.

The search, filters, and the "Show Summaries" toggle all function correctly. Navigation and redirects behave as described, and both Dark/Light mode and responsive layouts look good.

software-search-category-darkmode software-search-summaries software-search-mobile-view software-search

Copy link
Copy Markdown
Contributor

@RitzzzZ2021 RitzzzZ2021 left a comment

Choose a reason for hiding this comment

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

Thank you for the detailed testing guide. The search button and category filter work as expected in both light and dark modes. Clicking a job correctly redirects to its corresponding link.

image image

Suggestions:

  1. When navigating to /collaboration or refreshing the page, an error appears for fetching positions. I tested the backend PR #1701 and it works fine. Could you look into this?
image
  1. When displaying summaries, the title is misaligned in light mode but aligns correctly in dark mode. Applying consistent alignment styles across both modes should resolve the issue.
image
  1. There’s no data in the positions filter, so I wasn’t able to test it. Could you provide some data for testing?
image

@jeyanthi-sm
Copy link
Copy Markdown
Contributor Author

@RitzzzZ2021 - Thanks for your comments! I’ve fixed the alignment of Summaries. However, I couldn’t reproduce the empty list in Select from positions. Could you please retry on your side and let me know the status?

Copy link
Copy Markdown

@khan-zoha khan-zoha left a comment

Choose a reason for hiding this comment

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

Reviewed PR 4014. I followed the instructions and connected to correct backend as well. All features are working as expected. However, despite connecting to the backend, I got "Error fetching positions" and no postion were displayed in the dropdown menu.

Screenshot 2025-09-13 at 5 00 41 PM

Previously, the component returned two separate JSX blocks.
Now, it returns a single block with a conditional to handle both cases.
- Add position dropdown
- Update getJobs and getSummaries API to include position input
- Fix dark mode display
- Updated button label to toggle between `showSummaries` and `hideSummaries`
- Applied filter chips heading only after clicking "Go" (not while typing)
- Refactored content into `renderContent` function for cleaner rendering
- Fixed alignment and spacing issues
- Removed unnecessary `showTooltip` logic
- Changed jobAdsPerPage from 20 → 10 for clearer visibility
@jeyanthi-sm jeyanthi-sm force-pushed the meenashi-application-page-category branch from 5db252b to c71e237 Compare September 15, 2025 16:01
@jeyanthi-sm
Copy link
Copy Markdown
Contributor Author

@RitzzzZ2021, @khan-zoha - Thank you for your comments. The issue occurred due to a problem during the merge with the development branch, which caused the Position list to be empty. I’ve fixed it now — could you please retest and share your feedback?

Copy link
Copy Markdown
Contributor

@MeronTeweldebrhan MeronTeweldebrhan left a comment

Choose a reason for hiding this comment

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

PR Review Feedback

Testing Outcome

✅ Search bar is filtering data as expected.
✅ Dark mode toggle is working correctly.
✅ Categories filter is functioning as expected.
✅ Pagination is working, along with the show/hide summaries toggle.
✅ Click on the image icon of a job
✅ Responsive on different screen sizes

⚠️ Select from position filter is not fetching data as expected, despite the backend being connected and successfully fetching positions in Postman #PR OneCommunityGlobal/HGNRest#1701.

Requested Change

  • Please review and fix the Select from position filter
Screenshot 2025-09-16 212038 Screenshot 2025-09-16 212123 Screenshot 2025-09-16 212824 Screenshot 2025-09-16 213017 Screenshot 2025-09-16 213631

@jeyanthi-sm
Copy link
Copy Markdown
Contributor Author

@RitzzzZ2021 @khan-zoha @MeronTeweldebrhan Please try the following steps to ensure dependencies are in sync with the updated lockfile:
Delete your node_modules folder.
Run a fresh install:
npm install.
Start the app and check if the Position dropdown is now listed.
Let me know your results — thanks!

@ChiragBellara
Copy link
Copy Markdown
Contributor

Reviewed PR #4014

  1. Collaboration page loads successfully.
initial page load sucessful
  1. Summaries load successfully.
summaries load successful
  1. Search by title works as expected.
search by title works
  1. Page loads successfully in dark mode however, the dark mode is not applied to the entire screen. Hence, I can see white space on the screen.
page load in dark mode
  1. Page loads successfully in mobile resolution but the dark mode issue continues on this screen as well.
page load in mobile
  1. Got a popup with the message "Error fetching positions" however, the backend is working fine and the positions are loading as expected. I got this popup every time I refreshed the screen.
error popup even when everything is working as expected

Copy link
Copy Markdown
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.

  • Logged in as admin user and navigated to /collaboration.
  • All the page elements are displayed correctly.
  • Search using title correctly displays results and limits the number of ads to 10.
  • Category and Position drop-downs work as intended and correctly add filters and display results accordingly.
  • The show summaries button toggles summaries and shows all summaries on one page.
  • The page is responsive for small screens
  • Dark mode works correctly. One issue is that the search panel changes size, and the 'Show Summaries' button wraps to the next line.
TestVideo.mov

@one-community
Copy link
Copy Markdown
Member

Thank you all, merging!

@one-community one-community merged commit 0ec02e2 into development Sep 26, 2025
8 checks passed
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.

10 participants