Skip to content

feat: add react-admin template with ra-appwrite integration#12

Merged
vermakhushboo merged 1 commit into
appwrite:chore-test-templatesfrom
Nishantjain10:feat/react-admin-appwrite
Jun 19, 2025
Merged

feat: add react-admin template with ra-appwrite integration#12
vermakhushboo merged 1 commit into
appwrite:chore-test-templatesfrom
Nishantjain10:feat/react-admin-appwrite

Conversation

@Nishantjain10
Copy link
Copy Markdown
Contributor

@Nishantjain10 Nishantjain10 commented Jun 17, 2025

What does this PR do?

Added a new React Admin starter template, which uses ra-appwrite using correct folder structure framework/product to help developers quickly bootstrap projects with React Admin Template. This template provides a ready-to-use setup.

image
image

Test Plan

The template has been tested locally to make sure:

  • Basic setup works correctly
  • Authentication flows are functional after setting up react admin

Related PRs and Issues

No related PRs or issues at this time.

Have you read the Contributing Guidelines on issues?

Yes

@vermakhushboo vermakhushboo requested a review from Copilot June 19, 2025 11:51
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

A new React Admin starter template has been added under react/react-admin to bootstrap projects with React Admin and Appwrite integration. This includes project configuration, TypeScript setup, and resource modules for visitors.

  • Introduced Vite and TypeScript configuration for the template.
  • Scaffolded visitors resources (list/create/edit) under src/visitors.
  • Added core resource modules (orders, reviews, products, categories, invoices), layout, themes, and i18n files.

Reviewed Changes

Copilot reviewed 101 out of 105 changed files in this pull request and generated no comments.

Show a summary per file
File Description
vite.config.ts Vite configuration with React plugin and build options
tsconfig.node.json Node-specific TypeScript config for vite.config.ts
tsconfig.json Main TypeScript config for the React Admin source
src/visitors/segments.ts Defines segment IDs, currently unused by the template
src/visitors/index.ts Exports Visitor resource definition
Comments suppressed due to low confidence (2)

react/react-admin/src/visitors/segments.ts:1

  • The segments.ts file in src/visitors is not imported or used by any component—segment data is loaded from src/segments/data.ts instead. Consider removing this file or consolidating its data with the existing segments/data.ts to avoid duplication.
const segments = [

react/react-admin/src/visitors/index.ts:1

  • [nitpick] Verify that all imports in this file correspond to actual dependencies; the VisitorIcon import is correct, but review the resource exports to ensure the segments.ts file is not intended here, as it's currently unused.
import VisitorIcon from '@mui/icons-material/People';

@@ -0,0 +1,17 @@
const segments = [
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you point me to where this is used?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Indeed this file seems unused, nice catch!
Fixing upstream: marmelab/react-admin#10792

@vermakhushboo vermakhushboo changed the base branch from main to chore-test-templates June 19, 2025 12:37
@vermakhushboo vermakhushboo merged commit 02072ba into appwrite:chore-test-templates Jun 19, 2025
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.

4 participants