Skip to content

fix: correct Web Template frameworks order (#2895)#2896

Open
soufiane-amt wants to merge 1 commit intoappwrite:mainfrom
soufiane-amt:fix/issue-2895-web-template-framework-order
Open

fix: correct Web Template frameworks order (#2895)#2896
soufiane-amt wants to merge 1 commit intoappwrite:mainfrom
soufiane-amt:fix/issue-2895-web-template-framework-order

Conversation

@soufiane-amt
Copy link

@soufiane-amt soufiane-amt commented Feb 27, 2026

What I did

Ensured that the “Other” option always appears last and React Native appears in the correct position by adding 'React Native' item in the correct order to the array of frameworkOrder.

Issue

Bug: In the Web Template creation flow, the frameworks dropdown was displaying React Native as the last item and Other as the second last, which is confusing for users #2895 .

Reproduction Steps:

Go to Create Project → Access a project.

Click on Create Site.

Choose Clone a Template.

Observe the frameworks dropdown — the last framework is React Native, and the second last is Other.

Expected Behavior:

Other should always be the last item in the frameworks list.

Actual Behavior:

React Native appears last, and Other is second last.

Before the fix:

react-native-order-before

After :

react-native-order-after

Summary by CodeRabbit

  • New Features
    • Added React Native as a framework option when creating new sites with templates. This enables developers to select React Native alongside other available frameworks during the site creation process.

@appwrite
Copy link

appwrite bot commented Feb 27, 2026

Console (appwrite/console)

Project ID: 688b7bf400350cbd60e9

Sites (1)
Site Status Logs Preview QR
 console-stage
688b7cf6003b1842c9dc
Failed Failed Authorize Preview URL QR Code

Tip

Sites support three domain rule types: Active deployment, Git branch, and Redirect

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 27, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ec5b6ad and b12cf5d.

📒 Files selected for processing (1)
  • src/routes/(console)/project-[region]-[project]/sites/create-site/templates/+page.ts

Walkthrough

The change adds 'React Native' as a framework option to the frameworkOrder list in the create-site templates page configuration. The framework is inserted between 'Vite' and 'Other' in the ordering sequence. This modification extends the set of recognized frameworks available for template filtering and sorting, with one line added to package.json and one line added to the templates configuration file.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: correcting the Web Template frameworks order by repositioning React Native before Other.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • 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

Comment @coderabbitai help to get the list of available commands and usage tips.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 27, 2026

Greptile Summary

Fixed the framework dropdown ordering by adding React Native to the frameworkOrder array at line 40, ensuring it appears before Other (which should always be last). The sorting logic uses this array to determine framework display order, and the fix correctly positions React Native in the list.

  • Added single line to frameworkOrder array placing React Native before Other
  • Resolves issue where React Native appeared after Other in the templates dropdown

Confidence Score: 5/5

  • This PR is safe to merge with no risk
  • Simple one-line fix that adds a missing framework to an ordering array. The change is straightforward, well-tested by the PR author (with before/after screenshots), and has no side effects. The sorting logic correctly handles the new entry.
  • No files require special attention

Important Files Changed

Filename Overview
src/routes/(console)/project-[region]-[project]/sites/create-site/templates/+page.ts Added React Native to frameworkOrder array before Other to fix dropdown sorting

Last reviewed commit: b12cf5d

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