Skip to content

Conversation

@NssGourav
Copy link
Contributor

@NssGourav NssGourav commented Dec 26, 2025

This PR Fixes #145

This PR enhances the filter and sorting UX by adding a clear and responsive visual indicator for active states.

Changes Included

  • Added a visible indicator to show active filters and sort state.
  • Displayed filter tags with color-coded styling for better clarity.
  • Included a Clear All button to reset all filters instantly.
  • Indicator updates automatically whenever filters or sorting change.
  • Fully responsive design for both mobile and desktop views.
  • Indicator remains hidden by default and only appears when filters are active.

Impact

  • Improves usability and clarity of applied filters.
  • Makes it easier for users to track and reset active filters.
  • Enhances overall UI consistency across devices.

- Add visible indicator showing active filters and sort state
- Display filter tags with color-coded styling
- Include 'Clear All' button to reset filters
- Update indicator automatically on filter changes
- Responsive design for mobile and desktop
- Only shows when filters are active (hidden by default)
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @NssGourav, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the user experience by providing a clear and responsive visual indicator for active filters and sorting. Users can now easily see which filters are applied through color-coded tags and quickly reset them with a "Clear All" button. This feature improves the clarity and usability of the filtering system, making it more intuitive to track and manage search criteria across various devices.

Highlights

  • Active Filters UI: Introduced a new UI component to visually display all active filters and the current sort order.
  • Dynamic Tag Generation: Implemented JavaScript logic to dynamically generate color-coded tags for each active filter (e.g., search term, follower range, language, sort order).
  • Clear All Functionality: Added a dedicated button to instantly clear all applied filters, improving user control.
  • Responsive Design: Ensured the new filter indicator is fully responsive, adapting its layout and appearance across different device sizes.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@deepsource-io
Copy link
Contributor

deepsource-io bot commented Dec 26, 2025

Here's the code health analysis summary for commits 77c7260..46eea26. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Secrets LogoSecrets✅ SuccessView Check ↗
DeepSource Python LogoPython✅ SuccessView Check ↗
DeepSource JavaScript LogoJavaScript✅ Success
🎯 1 occurence resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a great new feature for displaying active filters and sorting, which significantly improves the user experience by providing clear visual feedback. The implementation is solid, adding the necessary HTML, CSS, and JavaScript logic.

My review includes a few suggestions to enhance maintainability and follow best practices. These include refactoring some repetitive JavaScript logic into helper functions, removing magic numbers, and improving the separation of concerns between HTML and JavaScript. Addressing these points will make the new code even more robust and easier to manage in the future.

Overall, great work on this enhancement!

- Replace magic numbers with named constants (MAX_FOLLOWERS, MAX_REPOS, MAX_FORKS)
- Extract duplicate select filter logic into reusable helper function
- Replace emoji icon with accessible SVG icon
- Remove inline onclick handler, use event listener instead
- Improve code maintainability and follow best practices
Copy link
Contributor Author

@NssGourav NssGourav left a comment

Choose a reason for hiding this comment

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

Fixed the string concatenation issues

@NssGourav
Copy link
Contributor Author

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new UI component to display active filters and the current sort order, which is a great enhancement for user experience. The implementation is solid, with new JavaScript logic to build the filter tags, corresponding CSS for styling, and the necessary HTML structure. My review includes a few suggestions to improve maintainability, performance, and consistency. Specifically, I've pointed out some code duplication that could be refactored, an opportunity to improve DOM update performance, a minor inconsistency in number formatting, and a suggestion to avoid inline styles in favor of CSS classes.

- Replace string concatenation with template literals
- Extract duplicate range filter logic into helper function
- Apply consistent number formatting to all range filters
- Optimize DOM manipulation using DocumentFragment
- Remove inline styles, use CSS classes instead
@NssGourav
Copy link
Contributor Author

/gemini review

@jbampton jbampton self-assigned this Dec 26, 2025
@jbampton jbampton added this to Turbo Dec 26, 2025
@jbampton jbampton moved this to In Progress in Turbo Dec 26, 2025
@jbampton jbampton added this to the December - January 2025 milestone Dec 26, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new UI feature to display active filters and the current sort order, which significantly improves the user experience by providing clear visual feedback. The implementation is well-structured, introducing constants to replace magic numbers and adding new functions to handle the UI updates. I've identified a few areas for improvement, mainly related to code duplication and potential performance enhancements. Specifically, there's an opportunity to refactor the addSelectFilterTag calls to reduce redundancy and to optimize DOM manipulation in updateActiveFiltersIndicator for better performance.

- Remove trailing whitespace
- Refactor repeated addSelectFilterTag calls into loop
- Replace innerHTML with replaceChildren for better performance
- Improve code maintainability and follow best practices
@NssGourav
Copy link
Contributor Author

@jbampton please review this

@NssGourav
Copy link
Contributor Author

@BaseMax please review this.

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

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

13. Clear Filter/Sort Indicator

2 participants