Skip to content

fix(console): point sites create links at the combined create page - #14694

Merged
HarshMN2345 merged 1 commit into
mainfrom
fix-console-sites-create-links
Oct 20, 2026
Merged

HarshMN2345 merged 1 commit into
mainfrom
fix-console-sites-create-links

Conversation

@HarshMN2345

@HarshMN2345 HarshMN2345 commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

"Browse templates", "Import from Git" and the template/repository fallback links pointed at /sites/create/templates and /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

/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]>
@luxor-code-review

luxor-code-review Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Review complete. 🟡 1 medium

💬 Inline comments (1)


The change consolidates the sites-create wizard entry points after the dedicated /repositories and /templates child routes were removed: every view now links back to the wizard root, which hosts both repository and template selection. The edits are almost entirely link-target swaps via TanStack Router Link components, with only one extra finding on a stale snapshot file.

Files Change
ManualUploadView.tsx, QuickDeployView.tsx "Import from Git" links now target /sites/create (project-scoped) instead of the removed repositories child route
RepositoryConfigView.tsx "Change" action returns to the wizard root so repository selection is re-chosen there
TemplateConfigView.tsx "Browse templates" and the not-found fallback now navigate to the wizard root

Reviewed commit: ed6c231

@appwrite

appwrite Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

New Console

Project ID: new-console

Sites (1)
Site Status Logs Preview QR
 New Console
new-console
Ready Ready View Logs Preview URL QR Code

Tip

Every Git commit and branch gets its own deployment URL automatically

@ghost

ghost commented Oct 20, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The updated destinations resolve to the combined create index and preserve the project route parameter.

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.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 4
File Change
apps/console/src/components/pages/projects/$projectId/sites/create/ManualUploadView.tsx Directs the Git and template browsing links to the combined create page.
apps/console/src/components/pages/projects/$projectId/sites/create/QuickDeployView.tsx Directs the import-from-Git fallback to the combined create page.
apps/console/src/components/pages/projects/$projectId/sites/create/RepositoryConfigView.tsx Directs the repository Change link to the combined create page.
apps/console/src/components/pages/projects/$projectId/sites/create/TemplateConfigView.tsx Directs the missing-template fallback to the combined create page.

Reviewed ed6c231 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost 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.

🟢 Tier S · Looks good to merge. Summary

@HarshMN2345
HarshMN2345 merged commit b12fd53 into main Oct 20, 2026
25 of 27 checks passed

@luxor-code-review luxor-code-review 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.

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

<div className="space-y-2">
<Link
to="/projects/$projectId/sites/create/repositories"
to="/projects/$projectId/sites/create"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 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.

ChiragAgg5k added a commit that referenced this pull request Oct 20, 2026
#14694 pointed the sites create links at /sites/create, which removed the
route errors the baseline still allowed, so lint:types failed on main.
@ChiragAgg5k ChiragAgg5k self-assigned this Oct 20, 2026
MateenAkram1 pushed a commit to MateenAkram1/appwrite that referenced this pull request Oct 20, 2026
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.
@ChiragAgg5k ChiragAgg5k mentioned this pull request Oct 21, 2026
6 tasks
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