refactor: rename frontend/ to web/#6
Conversation
📝 WalkthroughWalkthroughRenames all Changesfrontend → web rename
Mobile
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Renames the Next.js layer directory from frontend/ to web/ and updates every path, command, agent name, and doc reference across CLAUDE.md, AGENTS.md, CONTRIBUTING.md, README.md, .claude/ agents and commands, backend docs, and web/docs/ to match.
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@backend/internal/server/routes.go`:
- Line 14: The CORS AllowOrigins configuration in the routes.go file is set to
an outdated port. Update the AllowOrigins array entry from http://localhost:5173
to http://localhost:3000 to match the actual development port where the web app
runs. This will ensure that CORS validation passes for legitimate requests from
the frontend to the backend during local development.
In `@CONTRIBUTING.md`:
- Around line 96-97: Update the comment on line 96 from "# Frontend (hot
reload)" to "# Web (hot reload)" to match the renamed directory referenced in
the command on line 97 (cd web && pnpm dev). The comment should accurately
reflect the directory name to maintain consistency in the documentation.
In `@web/package.json`:
- Line 2: The `.github/labeler.yml` file contains an outdated reference to the
old package path. Update line 34 in `.github/labeler.yml` by changing the path
reference from "frontend/package.json" to "web/package.json" to ensure the
GitHub labeler automation correctly identifies and labels pull requests that
modify the renamed package.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 8dbaa979-047d-4e08-bdb8-f7113ab8e56b
⛔ Files ignored due to path filters (7)
web/app/favicon.icois excluded by!**/*.icoweb/pnpm-lock.yamlis excluded by!**/pnpm-lock.yamlweb/public/file.svgis excluded by!**/*.svgweb/public/globe.svgis excluded by!**/*.svgweb/public/next.svgis excluded by!**/*.svgweb/public/vercel.svgis excluded by!**/*.svgweb/public/window.svgis excluded by!**/*.svg
📒 Files selected for processing (37)
.claude/agents/docs.md.claude/agents/reviewer.md.claude/agents/web.md.claude/commands/check.md.claude/commands/implement.mdAGENTS.mdCLAUDE.mdCONTRIBUTING.mdREADME.mdbackend/docs/routing.mdbackend/internal/server/routes.gomobile/.gitignoremobile/.idea/.gitignoremobile/.idea/.namemobile/.idea/AndroidProjectSystem.xmlmobile/.idea/gradle.xmlmobile/.idea/misc.xmlmobile/.idea/runConfigurations.xmlmobile/.idea/vcs.xmlweb/.gitignoreweb/AGENTS.mdweb/CLAUDE.mdweb/README.mdweb/app/globals.cssweb/app/layout.tsxweb/app/page.tsxweb/docs/_index.mdweb/docs/components.mdweb/docs/data-fetching.mdweb/docs/routing.mdweb/docs/styling.mdweb/eslint.config.mjsweb/next.config.tsweb/package.jsonweb/pnpm-workspace.yamlweb/postcss.config.mjsweb/tsconfig.json
💤 Files with no reviewable changes (7)
- mobile/.idea/runConfigurations.xml
- mobile/.idea/.name
- mobile/.idea/misc.xml
- mobile/.idea/AndroidProjectSystem.xml
- mobile/.idea/vcs.xml
- mobile/.idea/gradle.xml
- mobile/.idea/.gitignore
- CORS AllowOrigins: 5173 -> 3000 to match the web app dev server - CONTRIBUTING.md: Frontend (hot reload) -> Web (hot reload)
Label name "frontend" -> "web", and all glob paths updated to match the renamed directory.
Summary
Renames the Next.js layer from
frontend/toweb/throughout the entire project.frontend/→web/(git rename, history preserved).claude/agents/frontend.md→.claude/agents/web.md,name: webCLAUDE.md,AGENTS.md,README.md,CONTRIBUTING.md,backend/docs/routing.md,backend/internal/server/routes.go,web/docs/_index.md,web/docs/data-fetching.md,web/package.json,.claude/agents/docs.md,.claude/agents/reviewer.md,.claude/commands/check.md,.claude/commands/implement.mdTest plan
cd web && pnpm install && pnpm devstarts the dev server at:3000cd web && pnpm lint && pnpm buildpassesfrontendpath references:grep -r "frontend" . --include="*.md" --include="*.go" --include="*.ts" --include="*.json" -lSummary by CodeRabbit
Release Notes
Documentation
web/directory (including Web docs index and documentation locations).Chores
frontend/toweb/across setup, checks, agent workflows, and labeling rules.Bug Fixes
localhost:3000).