Skip to content

site: rename /templates route to /apps - #8170

Merged
ankur-arch merged 1 commit into
mainfrom
rename-templates-route-to-apps
Aug 25, 2026
Merged

site: rename /templates route to /apps#8170
ankur-arch merged 1 commit into
mainfrom
rename-templates-route-to-apps

Conversation

@sneub

@sneub sneub commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Renames the template gallery route from /templates to /apps.

What changed

Route

  • apps/site/src/app/templates/apps/site/src/app/apps/
  • Permanent redirect /templates/apps in next.config.mjs, in the rebrand redirect block
  • Footer resources link updated (Templates → /templates became Apps → /apps) so it doesn't bounce through the redirect

Page copy (app/apps/page.tsx)

  • Kicker TemplatesApps, h1 Start from a templateStart from an app
  • Card CTA Use templateUse this app
  • Empty state Templates are unavailableApps are unavailable
  • Page metadata title and path

/compute hero tour — stop four followed the same naming

  • Tab label TemplatesApps, caption reworded
  • Illustration run-templates.tsxrun-apps.tsx, RunTemplatesRunApps, registry key runTemplatesrunApps
  • Its visible copy: section label, card chrome filename, and the HeroPanel aria label

The sitemap is derived from the App Router tree, so /apps is picked up with no edit.

Deliberately unchanged

  • Analytics labelsctaLocation="templates-card" and utm_medium=templates. Renaming these splits the metric history at the rename; happy to change them if that's preferred.
  • Internal identifiersTEMPLATE_MANIFEST_URL, templateManifestSchema, type Template, getTemplates, TemplateCard. The source of truth is still prisma-examples/compute/templates.json with a templates array, so the code stays named after the schema it parses. These should follow if/when that manifest is renamed.
  • console.prisma.io/templates/:id — the console owns that path. If the rename is product-wide, that side needs its own change.

Testing

oxfmt --check and oxlint pass on the touched files. Full types:check was not run clean in my checkout — node_modules isn't installed there, so it reports TS2307 Cannot find module across the whole app plus some pre-existing implicit-anys. Nothing in the touched files.

Summary by CodeRabbit

  • New Features

    • Renamed the template gallery to Apps, including page titles, labels, messaging, and navigation.
    • Updated product tours and illustrations to refer to starter apps.
  • Bug Fixes

    • Added a permanent redirect from /templates to /apps, preserving existing links and bookmarks.

Moves the template gallery from /templates to /apps and adds a permanent
redirect for the old URL. Page headings, the footer resources link, and
the /compute hero tour's fourth stop follow the new naming.

Internal identifiers that mirror the external manifest
(prisma-examples/compute/templates.json) keep their names, as does the
console deploy URL and the existing analytics labels, so the metric
history stays continuous.
@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blog Ready Ready Preview Aug 25, 2026 8:56am
docs Ready Ready Preview Aug 25, 2026 8:56am
eclipse Ready Ready Preview Aug 25, 2026 8:56am
site Ready Ready Preview Aug 25, 2026 8:56am

Request Review

@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 25f557fb-e019-4187-9120-eb1cba20d430

📥 Commits

Reviewing files that changed from the base of the PR and between 96ace31 and 718e31f.

📒 Files selected for processing (6)
  • apps/site/next.config.mjs
  • apps/site/src/app/apps/page.tsx
  • apps/site/src/components/product/content/compute.ts
  • apps/site/src/components/product/illustrations/index.ts
  • apps/site/src/components/product/illustrations/run-apps.tsx
  • apps/site/src/lib/config.ts

Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review.


Walkthrough

The template gallery is renamed to apps across page metadata, UI copy, the hero tour, illustration exports, and footer navigation. A permanent redirect maps /templates to /apps. Template data fetching and card URLs remain unchanged.

Changes

Apps gallery rename

Layer / File(s) Summary
Apps page identity and content
apps/site/src/app/apps/page.tsx
The page metadata, exported function, hero text, deployment button, and unavailable-state messages now use apps terminology.
Apps tour illustration
apps/site/src/components/product/content/compute.ts, apps/site/src/components/product/illustrations/*
The hero tour and illustration exports use runApps and RunApps. Illustration labels and internal starter data names use apps terminology.
Route redirect and navigation
apps/site/next.config.mjs, apps/site/src/lib/config.ts
The site permanently redirects /templates to /apps. Footer navigation links to /apps with the label “Apps”.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 718e3

This PR renames the gallery route to /apps while preserving /templates through a permanent redirect and updates related page and navigation copy. No actionable merge-blocking risk remains beyond normal checks and review.

Suggested reviewers: nurul3101

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 6 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the primary change: renaming the site route from /templates to /apps.
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.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch rename-templates-route-to-apps

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.

@ankur-arch
ankur-arch merged commit f0466be into main Aug 25, 2026
19 checks passed
@ankur-arch
ankur-arch deleted the rename-templates-route-to-apps branch August 25, 2026 09:09
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.

2 participants