Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[WIP] Add formspree, clerk and react-admin templates to sites#10031

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
vermakhushboo wants to merge4 commits into1.7.x
base:1.7.x
Choose a base branch
Loading
fromchore-add-new-site-templates

Conversation

vermakhushboo
Copy link
Member

What does this PR do?

Add formspree, clerk and react-admin templates to sites

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. Screenshots may also be helpful.)

Related PRs and Issues

  • (Related PR or issue)

Checklist

  • Have you read theContributing Guidelines on issues?
  • If the PR includes a change to an API's metadata (desc, label, params, etc.), does it also include updated API specs and example docs?

@coderabbitaicoderabbitai
Copy link

coderabbitaibot commentedJun 19, 2025
edited
Loading

📝 Walkthrough

Walkthrough

This change updates the configuration file responsible for site templates by appending three new template entries. Each entry includes metadata such as a unique key, name, tagline, use case, version, framework configuration, and placeholders for screenshot URLs. The "React Admin Dashboard" template defines specific environment variables, while the "Formspree" and "Clerk" templates currently have empty environment variable arrays. All new templates are categorized under the "STARTER" use case and have a score of 1. No existing templates are modified or removed, and there are no changes to function signatures or other exported entities.

Possibly related PRs

  • Feat: Add playground templates #9676: Adds a set of playground templates and replaces some existing starter templates in the same configuration file, modifying the site template array in a similar manner but with different template types and configurations.

📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between88239a2 and8d7c76a.

⛔ Files ignored due to path filters (4)
  • public/images/sites/templates/template-for-formspree-dark.png is excluded by!**/*.png
  • public/images/sites/templates/template-for-formspree-light.png is excluded by!**/*.png
  • public/images/sites/templates/template-for-react-admin-dashboard-dark.png is excluded by!**/*.png
  • public/images/sites/templates/template-for-react-admin-dashboard-light.png is excluded by!**/*.png
📒 Files selected for processing (1)
  • app/config/templates/site.php (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • app/config/templates/site.php
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: Setup & Build Appwrite Image
  • GitHub Check: Linter
  • GitHub Check: Setup & Build Appwrite Image
  • GitHub Check: scan
✨ Finishing Touches
  • 📝 Generate Docstrings

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 withCodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • 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. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • 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 src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

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

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings togenerate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add@coderabbitai 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.

Documentation and Community

  • Visit ourDocumentation for detailed information on how to use CodeRabbit.
  • Join ourDiscord Community to get help, request features, and share feedback.
  • Follow us onX/Twitter for updates and announcements.

Copy link

@coderabbitaicoderabbitaibot 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: 1

🧹 Nitpick comments (3)
app/config/templates/site.php (3)

1418-1436:Complete the template configuration for Formspree integration.

The Formspree template appears incomplete:

  1. Wrong screenshot URLs: Using lynx gallery template URLs instead of Formspree-specific ones.
  2. Empty variables array: Formspree typically requires configuration variables (e.g., form endpoint, API key).
  3. Incomplete TODO items: Multiple TODO comments suggest this template needs further development.

Since this is a WIP template, consider adding typical Formspree environment variables:

-        'variables' => [] // TODO: Add env vars once added to template+        'variables' => [+            [+                'name' => 'VITE_FORMSPREE_ENDPOINT',+                'description' => 'Your Formspree form endpoint',+                'value' => '',+                'placeholder' => 'https://formspree.io/f/your-form-id',+                'required' => true,+                'type' => 'text'+            ],+        ]

And update the screenshot URLs:

-        'screenshotDark' => $url . '/images/sites/templates/gallery-for-lynx-dark.png', // TODO: Update this-        'screenshotLight' => $url . '/images/sites/templates/gallery-for-lynx-light.png', // TODO: Update this+        'screenshotDark' => $url . '/images/sites/templates/template-for-formspree-dark.png',+        'screenshotLight' => $url . '/images/sites/templates/template-for-formspree-light.png',

1437-1455:Complete the template configuration for Clerk integration.

The Clerk template configuration is incomplete:

  1. Wrong screenshot URLs: Using lynx gallery template URLs instead of Clerk-specific ones.
  2. Missing environment variables: Clerk integration typically requires API keys and configuration.
  3. Incomplete TODO items: Multiple TODO comments indicate this template needs completion.

Consider adding typical Clerk environment variables for Next.js:

-        'variables' => [] // TODO: Add the relevant variables for Clerk+        'variables' => [+            [+                'name' => 'NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY',+                'description' => 'Your Clerk publishable key',+                'value' => '',+                'placeholder' => 'pk_test_...',+                'required' => true,+                'type' => 'text'+            ],+            [+                'name' => 'CLERK_SECRET_KEY',+                'description' => 'Your Clerk secret key',+                'value' => '',+                'placeholder' => 'sk_test_...',+                'required' => true,+                'type' => 'password'+            ],+        ]

And update the screenshot URLs:

-        'screenshotDark' => $url . '/images/sites/templates/gallery-for-lynx-dark.png', // TODO: Update this-        'screenshotLight' => $url . '/images/sites/templates/gallery-for-lynx-light.png', // TODO: Update this+        'screenshotDark' => $url . '/images/sites/templates/template-for-clerk-dark.png',+        'screenshotLight' => $url . '/images/sites/templates/template-for-clerk-light.png',

1373-1455:Consider the use case categorization for these templates.

All three new templates useUseCases::STARTER with TODO comments questioning if they need new categories. Consider:

  • React Admin Dashboard: Could fit better in a newADMIN orDASHBOARD category
  • Formspree: Could fit in aFORMS category or remain asSTARTER
  • Clerk: Could fit in anAUTH category or remain asSTARTER

The current categorization works for now, but you might want to evaluate if new use case categories would provide better organization as more specialized templates are added.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between81f07d4 and651af6a.

📒 Files selected for processing (1)
  • app/config/templates/site.php (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
  • GitHub Check: Setup & Build Appwrite Image
  • GitHub Check: Linter
  • GitHub Check: Check if utopia-php/database changed
  • GitHub Check: Setup & Build Appwrite Image
  • GitHub Check: scan

Comment on lines 1373 to 1417
[
'key' => 'template-for-react-admin-dashboard',
'name' => 'React Admin Dashboard',
'tagline' => 'A React-based admin dashboard template with order management features.',
'score' => 1, // 0 to 10 based on looks of screenshot (avoid 1,2,3,8,9,10 if possible)
'useCases' => [UseCases::STARTER], // TODO: Check if this needs to have a new category
'screenshotDark' => $url . '/images/sites/templates/gallery-for-lynx-dark.png', // TODO: Update this
'screenshotLight' => $url . '/images/sites/templates/gallery-for-lynx-light.png', // TODO: Update this
'frameworks' => [
getFramework('REACT', [
'providerRootDirectory' => './react/react-admin',
'outputDirectory' => './dist',
]),
],
'vcsProvider' => 'github',
'providerRepositoryId' => 'templates-for-sites',
'providerOwner' => 'appwrite',
'providerVersion' => '0.4.*',
'variables' => [
[
'name' => 'APPWRITE_SITE_API_ENDPOINT', // TODO: Update this
'description' => 'Endpoint of Appwrite server',
'value' => '{apiEndpoint}',
'placeholder' => '{apiEndpoint}',
'required' => true,
'type' => 'text'
],
[
'name' => 'APPWRITE_SITE_PROJECT_ID', // TODO: Update this
'description' => 'Your Appwrite project ID',
'value' => '{projectId}',
'placeholder' => '{projectId}',
'required' => true,
'type' => 'text'
],
[
'name' => 'VITE_APPWRITE_PROJECT_NAME', // TODO: Update this
'description' => 'Your Appwrite project name',
'value' => '{projectName}',
'placeholder' => '{projectName}',
'required' => true,
'type' => 'text'
],
]
],

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix inconsistent environment variable naming and placeholder screenshot URLs.

Several issues need attention in the React Admin Dashboard template:

  1. Inconsistent variable naming: The variables mixAPPWRITE_SITE_* andVITE_* prefixes, which doesn't follow the pattern used by other React templates.
  2. Wrong screenshot URLs: Both URLs point to the lynx gallery template instead of this template's screenshots.
  3. Incomplete TODO items: Several TODO comments indicate this template configuration is incomplete.

For consistency with other React templates, update the environment variables:

-                'name' => 'APPWRITE_SITE_API_ENDPOINT',  // TODO: Update this+                'name' => 'VITE_APPWRITE_ENDPOINT',                 'description' => 'Endpoint of Appwrite server',                 'value' => '{apiEndpoint}',                 'placeholder' => '{apiEndpoint}',                 'required' => true,                 'type' => 'text'             ],             [-                'name' => 'APPWRITE_SITE_PROJECT_ID', // TODO: Update this+                'name' => 'VITE_APPWRITE_PROJECT_ID',                 'description' => 'Your Appwrite project ID',                 'value' => '{projectId}',                 'placeholder' => '{projectId}',                 'required' => true,                 'type' => 'text'             ],             [                 'name' => 'VITE_APPWRITE_PROJECT_NAME', // TODO: Update this

And update the screenshot URLs to point to the correct template images:

-        'screenshotDark' => $url . '/images/sites/templates/gallery-for-lynx-dark.png', // TODO: Update this-        'screenshotLight' => $url . '/images/sites/templates/gallery-for-lynx-light.png', // TODO: Update this+        'screenshotDark' => $url . '/images/sites/templates/template-for-react-admin-dashboard-dark.png',+        'screenshotLight' => $url . '/images/sites/templates/template-for-react-admin-dashboard-light.png',

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In app/config/templates/site.php from lines 1373 to 1417, fix the React AdminDashboard template by standardizing environment variable names to use the sameprefix pattern as other React templates, replacing the mixed APPWRITE_SITE_* andVITE_* prefixes with a consistent one. Also, update the screenshotDark andscreenshotLight URLs to point to the correct React Admin Dashboard imagesinstead of the lynx gallery images. Finally, remove or complete the TODOcomments to finalize the template configuration.

@github-actionsGitHub Actions
Copy link

github-actionsbot commentedJun 19, 2025
edited
Loading

Security Scan Results for PR

Docker Image Scan Results

PackageVersionVulnerabilitySeverity
binutils2.42-r0CVE-2025-0840HIGH
libexpat2.6.4-r0CVE-2024-8176HIGH
libxml22.12.7-r0CVE-2024-56171HIGH
libxml22.12.7-r0CVE-2025-24928HIGH
libxml22.12.7-r0CVE-2025-27113HIGH
libxml22.12.7-r0CVE-2025-32414HIGH
libxml22.12.7-r0CVE-2025-32415HIGH
pyc3.12.9-r0CVE-2024-12718HIGH
pyc3.12.9-r0CVE-2025-4138HIGH
pyc3.12.9-r0CVE-2025-4517HIGH
python33.12.9-r0CVE-2024-12718HIGH
python33.12.9-r0CVE-2025-4138HIGH
python33.12.9-r0CVE-2025-4517HIGH
python3-pyc3.12.9-r0CVE-2024-12718HIGH
python3-pyc3.12.9-r0CVE-2025-4138HIGH
python3-pyc3.12.9-r0CVE-2025-4517HIGH
python3-pycache-pyc03.12.9-r0CVE-2024-12718HIGH
python3-pycache-pyc03.12.9-r0CVE-2025-4138HIGH
python3-pycache-pyc03.12.9-r0CVE-2025-4517HIGH
sqlite-libs3.45.3-r1CVE-2025-29087HIGH
xz5.6.2-r0CVE-2025-31115HIGH
xz-libs5.6.2-r0CVE-2025-31115HIGH
golang.org/x/cryptov0.31.0CVE-2025-22869HIGH

Source Code Scan Results

🎉 No vulnerabilities found!

@github-actionsGitHub Actions
Copy link

github-actionsbot commentedJun 19, 2025
edited
Loading

✨ Benchmark results

  • Requests per second: 894
  • Requests with 200 status code: 160,977
  • P99 latency: 0.208269738

⚡ Benchmark Comparison

MetricThis PRLatest version
RPS8941,053
200160,977189,615
P990.2082697380.179568074

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@coderabbitaicoderabbitai[bot]coderabbitai[bot] left review comments

@MeldironMeldironAwaiting requested review from Meldiron

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@vermakhushboo

[8]ページ先頭

©2009-2025 Movatter.jp