Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Filtering Functionality in Trekking page #223

Closed
wants to merge 1 commit into from

Conversation

IkkiOcean
Copy link
Contributor

Description

This PR introduces the ability to filter treks based on difficulty level, district, and altitude in the Trekking component. Additionally, it implements a "not available" message to inform users when no treks match the selected filters. This enhancement significantly improves the user experience by providing clear feedback and functionality.

Changes Made

  • Filter Functionality:

    • Implemented filtering logic that allows users to filter treks based on:
      • Difficulty Level: Options include EASY, EASY TO MODERATE, MODERATE, MODERATE TO DIFFICULT, DEMANDING, and HIGH RISK.
      • District: Dynamically generated list of unique districts from the trek data.
      • Altitude: Options for Low, Moderate, and High based on altitude ranges.
  • "Not Available" Message:

    • Added a div that displays the message "No treks available based on your filters. Please adjust your selections." when no treks match the filters.
    • Ensured the message is styled for visibility and centered within the card container.

Video

filter.mp4

Related Issues

Copy link

vercel bot commented Oct 27, 2024

@IkkiOcean is attempting to deploy a commit to the ajaynegi45's projects Team on Vercel.

A member of the Team first needs to authorize it.

@IkkiOcean
Copy link
Contributor Author

I changed the design of filter component, to make it look more blended in the UI. Should I move forward with adding read more feature to language page also.

@ajaynegi45 ajaynegi45 added enhancement New feature or request status: ready for dev You can asked for this issue to be assigned (if not already assigned) hacktoberfest hacktoberfest gssoc GirlScript Summer Of Code hacktoberfest-accepted hacktoberfest level3 GirlScript Summer Of Code - 35 points gssoc-ext GirlScript Summer Of Code labels Oct 27, 2024
Copy link

vercel bot commented Oct 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
uttarakhand-culture ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 27, 2024 9:39am

Copy link
Owner

@ajaynegi45 ajaynegi45 left a comment

Choose a reason for hiding this comment

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

Hi @IkkiOcean,

Thank you for your prompt work on this issue. I appreciate your dedication to the project.

I have reviewed your work, and I need some changes.

  • Don't change it. The earlier Design was good.

    Screenshot 2024-10-27 at 3 11 08 PM
  • Add more trek

  • Star the repo also. (imp)

Once again, thank you for your contribution! ❤️

@ajaynegi45 ajaynegi45 closed this Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gssoc GirlScript Summer Of Code gssoc-ext GirlScript Summer Of Code hacktoberfest hacktoberfest hacktoberfest-accepted hacktoberfest level3 GirlScript Summer Of Code - 35 points status: ready for dev You can asked for this issue to be assigned (if not already assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add Filtering Option for Trekking Locations
2 participants