Skip to content

Conversation

kamatealif
Copy link

@kamatealif kamatealif commented Aug 30, 2025

Summary

This PR updates components to use the new Svelte 5 syntax for handling props.

Changes

  • Replaced the old Svelte 4 style:

    export let data;
    
  • With the new Svelte 5 destructured props syntax:

     let { data } = $props();
    
    

Why

Svelte 5 introduces a new $props() API for working with props, replacing the export let ... syntax used in Svelte 4.
This migration ensures the codebase is compatible with Svelte 5 and avoids deprecated syntax.

Additional Notes

No functional logic was changed — only syntax was updated.

All components now follow Svelte 5 standards for prop definitions

switched the data props which is coming from the parent component to use the svelte 5 runes 
changes :
export let data;
to 
let { data } = $props();
 and  this works as well
@coolify-appwrite-org
Copy link

coolify-appwrite-org bot commented Aug 30, 2025

The preview deployment failed. 🔴

Open Build Logs

Last updated at: 2025-08-30 06:28:02 CET

Copy link

appwrite bot commented Aug 30, 2025

appwrite.io

Project ID: 684969cb000a2f6c0a02

Sites (1)
Site Status Logs Preview QR
 website
68496a17000f03d62013
Failed Failed Authorize Preview URL QR Code

Note

Appwrite has a Discord community with over 16 000 members.

Copy link
Contributor

coderabbitai bot commented Aug 30, 2025

Walkthrough

The change updates prop handling in src/routes/docs/tutorials/sveltekit/step-7/+page.markdoc. The page no longer declares an exported prop (export let data). Instead, it retrieves the prop via internal destructuring from $props(), using let { data } = $props(). No other logic or UI changes are introduced.

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a 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 (4)
src/routes/docs/tutorials/sveltekit/step-7/+page.markdoc (4)

54-55: Optional: align event handlers with Svelte 5 style.

For consistency with Svelte 5 docs, consider switching on:submit/on:click to onsubmit/onclick in the snippet. (svelte.dev)

Apply this minimal diff to the snippet:

-        <form on:submit={add}>
+        <form onsubmit={add}>
...
-                    <button type="button" on:click={() => remove(idea.$id)}>Remove</button>
+                    <button type="button" onclick={() => remove(idea.$id)}>Remove</button>

Also applies to: 85-86


26-26: Nit: use “svelte” code fence for better highlighting.

Change the code block language from html to svelte for accurate syntax highlighting in docs.

-```html
+```svelte

32-33: Docs enhancement: add a TS-typed variant.

If the tutorial targets TS users, show the typed form using PageProps (added in SvelteKit 2.16.0). (svelte.io, svelte.dev)

Add alongside the JS example:

<script lang="ts">
  import type { PageProps } from './$types';
  let { data }: PageProps = $props();
</script>

4-4: Grammar: fix description text.

“pagining” → “pagination”; “you SvelteKit” → “your SvelteKit”.

-description: Add pagining and ordering to you SvelteKit application powered by Appwrite Databases.
+description: Add pagination and ordering to your SvelteKit application powered by Appwrite Databases.
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 434e7fb and 333bb2c.

📒 Files selected for processing (1)
  • src/routes/docs/tutorials/sveltekit/step-7/+page.markdoc (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: build
  • GitHub Check: tests
  • GitHub Check: format
🔇 Additional comments (1)
src/routes/docs/tutorials/sveltekit/step-7/+page.markdoc (1)

32-32: Svelte 5 props migration looks correct.

Using let { data } = $props(); is the recommended replacement for export let data; in Svelte 5/SvelteKit pages. No functional changes needed. (svelte.dev)

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.

1 participant