Skip to content

refactor: rename frontend/ to web/#6

Merged
GRACENOBLE merged 5 commits into
mainfrom
web-rename
Jun 14, 2026
Merged

refactor: rename frontend/ to web/#6
GRACENOBLE merged 5 commits into
mainfrom
web-rename

Conversation

@GRACENOBLE

@GRACENOBLE GRACENOBLE commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Summary

Renames the Next.js layer from frontend/ to web/ throughout the entire project.

  • Directory frontend/web/ (git rename, history preserved)
  • Agent .claude/agents/frontend.md.claude/agents/web.md, name: web
  • Every path, run command, doc reference, and prose mention of "frontend" updated across: CLAUDE.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.md

Test plan

  • cd web && pnpm install && pnpm dev starts the dev server at :3000
  • cd web && pnpm lint && pnpm build passes
  • No remaining frontend path references: grep -r "frontend" . --include="*.md" --include="*.go" --include="*.ts" --include="*.json" -l

Summary by CodeRabbit

Release Notes

  • Documentation

    • Updated docs and agent/contributor instructions to consistently reference the web/ directory (including Web docs index and documentation locations).
  • Chores

    • Standardized template/project references from frontend/ to web/ across setup, checks, agent workflows, and labeling rules.
    • Updated web run/lint/build instructions and adjusted mobile IDE ignore/config cleanup.
  • Bug Fixes

    • Corrected the backend CORS allowed origin to match the Next.js web app URL (localhost:3000).

@coderabbitai

coderabbitai Bot commented Jun 14, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Renames all frontend directory and label references to web across the entire project: root docs, AI agent and command instructions, web package config, backend CORS configuration, and GitHub Actions labeler. Also removes committed IntelliJ .idea/ IDE files from the mobile directory.

Changes

frontend → web rename

Layer / File(s) Summary
web/package.json rename and CORS origin updates
web/package.json, backend/internal/server/routes.go, backend/docs/routing.md
Renames the npm package from frontend to web, updates the CORS allowed-origin inline comment in routes.go, and corrects the documented CORS origin from port 5173 to 3000 in backend routing docs.
web/docs index and path references
web/docs/_index.md, web/docs/data-fetching.md
Retitles the docs index from "Frontend Docs Index" to "Web Docs Index" and corrects the local Next.js docs path reference from frontend/node_modules/... to web/node_modules/....
AI agent and command instruction files
.claude/agents/docs.md, .claude/agents/reviewer.md, .claude/agents/web.md, .claude/commands/check.md, .claude/commands/implement.md
Replaces all frontend path references, key-file listings, lint/build commands, delegation instructions, and agent persona metadata with web equivalents.
CI labeler config and root project documentation
.github/labeler.yml, AGENTS.md, CLAUDE.md, CONTRIBUTING.md, README.md
Updates labeler to apply web labels and match web/** paths; replaces all frontend directory references, dev/lint/build commands, table labels, commit scopes, agent paths, and doc-path mappings with web across root documentation.

Mobile .idea cleanup

Layer / File(s) Summary
.idea gitignore consolidation and file removal
mobile/.gitignore, mobile/.idea/*
Replaces granular .idea/* gitignore entries with a single /.idea rule; empties or removes contents of .gitignore, .name, AndroidProjectSystem.xml, gradle.xml, misc.xml, runConfigurations.xml, and vcs.xml.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~4 minutes

Possibly related PRs

  • GRACENOBLE/fullstack-template#1: Introduced the original .claude/agents/docs.md, AGENTS.md, and CLAUDE.md agentic-infrastructure files whose frontend/docs/ paths and lint/build command references are being renamed in this PR.

Poem

🐇 Hop, hop, a name's been swapped today,
frontend has scurried and bounded away.
Now web/ stands proud in each doc and each guide,
The .idea clutter cast gently aside.
A tidy warren, from README to rule —
This bunny loves code that's consistent and cool! 🌿

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title 'refactor: rename frontend/ to web/' directly and clearly describes the main change—renaming the frontend directory to web throughout the project.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch web-rename

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

📥 Commits

Reviewing files that changed from the base of the PR and between 2feff2e and e67962c.

⛔ Files ignored due to path filters (7)
  • web/app/favicon.ico is excluded by !**/*.ico
  • web/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
  • web/public/file.svg is excluded by !**/*.svg
  • web/public/globe.svg is excluded by !**/*.svg
  • web/public/next.svg is excluded by !**/*.svg
  • web/public/vercel.svg is excluded by !**/*.svg
  • web/public/window.svg is 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.md
  • AGENTS.md
  • CLAUDE.md
  • CONTRIBUTING.md
  • README.md
  • backend/docs/routing.md
  • backend/internal/server/routes.go
  • mobile/.gitignore
  • mobile/.idea/.gitignore
  • mobile/.idea/.name
  • mobile/.idea/AndroidProjectSystem.xml
  • mobile/.idea/gradle.xml
  • mobile/.idea/misc.xml
  • mobile/.idea/runConfigurations.xml
  • mobile/.idea/vcs.xml
  • web/.gitignore
  • web/AGENTS.md
  • web/CLAUDE.md
  • web/README.md
  • web/app/globals.css
  • web/app/layout.tsx
  • web/app/page.tsx
  • web/docs/_index.md
  • web/docs/components.md
  • web/docs/data-fetching.md
  • web/docs/routing.md
  • web/docs/styling.md
  • web/eslint.config.mjs
  • web/next.config.ts
  • web/package.json
  • web/pnpm-workspace.yaml
  • web/postcss.config.mjs
  • web/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

Comment thread backend/internal/server/routes.go Outdated
Comment thread CONTRIBUTING.md Outdated
Comment thread web/package.json
- 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.
@github-actions github-actions Bot added the ci label Jun 14, 2026
@GRACENOBLE GRACENOBLE merged commit a9c6e2f into main Jun 14, 2026
1 of 2 checks passed
@GRACENOBLE GRACENOBLE deleted the web-rename branch June 14, 2026 19:55
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