Skip to content

Conversation

@artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented Sep 26, 2025

It's needed to unify icons in schema tree and templates for ydb-platform/ydb-embedded-ui#2906

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" {...props}>
<svg
xmlns="http://www.w3.org/2000/svg"
height={16}
Copy link
Member Author

Choose a reason for hiding this comment

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

Added width and height to components, to be able to use them as it is, without additional props

Before: <AsyncReplicationIcon height={16} />
After: <AsyncReplicationIcon />

@artemmufazalov artemmufazalov marked this pull request as ready for review September 26, 2025 10:18
@astandrik astandrik requested a review from Copilot September 30, 2025 09:30
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR exports icon components from the library to enable unified icon usage across schema tree and template components. The change supports consolidating icon implementations by making them publicly available through the main export.

  • Exports all icon components through a new icons module
  • Standardizes icon sizes by adding explicit height/width props to all SVG components
  • Updates NavigationTreeNode to use the exported icons and removes redundant size props

Reviewed Changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.

File Description
src/index.ts Adds export for the icons module
src/components/icons/index.ts Creates barrel export for all icon components
src/components/icons/*.tsx Adds explicit height/width props and reformats SVG attributes
src/components/NavigationTree/NavigationTreeNode.tsx Updates imports to use barrel export and removes size props from icon usage

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@artemmufazalov artemmufazalov merged commit c75cbfe into main Oct 1, 2025
3 checks passed
@artemmufazalov artemmufazalov deleted the export-icons branch October 1, 2025 08:26
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