Skip to content

feat: buttons v2#1269

Merged
arkadiy93 merged 23 commits into
mainfrom
feat/buttonsV2
May 6, 2026
Merged

feat: buttons v2#1269
arkadiy93 merged 23 commits into
mainfrom
feat/buttonsV2

Conversation

@arkadiy93

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings April 23, 2026 08:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces “Buttons v2” in the component library by moving the Button styling to a token-based/styled-components implementation and adding a dedicated IconButton component, along with Storybook updates and minor tooling tweaks.

Changes:

  • Reworked Button implementation to use new variant/color token mappings and custom styles, with updated stories.
  • Added a new IconButton molecule (component + styles + stories) and exported it from the molecules index.
  • Updated supporting utilities/tests and adjusted Storybook/vitest/tooling configuration (setup file order; new clean/start:fresh scripts).

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
vitest.config.ts Reorders jsdom setupFiles.
src/molecules/index.ts Exports the new IconButton API.
src/molecules/Button/types.ts Introduces shared button prop types.
src/molecules/Button/tokens/* Adds token definitions for primary/danger + variant token types/mappings.
src/molecules/Button/Button.utils.tsx Replaces old progress-color mapping with getLoadingColor.
src/molecules/Button/Button.utils.test.ts Updates and expands unit tests for loading color selection.
src/molecules/Button/Button.tsx Implements the new Button component with token-based styling and router-link support.
src/molecules/Button/Button.styles.ts Adds styled-components primitives used by the new Button/IconButton.
src/molecules/Button/Button.stories.tsx Updates Storybook stories to match Buttons v2 variants/colors and new props.
src/molecules/Button/IconButton/IconButton.tsx Adds the new IconButton component with router-link support.
src/molecules/Button/IconButton/IconButton.styles.tsx Adds styles for IconButton and its loading indicator.
src/molecules/Button/IconButton/IconButton.stories.tsx Adds Storybook stories for IconButton variants/colors/shapes.
src/molecules/Button/Button.docs.mdx Removes the prior MDX docs page for Button.
package.json Adds clean + start:fresh scripts for Storybook cache/Vite cleanup.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/molecules/Button/Button.styles.ts Outdated
Comment thread src/molecules/Button/Button.styles.ts Outdated
Comment thread src/molecules/Button/Button.stories.tsx
Comment thread src/molecules/Button/Button.tsx Outdated
Comment thread src/molecules/Button/Button.tsx Outdated
Comment thread src/molecules/Button/IconButton/IconButton.tsx
Comment thread src/molecules/Button/IconButton/IconButton.tsx Outdated
Comment thread src/molecules/Button/IconButton/IconButton.stories.tsx
Comment thread package.json
Comment thread src/molecules/Button/types.ts
@github-actions

github-actions Bot commented Apr 23, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 100% (🎯 100%) 17494 / 17494
🔵 Statements 100% (🎯 100%) 17494 / 17494
🔵 Functions 100% (🎯 100%) 1285 / 1285
🔵 Branches 100% (🎯 100%) 4473 / 4473
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/molecules/Button/Button.styles.ts 100% 100% 100% 100%
src/molecules/Button/Button.tsx 100% 100% 100% 100%
src/molecules/Button/Button.utils.tsx 100% 100% 100% 100%
src/molecules/Button/types.ts 100% 100% 100% 100%
src/molecules/Button/IconButton/IconButton.styles.tsx 100% 100% 100% 100%
src/molecules/Button/IconButton/IconButton.tsx 100% 100% 100% 100%
src/molecules/Button/tokens/danger.ts 100% 100% 100% 100%
src/molecules/Button/tokens/disabled.ts 100% 100% 100% 100%
src/molecules/Button/tokens/primary.ts 100% 100% 100% 100%
src/molecules/Button/tokens/tokens.ts 100% 100% 100% 100%
src/molecules/Button/tokens/types.ts 100% 100% 100% 100%
src/molecules/Dialog/Dialog.tsx 100% 100% 100% 100%
src/molecules/Dialog/DialogAction.tsx 100% 100% 100% 100%
src/molecules/FileUploadArea/FileUploadArea.tsx 100% 100% 100% 100%
src/molecules/IconCell/IconCell.utils.tsx 100% 100% 100% 100%
src/molecules/InputExplanation/InputExplanation.tsx 100% 100% 100% 100%
src/molecules/RichTextEditor/custom-extensions/Counter.tsx 100% 100% 100% 100%
src/molecules/Select/SelectItemSkeleton.tsx 100% 100% 100% 100%
src/molecules/TableHeader/TableHeader.tsx 100% 100% 100% 100%
src/molecules/TableHeader/TableHeader.utils.ts 100% 100% 100% 100%
src/molecules/Toast/Toast.tsx 100% 100% 100% 100%
src/organisms/ReleaseNote/ToggleExpanded.tsx 100% 100% 100% 100%
src/organisms/SideSheet/SideSheet.tsx 100% 100% 100% 100%
src/organisms/TopBar/Account/Account.tsx 100% 100% 100% 100%
src/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.tsx 100% 100% 100% 100%
src/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.tsx 100% 100% 100% 100%
Generated in workflow #2292 for commit 9f6b01c by the Vitest Coverage Report Action

Copilot AI review requested due to automatic review settings April 23, 2026 09:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 38 out of 38 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread package.json
Comment thread src/molecules/Button/types.ts
Comment thread src/molecules/Button/Button.tsx
Comment thread src/molecules/Button/Button.styles.ts
Comment thread src/molecules/TableHeader/TableHeader.tsx
Comment thread src/molecules/RichTextEditor/custom-extensions/Counter.tsx Outdated
Comment thread src/organisms/Card/Card.stories.tsx
Comment thread src/molecules/Button/Button.utils.test.ts Outdated
Copilot AI review requested due to automatic review settings April 23, 2026 10:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 38 out of 38 changed files in this pull request and generated 11 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/organisms/Card/Card.stories.tsx
Comment thread src/organisms/SideSheet/SideSheet.stories.tsx
Comment thread src/molecules/TableHeader/TableHeader.tsx
Comment thread src/molecules/TableHeader/TableHeader.tsx
Comment thread src/molecules/TableHeader/TableHeader.tsx
Comment thread src/molecules/Toast/Toast.tsx
Comment thread src/molecules/Button/Button.tsx
Comment thread src/molecules/Button/IconButton/IconButton.tsx
Comment thread src/molecules/Dialog/DialogAction.tsx
Copilot AI review requested due to automatic review settings April 23, 2026 11:56
Copilot AI review requested due to automatic review settings April 28, 2026 08:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 48 out of 48 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/molecules/TableHeader/TableHeader.tsx
Comment thread src/molecules/TableHeader/TableHeader.tsx
Comment thread src/molecules/TableHeader/TableHeader.tsx
Copilot AI review requested due to automatic review settings April 29, 2026 08:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 48 out of 48 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/molecules/Button/Button.tsx
Comment thread src/molecules/Toast/Toast.tsx
Comment thread src/molecules/Button/Button.tsx
@arkadiy93 arkadiy93 marked this pull request as ready for review April 29, 2026 12:13
@arkadiy93 arkadiy93 requested a review from a team as a code owner April 29, 2026 12:13
@arkadiy93 arkadiy93 requested a review from mariush2 April 29, 2026 12:13

@mariush2 mariush2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just one minor thing about the stories 😄

Comment thread src/molecules/Button/IconButton/IconButton.stories.tsx Outdated
Comment thread src/molecules/Button/IconButton/IconButton.stories.tsx Outdated
Copilot AI review requested due to automatic review settings April 30, 2026 09:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 49 out of 49 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/organisms/SideSheet/SideSheet.stories.tsx
Comment thread src/organisms/Card/Card.stories.tsx
Comment thread package.json
Comment thread src/organisms/Card/Card.stories.tsx
Comment thread src/molecules/TableHeader/TableHeader.tsx
@arkadiy93 arkadiy93 requested a review from mariush2 April 30, 2026 09:56
mariush2
mariush2 previously approved these changes May 5, 2026
# Conflicts:
#	package.json
@arkadiy93 arkadiy93 merged commit ed184a6 into main May 6, 2026
17 of 19 checks passed
@arkadiy93 arkadiy93 deleted the feat/buttonsV2 branch May 6, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants