Skip to content

Dividerの修正 - #134

Merged
ore0 merged 5 commits into
mainfrom
fix/divider
Aug 22, 2025
Merged

Dividerの修正#134
ore0 merged 5 commits into
mainfrom
fix/divider

Conversation

@ore0

@ore0 ore0 commented Aug 21, 2025

Copy link
Copy Markdown

概要

NotionのFBに伴う修正
https://www.notion.so/goodpatch-design-div/Divider-d6f037a7592246c48b438c7357b3c997?source=copy_link

変更内容

  • Dashedのスタイルが反映されない問題を解消
  • テストの調整
  • Storybookの調整
  • Figma Connect

動作確認

  • pnpm lint を実行
  • pnpm build:package を実行してパッケージが正常にビルドされることを確認
  • pnpm test を実行してテストがすべて成功することを確認

関連 Issue

ore0 added 4 commits August 21, 2025 14:45
- 水平方向の破線スタイルを追加
- 垂直方向の破線スタイルを保持
- Emphasis、LineStyle、Directionストーリーの引数を統一
- Dividerコンポーネントのプロパティをargsで展開
- テストデータ定数を追加
- テストヘルパー関数を導入
- 各テストケースをデータ駆動型に変更
- テストの可読性を向上
- DividerコンポーネントをFigmaに接続
- プロパティのマッピングを定義
- コード例をFigma用に設定
Copilot AI review requested due to automatic review settings August 21, 2025 06:14
@vercel

vercel Bot commented Aug 21, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
sparkle-design Ready Ready Preview Comment Aug 21, 2025 6:17am

Copilot AI left a comment

Copy link
Copy Markdown

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 fixes an issue where the dashed line style was not being applied to the Divider component. The fix involves uncommenting the compound variants for dashed styles and includes comprehensive test improvements and Storybook adjustments.

  • Uncommented the compound variants for dashed line styles in both horizontal and vertical directions
  • Refactored tests to use more structured, maintainable patterns with test data constants and helper functions
  • Updated Storybook stories to use proper Story type with args and render functions
  • Added Figma Connect integration for design-code synchronization

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/components/ui/divider/index.tsx Fixed dashed line style by uncommenting compound variants
src/components/ui/divider/index.test.tsx Comprehensive test refactoring with improved structure and coverage
src/components/ui/divider/index.stories.tsx Updated Storybook stories to use proper Story format with args
src/components/ui/divider/index.figma.tsx Added new Figma Connect integration file

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

Comment thread src/components/ui/divider/index.test.tsx Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

@touyou touyou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@ore0
ore0 merged commit cbaf48e into main Aug 22, 2025
3 checks passed
@ore0
ore0 deleted the fix/divider branch August 22, 2025 04:54
@ore0 ore0 removed their assignment Jan 29, 2026
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