Skip to content

Commit d894b77

Browse files
committed
chore: address coderabbit review feedback
1 parent ed95abb commit d894b77

16 files changed

+24
-51
lines changed

.cursor/rules/ai-rules-generated-00-project-context.mdc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ alwaysApply: true
88

99
## What This Repo Is
1010

11-
**react-router-starter** is a monorepo starter for React Router 7 apps with best practices from reportory: Storybook, @lambdacurry/forms, Bun test + React Testing Library, and shared AI rules.
11+
**react-router-starter** is a monorepo starter for React Router 7 apps with best practices: Storybook, @lambdacurry/forms, Bun test + React Testing Library, and shared AI rules.
1212

1313
## Structure
1414

@@ -54,5 +54,5 @@ Run these from `apps/todo-app` or via workspace root scripts if defined.
5454
## AI Rules Workflow
5555

5656
- **Edit source rules** in `ai-rules/`
57-
- **Generate platform files** with `ai-rules generate`
58-
- **Check sync** with `ai-rules status`
57+
- **Generated outputs** in `.generated-ai-rules/` and `.cursor/rules/` are maintained by repository automation
58+
- **Do not edit generated files directly**; change source rules in `ai-rules/`

.cursor/rules/ai-rules-generated-lambda-curry-forms.mdc

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,6 @@ export const action = async ({ request }: ActionFunctionArgs) => {
105105
};
106106
```
107107

108-
## Advanced Patterns
109-
110-
### Conditional Fields
111-
```typescript
112-
const watchAccountType = methods.watch('accountType');
113-
114-
{watchAccountType === 'business' && (
115-
<TextField name="companyName" label="Company Name" />
116-
)}
117-
```
118-
119108
## Available Form Components
120109

121110
### TextField Component

.cursor/rules/ai-rules-generated-storybook.mdc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ alwaysApply: false
1818
Components that use `Link`, `useNavigate`, `useFetcher`, or `useHref` need router context. Use a global decorator in `preview.tsx`:
1919

2020
```tsx
21+
import type { Preview } from '@storybook/react';
2122
import type { ComponentType } from 'react';
2223
import { createMemoryRouter, RouterProvider } from 'react-router-dom';
2324

.cursor/rules/ai-rules-generated-ui-components.mdc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ alwaysApply: true
1717
import * as React from 'react';
1818
import { cva, type VariantProps } from 'class-variance-authority';
1919
import { cn } from '@todo-starter/utils';
20+
import { Slot } from '@radix-ui/react-slot';
2021

2122
const buttonVariants = cva(
2223
'base-classes',

FORMS_INTEGRATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This document outlines the integration of the `@lambdacurry/forms` library into
1313

1414
### AI Rules
1515
- Added `ai-rules/lambda-curry-forms.md` with comprehensive guidelines for using the forms library
16-
- Generate agent-specific outputs with `ai-rules generate` (AGENTS, Cursor rules, etc.)
16+
- Generated outputs in `ai-rules/.generated-ai-rules/` and `.cursor/rules/` are managed by repository automation; update source rules instead of editing generated files directly.
1717

1818
### Components Updated
1919

ai-rules/.generated-ai-rules/ai-rules-generated-00-project-context.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## What This Repo Is
44

5-
**react-router-starter** is a monorepo starter for React Router 7 apps with best practices from reportory: Storybook, @lambdacurry/forms, Bun test + React Testing Library, and shared AI rules.
5+
**react-router-starter** is a monorepo starter for React Router 7 apps with best practices: Storybook, @lambdacurry/forms, Bun test + React Testing Library, and shared AI rules.
66

77
## Structure
88

@@ -48,5 +48,5 @@ Run these from `apps/todo-app` or via workspace root scripts if defined.
4848
## AI Rules Workflow
4949

5050
- **Edit source rules** in `ai-rules/`
51-
- **Generate platform files** with `ai-rules generate`
52-
- **Check sync** with `ai-rules status`
51+
- **Generated outputs** in `.generated-ai-rules/` and `.cursor/rules/` are maintained by repository automation
52+
- **Do not edit generated files directly**; change source rules in `ai-rules/`

ai-rules/.generated-ai-rules/ai-rules-generated-lambda-curry-forms.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,6 @@ export const action = async ({ request }: ActionFunctionArgs) => {
9999
};
100100
```
101101

102-
## Advanced Patterns
103-
104-
### Conditional Fields
105-
```typescript
106-
const watchAccountType = methods.watch('accountType');
107-
108-
{watchAccountType === 'business' && (
109-
<TextField name="companyName" label="Company Name" />
110-
)}
111-
```
112-
113102
## Available Form Components
114103

115104
### TextField Component

ai-rules/.generated-ai-rules/ai-rules-generated-storybook.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
Components that use `Link`, `useNavigate`, `useFetcher`, or `useHref` need router context. Use a global decorator in `preview.tsx`:
1313

1414
```tsx
15+
import type { Preview } from '@storybook/react';
1516
import type { ComponentType } from 'react';
1617
import { createMemoryRouter, RouterProvider } from 'react-router-dom';
1718

ai-rules/.generated-ai-rules/ai-rules-generated-ui-components.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import * as React from 'react';
1212
import { cva, type VariantProps } from 'class-variance-authority';
1313
import { cn } from '@todo-starter/utils';
14+
import { Slot } from '@radix-ui/react-slot';
1415

1516
const buttonVariants = cva(
1617
'base-classes',

ai-rules/00-project-context.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fileMatching: "**/*"
88

99
## What This Repo Is
1010

11-
**react-router-starter** is a monorepo starter for React Router 7 apps with best practices from reportory: Storybook, @lambdacurry/forms, Bun test + React Testing Library, and shared AI rules.
11+
**react-router-starter** is a monorepo starter for React Router 7 apps with best practices: Storybook, @lambdacurry/forms, Bun test + React Testing Library, and shared AI rules.
1212

1313
## Structure
1414

@@ -54,5 +54,5 @@ Run these from `apps/todo-app` or via workspace root scripts if defined.
5454
## AI Rules Workflow
5555

5656
- **Edit source rules** in `ai-rules/`
57-
- **Generate platform files** with `ai-rules generate`
58-
- **Check sync** with `ai-rules status`
57+
- **Generated outputs** in `.generated-ai-rules/` and `.cursor/rules/` are maintained by repository automation
58+
- **Do not edit generated files directly**; change source rules in `ai-rules/`

0 commit comments

Comments
 (0)