admin-list-pattern
Installation
SKILL.md
Admin List Integration Pattern
This skill outlines the standard pattern for implementing searchable, paginated lists in the erify_studios (frontend) and erify_api (backend) applications.
Canonical Examples
Study these real implementations:
- Backend: admin-client.controller.ts
- Repository: client.repository.ts
Integration Overview
The pattern relies on synchronized parameter names and behaviors across the stack:
- Frontend: Uses
useTableUrlStateto sync URL params (e.g.,?name=...) with the table'scolumnFilters. - API Boundary: A specialized
List<Resource>QueryDtoextends the base pagination schema. - Repository: Builds a Prisma
whereclause to handle partial matches and other filters. The Service is a thin pass-through.