-
Notifications
You must be signed in to change notification settings - Fork 0
[admin] 景品削除、更新の追加 #346
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
[admin] 景品削除、更新の追加 #346
Conversation
There was a problem hiding this comment.
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 adds prize deletion and update functionality to the admin interface. The implementation includes GraphQL mutations for updating prize basic information and UI components for editing and deleting prizes.
Key Changes:
- Added
UpdateOnePrizeBasicGraphQL mutation for updating prize names and images - Created modal components for prize editing and deletion with file upload support
- Enhanced
PrizeResultcomponent with edit/delete action buttons and state management
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| view-admin/src/type/graphql.ts | Added GraphQL types and mutations for prize updates, image listing, and fixed typo in subscription naming |
| view-admin/src/gql/prizes.gql | Added UpdateOnePrizeBasic mutation for updating prize basic information |
| view-admin/src/gql/images.gql | Added GetListImages query for retrieving image listings |
| view-admin/src/components/common/PrizeResult/PrizeResult.tsx | Enhanced with edit/delete functionality, modal integration, and improved image handling |
| view-admin/src/components/common/PrizeResult/PrizeResult.module.css | Added styles for action buttons and improved card layout |
| view-admin/src/components/common/PrizeEditModal/PrizeEditModal.tsx | New modal component for editing prize information with drag-and-drop file upload |
| view-admin/src/components/common/PrizeEditModal/PrizeEditModal.module.css | Styles for the edit modal with responsive design |
| view-admin/src/components/common/PrizeDeleteModal/PrizeDeleteModal.tsx | New confirmation modal for prize deletion |
| view-admin/src/components/common/PrizeDeleteModal/PrizeDeleteModal.module.css | Styles for the delete confirmation modal |
| AGENTS.md | Added repository guidelines and coding standards documentation |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Prod/prize deletion update 20250823
TkymHrt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
対応Issue
概要
はあとでcursorに書かせます。
簡単に削除、更新を景品管理で行えるようにしました。
基本的にカード右上に削除、更新ボタンを配置し、クリックすると該当のモーダルを表示して処理する流れです。
更新時、削除時にはトーストメッセージを表示してます。
実装詳細
これは後で
画面スクリーンショット等
テスト項目
備考