Skip to content

Feature/explain#240

Merged
Tako50 merged 3 commits into
mainfrom
feature/explain
Nov 6, 2025
Merged

Feature/explain#240
Tako50 merged 3 commits into
mainfrom
feature/explain

Conversation

@Tako50

@Tako50 Tako50 commented Nov 6, 2025

Copy link
Copy Markdown
Collaborator

関連issue

Resolves #239

変更概要

動作確認方法やスクリーンショット

Copilot AI review requested due to automatic review settings November 6, 2025 08:08

Copilot AI 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.

Pull Request Overview

このPRは、ルート編集画面のモーダル表示ロジックをデモ用途に最適化する変更です。初回のみモーダルを表示する実装から、編集ボタンを押すたびにモーダルを表示する挙動に変更し、デモンストレーション時のユーザビリティを向上させています。

  • 初回起動時のモーダル表示ロジック(useEffect)を削除
  • 編集ボタン押下時に毎回モーダルを表示するように変更(デモ用のデフォルト動作)
  • 本番用の初回のみ表示するロジックをコメントとして残し、切り替え可能にする

Comment thread frontend/src/app/route/page.tsx Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings November 6, 2025 08:11
@Tako50 Tako50 merged commit 62321e9 into main Nov 6, 2025
2 checks passed

Copilot AI 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.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment on lines +199 to +207
/*try {
const seen = localStorage.getItem("route_info_seen");
if (seen !== "1") {
setShowModal(true);
}
} catch (e) {
// localStorage にアクセスできない環境ではモーダルを表示しておく
setShowModal(true);
}*/

Copilot AI Nov 6, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] 本番想定のコードがコメントアウトされたままになっていますが、ハッカソンのデモが終わった後に切り替える際に、このコメントアウトを解除し忘れる可能性があります。環境変数や設定ファイルでモード切替を制御するか、少なくともコメントにTODOを追加することを検討してください。例:// TODO: デモ終了後に本番モードに切り替える

Copilot uses AI. Check for mistakes.
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.

編集のモーダルが初回にrouteページにでたときに出てしまう

2 participants