Skip to content

fix(curriculum): 教材の完成コードと本文が食い違う 6 件を直す (#759) - #770

Open
kouiso wants to merge 2 commits into
mainfrom
fix/sbi-759-code-text-mismatch
Open

kouiso wants to merge 2 commits into
mainfrom
fix/sbi-759-code-text-mismatch

Conversation

@kouiso

@kouiso kouiso commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

関連Issue

Closes #759
Refs #681

概要

教材の本文・Step コード・完成コード全体とリポジトリ src/ のあいだで食い違っていた 6 件を正本(src/)および配布部品の挙動に合わせて統一しました。

変更内容

  • day27_プロジェクト詳細・アーカイブを実装しよう.md / day12_メンバー追加.md: deleteMutation と removeMemberMutation の onSuccess に確認ダイアログを閉じて対象 ID を null に戻す処理を src/app/project/page.tsx と同じ形で追加
  • day19_コメント編集・削除.md: DeleteConfirmDialog が event.preventDefault() で自動閉じを止め onSuccess で閉じる実挙動に表と deleteCommentMutation を統一(あわせて Step 6 ゴールの重複脱字も修正)
  • day20_タスク検索機能.md: 検索結果 0 件時の文言を本文・Step コード・完成コードともに src/app/search/page.tsx と同じ「検索結果が見つかりませんでした」へ統一
  • day11_プロジェクト編集・削除.md: Day 09 で置いた handleProjectClick の受け皿が 3 行の関数定義であることを明記
  • day14_タスク新規作成.md / day18_コメント投稿.md: Day 14 完成コードの appRouter 登録順を時系列順(task → search、src/server/api/root.ts と一致)へ修正し、Day 18 の入れ替え手順を解消
  • day05_ログイン画面のUI.md: 本文中の省略表記 {...isPending ? ...} を実コードと同じ {loginMutation.isPending ? 'ログイン中...' : 'ログイン'} へ統一

見て欲しいポイント

  • 6 件すべてで本文・Step コード・完成コード・src/ が一致しているか

見なくてもよいポイント

  • アプリケーションコード(変更なし)

その他(あれば)

main マージ時に deploy-r2.yml が走るため、PR #765 マージ後に反映する想定です。


PR チェックポイント

  • タイトルに タスク管理ツール のチケット番号が入っているか(細かい hotfix 以外)
  • 複数の変更が 1 つの PR に入り込んでいないか
  • 開発環境修正(環境変数の追加・ライブラリのインストール等)がある場合は周知しているか
  • AdminXXX or OwnerXXX の修正時、横展開でもう一方の同機能も修正しているか(AdminやOwnerは例)

レビュー観点

  • 想定通りに動作するか
  • より良い書き方はないか?
  • より良い設計はないか?
  • 他の部分と書き方・命名・ディレクトリ構成等が異なっていないか?
  • 関数・コンポーネントの粒度は適切か?
  • その他(具体的に記述をしてください)

Devin Review

Closes #759

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@kouiso

kouiso commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

/devin review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Starting Devin Review.

Devin Review

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T03:12:35.749400Z
We couldn’t complete this review. Comment @codex review to try again.
760c1e8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 32 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 45f861a and 92b6fe0.

Files selected for processing: 8

  • material/30days-curriculum/day05_ログイン画面のUI.md
  • material/30days-curriculum/day11_プロジェクト編集・削除.md
  • material/30days-curriculum/day12_メンバー追加.md
  • material/30days-curriculum/day14_タスク新規作成.md
  • material/30days-curriculum/day18_コメント投稿.md
  • material/30days-curriculum/day19_コメント編集・削除.md
  • material/30days-curriculum/day20_タスク検索機能.md
  • material/30days-curriculum/day27_プロジェクト詳細・アーカイブを実装しよう.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Devin Review

|-----------|------|
| キャンセル | `onOpenChange` で false |
| 削除ボタンを押す | API の完了を待たず、`onOpenChange` で false |
| 削除ボタンを押す | `event.preventDefault()` で開いたまま保ち、削除成功の `onSuccess` で state を閉じる |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔍 教材の読点規約との不一致

「保ち、削除成功」は時間順の処理をつなぐ読点であり並列ではありません。AGENTS.md の教材規約は並列以外の読点を禁止しています。「開いたまま保つ。削除成功の…」と文を分ける形が規約に合います。

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

…mmas in Day 19

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@kouiso

kouiso commented Nov 17, 2026

Copy link
Copy Markdown
Owner Author

/devin review

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Starting Devin Review.

Devin Review

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SBI][material] 教材の完成コードと本文が食い違う 6 件を直す(親 #681)

1 participant