Pattern Examples

Reference implementations. When building a new feature, pick the closest pattern and adapt.

Dashboard

KPI cards + summary widgets pattern.

app/pages/dashboard.vue

List page

TanStack DataTable + filter + pagination + row actions.

app/pages/tasks.vue

Full CRUD (Lead module)

List + create + edit + delete with Prisma + tenant scoping + Zod.

app/pages/examples/leads/* + server/api/leads/*

Form page

VeeValidate + Zod schema + shadcn Form components.

app/pages/examples/form.vue

B24 data fetch

Call Bitrix24 REST via server route + callB24() helper.

app/pages/examples/b24-contacts.vue