-
Notifications
You must be signed in to change notification settings - Fork 0
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
New build icon and update gallery, link, color #126
Conversation
WalkthroughRecent changes enhance the development environment, improve SVG handling, and update color and component structures. Notable modifications include the introduction of a new SVG processing script, changes to Storybook and Next.js configurations, and updates in various UI components. Dependency adjustments in Changes
Poem
Tip AI model upgrade
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (239)
package-lock.json
is excluded by!**/package-lock.json
src/components/ui/icons/Vector.svg
is excluded by!**/*.svg
src/components/ui/icons/account.svg
is excluded by!**/*.svg
src/components/ui/icons/add-member.svg
is excluded by!**/*.svg
src/components/ui/icons/albums.svg
is excluded by!**/*.svg
src/components/ui/icons/albums2.svg
is excluded by!**/*.svg
src/components/ui/icons/alert-danger.svg
is excluded by!**/*.svg
src/components/ui/icons/alert-info.svg
is excluded by!**/*.svg
src/components/ui/icons/alert-success.svg
is excluded by!**/*.svg
src/components/ui/icons/alert-warning.svg
is excluded by!**/*.svg
src/components/ui/icons/alert.svg
is excluded by!**/*.svg
src/components/ui/icons/analytics.svg
is excluded by!**/*.svg
src/components/ui/icons/anchor.svg
is excluded by!**/*.svg
src/components/ui/icons/apple.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-back.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-back2.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-circle-right.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-down-circle.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-down.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-first.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-last.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-left-circle.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-left-down.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-left-right.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-left-up.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-left.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-product.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-right-circle.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-right-dow.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-right-up.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-right.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-up-circle.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-up-down.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow-up.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow.svg
is excluded by!**/*.svg
src/components/ui/icons/arrow2.svg
is excluded by!**/*.svg
src/components/ui/icons/artist.svg
is excluded by!**/*.svg
src/components/ui/icons/back-home.svg
is excluded by!**/*.svg
src/components/ui/icons/back.svg
is excluded by!**/*.svg
src/components/ui/icons/backward.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-A.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-B.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-C.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-D.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-E.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-F.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-G.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-H.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-I.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-J.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-K.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-L.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-M.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-N.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-O.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-P.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-Q.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-R.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-S.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-T.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-U.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-V.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-W.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-X.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-Y.svg
is excluded by!**/*.svg
src/components/ui/icons/badge-Z.svg
is excluded by!**/*.svg
src/components/ui/icons/bank-note.svg
is excluded by!**/*.svg
src/components/ui/icons/bank.svg
is excluded by!**/*.svg
src/components/ui/icons/barrier.svg
is excluded by!**/*.svg
src/components/ui/icons/beautiful.svg
is excluded by!**/*.svg
src/components/ui/icons/book.svg
is excluded by!**/*.svg
src/components/ui/icons/branch.svg
is excluded by!**/*.svg
src/components/ui/icons/bulb.svg
is excluded by!**/*.svg
src/components/ui/icons/camera.svg
is excluded by!**/*.svg
src/components/ui/icons/canvas.svg
is excluded by!**/*.svg
src/components/ui/icons/chart.svg
is excluded by!**/*.svg
src/components/ui/icons/chat.svg
is excluded by!**/*.svg
src/components/ui/icons/check-circle.svg
is excluded by!**/*.svg
src/components/ui/icons/check-mark.svg
is excluded by!**/*.svg
src/components/ui/icons/check.svg
is excluded by!**/*.svg
src/components/ui/icons/checkbox-fill-circle.svg
is excluded by!**/*.svg
src/components/ui/icons/checkbox-fill-square.svg
is excluded by!**/*.svg
src/components/ui/icons/chev-down.svg
is excluded by!**/*.svg
src/components/ui/icons/chev-left.svg
is excluded by!**/*.svg
src/components/ui/icons/chev-right.svg
is excluded by!**/*.svg
src/components/ui/icons/chev-up.svg
is excluded by!**/*.svg
src/components/ui/icons/circle-close.svg
is excluded by!**/*.svg
src/components/ui/icons/circle-filled.svg
is excluded by!**/*.svg
src/components/ui/icons/circle-quetion-mark.svg
is excluded by!**/*.svg
src/components/ui/icons/circle.svg
is excluded by!**/*.svg
src/components/ui/icons/clock.svg
is excluded by!**/*.svg
src/components/ui/icons/close-small.svg
is excluded by!**/*.svg
src/components/ui/icons/close.svg
is excluded by!**/*.svg
src/components/ui/icons/cloud-border.svg
is excluded by!**/*.svg
src/components/ui/icons/cloud-orange.svg
is excluded by!**/*.svg
src/components/ui/icons/cloud.svg
is excluded by!**/*.svg
src/components/ui/icons/code-snippet.svg
is excluded by!**/*.svg
src/components/ui/icons/coin.svg
is excluded by!**/*.svg
src/components/ui/icons/coins.svg
is excluded by!**/*.svg
src/components/ui/icons/collaborate-cursor.svg
is excluded by!**/*.svg
src/components/ui/icons/collaborate-editing.svg
is excluded by!**/*.svg
src/components/ui/icons/collaborate-profile.svg
is excluded by!**/*.svg
src/components/ui/icons/collaborate-selection.svg
is excluded by!**/*.svg
src/components/ui/icons/color-picked.svg
is excluded by!**/*.svg
src/components/ui/icons/color-picker.svg
is excluded by!**/*.svg
src/components/ui/icons/comment.svg
is excluded by!**/*.svg
src/components/ui/icons/community-help.svg
is excluded by!**/*.svg
src/components/ui/icons/community_help.svg
is excluded by!**/*.svg
src/components/ui/icons/confirm.svg
is excluded by!**/*.svg
src/components/ui/icons/container.svg
is excluded by!**/*.svg
src/components/ui/icons/cookie.svg
is excluded by!**/*.svg
src/components/ui/icons/copy.svg
is excluded by!**/*.svg
src/components/ui/icons/credit-card-2.svg
is excluded by!**/*.svg
src/components/ui/icons/credit-card.svg
is excluded by!**/*.svg
src/components/ui/icons/cursor.svg
is excluded by!**/*.svg
src/components/ui/icons/dark-mode.svg
is excluded by!**/*.svg
src/components/ui/icons/dashboard-user-green.svg
is excluded by!**/*.svg
src/components/ui/icons/dashboard-user-purple.svg
is excluded by!**/*.svg
src/components/ui/icons/dashboard-user-red.svg
is excluded by!**/*.svg
src/components/ui/icons/dashboard-user-yellow.svg
is excluded by!**/*.svg
src/components/ui/icons/date.svg
is excluded by!**/*.svg
src/components/ui/icons/delete.svg
is excluded by!**/*.svg
src/components/ui/icons/delivery.svg
is excluded by!**/*.svg
src/components/ui/icons/diamond.svg
is excluded by!**/*.svg
src/components/ui/icons/discord.svg
is excluded by!**/*.svg
src/components/ui/icons/document.svg
is excluded by!**/*.svg
src/components/ui/icons/dot.svg
is excluded by!**/*.svg
src/components/ui/icons/download.svg
is excluded by!**/*.svg
src/components/ui/icons/drag.svg
is excluded by!**/*.svg
src/components/ui/icons/dribbble.svg
is excluded by!**/*.svg
src/components/ui/icons/edit.svg
is excluded by!**/*.svg
src/components/ui/icons/error.svg
is excluded by!**/*.svg
src/components/ui/icons/error404.svg
is excluded by!**/*.svg
src/components/ui/icons/error500.svg
is excluded by!**/*.svg
src/components/ui/icons/expand.svg
is excluded by!**/*.svg
src/components/ui/icons/eye-off.svg
is excluded by!**/*.svg
src/components/ui/icons/eye.svg
is excluded by!**/*.svg
src/components/ui/icons/facebook-color.svg
is excluded by!**/*.svg
src/components/ui/icons/facebook.svg
is excluded by!**/*.svg
src/components/ui/icons/file.svg
is excluded by!**/*.svg
src/components/ui/icons/filter.svg
is excluded by!**/*.svg
src/components/ui/icons/folder-closed.svg
is excluded by!**/*.svg
src/components/ui/icons/folder-open.svg
is excluded by!**/*.svg
src/components/ui/icons/folder-shared.svg
is excluded by!**/*.svg
src/components/ui/icons/folder.svg
is excluded by!**/*.svg
src/components/ui/icons/fork.svg
is excluded by!**/*.svg
src/components/ui/icons/forward.svg
is excluded by!**/*.svg
src/components/ui/icons/github.svg
is excluded by!**/*.svg
src/components/ui/icons/gnb-menu.svg
is excluded by!**/*.svg
src/components/ui/icons/google.svg
is excluded by!**/*.svg
src/components/ui/icons/hammer-law.svg
is excluded by!**/*.svg
src/components/ui/icons/hammer.svg
is excluded by!**/*.svg
src/components/ui/icons/hand-medical.svg
is excluded by!**/*.svg
src/components/ui/icons/hand-open.svg
is excluded by!**/*.svg
src/components/ui/icons/hand.svg
is excluded by!**/*.svg
src/components/ui/icons/heart-rate.svg
is excluded by!**/*.svg
src/components/ui/icons/heart.svg
is excluded by!**/*.svg
src/components/ui/icons/help.svg
is excluded by!**/*.svg
src/components/ui/icons/home.svg
is excluded by!**/*.svg
src/components/ui/icons/hourglass.svg
is excluded by!**/*.svg
src/components/ui/icons/icon_checkbox_fill_circle.svg
is excluded by!**/*.svg
src/components/ui/icons/iconnect.svg
is excluded by!**/*.svg
src/components/ui/icons/image.svg
is excluded by!**/*.svg
src/components/ui/icons/info.svg
is excluded by!**/*.svg
src/components/ui/icons/input.svg
is excluded by!**/*.svg
src/components/ui/icons/instagram.svg
is excluded by!**/*.svg
src/components/ui/icons/invest.svg
is excluded by!**/*.svg
src/components/ui/icons/invisible.svg
is excluded by!**/*.svg
src/components/ui/icons/job.svg
is excluded by!**/*.svg
src/components/ui/icons/key.svg
is excluded by!**/*.svg
src/components/ui/icons/keynote.svg
is excluded by!**/*.svg
src/components/ui/icons/label.svg
is excluded by!**/*.svg
src/components/ui/icons/language.svg
is excluded by!**/*.svg
src/components/ui/icons/law.svg
is excluded by!**/*.svg
src/components/ui/icons/light-dark.svg
is excluded by!**/*.svg
src/components/ui/icons/light-mode.svg
is excluded by!**/*.svg
src/components/ui/icons/lightbulb.svg
is excluded by!**/*.svg
src/components/ui/icons/lightning.svg
is excluded by!**/*.svg
src/components/ui/icons/line.svg
is excluded by!**/*.svg
src/components/ui/icons/link.svg
is excluded by!**/*.svg
src/components/ui/icons/linkedIn-color.svg
is excluded by!**/*.svg
src/components/ui/icons/linkedIn.svg
is excluded by!**/*.svg
src/components/ui/icons/list.svg
is excluded by!**/*.svg
src/components/ui/icons/loading.svg
is excluded by!**/*.svg
src/components/ui/icons/location.svg
is excluded by!**/*.svg
src/components/ui/icons/lock-small.svg
is excluded by!**/*.svg
src/components/ui/icons/lock.svg
is excluded by!**/*.svg
src/components/ui/icons/logo-3d-2.svg
is excluded by!**/*.svg
src/components/ui/icons/logo-3d-side.svg
is excluded by!**/*.svg
src/components/ui/icons/logo-3d.svg
is excluded by!**/*.svg
src/components/ui/icons/logo-footer.svg
is excluded by!**/*.svg
src/components/ui/icons/logo-gnb.svg
is excluded by!**/*.svg
src/components/ui/icons/logo-horizontal-l.svg
is excluded by!**/*.svg
src/components/ui/icons/logo-horizontal-s-gray.svg
is excluded by!**/*.svg
src/components/ui/icons/logo-horizontal-s.svg
is excluded by!**/*.svg
src/components/ui/icons/logo-horizontal-xs.svg
is excluded by!**/*.svg
src/components/ui/icons/logo-no-text.svg
is excluded by!**/*.svg
src/components/ui/icons/logo-text.svg
is excluded by!**/*.svg
src/components/ui/icons/logo.svg
is excluded by!**/*.svg
src/components/ui/icons/logout.svg
is excluded by!**/*.svg
src/components/ui/icons/mail.svg
is excluded by!**/*.svg
src/components/ui/icons/material.svg
is excluded by!**/*.svg
src/components/ui/icons/medal.svg
is excluded by!**/*.svg
src/components/ui/icons/medical.svg
is excluded by!**/*.svg
src/components/ui/icons/member-email.svg
is excluded by!**/*.svg
src/components/ui/icons/menu.svg
is excluded by!**/*.svg
src/components/ui/icons/message-smile.svg
is excluded by!**/*.svg
src/components/ui/icons/message-square.svg
is excluded by!**/*.svg
src/components/ui/icons/message.svg
is excluded by!**/*.svg
src/components/ui/icons/microphone.svg
is excluded by!**/*.svg
src/components/ui/icons/minimize.svg
is excluded by!**/*.svg
src/components/ui/icons/minus-circle.svg
is excluded by!**/*.svg
src/components/ui/icons/minus.svg
is excluded by!**/*.svg
src/components/ui/icons/mircrophone-mute.svg
is excluded by!**/*.svg
src/components/ui/icons/more-large.svg
is excluded by!**/*.svg
src/components/ui/icons/more.svg
is excluded by!**/*.svg
src/components/ui/icons/mute.svg
is excluded by!**/*.svg
src/components/ui/icons/naver.svg
is excluded by!**/*.svg
src/components/ui/icons/neutral.svg
is excluded by!**/*.svg
src/components/ui/icons/next.svg
is excluded by!**/*.svg
src/components/ui/icons/notification.svg
is excluded by!**/*.svg
src/components/ui/icons/open-selector.svg
is excluded by!**/*.svg
src/components/ui/icons/package.svg
is excluded by!**/*.svg
src/components/ui/icons/packaging.svg
is excluded by!**/*.svg
src/components/ui/icons/paperplane.svg
is excluded by!**/*.svg
src/components/ui/icons/pause-circle.svg
is excluded by!**/*.svg
src/components/ui/icons/pause.svg
is excluded by!**/*.svg
src/components/ui/icons/pen.svg
is excluded by!**/*.svg
src/components/ui/icons/pie-chart.svg
is excluded by!**/*.svg
src/components/ui/icons/piggy-bank-coin.svg
is excluded by!**/*.svg
src/components/ui/icons/piggy-bank.svg
is excluded by!**/*.svg
src/components/ui/icons/pin.svg
is excluded by!**/*.svg
src/components/ui/icons/placeholder.svg
is excluded by!**/*.svg
src/components/ui/icons/play-circle.svg
is excluded by!**/*.svg
src/components/ui/icons/play.svg
is excluded by!**/*.svg
src/components/ui/icons/playlist.svg
is excluded by!**/*.svg
src/components/ui/icons/plus-circle.svg
is excluded by!**/*.svg
src/components/ui/icons/plus.svg
is excluded by!**/*.svg
src/components/ui/icons/pop-remove.svg
is excluded by!**/*.svg
Files selected for processing (24)
- .storybook/main.ts (1 hunks)
- generateIcons.js (1 hunks)
- next.config.mjs (2 hunks)
- package.json (3 hunks)
- panda.config.ts (3 hunks)
- src/app/layout.tsx (1 hunks)
- src/app/page.tsx (5 hunks)
- src/components/ui/accordion/Accordion.mdx (2 hunks)
- src/components/ui/accordion/Accordion.stories.tsx (3 hunks)
- src/components/ui/avatar/Avatar.tsx (2 hunks)
- src/components/ui/box/Box.tsx (1 hunks)
- src/components/ui/button/Button.stories.tsx (3 hunks)
- src/components/ui/button/Button.tsx (2 hunks)
- src/components/ui/colors/Colors.mdx (2 hunks)
- src/components/ui/colors/Colors.stories.tsx (2 hunks)
- src/components/ui/colors/constant.tsx (15 hunks)
- src/components/ui/datepicker/Datepicker.mdx (7 hunks)
- src/components/ui/datepicker/Datepicker.stories.tsx (8 hunks)
- src/components/ui/dialog/Dialog.mdx (4 hunks)
- src/components/ui/dialog/Dialog.stories.tsx (6 hunks)
- src/components/ui/heading/Heading.mdx (2 hunks)
- src/components/ui/icon/Icon.mdx (2 hunks)
- src/components/ui/icon/Icon.stories.tsx (2 hunks)
- src/components/ui/icons/index.ts (1 hunks)
Files skipped from review due to trivial changes (3)
- src/app/layout.tsx
- src/components/ui/accordion/Accordion.mdx
- src/components/ui/datepicker/Datepicker.mdx
Additional context used
LanguageTool
src/components/ui/icon/Icon.mdx
[uncategorized] ~32-~32: Loose punctuation mark.
Context: ...n={<Icons.IconDate />} /> ); `, }} /> ## Props ## Exa...(UNLIKELY_OPENING_PUNCTUATION)
[uncategorized] ~62-~62: Loose punctuation mark.
Context: ...ate />} /> ) `, }} /> ### Gallery ...(UNLIKELY_OPENING_PUNCTUATION)
src/components/ui/heading/Heading.mdx
[uncategorized] ~61-~61: Loose punctuation mark.
Context: ...ze="7xl">Ag `, }} /> ### [Font Weight](#heading-fon...(UNLIKELY_OPENING_PUNCTUATION)
[uncategorized] ~98-~98: Loose punctuation mark.
Context: ...e a Heading `, }} />(UNLIKELY_OPENING_PUNCTUATION)
GitHub Check: build (18.x)
src/components/ui/icons/index.ts
[failure] 1-1:
Cannot find module './Vector.svg' or its corresponding type declarations.
[failure] 2-2:
Cannot find module './account.svg' or its corresponding type declarations.
[failure] 3-3:
Cannot find module './add-member.svg' or its corresponding type declarations.
[failure] 4-4:
Cannot find module './albums.svg' or its corresponding type declarations.
[failure] 5-5:
Cannot find module './albums2.svg' or its corresponding type declarations.
[failure] 6-6:
Cannot find module './alert-danger.svg' or its corresponding type declarations.
[failure] 7-7:
Cannot find module './alert-info.svg' or its corresponding type declarations.
[failure] 8-8:
Cannot find module './alert-success.svg' or its corresponding type declarations.
[failure] 9-9:
Cannot find module './alert-warning.svg' or its corresponding type declarations.
[failure] 10-10:
Cannot find module './alert.svg' or its corresponding type declarations.
Additional comments not posted (76)
src/components/ui/box/Box.tsx (1)
2-2
: LGTM! But verify the usage ofBox
component.The code changes are approved.
However, ensure that all usages of
Box
component are consistent with the new implementation.next.config.mjs (1)
19-37
: LGTM! But verify the usage ofwebpack
function.The code changes are approved.
However, ensure that all usages of
webpack
function are consistent with the new implementation.Verification successful
The usage of the
webpack
function is verified.The
webpack
function innext.config.mjs
is correctly configured and there are no direct usages elsewhere in the codebase.
next.config.mjs
: Thewebpack
function is defined and used as part of the Next.js configuration.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify all usages of `webpack` function. # Test: Search for the function usage. Expect: Consistent usage. rg --type js --type tsx $'webpack'Length of output: 61
Script:
#!/bin/bash # Description: Verify all usages of `webpack` function. # Test: Search for the function usage. Expect: Consistent usage. rg --type js --type ts 'webpack'Length of output: 32
Script:
#!/bin/bash # Description: Verify all usages of `webpack` function. # Test: Search for the function usage in all file types. Expect: Consistent usage. rg 'webpack'Length of output: 11075
src/components/ui/avatar/Avatar.tsx (1)
5-5
: LGTM! But verify the usage ofAvatar
component.The code changes are approved.
However, ensure that all usages of
Avatar
component are consistent with the new implementation.Verification successful
LGTM!
The usage of the
Avatar
component has been verified and is consistent across the codebase.
- Examples of usage:
<Avatar src="https://i.pravatar.cc/300" name="John Doe" {...args} />
<Avatar size="xs" src="https://i.pravatar.cc/300" name="John Doe" {...args} />
<Avatar {...args} />
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify all usages of `Avatar` component. # Test: Search for the component usage. Expect: Consistent usage. rg --type js --type tsx $'<Avatar'Length of output: 63
Script:
#!/bin/bash # Description: Verify all usages of `Avatar` component. # Test: Search for the component usage. Expect: Consistent usage. rg --type js --type ts --type tsx '<Avatar'Length of output: 73
Script:
#!/bin/bash # Description: Verify all usages of `Avatar` component. # Find all .tsx files and search for <Avatar> usage within them fd -e tsx -e ts -e js -x rg '<Avatar' {}Length of output: 835
src/components/ui/colors/Colors.mdx (2)
10-10
: LGTM! But verify the usage of dark mode theme.The code changes are approved.
However, ensure that all usages of dark mode theme are consistent with the new implementation.
Verification successful
Dark mode theme usage verified
The usage of
data-theme="dark"
is found insrc/components/ui/colors/Colors.mdx
. The implementation appears to be consistent and limited to this file.
src/components/ui/colors/Colors.mdx
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify all usages of dark mode theme. # Test: Search for the dark mode theme usage. Expect: Consistent usage. rg --type js --type tsx $'data-theme="dark"'Length of output: 73
Script:
#!/bin/bash # Description: Verify all usages of dark mode theme. # Test: Search for the dark mode theme usage. Expect: Consistent usage. rg --type js --type ts $'data-theme="dark"'Length of output: 44
Script:
#!/bin/bash # Description: Verify all usages of dark mode theme in the entire codebase. # Test: Search for the dark mode theme usage across all file types. Expect: Consistent usage. rg $'data-theme="dark"'Length of output: 92
31-31
: LGTM! But verify the usage ofBox
component.The code changes are approved.
However, ensure that all usages of
Box
component are consistent with the new implementation..storybook/main.ts (1)
1-1
: LGTM! But verify the usage ofwebpackFinal
function.The code changes are approved.
However, ensure that all usages of
webpackFinal
function are consistent with the new implementation.src/components/ui/button/Button.tsx (8)
4-4
: Verify the usage ofLinkProps
in theButtonProps
type.Ensure that
LinkProps
is correctly integrated and used in theButtonProps
type definition.
23-23
: Verify the usage ofButtonLinkProps
in theButtonProps
type.Ensure that
ButtonLinkProps
is correctly integrated and used in theButtonProps
type definition.
28-28
: Verify the usage ofButtonNormalProps
in theButtonProps
type.Ensure that
ButtonNormalProps
is correctly integrated and used in theButtonProps
type definition.
29-29
: Verify the usage ofLinkProps
in theButtonProps
type.Ensure that
LinkProps
is correctly integrated and used in theButtonProps
type definition.
31-31
: Verify the styling ofStyledButton
.Ensure that the styling of
StyledButton
is consistent with the rest of the codebase.
36-36
: Verify the usage ofIconButton
.Ensure that the
IconButton
is used correctly within theButton
component.
39-42
: Verify the conditional rendering logic for the link button.Ensure that the conditional rendering logic for the link button is correct and handles all edge cases.
49-51
: Verify the conditional rendering logic for the normal button.Ensure that the conditional rendering logic for the normal button is correct and handles all edge cases.
src/components/ui/icon/Icon.mdx (3)
28-31
: Verify the import statements and example code for theIcon
component.Ensure that the import statements and example code for the
Icon
component are correct and handle all edge cases.
51-61
: Verify the import statements and example code for theIcon
component.Ensure that the import statements and example code for the
Icon
component are correct and handle all edge cases.
65-73
: Verify the example code for theIcon
component.Ensure that the example code for the
Icon
component is correct and handles all edge cases.src/components/ui/heading/Heading.mdx (2)
61-61
: Verify the example code for theHeading
component.Ensure that the example code for the
Heading
component is correct and handles all edge cases.Tools
LanguageTool
[uncategorized] ~61-~61: Loose punctuation mark.
Context: ...ze="7xl">Ag `, }} /> ### [Font Weight](#heading-fon...(UNLIKELY_OPENING_PUNCTUATION)
98-98
: Verify the example code for theHeading
component.Ensure that the example code for the
Heading
component is correct and handles all edge cases.Tools
LanguageTool
[uncategorized] ~98-~98: Loose punctuation mark.
Context: ...e a Heading `, }} />(UNLIKELY_OPENING_PUNCTUATION)
src/components/ui/colors/Colors.stories.tsx (2)
21-22
: Verify the usage of new color constantsstatusColor
andgradientColor
.Ensure that the new color constants
statusColor
andgradientColor
are used correctly within the file.
108-117
: Verify the usage of new color itemsStatus Color
andGradient Color
.Ensure that the new color items
Status Color
andGradient Color
are used correctly within thecolors
array.src/components/ui/icon/Icon.stories.tsx (7)
1-1
: Verify the usage ofuseState
in theGallery
story.Ensure that
useState
is used correctly within theGallery
story.
3-3
: Verify the usage of new componentsIcons
,Grid
,Text
, andToast
in theGallery
story.Ensure that the new components
Icons
,Grid
,Text
, andToast
are used correctly within theGallery
story.
4-4
: Verify the usage oflistIcons
in theGallery
story.Ensure that
listIcons
is used correctly within theGallery
story.
5-5
: Verify the usage ofcopy-to-clipboard
in theGallery
story.Ensure that
copy-to-clipboard
is used correctly within theGallery
story.
6-6
: Verify the usage ofcreateToaster
in theGallery
story.Ensure that
createToaster
is used correctly within theGallery
story.
32-32
: Verify the example code for theOverview
story.Ensure that the example code for the
Overview
story is correct and handles all edge cases.
40-45
: Verify the example code for theSizes
story.Ensure that the example code for the
Sizes
story is correct and handles all edge cases.src/components/ui/button/Button.stories.tsx (2)
2-2
: Update imports to useIcons
The import statement has been updated to include
Icons
. This change is consistent with the new icon management approach.
139-139
: Update icon usage inIcon
storyThe
Icon
story now usesIcons.IconCheck
, which is consistent with the new icon management approach.generateIcons.js (6)
5-9
: Define paths for icons directory and index fileThe paths for the icons directory and the output file are correctly defined.
50-76
: Rename SVG files to replace spaces with hyphensThe script renames SVG files to replace spaces with hyphens, ensuring consistency in file naming.
78-81
: Convert file names to camelCaseThe
toCamelCase
function correctly converts file names to camelCase.
1-2
: Ensure required dependencies are availableThe script requires
fs
,path
, andsvgo
. Ensure these dependencies are present in your environment.
11-45
: Optimize SVG files usingsvgo
The script reads SVG files from the icons directory, optimizes them using
svgo
, and updates the files. Ensure thesvgo
plugins are correctly configured.Verification successful
Optimize SVG files using
svgo
The script reads SVG files from the icons directory, optimizes them using
svgo
, and updates the files. Thesvgo
plugins are correctly configured as intended.
generateIcons.js
, lines 21-39: Theoptimize
function is configured with thepreset-default
plugin (withremoveDimensions
set to false) and theremoveDimensions
plugin added again.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the `svgo` plugin configuration. # Test: Check the `svgo` optimization process. Expect: SVG files optimized with the specified plugins. node -e " const { optimize } = require('svgo'); const fs = require('fs'); const path = require('path'); const iconsDir = path.join(__dirname, 'src/components/ui/icons'); fs.readdir(iconsDir, (err, files) => { if (err) throw err; files.forEach((file) => { if (path.extname(file) === '.svg') { const filePath = path.join(iconsDir, file); fs.readFile(filePath, 'utf8', (err, data) => { if (err) throw err; const result = optimize(data, { plugins: [ { name: 'preset-default', params: { overrides: { removeDimensions: false } } }, 'removeDimensions', ], }); console.log(`${file} optimized`); }); } }); }); "Length of output: 903
Script:
#!/bin/bash # Description: Search for the `svgo` configuration in the codebase. # Search for the `optimize` function call from `svgo` to verify the plugin configuration. ast-grep --lang javascript --pattern $'optimize($_, { plugins: [ $$$ ] })'Length of output: 1122
83-118
: Generateindex.tsx
with SVG icon imports and exportsThe script reads SVG files, creates import statements, and writes them to the
index.tsx
file. Ensure the generation process is correct.package.json (10)
3-3
: Increment version numberThe version number has been incremented from "0.5.16" to "0.5.17" to reflect new changes.
61-61
: Add new script for generating iconsA new script
icon
has been added to rungenerateIcons.js
.
66-66
: Addcopy-to-clipboard
dependencyThe
copy-to-clipboard
dependency has been added to the project.
71-71
: Add@mdx-js/loader
dependencyThe
@mdx-js/loader
dependency has been added to the project.
72-72
: Add@mdx-js/react
dependencyThe
@mdx-js/react
dependency has been added to the project.
73-73
: Add@next/mdx
dependencyThe
@next/mdx
dependency has been added to the project.
89-89
: Add@svgr/webpack
dependencyThe
@svgr/webpack
dependency has been added to the project.
94-94
: Add@typescript-eslint/parser
dependencyThe
@typescript-eslint/parser
dependency has been added to the project.
102-102
: Addnext
dependencyThe
next
dependency has been added to the project.
123-123
: Addwebpack-merge
dependencyThe
webpack-merge
dependency has been added to the project.src/components/ui/accordion/Accordion.stories.tsx (2)
3-3
: Update imports to useIcons
The import statement has been updated to include
Icons
. This change is consistent with the new icon management approach.
63-63
: Update icon usage inAccordion
storyThe
Accordion
story now usesIcons.IconArrow
, which is consistent with the new icon management approach.src/app/page.tsx (3)
7-7
: Update imports to useIconChevDown
The import statement includes
IconChevDown
, which is consistent with the new icon management approach.
34-36
: Add link toButton
componentThe
Button
component now links to "https://yorkie.dev" and uses theghost
variant.
37-37
: Add yellow gradient background toBox
componentThe
Box
component now has a yellow gradient background.src/components/ui/dialog/Dialog.mdx (5)
40-47
: Replace<Stack>
with<Flex>
for layout consistency.The change from
<Stack>
to<Flex>
ensures a more flexible layout system. Verify if this change is consistent with the overall design system.
51-51
: Update icon usage for consistency.The replacement of
<IconClose>
with<Icons.IconClose>
ensures consistency in icon usage. Verify if this change is applied throughout the codebase.
100-100
: Update icon usage for consistency.The replacement of
<IconClose>
with<Icons.IconClose>
ensures consistency in icon usage. Verify if this change is applied throughout the codebase.
142-142
: Update icon usage for consistency.The replacement of
<IconClose>
with<Icons.IconClose>
ensures consistency in icon usage. Verify if this change is applied throughout the codebase.
182-182
: Update icon usage for consistency.The replacement of
<IconClose>
with<Icons.IconClose>
ensures consistency in icon usage. Verify if this change is applied throughout the codebase.src/components/ui/dialog/Dialog.stories.tsx (6)
2-2
: Update import statements for consistency.The updated import statement includes
Icons
, which ensures consistency in icon usage.
Line range hint
116-127
: Replace<Stack>
with<Flex>
for layout consistency.The change from
<Stack>
to<Flex>
ensures a more flexible layout system. Verify if this change is consistent with the overall design system.
127-127
: Update icon usage for consistency.The replacement of
<IconClose>
with<Icons.IconClose>
ensures consistency in icon usage. Verify if this change is applied throughout the codebase.
164-164
: Update icon usage for consistency.The replacement of
<IconClose>
with<Icons.IconClose>
ensures consistency in icon usage. Verify if this change is applied throughout the codebase.
199-199
: Update icon usage for consistency.The replacement of
<IconClose>
with<Icons.IconClose>
ensures consistency in icon usage. Verify if this change is applied throughout the codebase.
233-233
: Update icon usage for consistency.The replacement of
<IconClose>
with<Icons.IconClose>
ensures consistency in icon usage. Verify if this change is applied throughout the codebase.src/components/ui/colors/constant.tsx (3)
334-341
: Add new status color tokens.The addition of new status color tokens enhances the color palette. Verify if these tokens are used consistently throughout the codebase.
343-349
: Add new border color tokens.The addition of new border color tokens enhances the color palette. Verify if these tokens are used consistently throughout the codebase.
351-358
: Add new gradient color tokens.The addition of new gradient color tokens enhances the color palette. Verify if these tokens are used consistently throughout the codebase.
src/components/ui/datepicker/Datepicker.stories.tsx (7)
81-81
: Update icon usage for consistency.The replacement of
<Icon>
with<Icons.IconDate>
ensures consistency in icon usage. Verify if this change is applied throughout the codebase.
93-93
: Update icon usage for consistency.The replacement of
<Icon>
with<Icons.IconChevLeft>
ensures consistency in icon usage. Verify if this change is applied throughout the codebase.
103-103
: Update icon usage for consistency.The replacement of
<Icon>
with<Icons.IconChevRight>
ensures consistency in icon usage. Verify if this change is applied throughout the codebase.
138-138
: Update icon usage for consistency.The replacement of
<Icon>
with<Icons.IconChevLeft>
ensures consistency in icon usage. Verify if this change is applied throughout the codebase.
148-148
: Update icon usage for consistency.The replacement of
<Icon>
with<Icons.IconChevRight>
ensures consistency in icon usage. Verify if this change is applied throughout the codebase.
176-176
: Update icon usage for consistency.The replacement of
<Icon>
with<Icons.IconChevLeft>
ensures consistency in icon usage. Verify if this change is applied throughout the codebase.
186-186
: Update icon usage for consistency.The replacement of
<Icon>
with<Icons.IconChevRight>
ensures consistency in icon usage. Verify if this change is applied throughout the codebase.panda.config.ts (2)
54-84
: Add new color tokens for success, error, alert, and gradients.The addition of new color tokens enhances the color palette. Verify if these tokens are used consistently throughout the codebase.
122-165
: Add new semantic color tokens for success, error, and alert.The addition of new semantic color tokens enhances the color palette. Verify if these tokens are used consistently throughout the codebase.
src/components/ui/icons/index.ts (2)
317-947
: Ensure consistent export format.The export statements are consistent and correctly export all imported SVG icons.
633-948
: EnsurelistIcons
export is comprehensive.The
listIcons
object comprehensively exports all the icons as properties.
src/components/ui/icons/index.ts
Outdated
import { ReactComponent as IconVector } from './Vector.svg'; | ||
import { ReactComponent as IconAccount } from './account.svg'; | ||
import { ReactComponent as IconAddMember } from './add-member.svg'; | ||
import { ReactComponent as IconAlbums } from './albums.svg'; | ||
import { ReactComponent as IconAlbums2 } from './albums2.svg'; | ||
import { ReactComponent as IconAlertDanger } from './alert-danger.svg'; | ||
import { ReactComponent as IconAlertInfo } from './alert-info.svg'; | ||
import { ReactComponent as IconAlertSuccess } from './alert-success.svg'; | ||
import { ReactComponent as IconAlertWarning } from './alert-warning.svg'; | ||
import { ReactComponent as IconAlert } from './alert.svg'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verify existence of SVG files.
Several SVG files are missing, as indicated by the static analysis tool. Ensure that the following files exist in the directory:
Vector.svg
account.svg
add-member.svg
albums.svg
albums2.svg
alert-danger.svg
alert-info.svg
alert-success.svg
alert-warning.svg
alert.svg
#!/bin/bash
# Description: Verify existence of SVG files.
# Test: Check for the existence of SVG files. Expect: All files exist.
for file in Vector.svg account.svg add-member.svg albums.svg albums2.svg alert-danger.svg alert-info.svg alert-success.svg alert-warning.svg alert.svg; do
if [ ! -f "src/components/ui/icons/$file" ]; then
echo "File missing: $file"
fi
done
Tools
GitHub Check: build (18.x)
[failure] 1-1:
Cannot find module './Vector.svg' or its corresponding type declarations.
[failure] 2-2:
Cannot find module './account.svg' or its corresponding type declarations.
[failure] 3-3:
Cannot find module './add-member.svg' or its corresponding type declarations.
[failure] 4-4:
Cannot find module './albums.svg' or its corresponding type declarations.
[failure] 5-5:
Cannot find module './albums2.svg' or its corresponding type declarations.
[failure] 6-6:
Cannot find module './alert-danger.svg' or its corresponding type declarations.
[failure] 7-7:
Cannot find module './alert-info.svg' or its corresponding type declarations.
[failure] 8-8:
Cannot find module './alert-success.svg' or its corresponding type declarations.
[failure] 9-9:
Cannot find module './alert-warning.svg' or its corresponding type declarations.
[failure] 10-10:
Cannot find module './alert.svg' or its corresponding type declarations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Outside diff range and nitpick comments (1)
generateIcons.js (1)
11-48
: Consider removing commented-out code.The commented-out code for
addAttributesToSVGElement
can be removed to keep the script clean.- // { - // name: 'addAttributesToSVGElement', - // params: { - // attributes: [{ width: 'currentWidth', height: 'currentHeight' }], - // }, - // },
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
src/components/ui/icons/community_help.svg
is excluded by!**/*.svg
Files selected for processing (4)
- generateIcons.js (1 hunks)
- package.json (3 hunks)
- src/app/page.tsx (7 hunks)
- src/components/ui/icons/index.tsx (1 hunks)
Files skipped from review as they are similar to previous changes (2)
- package.json
- src/app/page.tsx
Additional comments not posted (5)
generateIcons.js (3)
1-10
: LGTM!The initial setup and directory paths are correctly defined.
78-81
: LGTM!The camelCase conversion function is correctly implemented.
50-76
: Improve error handling.Consider using
console.error
for logging errors instead ofconsole.log
.- console.log(`Renamed: ${file} -> ${newFileName}`); + console.error(`Renamed: ${file} -> ${newFileName}`);Likely invalid or redundant comment.
src/components/ui/icons/index.tsx (2)
1-315
: LGTM!The import statements for SVG icons are correctly defined.
316-631
: LGTM!The export statements for SVG icons are correctly defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- package.json (3 hunks)
- src/components/ui/button/Button.tsx (2 hunks)
- src/components/ui/icon/Icon.stories.tsx (2 hunks)
Files skipped from review as they are similar to previous changes (2)
- package.json
- src/components/ui/button/Button.tsx
Additional comments not posted (4)
src/components/ui/icon/Icon.stories.tsx (4)
2-6
: LGTM!The
meta
object is correctly defined and satisfies theMeta
type.
31-32
: LGTM!The
Overview
story is correctly defined and renders theIcon
component.
39-44
: LGTM!The
Sizes
story is correctly defined and renders multipleIcon
components with different sizes.
50-101
: LGTM! But verify the usage ofcopy-to-clipboard
andcreateToaster
.The
Gallery
story is well-defined and renders a grid of icons with interactive functionalities.However, ensure that the
copy-to-clipboard
andcreateToaster
functionalities work correctly.Verification successful
LGTM! But verify the usage of
copy-to-clipboard
andcreateToaster
.The
Gallery
story is well-defined and renders a grid of icons with interactive functionalities. The imports and usage ofcopy-to-clipboard
andcreateToaster
are correctly implemented.
copy-to-clipboard
is imported and used correctly.createToaster
is imported from@ark-ui/react
and used correctly.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the usage of `copy-to-clipboard` and `createToaster`. # Test: Ensure `copy-to-clipboard` is used correctly. Expect: Proper usage. rg --type js 'copy-to-clipboard' # Test: Ensure `createToaster` is used correctly. Expect: Proper usage. rg --type js 'createToaster'Length of output: 61
Script:
#!/bin/bash # Description: Verify the actual usage of `copy-to-clipboard` and `createToaster`. # Test: Search for `copy-to-clipboard` usage in the codebase. rg 'copy\(' # Test: Search for `createToaster` usage in the codebase. rg 'createToaster\('Length of output: 711
Script:
#!/bin/bash # Description: Verify the import and usage of `copy` and `createToaster` in `src/components/ui/icon/Icon.stories.tsx`. # Test: Check for import statements of `copy` in `src/components/ui/icon/Icon.stories.tsx`. rg 'import .*copy' src/components/ui/icon/Icon.stories.tsx # Test: Check for import statements of `createToaster` in `src/components/ui/icon/Icon.stories.tsx`. rg 'import .*createToaster' src/components/ui/icon/Icon.stories.tsxLength of output: 215
What this PR does / why we need it:
Special notes for your reviewer:
Which issue(s) this PR fixes:
Fixes #
Checklist:
Summary by CodeRabbit
New Features
Updates
Improvements
Bug Fixes