Phase 0-1: CLAUDE.md / README.md を現構成に同期 - #69
Merged
Conversation
旧スタティックSPA時代の記述を現在のExpress+モジュール構成に更新。 - ファイル構成: js/modules/*.js とバックエンド構成を反映 - Google OAuth設定: Client IDはハードコードではなく .env 管理→ GET /api/config で実行時取得する旨に修正(ポート8081の言及を削除) - UI状態管理: 実在しない #loginSection/#profileSection を、実際の #loginPrompt/#profileInfo/#appContent に修正 - 認証フロー: loadConfig() からの設定取得ステップを追記 - フロントテスト慣習: Phase 1 で実コードimport方式へ移行予定の注記を追加 - README: 存在しない YOUR_GOOGLE_CLIENT_ID 差し替え手順を .env 設定に修正、 DBパスを server/shifts.db → data/shift.db に訂正 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
リファクタリング計画 Phase 0(リポジトリ衛生)の作業項目 0-1 です。ドキュメントのみの変更で、コードの挙動には影響しません。
背景
CLAUDE.mdの「アーキテクチャ」「Google OAuth 設定」「UI 状態管理」節が、初期のスタティック SPA 時代の記述のまま残っており、現在の実装と食い違っていました。古い情報が人や AI エージェントを誤誘導するため、以降のリファクタリングの前提として実態に揃えます。主な修正
index.htmlとapp.jsにハードコード.env管理 →GET /api/configで実行時取得localhost:8081localhost:3000(本番は対象ドメイン)#loginSection/#profileSection#loginPrompt/#profileInfo/#appContentapp.jsのみ言及js/modules/*.js(16 ファイル)+ バックエンド構成を明記YOUR_GOOGLE_CLIENT_IDを HTML/JS に差し替え.envのGOOGLE_CLIENT_IDに設定server/shifts.dbdata/shift.db#loginPrompt等の要素 ID と Client ID がハードコードされていないことは実コード(index.html, js/modules/config.js, auth.js, server/src/routes/config.ts)で確認済みです。フロントエンドテストの慣習節には、Phase 1 で実コード import 方式へ移行する旨の注記を追加しました。
🤖 Generated with Claude Code