site: rename /templates route to /apps - #8170
Conversation
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.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. WalkthroughThe template gallery is renamed to apps across page metadata, UI copy, the hero tour, illustration exports, and footer navigation. A permanent redirect maps ChangesApps gallery rename
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This PR renames the gallery route to Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 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 template gallery route from
/templatesto/apps.What changed
Route
apps/site/src/app/templates/→apps/site/src/app/apps//templates→/appsinnext.config.mjs, in the rebrand redirect blockTemplates → /templatesbecameApps → /apps) so it doesn't bounce through the redirectPage copy (
app/apps/page.tsx)Templates→Apps, h1Start from a template→Start from an appUse template→Use this appTemplates are unavailable→Apps are unavailable/computehero tour — stop four followed the same namingTemplates→Apps, caption rewordedrun-templates.tsx→run-apps.tsx,RunTemplates→RunApps, registry keyrunTemplates→runAppsHeroPanelaria labelThe sitemap is derived from the App Router tree, so
/appsis picked up with no edit.Deliberately unchanged
ctaLocation="templates-card"andutm_medium=templates. Renaming these splits the metric history at the rename; happy to change them if that's preferred.TEMPLATE_MANIFEST_URL,templateManifestSchema,type Template,getTemplates,TemplateCard. The source of truth is stillprisma-examples/compute/templates.jsonwith atemplatesarray, 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 --checkandoxlintpass on the touched files. Fulltypes:checkwas not run clean in my checkout —node_modulesisn't installed there, so it reportsTS2307 Cannot find moduleacross the whole app plus some pre-existing implicit-anys. Nothing in the touched files.Summary by CodeRabbit
New Features
Bug Fixes
/templatesto/apps, preserving existing links and bookmarks.