mirror of
https://github.com/zuiidea/antd-admin.git
synced 2026-10-19 16:14:37 +00:00
- Add second sample resource (orders): API, schemas, MSW, routes, menu, Lingui, and E2E. - Introduce useCrudToasts, useUrlSearchState, useTableFitHeight; extend useResourceCRUD with optimistic updates; add Vitest coverage for hooks and createHandler. - Implement token refresh in http layer, RouteError, and new E2E specs (auth-refresh, rbac, url-state). - Replace gen-resource codegen with English add-resource.instructions.md; fix Copilot instruction YAML in with-lingui and basic. - Add with-lingui CI workflow, Cursor thin rules, optimization plan doc, and refresh README/AGENTS. - Bump packages/create and lockfile where applicable. Made-with: Cursor
16 lines
590 B
Plaintext
16 lines
590 B
Plaintext
---
|
|
description: "Add a new CRUD resource / scaffold (with-lingui)."
|
|
globs: apps/with-lingui/src/api/**/*.ts,apps/with-lingui/src/mocks/**/*.ts,apps/with-lingui/src/routes/_auth/**/*.tsx,apps/with-lingui/e2e/**/*.spec.ts
|
|
alwaysApply: false
|
|
---
|
|
|
|
# with-lingui · Add resource (thin rule)
|
|
|
|
**Single source of truth:**
|
|
|
|
`apps/with-lingui/.github/instructions/add-resource.instructions.md`
|
|
|
|
When adding a resource, follow that recipe (mirror the `users` / `orders` examples). On conflict, the `.instructions.md` file wins.
|
|
|
|
`@apps/with-lingui/.github/instructions/add-resource.instructions.md`
|