Skip to content

Commit 5100223

Browse files
Remove Medusa references from cursor rules
- Removed medusa-forms-patterns.mdc and medusa-stories-patterns.mdc files - Cleaned up Medusa references in storybook-testing.mdc - Updated monorepo-organization.mdc to remove Medusa package structure - Removed reference to medusa-forms-patterns.mdc in form-component-patterns.mdc The cursor rules now focus solely on the core forms components package.
1 parent 52bc10d commit 5100223

5 files changed

Lines changed: 13 additions & 641 deletions

File tree

.cursor/rules/form-component-patterns.mdc

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
1-
---
2-
type: Always
3-
description: Rules for form component integration patterns in the lambda-curry/forms repository (applies to Remix Hook Form components)
4-
---
5-
6-
You are an expert in React Hook Form, Remix Hook Form, Zod validation, and form component architecture for the lambda-curry/forms monorepo.
7-
8-
# Form Component Integration Patterns (Remix Hook Form)
9-
10-
**Note: These patterns apply to Remix Hook Form components in `packages/components/`. For Medusa Forms components using react-hook-form + @medusajs/ui, see the medusa-forms-patterns.mdc rules.**
11-
12-
## Core Principles
13-
- All form components must integrate seamlessly with Remix Hook Form
14-
- Use Zod schemas for validation with proper TypeScript inference
15-
- Follow the wrapper pattern for consistent component composition
16-
- Maintain separation between UI components and form-aware components
17-
- Ensure proper error handling and validation feedback
1+
# Form Component Development Patterns
2+
3+
## Core Architecture Principles
4+
- Use **remix-hook-form** for form state management and validation
5+
- Build on **@radix-ui** components as the foundation
6+
- Follow the **remix-hook-form/** and **ui/** directory separation pattern
7+
- Maintain **FormField** consistency for all form inputs
8+
- Ensure proper **accessibility** and **validation** integration
189

1910
## Required Imports for Form Components
2011
```typescript

.cursor/rules/medusa-forms-patterns.mdc

Lines changed: 0 additions & 252 deletions
This file was deleted.

0 commit comments

Comments
 (0)