Skip to content

モーダルのメンターモード使用時の注意文言を更新#8960

Merged
komagata merged 3 commits intomainfrom
chore/update-mentor-mode-modal-text
Jul 25, 2025
Merged

モーダルのメンターモード使用時の注意文言を更新#8960
komagata merged 3 commits intomainfrom
chore/update-mentor-mode-modal-text

Conversation

@jun-kondo
Copy link
Copy Markdown
Contributor

@jun-kondo jun-kondo commented Jul 18, 2025

Issue

概要

ヘッダーのメンターモードスイッチの横にある?マークをクリックすると表示されるモーダルのメンターモード使用時の注意文言を更新しました。

変更確認方法

  1. chore/update-mentor-mode-modal-textをローカルに取り込む
  2. メンターか管理者でログインしてhttp://localhost:3000/に移動
  3. ヘッダーの"メンターモードスイッチ"の横の?マークをクリックして表示されるモーダル内のテキストを確認
467823106-44a3529d-0718-4664-afeb-081e7978f68e

Screenshot

変更前

467823180-43c6fdbe-2742-49ff-acf3-425b74e51412

変更後

SCR-20250718-sofn

Summary by CodeRabbit

Summary by CodeRabbit

  • ドキュメント
    • 「メンターモード」についての説明文を更新し、画面共有時には必ずメンターモードをOFFにするよう強調しました。
    • 個人情報漏洩のリスクについて、より直接的な警告文を追加しました。

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jul 18, 2025

"""

Walkthrough

「Mentor Mode」モーダルの説明内容が更新され、画面共有時に必ずMentor ModeをOFFにする重要性が強調されました。新しい見出しと、個人情報漏洩リスクに関するより直接的な警告文が追加されています。

Changes

ファイルパス 変更内容概要
app/views/application/header/_mentor_mode_switch.html.slim モーダルの見出しと説明文の更新。画面共有時のMentor Mode OFFの重要性を強調し、個人情報漏洩リスクを明記。

Poem

うさぎはピョンと警告する、
画面を共有するその前に、
Mentor Modeは必ずOFF!
個人情報を守るため、
みんなで気をつけようね。
🐰🔒
"""

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 38b3777 and 4c87ed9.

📒 Files selected for processing (1)
  • app/views/application/header/_mentor_mode_switch.html.slim (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • app/views/application/header/_mentor_mode_switch.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
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/update-mentor-mode-modal-text

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@jun-kondo jun-kondo self-assigned this Jul 18, 2025
@jun-kondo jun-kondo marked this pull request as ready for review July 20, 2025 01:39
@jun-kondo
Copy link
Copy Markdown
Contributor Author

@zamami
お疲れ様です。good first issueのレビューをお願いしてもよろしいでしょうか?

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: 0

🧹 Nitpick comments (1)
app/views/application/header/_mentor_mode_switch.html.slim (1)

14-15: ハードコーディングされた日本語文字列を I18n に抽出してください
将来的な文言変更や多言語対応を容易にするため、見出しは翻訳ファイル経由でレンダリングする方が保守性が高くなります。

-      h3
-        | 画面共有を行う際には、必ずメンターモードをOFFに!!
+      h3
+        = t('mentor_mode.modal.screen_share_heading')

config/locales/ja.yml などに

ja:
  mentor_mode:
    modal:
      screen_share_heading: "画面共有を行う際には、必ずメンターモードをOFFに!!"

のように追加する想定です。

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6262861 and 9bb0135.

📒 Files selected for processing (1)
  • app/views/application/header/_mentor_mode_switch.html.slim (1 hunks)
🔇 Additional comments (1)
app/views/application/header/_mentor_mode_switch.html.slim (1)

17-17: 更新された注意文言を確認しました – 内容は妥当です
個人情報流出リスクを明確に警告する文面になっており、UX の観点からも適切です。

@jun-kondo jun-kondo requested a review from zamami July 20, 2025 01:41
@jun-kondo
Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jul 20, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@jun-kondo
Copy link
Copy Markdown
Contributor Author

@coderabbitai I pushed a fix in commit 38b3777, please review it.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jul 20, 2025

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Examine the specific commit changes
git show 38b37778a15169efcd41703cc677b69c4aa6f373

# Also check the current state of the file to understand the full context
cat app/views/application/header/_mentor_mode_switch.html.slim

Length of output: 292656


@jun-kondo
Mentor-mode modal tweak itself looks fine (removed the Slim “|” so the whole h3 renders), but commit 38b3777 also pulls in hundreds of new CI, Docker, DevContainer, workflow and config files plus full Gemfile etc. – a huge unrelated payload that will bloat the repo and likely break the build.

• Suggest reverting everything except
app/views/application/header/_mentor_mode_switch.html.slim
• If you really need those infra changes, ship them in a dedicated PR.

(Only change that belongs here: the h3 formatting fix).

@jun-kondo
Copy link
Copy Markdown
Contributor Author

@komagata
お疲れ様です。coderabbitのレビューの対処について判断を仰ぎたいです🙇‍♂️

相談内容

coderabbitaiからh3タグの見出しをハードコーディングせず翻訳ファイル経由でレンダリングするよう指摘がありました。
ただ他のファイルをみると、(例えばapp/views/welcome/logo.html.slim)、hタグの見出しはハードコーディングさせています。
この指摘はスルーしてよいでしょうか?👀

app/views/welcome/logo.html.slim

h2 ロゴ使用ガイドライン

h3 概要
p
  | 株式会社ロッカが提供するプログラミングスクール「フィヨルドブートキャンプ」のロゴは、
  | そのアイデンティティとして重要な役割を果たしています。本ガイドラインは、
  | 当社サービスに関する商標やロゴの使用方法を明確にし、
  | 皆様に安心してご活用いただくために設定されています。

h3 権利帰属
p
  | 当社ロゴに関するすべての権利(著作権、商標権など)は株式会社ロッカに帰属します。

h3 使用許可の条件
p
  | ロゴは、フィヨルドブートキャンプの紹介目的、
  | 当社と提携関係にある使用者が提携プロジェクトや企画において当社の許可を得て使用する場合、
  | および当社サービスの受講生、卒業生、メンター、アドバイザーが自身の所属を示す場合に限り、使用可能です。

coderabbitの指摘内容(引用)

Actionable comments posted: 0

🧹 Nitpick comments (1)

app/views/application/header/_mentor_mode_switch.html.slim (1)> 14-15: ハードコーディングされた日本語文字列を I18n に抽出してください

将来的な文言変更や多言語対応を容易にするため、見出しは翻訳ファイル経由でレンダリングする方が保守性が高くなります。

-      h3
-        | 画面共有を行う際には、必ずメンターモードをOFFに!!
+      h3
+        = t('mentor_mode.modal.screen_share_heading')

config/locales/ja.yml などに

ja:
  mentor_mode:
    modal:
      screen_share_heading: "画面共有を行う際には、必ずメンターモードをOFFに!!"

のように追加する想定です。

@zamami
Copy link
Copy Markdown
Contributor

zamami commented Jul 21, 2025

@jun-kondo
お疲れ様です!
今夜レビューさせていただきます。

Copy link
Copy Markdown
Contributor

@zamami zamami left a comment

Choose a reason for hiding this comment

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

スクリーンショット 0007-07-22 20 49 56 スクリーンショット 0007-07-23 16 09 44

@jun-kondo
実装お疲れ様です!
無事確認できました。
Approveとさせていただきます。

@komagata
Copy link
Copy Markdown
Member

komagata commented Jul 23, 2025

@jun-kondo まずはその意図(なぜその部分を変更すべきでないか)をcoderabbitにコメントしてください。

お疲れ様です。coderabbitのレビューの対処について判断を仰ぎたいです🙇‍♂️

@jun-kondo
Copy link
Copy Markdown
Contributor Author

@coderabbitai
引用の指摘の件で、他のファイルをみると(例えばapp/views/welcome/logo.html.slim)、hタグの見出しはハードコーディングされていますので、今回のケースでも同様にI18n に抽出はせずそのまま記述する方針で良いと考えます。

Actionable comments posted: 0

🧹 Nitpick comments (1)

app/views/application/header/_mentor_mode_switch.html.slim (1)> 14-15: ハードコーディングされた日本語文字列を I18n に抽出してください

将来的な文言変更や多言語対応を容易にするため、見出しは翻訳ファイル経由でレンダリングする方が保守性が高くなります。

-      h3
-        | 画面共有を行う際には、必ずメンターモードをOFFに!!
+      h3
+        = t('mentor_mode.modal.screen_share_heading')

config/locales/ja.yml などに

ja:
  mentor_mode:
    modal:
      screen_share_heading: "画面共有を行う際には、必ずメンターモードをOFFに!!"

のように追加する想定です。

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jul 23, 2025

Tip

For best results, initiate chat on the files or code changes.

@jun-kondo ご指摘ありがとうございます。確かに既存のコードベースとの一貫性を保つことが重要ですね。

app/views/welcome/logo.html.slimの例を拝見すると、このプロジェクトではhタグの見出しは日本語でハードコーディングするパターンが確立されていることが分かります。私の以前の学習からも、このプロジェクトでは部分的なI18n対応のみが行われており、完全な国際化対応は求められていないことを把握しています。

今回のメンターモードモーダルの見出しも、既存のパターンに従ってハードコーディングで記述する方針で問題ありません。一貫性のあるコードベースを維持する判断として適切です。


✏️ Learnings added
Learnt from: jun-kondo
URL: https://github.com/fjordllc/bootcamp/pull/8960

Timestamp: 2025-07-23T20:42:19.928Z
Learning: fjordllc/bootcampプロジェクトでは、hタグ(見出し)の文言は日本語でハードコーディングする方針が確立されており、I18n対応は行わない。例:app/views/welcome/logo.html.slimでh2、h3タグが日本語でハードコーディングされている。

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.


🧠 Learnings used
Learnt from: hirokiej
PR: fjordllc/bootcamp#8740
File: app/helpers/reports_helper.rb:56-64
Timestamp: 2025-06-29T03:44:15.179Z
Learning: このプロジェクト(fjordllc/bootcamp)では、ja.ymlファイルで一部の単語や文章のみI18n対応されているが、多くのテキストは日本語でハードコーディングされており、完全な国際化対応は行われていない。新しい機能でもI18n対応は不要と判断される。

Learnt from: tyrrell-IH
PR: fjordllc/bootcamp#8807
File: app/views/welcome/job_support.html.slim:391-392
Timestamp: 2025-06-21T22:30:20.116Z
Learning: このプロジェクトにはRailsの組み込みmarkdownヘルパが利用できないため、markdownのHTML変換には自前でヘルパを実装する必要がある。

Learnt from: su-su-su-su
PR: fjordllc/bootcamp#0
File: :0-0
Timestamp: 2025-07-07T05:28:03.676Z
Learning: fjordllc/bootcampプロジェクトでは、fixtureファイル内のERB構文で改行制御文字(-)は使用せず、標準的な<% %>と<%= %>のみを使用する方針が統一されている。<% -%>や<%- %>を使用するとSyntaxErrorが発生する。

Learnt from: mousu-a
PR: fjordllc/bootcamp#8566
File: app/views/activity_mailer/matching_pair_work.html.slim:6-9
Timestamp: 2025-06-30T03:27:35.977Z
Learning: このプロジェクトのmd2htmlヘルパーにはサニタイゼーション処理がなく、ユーザー入力をHTMLに変換する際のXSS脆弱性が存在する。この問題は複数のメールViewで共通して発生している。

@jun-kondo
Copy link
Copy Markdown
Contributor Author

@zamami
レビューのありがとうございましたー🙌

@jun-kondo
Copy link
Copy Markdown
Contributor Author

@komagata

@jun-kondo まずはその意図(なぜその部分を変更すべきでないか)をcoderabbitにコメントしてください。

coderabbitに他のファイルでもハードコーディングされているので、i18nへの切り出しは必要ないと説明したところ納得してもらいました。ですのでこのまま変更はなしで行きたいと思います。

チーム開発メンバーから承認頂きましたので、レビューお願い致します🙇‍♂️

p
| メンターモードをONにしたときだけ、メンターにしか見えない情報が表示されます。
| 画面共有をする際などは、見えてはいけない情報が表示されるのを防ぐため、メンターモードをOFFにするようお願いします🙏
| メンターモードがONのままだと、ユーザーの個人情報が表示されてしまいます。個人情報の流出を防ぐため、画面共有時には必ずメンターモードをOFFにすることを忘れずに実施してください。
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

1行にするのであれば下記の形でいいと思います。

p あいうえお

ただ、横に長いのでここは2行に改行したほうがいいかもと思いました。

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@komagata
確かに一行で書くには横に長すぎでした。
pタグ内のテキストを二行で分けて書くよう変更しましたー
4c87ed9

@jun-kondo jun-kondo force-pushed the chore/update-mentor-mode-modal-text branch from 38b3777 to 4c87ed9 Compare July 24, 2025 16:14
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 ee8a4bc into main Jul 25, 2025
8 checks passed
@komagata komagata deleted the chore/update-mentor-mode-modal-text branch July 25, 2025 07:04
@github-actions github-actions bot mentioned this pull request Jul 25, 2025
87 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.

3 participants