Skip to content

Conversation

@kimurash
Copy link
Member

@kimurash kimurash commented Nov 20, 2024

やったこと

  • 書籍を削除するとき
  • ユーザを削除するとき ebf1684
  • ダイアログにタイトルを表示した 7b368f9
  • ダイアログとモーダルを同時に表示しないようにした e9513ce

イシューとは関係ない変更

  • マイページのメールアドレスにカーソルを合わせても何も表示されないようにした
  • モーダルのフォントサイズを大きくした
  • REDMEの実装済みの機能にチェックをつけた

確認した方法

pnpm run dev

スクリーンショット

image

自動生成したコード

なし

@kimurash kimurash added the frontend frontend development label Nov 20, 2024
@kimurash kimurash requested review from Kosei805 and Copilot November 20, 2024 07:10
@kimurash kimurash self-assigned this Nov 20, 2024
Copy link

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.

Copilot reviewed 5 out of 6 changed files in this pull request and generated no suggestions.

Files not reviewed (1)
  • frontend/app/routes/home.global.books.$isbn/route.tsx: Evaluated as low risk
Comments skipped due to low confidence (2)

frontend/app/components/book-detail/BookDetailDeleteButton.tsx:25

  • The button text 'キャンセル' should be consistent with the rest of the application. Consider changing it to 'Cancel'.
キャンセル

frontend/app/components/book-detail/BookDetailDeleteButton.tsx:49

  • The button text '削除' should be consistent with the rest of the application. Consider changing it to 'Delete'.
削除

@kimurash kimurash changed the title 破壊的な操作を実行するボタンを押した時に確認用のダイアログを表示する 削除を実行するボタンを押した時に確認用のダイアログを表示する Nov 22, 2024
@kimurash kimurash changed the title 削除を実行するボタンを押した時に確認用のダイアログを表示する 削除するボタンを押した時に確認用のダイアログを表示する Nov 22, 2024
@kimurash kimurash marked this pull request as ready for review November 22, 2024 14:51
@kimurash kimurash requested a review from Copilot November 22, 2024 20:08
Copy link

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.

Copilot reviewed 11 out of 11 changed files in this pull request and generated no suggestions.

@kimurash
Copy link
Member Author

image

Copy link
Contributor

@Kosei805 Kosei805 left a comment

Choose a reason for hiding this comment

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

細かいところが気になります
修正よろ!

- [x] ユーザー一覧
- [x] ユーザー追加
- [x] ユーザー編集
- [x] ユーザー削除
Copy link
Contributor

Choose a reason for hiding this comment

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

書き忘れてたわすまん

削除
</Button>
<>
<Modal
Copy link
Contributor

Choose a reason for hiding this comment

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

個人的にはBookDetailDeleteButtonのファイルではなく、Modelは別コンポーネントとしてファイルにすべきかと思う。

Copy link
Member Author

Choose a reason for hiding this comment

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

別コンポーネントに切り出した 8b2037a

Copy link
Contributor

Choose a reason for hiding this comment

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

おkです

justify="center"
gap="md"
<>
<Modal
Copy link
Contributor

Choose a reason for hiding this comment

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

別ファイルを用意した方がいい気がする。

Copy link
Member Author

Choose a reason for hiding this comment

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

別コンポーネントに切り出した 5cdd5f3

Copy link
Contributor

Choose a reason for hiding this comment

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

おkです

削除
</Button>
<>
<Modal
Copy link
Contributor

Choose a reason for hiding this comment

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

Modalは別ファイルにしたい

Copy link
Member Author

Choose a reason for hiding this comment

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

別コンポーネントに切り出した afe3516

Copy link
Contributor

Choose a reason for hiding this comment

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

おkです

id: loan.books.id,
stock: loan.loans.volume,
thumbnail: loan.books.thumbnail,
...loan.books,
Copy link
Contributor

Choose a reason for hiding this comment

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

これはstock=現在借りている本やから、stock=loan.volumeにしてるねん
このままやとstockが本の在庫数ならんか?
stockってカードのヘッダーの最大値って認識です

Copy link
Member Author

@kimurash kimurash Nov 23, 2024

Choose a reason for hiding this comment

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

危ない危ない e4500ef

Copy link
Contributor

Choose a reason for hiding this comment

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

おkです

@Kosei805
Copy link
Contributor

LGTMです
マージしてよかよ

@kimurash kimurash merged commit bcd5107 into main Nov 24, 2024
3 checks passed
@kimurash kimurash deleted the 147-destroy-dialog branch November 24, 2024 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend frontend development

Projects

Status: Done

3 participants