Skip to content

feat(Icons): Introduce new tree shakable icon library - #9113

Open
talissoncosta wants to merge 6 commits into
mainfrom
feat/icon-library
Open

talissoncosta wants to merge 6 commits into
mainfrom
feat/icon-library

Conversation

@talissoncosta

@talissoncosta talissoncosta commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor
  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Contributes to ENG-688

Adds the Figma icon library as one component per icon in components/icons, next to Icon and the existing custom icons: import { TrashIcon } from 'components/icons'. Nothing uses them yet, so the UI doesn't change.

  • 66 icons on the 24px grid, 1.5px stroke, coloured by fill (defaults to currentColor). Hidden from screen readers unless given an aria-label.
  • npm run generate:icons -- <folder> turns SVGs exported from the Figma icon library into these components, so adding or updating an icon is an export and a re-run.
  • Storybook: Components/Icon library, with a catalogue and the icons at 14, 16, 20 and 24px.

Nothing imports them yet on purpose: the next PR swaps ionicons for these and drops @ionic/react, then the call sites move over and Icon goes.

How did you test this code?

  • Unit tests: every icon sits on the 24px grid, applies className and aria props, draws only in the given colour, and is hidden unless labelled.
  • Storybook locally: Components/Icon library catalogue and sizes stories render all 66 icons in dark mode.
  • Regenerating with the script reproduces the committed paths exactly.

talissoncosta and others added 3 commits November 25, 2026 14:26
Not used yet: call sites move over in rounds, so each area gets its own
visual review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
flagsmith-frontend-preview Ready Ready Preview Nov 27, 2026 2:23pm UTC
flagsmith-frontend-staging Ready Ready Preview Nov 27, 2026 2:23pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
docs Ignored Ignored Preview Nov 27, 2026 2:23pm UTC

Request Review

@github-actions github-actions Bot added the front-end Issue related to the React Front End Dashboard label Nov 25, 2026
@github-actions github-actions Bot added the feature New feature or request label Nov 25, 2026
@talissoncosta talissoncosta changed the title feat(Icons): Add the Figma icon library as one component per icon feat(Icons): Introduce new tree shakable icon library Nov 25, 2026
…e ones

npm run generate:icons turns a folder of Figma SVG exports into components.
Icons are aria-hidden unless they are given a label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Nov 25, 2026

Copy link
Copy Markdown

ENG-688

@talissoncosta
talissoncosta marked this pull request as ready for review November 26, 2026 18:38
@talissoncosta
talissoncosta requested a review from a team as a code owner November 26, 2026 18:38
@talissoncosta
talissoncosta requested review from kyle-ssg and removed request for a team November 26, 2026 18:38
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-9113 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-9113 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-api:pr-9113 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith:pr-9113 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-private-cloud:pr-9113 Finished ✅ Results ✅
ghcr.io/flagsmith/flagsmith-e2e:pr-9113 Finished ✅ Skipped

@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request labels Nov 26, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 72 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread frontend/scripts/generate-icons.mjs Resolved
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23897 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  59.4 seconds
commit  b4d1024
info  🔄 Run: #23897 (attempt 1)

🗂️ Previous results
✅ private-cloud · depot-ubuntu-latest-16 — run #23897 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  7 passed

Details

stats  7 tests across 6 suites
duration  10.2 seconds
commit  b4d1024
info  🔄 Run: #23897 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23897 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  37.1 seconds
commit  b4d1024
info  🔄 Run: #23897 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #23897 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  31.7 seconds
commit  b4d1024
info  🔄 Run: #23897 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23860 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  6 passed

Details

stats  6 tests across 5 suites
duration  3.4 seconds
commit  b420a4d
info  🔄 Run: #23860 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-16 — run #23860 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  4 passed

Details

stats  4 tests across 4 suites
duration  56.9 seconds
commit  b420a4d
info  🔄 Run: #23860 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23860 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  35.3 seconds
commit  b420a4d
info  🔄 Run: #23860 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #23860 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  3 passed

Details

stats  3 tests across 1 suite
duration  19.5 seconds
commit  b420a4d
info  🔄 Run: #23860 (attempt 1)

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Visual Regression

29 screenshots compared. See report for details.
View full report

Spread caller props before aria-hidden so icons stay hidden unless labelled, pick up rect, ellipse and polygon shapes in the generator, set Flash and PieChart to the 1.5px stroke, and label the size columns in the story.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

0 issues found across 69 files (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Adds a generated, tree-shakable icon component library (Figma-exported icons), a generator script, tests, and Storybook catalogue. The new icons are additive and not yet imported by existing UI, so runtime behavior is unchanged.

Turn on auto-fix | Re-trigger cubic

This branch was successfully deployed

2 active deployments
Preview – flagsmith-frontend-staging — b4d10243 Deployed Nov 27, 2026 by vercel[bot]
Preview – flagsmith-frontend-preview — b4d10243 Deployed Nov 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants