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

refactor(Icons): Replaces custom icons with Ant Design 5 icons #32112

Merged
merged 91 commits into from
Mar 18, 2025

Conversation

EnxDev
Copy link
Contributor

@EnxDev EnxDev commented Feb 2, 2025

SUMMARY

This PR improves the overall standardization and maintainability of the project by replacing custom icons with Ant Design 5 icons.
It removes nearly all FontAwesome icons, streamlining the icon set to ensure consistency.
The Icon component has been enhanced to support new features and improved performance.

Additionally, missing icons have been added, and standardized sizing has been applied across various icons, including those used in buttons, to ensure a cohesive UI.

Finally, it eliminates direct imports of icons from Ant Design, simplifying the import structure and improving code readability.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

  • Before
    Screenshot 2025-03-07 095627

  • After
    Screenshot 2025-03-07 095923

Tags :

  • before
    before
  • after
    after

Filter:

  • before
    before
  • after
    after
  • before
    before-h
  • after
    after-h
  • before
    before-filter
  • after
    after-filter
  • before
    before-panel
  • after
    after-panel

Tags:

  • before
    before
  • after
    after

Table:
before
after
before-2
after-2
before
after
before
after

Trash:
before
after
before
after
before
after
before
after
before
after
before
after
before
after
before
after

Link:

  • before
    before
  • after
    after

TESTING INSTRUCTIONS

  1. CI should pass
  2. All custom icons replaced with Ant Design 5 icons, should be consistent in color, size, and relevance.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@dosubot dosubot bot added change:frontend Requires changing the frontend frontend:refactor:antd5 labels Feb 2, 2025
@EnxDev EnxDev added review:draft and removed change:frontend Requires changing the frontend frontend:refactor:antd5 labels Feb 2, 2025
@EnxDev EnxDev marked this pull request as draft February 2, 2025 23:08
@EnxDev EnxDev added change:frontend Requires changing the frontend frontend:refactor:antd5 labels Feb 2, 2025
Copy link

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

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

Review by Korbit AI

Korbit automatically attempts to detect when you fix issues in new commits.
Category Issue Fix Detected
Functionality Invalid prop passed to AntDesign icon ▹ view
Files scanned
File Path Reviewed
superset-frontend/src/dashboard/components/DeleteComponentButton.tsx
superset-frontend/src/explore/components/controls/VizTypeControl/constants.tsx
superset-frontend/src/components/Label/reusable/DatasetTypeLabel.tsx
superset-frontend/src/dashboard/components/nativeFilters/FilterCard/NameRow.tsx
superset-frontend/src/components/ListViewCard/ListViewCard.stories.tsx
superset-frontend/src/SqlLab/components/ShareSqlLabQuery/index.tsx
superset-frontend/src/features/tags/TagCard.tsx
superset-frontend/src/components/MetadataBar/ContentConfig.tsx
superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FilterTitlePane.tsx
superset-frontend/src/components/Icons/index.tsx
superset-frontend/src/explore/components/controls/VizTypeControl/VizTile.tsx
superset-frontend/src/dashboard/components/nativeFilters/FilterBar/CrossFilters/ScopingModal/ChartsScopingListPanel.tsx
superset-frontend/src/components/Icons/AntdEnhanced.tsx
superset-frontend/src/features/charts/ChartCard.tsx
superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigForm/DependencyList.tsx
superset-frontend/src/features/dashboards/DashboardCard.tsx
superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FilterTitleContainer.tsx
superset-frontend/src/dashboard/components/nativeFilters/FilterBar/Vertical.tsx
superset-frontend/src/pages/CssTemplateList/index.tsx
superset-frontend/src/features/datasets/AddDataset/DatasetPanel/DatasetPanel.tsx
superset-frontend/src/dashboard/components/FiltersBadge/index.tsx
superset-frontend/src/pages/AnnotationList/index.tsx
superset-frontend/src/components/TableSelector/index.tsx
superset-frontend/src/pages/AnnotationLayerList/index.tsx
superset-frontend/src/SqlLab/components/QueryTable/index.tsx
superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterControls/FilterControls.tsx
superset-frontend/src/pages/RowLevelSecurityList/index.tsx
superset-frontend/src/pages/Tags/index.tsx
superset-frontend/src/components/Datasource/CollectionTable.tsx
superset-frontend/src/explore/components/controls/DatasourceControl/index.jsx
superset-frontend/src/pages/AlertReportList/index.tsx
superset-frontend/src/features/alerts/components/NotificationMethod.tsx
superset-frontend/src/pages/SavedQueryList/index.tsx
superset-frontend/src/pages/DatabaseList/index.tsx
superset-frontend/src/explore/components/controls/VizTypeControl/VizTypeGallery.tsx
superset-frontend/src/pages/DashboardList/index.tsx
superset-frontend/src/pages/ChartList/index.tsx
superset-frontend/src/pages/DatasetList/index.tsx

Explore our documentation to understand the languages and file types we support and the files we ignore.

Need a new review? Comment /korbit-review on this PR and I'll review your latest changes.

Korbit Guide: Usage and Customization

Interacting with Korbit

  • You can manually ask Korbit to review your PR using the /korbit-review command in a comment at the root of your PR.
  • You can ask Korbit to generate a new PR description using the /korbit-generate-pr-description command in any comment on your PR.
  • Too many Korbit comments? I can resolve all my comment threads if you use the /korbit-resolve command in any comment on your PR.
  • Chat with Korbit on issues we post by tagging @korbit-ai in your reply.
  • Help train Korbit to improve your reviews by giving a 👍 or 👎 on the comments Korbit posts.

Customizing Korbit

  • Check out our docs on how you can make Korbit work best for you and your team.
  • Customize Korbit for your organization through the Korbit Console.

Current Korbit Configuration

General Settings
Setting Value
Review Schedule Automatic excluding drafts
Max Issue Count 10
Automatic PR Descriptions
Issue Categories
Category Enabled
Documentation
Logging
Error Handling
Readability and Maintainability
Design Patterns
Performance
Security
Functionality

Feedback and Support

Note

Korbit Pro is free for open source projects 🎉

Looking to add Korbit to your team? Get started with a free 2 week trial here

…dView, ListView, CaretRight, CaretUp, CaretDown) with antd5 icons
- Small adjustments for caret down icon
- Restored menu icons in the header menu
@pull-request-size pull-request-size bot added size/XL and removed size/L labels Feb 5, 2025
- Replaces custom icon (Refresh) with antd5 icon (SyncOutlined)
- Small icons position adjustments
- Migrates custom icons (Check, Calendar, FavoriteSelected, FavoriteUnselected, TableOutlined, Alert, AlertSolid, Eye, AlertSolid) to Ant Design 5 icons
- Adds SaveOutlined icon to the dashboard save button
- Small alignment adjustments for icons
- Changes the order of buttons in the chart dropdown on the homepage
- Adds custom CircleSolid icon
- wip SqlEditorTabHeader
- Replaces custom icons (Check, CheckCircle, CheckSolid, Clock, Minus, FieldDerived, Sql, fa-database) with antd5 icon (CloseOutlined)
- Removes TabStatusIcon component
Copy link
Contributor

@EnxDev Processing your ephemeral environment request here. Action: up. More information on how to use or configure ephemeral environments

@EnxDev EnxDev requested a review from geido March 16, 2025 21:36
Copy link
Contributor

@EnxDev Ephemeral environment spinning up at http://34.216.203.11:8080. Credentials are 'admin'/'admin'. Please allow several minutes for bootstrapping and startup.

Copy link
Contributor

@EnxDev Processing your ephemeral environment request here. Action: up. More information on how to use or configure ephemeral environments

Copy link
Contributor

@EnxDev Ephemeral environment spinning up at http://52.37.230.84:8080. Credentials are 'admin'/'admin'. Please allow several minutes for bootstrapping and startup.

@geido geido force-pushed the enxdev/refactor-antd5-icons branch from 67b499e to 90a2089 Compare March 18, 2025 19:16
@mistercrunch
Copy link
Member

Looks like there's a bit of lint left, highly recommend installing pre-commit if you haven't already

Copy link
Contributor

@EnxDev Processing your ephemeral environment request here. Action: up. More information on how to use or configure ephemeral environments

Copy link
Contributor

@EnxDev Ephemeral environment spinning up at http://34.219.216.172:8080. Credentials are 'admin'/'admin'. Please allow several minutes for bootstrapping and startup.

@EnxDev EnxDev merged commit ce6d5f5 into master Mar 18, 2025
48 checks passed
@EnxDev EnxDev deleted the enxdev/refactor-antd5-icons branch March 18, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants