職務経歴書フォームの項目削除を見出しのアイコンボタンへ移設#303
Conversation
|
Warning Review limit reached
More reviews will be available in 24 minutes and 45 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (11)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
職務経歴・取引先・プロジェクト・資格の各項目で、最下部にフル幅で縦積み されていた削除ボタンが「どの項目のものか分かりづらい」問題を解消する。 削除を各項目の見出し右端の小さなゴミ箱アイコンに移設し、追加ボタンは プラスアイコン+テキストに調整した。 - 共通コンポーネント DeleteIconButton を追加(4箇所で再利用、stopPropagation でアコーディオンの誤トグルを防止) - カスタム SVG アイコン TrashIcon / PlusIcon を追加(依存追加なし) - 職務経歴は Collapsible の既存 headerActions スロットを利用 - 削除ロジックと props のシグネチャは変更なし(配置と見た目のみ) - aria-label は UI_MESSAGES に集約 https://claude.ai/code/session_01RkNhFS1GApCyYXvM64zPcZ
4b2e8dc to
d83291a
Compare
|
@coderabbitai PVして |
|
✅ Action performedReview finished.
|
|
@coderabbitai PVして |
|
✅ Action performedReview finished.
|
概要
職務経歴書フォームで、各項目の削除ボタンが項目の最下部にフル幅で縦積みされており、
スクロールすると「どの削除ボタンがどの項目のものか分かりづらい」「縦に長い」問題を解消する。
削除を各項目の見出し右端の小さなゴミ箱アイコンに移設し、追加ボタンはプラスアイコン+テキストに調整した。
対象は職務経歴 / 取引先 / プロジェクト / 資格の4セクション。
変更内容
新規
components/ui/DeleteIconButton.tsx— 見出し右端に置くアイコンのみの削除ボタン(4箇所で共通利用)。stopPropagationでアコーディオンの誤トグルを防止。components/icons/TrashIcon.tsx/PlusIcon.tsx— カスタム SVG アイコン(依存追加なし)。各セクション
Collapsibleの既存headerActionsスロットに削除アイコンを配置。PlusIconを付与(位置は従来どおり)。その他
UI_MESSAGESに集約。テスト
DeleteIconButton3 ケース含む)/ node:test /lint-frontend-messagesGenerated by Claude Code