Skip to content

Conversation

@TkymHrt
Copy link
Member

@TkymHrt TkymHrt commented Sep 1, 2025

対応Issue

概要

ビンゴ判定モーダルの選択機能の修正とESLint設定の更新

実装詳細

.vscode/settings.json

  • ESLintの自動修正設定を "source.fixAll.eslint": true から "source.fixAll.eslint": "explicit" に変更。

view-admin/src/components/common/JudgementModal/JudgementModal.tsx

  • hasSelection 関数の削除(不要な型ガード)。
  • getNextEditableCell 関数の削除(自動移動機能を削除)。
  • KEYPAD 定数の追加(キーパッドのラベルを定数化)。
  • finalizePendingInput 関数の追加(保留中の入力を確定するロジック)。
  • ビンゴ判定時の動作改善(保留入力を考慮)。
  • セルクリック時の動作改善(入力中の切り替え)。
  • キーボードイベントの追加(Enterキーで確定可能)。
  • UIの条件分岐を簡略化(selectedCell のチェックを直接化)。

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

テスト項目

  • ビンゴ判定モーダルの数字入力が正しく動作するか(他セル選択で入力値が確定する)

@TkymHrt TkymHrt self-assigned this Sep 1, 2025
@github-actions github-actions bot added frontend bug Something isn't working labels Sep 1, 2025
@TkymHrt TkymHrt requested a review from hikahana September 1, 2025 15:28
Copy link
Collaborator

@YosukeIida YosukeIida left a comment

Choose a reason for hiding this comment

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

LGTM

};

const resetAll = () => {
finalizePendingInput(true);
Copy link
Collaborator

Choose a reason for hiding this comment

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

JudgementModal.tsx resetAll関数のところで, finalizePendingInput(true); これって必要なの?
finalizePendingInput関数って,入力途中の値をビンゴ盤に「保存」する関数であってる?

この行なくてもいいのかもと思ったのですが,どうでしょう??
そうすると,setBingoCard が2回呼ばれなくていいのなと思ったんだけど

Copy link
Collaborator

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.

解決してます!

Copy link
Collaborator

Choose a reason for hiding this comment

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

おけまる!マージしちゃいますーーー

Copy link
Collaborator

@hikahana hikahana left a comment

Choose a reason for hiding this comment

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

LGTM

@hikahana hikahana merged commit 886f489 into develop Sep 5, 2025
3 checks passed
@TkymHrt TkymHrt mentioned this pull request Sep 5, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants