-
Notifications
You must be signed in to change notification settings - Fork 208
Fix: issues in sites build settings #2770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Console (appwrite/console)Project ID: Tip MCP server integration brings LLM superpowers to Claude Desktop and Cursor IDE |
WalkthroughThis pull request improves null/undefined handling across three site configuration and settings files. The changes introduce fallback placeholder text for form input fields when adapter data is unavailable, add optional chaining and default value logic for static adapter fallback file resolution, and remove a trailing semicolon from UI text. These modifications enhance the robustness of form inputs and adapter data access patterns without altering control flow or functional behavior. Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/routes/(console)/project-[region]-[project]/sites/site-[site]/settings/updateBuildSettings.svelte (1)
98-106: LGTM! Safe fallback logic for Static adapter.The code correctly ensures a fallback value exists for Static adapters by using optional chaining and defaulting to 'index.html'. The logic safely handles cases where the Static adapter configuration might be missing.
Minor note: The inner
if (!fallback)check is technically redundant since the||=operator already performs this check, but the explicit condition improves readability and doesn't impact functionality.♻️ Optional simplification
The inner
if (!fallback)condition could be removed since||=already checks if the left operand is falsy:$effect(() => { if (adapter === Adapter.Static) { - if (!fallback) { - fallback ||= - selectedFramework.adapters.find((a) => a.key === Adapter.Static) - ?.fallbackFile || 'index.html'; - } + fallback ||= + selectedFramework.adapters.find((a) => a.key === Adapter.Static) + ?.fallbackFile || 'index.html'; } });However, the current explicit structure is also acceptable and may be clearer to some readers.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
src/routes/(console)/project-[region]-[project]/sites/create-site/configuration.sveltesrc/routes/(console)/project-[region]-[project]/sites/create-site/manual/+page.sveltesrc/routes/(console)/project-[region]-[project]/sites/site-[site]/settings/updateBuildSettings.svelte
🧰 Additional context used
📓 Path-based instructions (5)
**/*.{ts,tsx,js,jsx,svelte}
📄 CodeRabbit inference engine (AGENTS.md)
**/*.{ts,tsx,js,jsx,svelte}: Import reusable modules from the src/lib directory using the $lib alias
Use minimal comments in code; reserve comments for TODOs or complex logic explanations
Use $lib, $routes, and $themes aliases instead of relative paths for module imports
Files:
src/routes/(console)/project-[region]-[project]/sites/create-site/manual/+page.sveltesrc/routes/(console)/project-[region]-[project]/sites/create-site/configuration.sveltesrc/routes/(console)/project-[region]-[project]/sites/site-[site]/settings/updateBuildSettings.svelte
src/routes/**/*.svelte
📄 CodeRabbit inference engine (AGENTS.md)
Use SvelteKit file conventions: +page.svelte for components, +page.ts for data loaders, +layout.svelte for wrappers, +error.svelte for error handling, and dynamic route params in square brackets like [param]
Files:
src/routes/(console)/project-[region]-[project]/sites/create-site/manual/+page.sveltesrc/routes/(console)/project-[region]-[project]/sites/create-site/configuration.sveltesrc/routes/(console)/project-[region]-[project]/sites/site-[site]/settings/updateBuildSettings.svelte
**/*.{ts,tsx,js,jsx,svelte,json}
📄 CodeRabbit inference engine (AGENTS.md)
Use 4 spaces for indentation, single quotes, 100 character line width, and no trailing commas per Prettier configuration
Files:
src/routes/(console)/project-[region]-[project]/sites/create-site/manual/+page.sveltesrc/routes/(console)/project-[region]-[project]/sites/create-site/configuration.sveltesrc/routes/(console)/project-[region]-[project]/sites/site-[site]/settings/updateBuildSettings.svelte
**/*.svelte
📄 CodeRabbit inference engine (AGENTS.md)
Use Svelte 5 + SvelteKit 2 syntax with TypeScript for component development
Files:
src/routes/(console)/project-[region]-[project]/sites/create-site/manual/+page.sveltesrc/routes/(console)/project-[region]-[project]/sites/create-site/configuration.sveltesrc/routes/(console)/project-[region]-[project]/sites/site-[site]/settings/updateBuildSettings.svelte
src/routes/**
📄 CodeRabbit inference engine (AGENTS.md)
Configure dynamic routes using SvelteKit convention with [param] syntax in route directory names
Files:
src/routes/(console)/project-[region]-[project]/sites/create-site/manual/+page.sveltesrc/routes/(console)/project-[region]-[project]/sites/create-site/configuration.sveltesrc/routes/(console)/project-[region]-[project]/sites/site-[site]/settings/updateBuildSettings.svelte
🧠 Learnings (4)
📚 Learning: 2025-11-19T11:22:42.553Z
Learnt from: atharvadeosthale
Repo: appwrite/console PR: 2512
File: src/routes/(console)/project-[region]-[project]/overview/platforms/llmBanner.svelte:51-83
Timestamp: 2025-11-19T11:22:42.553Z
Learning: In src/routes/(console)/project-[region]-[project]/overview/platforms/llmBanner.svelte, the Cursor integration URL format `https://cursor.com/link/prompt` with the `text` query parameter is correct and functional.
Applied to files:
src/routes/(console)/project-[region]-[project]/sites/create-site/manual/+page.sveltesrc/routes/(console)/project-[region]-[project]/sites/create-site/configuration.svelte
📚 Learning: 2025-11-19T11:22:42.553Z
Learnt from: atharvadeosthale
Repo: appwrite/console PR: 2512
File: src/routes/(console)/project-[region]-[project]/overview/platforms/llmBanner.svelte:51-83
Timestamp: 2025-11-19T11:22:42.553Z
Learning: In src/routes/(console)/project-[region]-[project]/overview/platforms/llmBanner.svelte, the Lovable integration URL format `https://lovable.dev/` with `autosubmit` and `prompt` as query parameters (set via searchParams) is correct and functional.
Applied to files:
src/routes/(console)/project-[region]-[project]/sites/create-site/manual/+page.sveltesrc/routes/(console)/project-[region]-[project]/sites/create-site/configuration.svelte
📚 Learning: 2025-09-30T07:41:06.679Z
Learnt from: ItzNotABug
Repo: appwrite/console PR: 2425
File: src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)/empty.svelte:454-468
Timestamp: 2025-09-30T07:41:06.679Z
Learning: In `src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)/empty.svelte`, the column suggestions API (console.suggestColumns) has a maximum limit of 7 columns returned, which aligns with the initial placeholder count of 7 in customColumns.
Applied to files:
src/routes/(console)/project-[region]-[project]/sites/create-site/configuration.svelte
📚 Learning: 2025-11-25T03:15:27.539Z
Learnt from: CR
Repo: appwrite/console PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-11-25T03:15:27.539Z
Learning: Applies to src/routes/**/*.svelte : Use SvelteKit file conventions: +page.svelte for components, +page.ts for data loaders, +layout.svelte for wrappers, +error.svelte for error handling, and dynamic route params in square brackets like [param]
Applied to files:
src/routes/(console)/project-[region]-[project]/sites/site-[site]/settings/updateBuildSettings.svelte
🔇 Additional comments (2)
src/routes/(console)/project-[region]-[project]/sites/create-site/manual/+page.svelte (1)
198-198: LGTM! Minor UI text improvement.Removing the trailing semicolon makes the instruction text more grammatically correct.
src/routes/(console)/project-[region]-[project]/sites/create-site/configuration.svelte (1)
98-99: LGTM! Good UX improvement with fallback placeholders.The placeholder fallbacks provide clear guidance when adapter data is unavailable or empty. The optional chaining safely handles null/undefined
adapterData, and the logical OR operator ensures users always see helpful placeholder text.Also applies to: 113-113, 127-128

What does this PR do?
(Provide a description of what this PR does.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)
Related PRs and Issues
(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.)
Have you read the Contributing Guidelines on issues?
(Write your answer here.)
Summary by CodeRabbit
Release Notes
Bug Fixes
Style
✏️ Tip: You can customize this high-level summary in your review settings.