Skip to content

feat(icons): add category filtering and mobile category sheet - #739

Open
lain9293 wants to merge 7 commits into
mainfrom
feat/icon-categories
Open

feat(icons): add category filtering and mobile category sheet#739
lain9293 wants to merge 7 commits into
mainfrom
feat/icon-categories

Conversation

@lain9293

Copy link
Copy Markdown

Description

Adds category-based navigation to the Icons page.

Changes

  • Added 27 icon categories based on metadata from @gravity-ui/icons.
  • Added category counts and filtering.
  • Added a desktop category sidebar.
  • Added a mobile category selector with a bottom sheet.
  • Categories are disabled and ignored while text or image search is active.
  • Updated icon cards to match the Figma layout.
  • Updated @gravity-ui/icons to 2.22.0.

Testing

  • Verified category counts against the library metadata.
  • Verified desktop and mobile layouts locally.
  • Ran TypeScript, ESLint, and Stylelint checks.

Comment thread src/components/Icons/Icons.tsx Outdated
})}
onClick={() => handleSelectCategory('all')}
>
<span>All icons</span>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

i18n?

Comment thread src/components/Icons/Icons.tsx Outdated
contentClassName={b('category-sheet-content')}
visible={isCategorySheetOpen}
onClose={() => setIsCategorySheetOpen(false)}
title="Category"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

i18n?

Comment thread src/components/Icons/Icons.tsx Outdated
);

const selectedCategory = iconCategories.find(({id}) => id === categoryId);
const resultsTitle = isSearching ? 'All icons' : selectedCategory?.label ?? 'All icons';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

i18n?

@lain9293
lain9293 requested a review from teleginzhenya August 27, 2026 10:50
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.

3 participants