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

New build icon and update gallery, link, color #126

Merged
merged 17 commits into from
Jul 3, 2024
Merged

Conversation

vitran12
Copy link
Contributor

@vitran12 vitran12 commented Jul 3, 2024

  • New build icon and update gallery, link, color

What this PR does / why we need it:

Special notes for your reviewer:

Which issue(s) this PR fixes:

Fixes #

Checklist:

  • Added relevant tests or not required
  • Didn't break anything

Summary by CodeRabbit

  • New Features

    • Introduced new color tokens for success, error, alert, and gradients, improving UI customization.
  • Updates

    • Replaced multiple icon components with a more consistent icon set across various components.
    • Added the ability to optimize and process SVG files into React components automatically.
  • Improvements

    • Enhanced the Accordion and Dialog components' icons for better consistency.
    • Updated Button and Box components to improve structure and usability.
    • Introduced a new story to display a grid of icons with interactive functionalities in Icon stories.
  • Bug Fixes

    • Residual import and export issues were corrected in several components to enhance stability and performance.

@vitran12 vitran12 self-assigned this Jul 3, 2024
Copy link

coderabbitai bot commented Jul 3, 2024

Walkthrough

Recent 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 package.json streamline the project, and semantics for colors are refined in the theme configuration.

Changes

File/Path Change Summary
.storybook/main.ts Switched to single quotes, updated webpack for SVG handling, added alias paths, and minor formatting adjustments.
generateIcons.js Script for optimizing and processing SVG files into React components, added index file generation.
next.config.mjs Added custom webpack configuration using webpack-merge.
package.json Updated version, added new script and dependencies, removed several dependencies.
panda.config.ts Added new color tokens for various states and gradient colors.
src/app/layout.tsx Added semicolons to import statements and adjusted export syntax.
src/app/page.tsx Replaced IconDown with IconChevDown, added new Button, Box, and Text components.
src/components/ui/accordion/... Replaced component icons with Icons.IconArrow for consistency.
src/components/ui/avatar/... Updated import statement for fallback icon.
src/components/ui/box/... Refactored component structure, adjusted forwardRef usage.
src/components/ui/button/... Reorganized imports, updated icon and button components in stories.
src/components/ui/colors/... Added new color categories, renamed and reorganized color tokens.
src/components/ui/dialog/... Replaced component icons and <Stack> with <Flex>, updated usage in stories.
src/components/ui/icon/... Updated import statements, replaced individual icons with Icons in snippets and stories, added new story for interactive icon display.
src/components/ui/icons/... Replaced individual icon imports with collective import statement, updated exported icons using React components.

Poem

In the code where colors gleam,
Refactored paths bring a seamless theme.
SVGs now shine with grace,
Icons in their perfect place.
Dependencies trimmed, components aligned,
With each change, a brighter design.
🌟💻✨

Tip

AI model upgrade

gpt-4o model for reviews and chat is now live

OpenAI claims that this model is better at understanding and generating code than the previous models. Please join our Discord Community to provide any feedback or to report any issues.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a 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

Commits

Files that changed from the base of the PR and between 6a4e973 and 79b040f.

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 of Box 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 of webpack 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 in next.config.mjs is correctly configured and there are no direct usages elsewhere in the codebase.

  • next.config.mjs: The webpack 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 of Avatar 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 in src/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 of Box 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 of webpackFinal 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 of LinkProps in the ButtonProps type.

Ensure that LinkProps is correctly integrated and used in the ButtonProps type definition.


23-23: Verify the usage of ButtonLinkProps in the ButtonProps type.

Ensure that ButtonLinkProps is correctly integrated and used in the ButtonProps type definition.


28-28: Verify the usage of ButtonNormalProps in the ButtonProps type.

Ensure that ButtonNormalProps is correctly integrated and used in the ButtonProps type definition.


29-29: Verify the usage of LinkProps in the ButtonProps type.

Ensure that LinkProps is correctly integrated and used in the ButtonProps type definition.


31-31: Verify the styling of StyledButton.

Ensure that the styling of StyledButton is consistent with the rest of the codebase.


36-36: Verify the usage of IconButton.

Ensure that the IconButton is used correctly within the Button 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 the Icon 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 the Icon 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 the Icon 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 the Heading 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 the Heading 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 constants statusColor and gradientColor.

Ensure that the new color constants statusColor and gradientColor are used correctly within the file.


108-117: Verify the usage of new color items Status Color and Gradient Color.

Ensure that the new color items Status Color and Gradient Color are used correctly within the colors array.

src/components/ui/icon/Icon.stories.tsx (7)

1-1: Verify the usage of useState in the Gallery story.

Ensure that useState is used correctly within the Gallery story.


3-3: Verify the usage of new components Icons, Grid, Text, and Toast in the Gallery story.

Ensure that the new components Icons, Grid, Text, and Toast are used correctly within the Gallery story.


4-4: Verify the usage of listIcons in the Gallery story.

Ensure that listIcons is used correctly within the Gallery story.


5-5: Verify the usage of copy-to-clipboard in the Gallery story.

Ensure that copy-to-clipboard is used correctly within the Gallery story.


6-6: Verify the usage of createToaster in the Gallery story.

Ensure that createToaster is used correctly within the Gallery story.


32-32: Verify the example code for the Overview story.

Ensure that the example code for the Overview story is correct and handles all edge cases.


40-45: Verify the example code for the Sizes 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 use Icons

The import statement has been updated to include Icons. This change is consistent with the new icon management approach.


139-139: Update icon usage in Icon story

The Icon story now uses Icons.IconCheck, which is consistent with the new icon management approach.

generateIcons.js (6)

5-9: Define paths for icons directory and index file

The paths for the icons directory and the output file are correctly defined.


50-76: Rename SVG files to replace spaces with hyphens

The script renames SVG files to replace spaces with hyphens, ensuring consistency in file naming.


78-81: Convert file names to camelCase

The toCamelCase function correctly converts file names to camelCase.


1-2: Ensure required dependencies are available

The script requires fs, path, and svgo. Ensure these dependencies are present in your environment.


11-45: Optimize SVG files using svgo

The script reads SVG files from the icons directory, optimizes them using svgo, and updates the files. Ensure the svgo 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. The svgo plugins are correctly configured as intended.

  • generateIcons.js, lines 21-39: The optimize function is configured with the preset-default plugin (with removeDimensions set to false) and the removeDimensions 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: Generate index.tsx with SVG icon imports and exports

The 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 number

The version number has been incremented from "0.5.16" to "0.5.17" to reflect new changes.


61-61: Add new script for generating icons

A new script icon has been added to run generateIcons.js.


66-66: Add copy-to-clipboard dependency

The copy-to-clipboard dependency has been added to the project.


71-71: Add @mdx-js/loader dependency

The @mdx-js/loader dependency has been added to the project.


72-72: Add @mdx-js/react dependency

The @mdx-js/react dependency has been added to the project.


73-73: Add @next/mdx dependency

The @next/mdx dependency has been added to the project.


89-89: Add @svgr/webpack dependency

The @svgr/webpack dependency has been added to the project.


94-94: Add @typescript-eslint/parser dependency

The @typescript-eslint/parser dependency has been added to the project.


102-102: Add next dependency

The next dependency has been added to the project.


123-123: Add webpack-merge dependency

The webpack-merge dependency has been added to the project.

src/components/ui/accordion/Accordion.stories.tsx (2)

3-3: Update imports to use Icons

The import statement has been updated to include Icons. This change is consistent with the new icon management approach.


63-63: Update icon usage in Accordion story

The Accordion story now uses Icons.IconArrow, which is consistent with the new icon management approach.

src/app/page.tsx (3)

7-7: Update imports to use IconChevDown

The import statement includes IconChevDown, which is consistent with the new icon management approach.


34-36: Add link to Button component

The Button component now links to "https://yorkie.dev" and uses the ghost variant.


37-37: Add yellow gradient background to Box component

The 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: Ensure listIcons export is comprehensive.

The listIcons object comprehensively exports all the icons as properties.

Comment on lines 1 to 10
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';
Copy link

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.

@vitran12 vitran12 closed this Jul 3, 2024
@vitran12 vitran12 reopened this Jul 3, 2024
Copy link

@coderabbitai coderabbitai bot left a 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

Commits

Files that changed from the base of the PR and between 79b040f and ce27d58.

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 of console.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.

generateIcons.js Show resolved Hide resolved
src/components/ui/icons/index.tsx Outdated Show resolved Hide resolved
Copy link

@coderabbitai coderabbitai bot left a 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

Commits

Files that changed from the base of the PR and between ce27d58 and 7f1ff22.

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 the Meta type.


31-32: LGTM!

The Overview story is correctly defined and renders the Icon component.


39-44: LGTM!

The Sizes story is correctly defined and renders multiple Icon components with different sizes.


50-101: LGTM! But verify the usage of copy-to-clipboard and createToaster.

The Gallery story is well-defined and renders a grid of icons with interactive functionalities.

However, ensure that the copy-to-clipboard and createToaster functionalities work correctly.

Verification successful

LGTM! But verify the usage of copy-to-clipboard and createToaster.

The Gallery story is well-defined and renders a grid of icons with interactive functionalities. The imports and usage of copy-to-clipboard and createToaster 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.tsx

Length of output: 215

@vitran12 vitran12 merged commit 660d35b into main Jul 3, 2024
2 checks passed
@vitran12 vitran12 deleted the alice/new-update branch July 3, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

1 participant