Skip to content
Draft
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .agents/patterns/component-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ export const CLASS_NAMES = {
- **No raw strings in JSX**: Use `i18n.get()` for all text — see [i18n patterns](i18n.md)
- **Provider access**: Use `useCoreContext()` for i18n, assets, error handling — not direct imports
- **Form components**: Extend `FormElement` (see `external/FormElement.tsx`) for submit/validation lifecycle
- **New external component?** Follow the full scaffolding guide: [external-component.md](../scaffolding/external-component.md).
Must be added to `ExternalComponentType` in `src/components/types.ts` and exported from `src/components/external/index.ts`
- **New external component?** Must be added to `ExternalComponentType` in `src/components/types.ts` and exported from `src/components/external/index.ts`

## JIT Find Commands

Expand Down
2 changes: 0 additions & 2 deletions .agents/patterns/mock-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ Stories compose handlers per scenario — see `stories/mocked/` for examples.

### Adding Mocks for a New Component

**Full scaffolding guide with detailed examples**: [stories-and-mocks.md](../scaffolding/stories-and-mocks.md)

1. Add mock response data in `mock-data/{domain}.ts`
2. Add MSW handlers in `mock-server/{domain}.ts`
3. Export from `mock-server/index.ts` and `mock-data/index.ts`
Expand Down
2 changes: 0 additions & 2 deletions .agents/patterns/storybook.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ export const GrantActive = {

### Adding a New Story

**Full scaffolding guide with detailed examples**: [stories-and-mocks.md](../scaffolding/stories-and-mocks.md)

1. Create component wrapper in `stories/components/{name}.tsx`
2. Create mocked story in `stories/mocked/{name}.stories.tsx` with MSW handlers
3. Optionally create API story in `stories/api/{name}.stories.tsx`
Expand Down
Loading