Skip to content

Commit 559454f

Browse files
yn1323claude
andauthored
feat: スタッフシフト提出画面のモックUI作成・Storybook環境整備・VRTキャプチャ削減 (#278)
* feat: スタッフシフト提出画面のpencilデザイン作成 5画面分のデザインを作成(未提出/提出済み/締切後閲覧/締切後未提出/提出完了) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: スタッフシフト提出画面のモックUI作成 DayCard, SubmitFormView, ReadOnlySubmitView, ExpiredSubmitView, SubmitCompleteView, ShiftSubmitPageの各コンポーネントとStorybookを作成 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: Storybook MCP addon追加・開発環境設定更新 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: MCP設定修正・CLAUDE.mdのStoryルール追記 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * refactor: 小コンポーネントのStoriesをVariantsパターンに統合してVRTキャプチャ削減 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: plan --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d22de93 commit 559454f

File tree

31 files changed

+4606
-148
lines changed

31 files changed

+4606
-148
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ convex-seeds/backup
3535
.serena
3636

3737
settings.local.json
38-
.mcp.json
3938
CLAUDE.local.md
4039

4140
character.md

.mcp.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"mcpServers": {
3+
"storybook-mcp": {
4+
"type": "sse",
5+
"url": "http://localhost:6006/mcp"
6+
}
7+
}
8+
}

.storybook/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const config: StorybookConfig = {
88
},
99
},
1010
stories: ["../src/**/*.stories.@(ts|tsx)"],
11-
addons: ["@storybook/addon-docs", "@storybook/addon-vitest"],
11+
addons: ["@storybook/addon-docs", "@storybook/addon-vitest", "@storybook/addon-mcp"],
1212
framework: {
1313
name: "@storybook/react-vite",
1414
options: {},

CLAUDE.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,11 @@ import { bar } from "@/convex/...";
158158

159159
## デザイン
160160

161-
デザイン関連のファイル・ルールは `design/` ディレクトリを参照(`design/CLAUDE.md`)。
161+
- デザイン関連のファイル・ルールは `design/` ディレクトリを参照(`design/CLAUDE.md`)。
162+
- デザインをもとにモックを作成する場合、実装後にpencil MCP, Storybook MCP, Playwright MCPでスクショを取ってPencilのデザイン通り実装できているか確認すること(フォント差については許容)
163+
- VRTは無料枠で毎月のキャプチャ数に限りがあります。小さなコンポーネントはVariants Storyを作成し、1つのStoryにまとめたいです。
164+
大きいコンポーネントはそのままでOK。
165+
操作用のStoryが必要なら、Interactive Storyを別途作成すること。(小さいコンポーネントのみ)
162166

163167
## コーディング
164168

design/designIndex.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@
3434
| ~~`K5zai`~~ | ShiftBoard/Confirmed/SP | SP確定済み |
3535
| ~~`0sBBB`~~ | ShiftBoard/ConfirmDialog/SP | SP確定ダイアログ表示 |
3636

37+
## shift-submit.pen — スタッフシフト提出画面
38+
39+
| ID | Name | Description |
40+
|---|---|---|
41+
| `tuyCK` | ShiftSubmit/Unsubmitted | SP未提出+締切前(状態A) |
42+
| `AnaaY` | ShiftSubmit/Submitted | SP提出済み+締切前(状態B) |
43+
| `8rGfg` | ShiftSubmit/SubmittedExpired | SP提出済み+締切後(状態C) |
44+
| `ZNB1Z` | ShiftSubmit/Expired | SP未提出+締切後(状態D) |
45+
| `W9WOE` | ShiftSubmit/Complete | SP提出完了画面 |
46+
3747
## design.pen
3848
(画面デザイン)
3949

0 commit comments

Comments
 (0)