Skip to content

Conversation

@yokomaru
Copy link
Contributor

@yokomaru yokomaru commented Dec 17, 2025

Issue

概要

  • 分報のページ( /users/:user_id/micro_reports )を開いた場合、独自の layout ファイルが適用されるようにした
  • layout ファイルは分報ページのみ使用する

変更確認方法

  1. chore/create_micro_report_layout_fileをローカルに取り込む
  • 続きはデザイン適用後に追加する

Screenshot

  • デザイン適用後にスクショをとる

変更前

変更後

Summary by CodeRabbit

  • 改善
    • マイクロレポート画面に専用レイアウトを導入し、表示の一貫性と見た目を向上しました。
    • レイアウトにより各マイクロレポートページのコンテンツ挿入が安定し、柔軟なテンプレート構造をサポートします。

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Dec 17, 2025

Walkthrough

Users::MicroReportsControllerに対して layout "micro_report" を指定し、app/views/layouts/micro_report.html.slimyield を追加して専用レイアウトを導入しました。コントローラのロジックやルーティングは変更していません。

Changes

コホート / ファイル 変更の説明
マイクロレポートレイアウト実装
app/controllers/users/micro_reports_controller.rb, app/views/layouts/micro_report.html.slim
Users::MicroReportsControllerlayout "micro_report" を追加し、app/views/layouts/micro_report.html.slim を作成/更新して yield を追加。ビュー挿入ポイントを確立。

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8分

  • 注意点:
    • 既存マイクロレポート関連ビューとの表示整合性確認(スタイル/ヘルパーの依存)。
    • レイアウトで期待するメタタグやタイトルの供給方法(必要に応じて確認)。

Possibly related issues

Possibly related PRs

Suggested reviewers

  • komagata
  • sharoa119

🐰 レビュー記念ポエム

新しいレイアウトでぴょんと跳ね、
小さなyieldが道を作るよ。
ビューは入って、ページは笑う、
にんじん片手に完成祝い。 🥕✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed PRのタイトルは、分報ページに独自のlayoutファイルを適用するという主な変更を明確に要約しており、変更内容に完全に関連しています。
Description check ✅ Passed PR説明は提供されたテンプレートの必須セクション(Issue、概要、変更確認方法)をほぼ完全に含めており、主な要件を満たしています。
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/create_micro_report_layout_file

📜 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 446bcbe and afe025a.

📒 Files selected for processing (2)
  • app/controllers/users/micro_reports_controller.rb (1 hunks)
  • app/views/layouts/micro_report.html.slim (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • app/controllers/users/micro_reports_controller.rb
  • app/views/layouts/micro_report.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.

@yokomaru yokomaru marked this pull request as ready for review December 18, 2025 13:17
@yokomaru yokomaru self-assigned this Dec 18, 2025
@yokomaru yokomaru force-pushed the chore/create_micro_report_layout_file branch from 750f58a to 446bcbe Compare December 18, 2025 13:24
@yokomaru yokomaru force-pushed the chore/create_micro_report_layout_file branch from 446bcbe to afe025a Compare December 18, 2025 13:37
@yokomaru
Copy link
Contributor Author

@machida
分報用layout空ファイルを作成し、contollerにて分報ページに適応させました!
現状は以下のように表示されております!layoutページには一応 =yieldのみ追加している状態です。
分報に関するsystemテストがいくつか落ちていますが、デザインを当てていただいてから修正いたします。

スクリーンショット 2025-12-18 22 27 55

ご確認とデザイン等お願いします🙏

@machida
Copy link
Member

machida commented Dec 20, 2025

@yokomaru メンションありがとうございます!デザイン入れますー💪

@yokomaru
Copy link
Contributor Author

@machida
こちらリマインドになります!お手隙でご対応お願いいたします〜🙌

@machida
Copy link
Member

machida commented Jan 14, 2026

@yokomaru すいません!!リマインドありがとうございます🙏

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.

3 participants