Skip to content

使用していないフォルダ/ファイルの整理#81

Merged
miyakoshi-3854 merged 19 commits intomainfrom
refactor/79
Jul 29, 2025
Merged

使用していないフォルダ/ファイルの整理#81
miyakoshi-3854 merged 19 commits intomainfrom
refactor/79

Conversation

@nkoji21
Copy link
Member

@nkoji21 nkoji21 commented Jul 27, 2025

📝 変更内容

何を変更したか

  • App.tsx に書いていた各ルーティングの実装を、AppRoutes.tsx に分けることで、簡素化。

  • camera/ game/ の整理

  • styles/ を作成し、そこにグローバルCSSである、App.module.css index.css を格納

  • そのファイルでしか使用していない、型定義については export せず、そのコンポーネントの上部に配置するよう調整

なぜ変更したか

  • 使ってないコードや使ってないファイルなどが乱雑していたため。

🧪 テスト・確認項目

動作確認

  • プルリクエストにラベルを追加したか
  • アサインに自分を追加したか
  • ローカル環境で動作確認済み
  • 既存機能に影響がないことを確認
  • モバイル表示を確認(該当する場合)

📸 スクリーンショット(UI変更がある場合)

Before After
Before After

💡 補足事項


🔗 関連Issue

Closes #79

@nkoji21 nkoji21 self-assigned this Jul 27, 2025
Copilot AI review requested due to automatic review settings July 27, 2025 13:09
@nkoji21 nkoji21 requested a review from miyakoshi-3854 as a code owner July 27, 2025 13:09
@nkoji21 nkoji21 added ♻️ リファクタリング 機能は変えずに、コードをより綺麗で効率的にするタスク 🖥️ フロントエンド ユーザーが直接見る画面や操作に関わるタスク labels Jul 27, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

このPRは、プロジェクトのコード整理と構造改善を目的とした大規模なリファクタリングです。使用されていないファイルやコンポーネントの削除、ディレクトリ構造の最適化、型定義の統合を行っています。

  • App.tsxからルーティング実装をAppRoutes.tsxに分離し、簡素化
  • 未使用のgame/フォルダとcamera/フォルダの整理
  • グローバルCSSをstylesフォルダに集約
  • 型定義の統合と重複削除

Reviewed Changes

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

Show a summary per file
File Description
apps/web/wrangler.jsonc 環境変数設定の削除
apps/web/src/types/index.ts CameraRef型の追加
apps/web/src/styles/index.css ピクセルアート関連CSSの削除
apps/web/src/styles/App.module.css App.module.cssをstylesフォルダに移動
apps/web/src/main.tsx インポートパスの調整
apps/web/src/components/result/ResultScreen.tsx インポートパスの調整とコメント削除
apps/web/src/components/photo/PhotoScreen.tsx インポートパスとtype importの統合
apps/web/src/components/photo/PhotoPreview.tsx インポートパスの調整
apps/web/src/components/mode/ModeScreen.tsx インポートパスの調整
apps/web/src/components/index.tsx コンポーネントエクスポートファイルの削除
apps/web/src/components/home/HomeScreen.tsx インポートパスの調整
apps/web/src/components/game/types.ts 未使用型定義ファイルの削除
apps/web/src/components/game/timer.tsx 未使用タイマーコンポーネントの削除
apps/web/src/components/game/timer.module.css 未使用CSSファイルの削除
apps/web/src/components/game/shooting-screen.tsx 未使用撮影画面コンポーネントの削除
apps/web/src/components/game/shooting-screen.module.css 未使用CSSファイルの削除
apps/web/src/components/camera/types.ts カメラ型定義ファイルの削除
apps/web/src/components/camera/index.tsx カメラエクスポートファイルの削除
apps/web/src/components/camera/camera.tsx 型定義のローカル化とimport統合
apps/web/src/AppRoutes.tsx ルーティング定義の新規作成
apps/web/src/App.tsx ルーティング実装の分離と簡素化
apps/web/src/App.module.css ファイルの削除とstylesフォルダへの移動

Copy link
Collaborator

@miyakoshi-3854 miyakoshi-3854 left a comment

Choose a reason for hiding this comment

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

確認しました。

@miyakoshi-3854 miyakoshi-3854 merged commit fa9bdd0 into main Jul 29, 2025
1 check passed
@miyakoshi-3854 miyakoshi-3854 deleted the refactor/79 branch July 29, 2025 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♻️ リファクタリング 機能は変えずに、コードをより綺麗で効率的にするタスク 🖥️ フロントエンド ユーザーが直接見る画面や操作に関わるタスク

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FE] リファクタリング-使用していないフォルダの整理など

3 participants