Repository navigation
fix(console): point sites create links at the combined create page - #14694
Conversation
/sites/create/templates and /sites/create/repositories have no index route; templates and repositories are listed on /sites/create. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Review complete. 🟡 1 medium 💬 Inline comments (1)
The change consolidates the sites-create wizard entry points after the dedicated
Reviewed commit: ed6c231 |
New ConsoleProject ID: Tip Every Git commit and branch gets its own deployment URL automatically |
🟢 Tier S · Ready to merge
Updated the site-creation wizard links for browsing templates, importing from Git, changing repositories, and handling missing templates to use the combined create page. That page is the index that presents both templates and repositories.
📂 Walkthrough · 4
Reviewed |
There was a problem hiding this comment.
This PR repoints four sites-create wizard views (Manual Upload, Quick Deploy, Repository Config, Template Config) so their back-links and fallbacks navigate to the unified /sites/create route instead of the removed /sites/create/repositories and /sites/create/templates child routes.
Key findings
- 🟡 Stale
types-baseline.jsonentries for fixed links — ManualUploadView.tsx:313
| <div className="space-y-2"> | ||
| <Link | ||
| to="/projects/$projectId/sites/create/repositories" | ||
| to="/projects/$projectId/sites/create" |
There was a problem hiding this comment.
🟡 bug · medium
Stale types-baseline.json entries for fixed links
This PR removes the route-target type errors in ManualUploadView.tsx, QuickDeployView.tsx, RepositoryConfigView.tsx, and TemplateConfigView.tsx, but types-baseline.json still pins those TS2353/TS2820 entries for the removed /projects/$projectId/sites/create/repositories and /projects/$projectId/sites/create/templates targets (ManualUploadView alone has four stale entries). Per apps/console/AGENTS.md, bun run lint:types fails when a file has fewer errors than its baseline, so CI will fail on this change until the baseline is shrunk. The retargeting itself is correct: the combined /projects/$projectId/sites/create index renders both the repository picker and the template gallery.
📋 Prompt for AI Agents
After fixing the sites-create link targets in apps/console/src/components/pages/projects/$projectId/sites/create/{ManualUploadView,QuickDeployView,RepositoryConfigView,TemplateConfigView}.tsx, run bun run lint:types --update in apps/console and commit the updated types-baseline.json. It must drop the TS2353 and TS2820 entries referencing '/projects/$projectId/sites/create/repositories' and '/projects/$projectId/sites/create/templates' for those four files (ManualUploadView.tsx lines ~961-971, QuickDeployView.tsx ~973-977, RepositoryConfigView.tsx ~979-982, TemplateConfigView.tsx ~984-987 of types-baseline.json), because the PR removed the errors the baseline pins and CI lint:types fails when a file has fewer errors than its baseline.
#14694 pointed the sites create links at /sites/create, which removed the route errors the baseline still allowed, so lint:types failed on main.
appwrite#14694 pointed the sites create links at /sites/create, which removed the route errors the baseline still allowed, so lint:types failed on main.

"Browse templates", "Import from Git" and the template/repository fallback links pointed at
/sites/create/templatesand/sites/create/repositories, which have no index route and 404. They now go to/sites/create, which lists both.Tested: type check clean for the changed files.
🤖 Generated with Claude Code
Related: appwrite-labs/cloud#6672