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

Add filtering functionality for snippets #6

Open
mohsenkhosroanjam opened this issue Jan 3, 2025 · 1 comment
Open

Add filtering functionality for snippets #6

mohsenkhosroanjam opened this issue Jan 3, 2025 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mohsenkhosroanjam
Copy link

mohsenkhosroanjam commented Jan 3, 2025

Description:
As a user, I would be happy if I could filter my snippets.

Actual result:
There is no filter for filtering the snippets.

Expected result:
When the user sets the filter, the snippets will be shown based on the filter.

Steps to reproduce:
1- https://codecandy.suraniharsh.codes/
2- Click on "New Snippet" button
3- Fill out the form and create some snippets
4- Go to https://codecandy.suraniharsh.codes/search

Screenshot:
image

@suraniharsh suraniharsh added enhancement New feature or request good first issue Good for newcomers labels Jan 3, 2025
@suraniharsh
Copy link
Owner

Hi @mohsenkhosroanjam ,

Thank you for suggesting this feature! I agree that filtering snippets would greatly improve the user experience. Here’s the detailed plan for implementing the snippet filter functionality:

"Filter Snippets: Organizing Snippets with Easy Filtering"

Description:
Currently, there is no filter functionality available for users to filter their snippets. The goal is to implement a filter system that allows users to view their snippets based on specific criteria (e.g., by language, tags, or date). This will improve usability and make it easier for users to find specific snippets.

Expected Outcome:

  • Users should be able to set filters based on categories such as language, tags, or date.
  • Once the filter is set, only snippets that match the selected filter should be displayed.
  • Ensure the filter UI is intuitive and easy to use.

Tasks:

  1. Analyze the current snippet display logic and determine where to integrate the filter functionality.
  2. Add a filter option to the user interface, allowing users to select from different filter categories (e.g., language, tags, etc.).
  3. Implement functionality to filter snippets based on the selected criteria.
  4. Ensure the filtered results are displayed properly, updating the UI dynamically.
  5. Test the filter functionality to ensure it works across various scenarios.
  6. Create a separate branch for this feature and submit a pull request once the implementation is complete.
    • Branch Name:
      • feature/filter-snippets
  7. Address any feedback provided by code reviewers.

Screenshot of the Issue:
[Attach a screenshot of the current snippets display page and a mockup of the filter interface.]

Deployed Link:
[Provide the live link to the website where the feature will be implemented.]

I’ve created a branch named feature/filter-snippets for this feature and will ensure it works seamlessly. Let me know if you have any questions or suggestions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants