Skip to content

日報一覧のプラクティスの絞り込む機能を修正#9238

Merged
komagata merged 1 commit intomainfrom
bug/fix-practice-filter-in-report-list
Oct 21, 2025
Merged

日報一覧のプラクティスの絞り込む機能を修正#9238
komagata merged 1 commit intomainfrom
bug/fix-practice-filter-in-report-list

Conversation

@matuaya
Copy link
Copy Markdown
Contributor

@matuaya matuaya commented Oct 6, 2025

Issue

概要

日報一覧の「プラクティスで絞り込む」でプラクティスを選択してもページがリロードせずに一覧が更新されないバグを修正しました。

変更確認方法

  1. bug/fix-practice-filter-in-report-listをローカルに取り込む。
  2. 任意のユーザーでログインする。
  3. 左のメニュー一覧から「日報・ブログ」を選択し、日報一覧のページに行く。(http://localhost:3000/reports)
  4. 「プラクティスで絞り込む」で「Terminalの基礎を覚える」を選択する。
  5. 日報の一覧が更新され、関連の日報のみが表示されることを確認する。

Screenshot

UIに変化はないため省略します。

Summary by CodeRabbit

  • Bug Fixes
    • レポート画面のフォームで、フィルタ操作(選択)の変更時にその値がGET送信されるようになりました。これにより選択項目が画面遷移や検索結果に正しく反映されます。

@matuaya matuaya marked this pull request as ready for review October 6, 2025 08:22
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Oct 6, 2025

Walkthrough

app/views/reports/index.html.slimform_with 内で form_item ブロックのインデントを修正し、label_tagselect_tag がフォーム内に含まれるように移動しました。これにより該当の入力が GET 提出に含まれるようになります。

Changes

Cohort / File(s) Summary
View: reports index form nesting
app/views/reports/index.html.slim
form_item ブロックのインデントを修正し、label_tagselect_tagform_with ブロック内にネスト。これにより該当フィールドがフォーム送信のスコープ内になる。

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant U as ユーザー
  participant B as ブラウザ (DOM)
  participant S as サーバー

  rect rgb(235, 245, 255)
  note over B: 旧フロー(フィールドがフォーム外)
  U->>B: 入力/選択
  U->>B: フォーム送信(GET)
  B->>S: GET(該当フィールドが欠落)
  S-->>B: 応答
  end

  rect rgb(230, 255, 230)
  note over B: 新フロー(フィールドがフォーム内)
  U->>B: 入力/選択
  U->>B: フォーム送信(GET)
  B->>S: GET(全フィールド含む)
  S-->>B: 応答
  end
Loading

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • komagata
  • sjabcdefin

Poem

ピョンと直してフォームに入る
風にのせた選択が帰る場所へ
クリックで舞い込む値たちよ
迷わず届け、サーバーの扉へ 🥕

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title Check ✅ Passed タイトルは「日報一覧のプラクティスの絞り込む機能を修正」として、主な変更点であるプラクティス絞り込み機能のバグ修正を簡潔かつ明確に表現しており、要件を満たしています。
Description Check ✅ Passed プルリクエスト説明はテンプレートの「Issue」「概要」「変更確認方法」「Screenshot」セクションを網羅しており、Issueリンクや検証手順が具体的に記載されています。UIに変化がない旨も明記されていて、実装内容と動作確認手順が明確です。
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bug/fix-practice-filter-in-report-list

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 17e5922 and 74af23d.

📒 Files selected for processing (1)
  • app/views/reports/index.html.slim (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • app/views/reports/index.html.slim
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build_and_test

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot requested a review from okuramasafumi October 6, 2025 08:22
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1a61fa1 and 17e5922.

📒 Files selected for processing (1)
  • app/views/reports/index.html.slim (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build_and_test

Comment thread app/views/reports/index.html.slim Outdated
@matuaya matuaya self-assigned this Oct 6, 2025
@matuaya matuaya force-pushed the bug/fix-practice-filter-in-report-list branch from 17e5922 to 74af23d Compare October 6, 2025 09:00
@matuaya
Copy link
Copy Markdown
Contributor Author

matuaya commented Oct 6, 2025

@karlley
お疲れ様です😌
もし可能でしたらレビューをお願いできますでしょうか?🙇‍♀️
ご負担であれば遠慮なくおっしゃってください☺️

@matuaya matuaya requested a review from karlley October 6, 2025 09:17
@karlley
Copy link
Copy Markdown
Contributor

karlley commented Oct 6, 2025

@matuaya
お疲れさまです!

もし可能でしたらレビューをお願いできますでしょうか?🙇‍♀️

他に1件レビュー中なので別の方に依頼していただいてもよろしいでしょうか?💦

@matuaya
Copy link
Copy Markdown
Contributor Author

matuaya commented Oct 7, 2025

@karlley
そうでしたか💦
ご連絡ありがとうございます!🙏

@matuaya matuaya removed the request for review from karlley October 7, 2025 07:12
@matuaya
Copy link
Copy Markdown
Contributor Author

matuaya commented Oct 7, 2025

@smallmonkeykey
お疲れ様です☺️
もしご負担でなければレビューをお願いできますでしょうか?🙇‍♀️

@matuaya matuaya requested a review from smallmonkeykey October 7, 2025 07:18
@smallmonkeykey
Copy link
Copy Markdown
Contributor

@matuaya
承知しました!3日以内にレビュー返します!

@matuaya
Copy link
Copy Markdown
Contributor Author

matuaya commented Oct 7, 2025

@smallmonkeykey
ありがとうございます!よろしくお願いいたします🙏
全く急ぎではないので、いつでもご都合の良いタイミングでご確認いただけると嬉しいです☺️
一週間とかかかっても全然大丈夫です👍

Copy link
Copy Markdown
Contributor

@smallmonkeykey smallmonkeykey left a comment

Choose a reason for hiding this comment

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

@matuaya
すみません、失念しており、予定より1時間遅れてしまいました🙇‍♂️
本当にすみませんでした。
動作確認ばっちりできました!
Approveいたします🙆

@matuaya
Copy link
Copy Markdown
Contributor Author

matuaya commented Oct 11, 2025

@smallmonkeykey
ありがとうございました!☺️🙏
本当に全く急ぎではなかったので全然遅れたとか気にしないでください😊

@matuaya
Copy link
Copy Markdown
Contributor Author

matuaya commented Oct 11, 2025

@okuramasafumi
チームメンバーのレビューが完了いたしましたのでご確認いただけると嬉しいです🙇‍♀️

Copy link
Copy Markdown
Contributor

@okuramasafumi okuramasafumi left a comment

Choose a reason for hiding this comment

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

lGTM!

なるほど、インデントのミスだったのですね、これはたしかにぱっと見で気づきづらい…

再発防止について少し考えてみましたが、form_withの中身が空(すぐ下の行が同じ深さのインデントになっている)なときにLinterで警告する、くらいしか思いつきませんでした…

@matuaya
Copy link
Copy Markdown
Contributor Author

matuaya commented Oct 15, 2025

@okuramasafumi
レビューありがとうございました!
恥ずかしながら再発防止については考えていなかったので、参考になりました🙇‍♀️

@komagata
レビューが完了しましたのでマージお願いいたします🙇‍♀️

Copy link
Copy Markdown
Member

@komagata komagata left a comment

Choose a reason for hiding this comment

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

確認させていただきました。OKです〜🙆‍♂️

@komagata komagata merged commit c18d501 into main Oct 21, 2025
12 checks passed
@komagata komagata deleted the bug/fix-practice-filter-in-report-list branch October 21, 2025 15:38
@github-actions github-actions Bot mentioned this pull request Oct 21, 2025
16 tasks
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.

5 participants