Skip to content

Conversation

@pranjal-jately-ld
Copy link
Contributor

@pranjal-jately-ld pranjal-jately-ld commented Oct 30, 2025

Description

Adds the ability to star and filter flags.

What does this PR do?

This PR implements a flag filtering and starring system for the toolbar, allowing developers to easily organize and manage their feature flags.

Key Features

  1. Filter Tabs Component: Created a new FilterTabs component that provides three
    filtering modes:

    • All: Shows all available flags
    • Overrides: Shows only flags with overrides set
    • Starred: Shows only flags marked as favorites
  2. Starred Flags Functionality:

    • Users can now star/favorite flags for quick access
    • Starred flags persist in localStorage across sessions
    • New StarredFlagsProvider context manages starred state
    • Added StarButton component with visual feedback (filled/outline icons)
  3. Clear Actions:

    • Clear all overrides with a single click (shows count)
    • Clear all starred flags with a single click (shows count)
    • Extracted reusable ClearButton component

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation (changes to documentation only)
  • 🔧 Refactor (code change that neither fixes a bug nor adds a feature)
  • 🎨 Style (formatting, missing semicolons, etc; no production code change)
  • Performance (code change that improves performance)
  • Test (adding missing tests, refactoring tests; no production code change)
  • 🔨 Chore (updating grunt tasks, build process, etc; no production code change)

Screenshots/Videos

image image image

Related Jira issue: REL-9741: Add support for pinning flags at the top of the list

- Added FilterTabs component to allow users to filter flags by 'All', 'Overrides', and 'Starred'.
- Integrated filtering logic into FlagDevServerTabContent and FlagSdkOverrideTabContent components.
- Updated StarredFlagsProvider to include clearAllStarred and starredCount functionalities.
- Introduced ClearButton for clearing filters with appropriate styles.
- Enhanced user experience by providing contextual help messages based on active filters.
@pranjal-jately-ld pranjal-jately-ld force-pushed the pjately/REL-9741-star-flags branch from 3a2aa6b to 263ea04 Compare October 30, 2025 23:23
@pranjal-jately-ld pranjal-jately-ld marked this pull request as draft October 31, 2025 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants