Skip to content

refactor(games): organize folder#44

Merged
d1rshan merged 3 commits into
mainfrom
refactor/games-folder
May 29, 2026
Merged

refactor(games): organize folder#44
d1rshan merged 3 commits into
mainfrom
refactor/games-folder

Conversation

@d1rshan

@d1rshan d1rshan commented May 29, 2026

Copy link
Copy Markdown
Owner
  • organize folder with new core/
  • cleanup imports

@d1rshan d1rshan marked this pull request as ready for review May 29, 2026 13:03
@greptile-apps

greptile-apps Bot commented May 29, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR reorganizes shared game infrastructure into a new core/ subdirectory under features/games/, and updates all import paths throughout the codebase accordingly. No logic changes are introduced.

  • Shared files (types.ts, utils.ts, hooks.ts, metrics.ts, components/, registry.ts) are moved from features/games/ to features/games/core/.
  • All consumers — including app.tsx, page components, commandline registry, and per-game modules — are updated to point at the new core/ paths; a grep confirms no stale @/features/games/(registry|types|hooks|metrics|utils|components) references remain.
  • Within the games feature itself, cross-module imports consistently use relative paths (e.g., ../core/types); external consumers use the @/ alias.

Confidence Score: 5/5

Pure folder reorganization with no logic changes; all import paths verified to be fully updated.

Every moved file has its imports updated, no stale references to the old paths remain anywhere in the codebase, and the new relative import style within the games feature is applied consistently. The deleted top-level registry.ts is fully replaced by the new core/registry.ts with identical exports.

No files require special attention.

Important Files Changed

Filename Overview
apps/frontend/src/features/games/core/registry.ts New registry file in core/ with relative imports from falling-words and survival index files; functionally identical to the deleted registry.ts
apps/frontend/src/features/games/registry.ts Old top-level registry.ts deleted; superseded by core/registry.ts
apps/frontend/src/features/games/survival/view.tsx All core imports updated to ../core/ relative paths; no logic changes
apps/frontend/src/features/games/falling-words/view.tsx Imports from components/ and types updated to ../core/; no logic changes
apps/frontend/src/app/app.tsx Updated three imports from @/features/games/* to @/features/games/core/*
apps/frontend/src/features/commandline/registry.ts Three import paths updated to core/; no logic changes

Reviews (1): Last reviewed commit: "fix import" | Re-trigger Greptile

@d1rshan d1rshan merged commit b9b860c into main May 29, 2026
2 checks passed
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.

1 participant