Skip to content

Conversation

@hikahana
Copy link
Collaborator

@hikahana hikahana commented Aug 16, 2025

対応Issue

  • resolve #0

概要

はあとでcursorに書かせます。
簡単に削除、更新を景品管理で行えるようにしました。
基本的にカード右上に削除、更新ボタンを配置し、クリックすると該当のモーダルを表示して処理する流れです。
更新時、削除時にはトーストメッセージを表示してます。

実装詳細

これは後で

画面スクリーンショット等

image image image

テスト項目

  • [ ]
  • [ ]
  • [ ]

備考

@hikahana hikahana changed the title Feat/hikahana/prize-deletion-and-update [admin] 景品削除、更新の追加 Aug 16, 2025
@hikahana hikahana requested a review from Copilot August 16, 2025 20:33
Copy link
Contributor

Copilot AI left a 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 UpdateOnePrizeBasic GraphQL mutation for updating prize names and images
  • Created modal components for prize editing and deletion with file upload support
  • Enhanced PrizeResult component 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.

@hikahana hikahana marked this pull request as ready for review August 21, 2025 05:01
Copy link
Member

@TkymHrt TkymHrt left a comment

Choose a reason for hiding this comment

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

LGTM

@TkymHrt TkymHrt merged commit d04de27 into develop Aug 23, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants