TorbatYar/frontend/modules/experience/features/surveys.tsx
Mortezakoohjani 0eec9f729b feat(experience): deploy Experience frontend FE-11.0-11.5 portal
Commit completed Torbat Pages admin frontend module, BFF proxy, routes, and validation artifacts for official platform deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 21:01:50 +03:30

26 lines
883 B
TypeScript

"use client";
import { createExperienceListPage } from "@/modules/experience/components/ExperienceListCrudPage";
import { experienceApi } from "@/modules/experience/services/experience-api";
export const SurveysPage = createExperienceListPage({
title: "نظرسنجی‌ها",
breadcrumb: "نظرسنجی‌ها",
resourceKey: "surveys",
permission: "experience.surveys.view",
api: experienceApi.surveys,
columns: [
{ key: "code", header: "کد" },
{ key: "name", header: "نام" },
{ key: "status", header: "وضعیت", type: "status" },
{ key: "created_at", header: "ایجاد", type: "datetime" },
],
createFields: [
{ name: "code", label: "کد", required: true },
{ name: "name", label: "نام", required: true },
],
detailHref: (row) => row.id ? `/experience/surveys/${row.id}/builder` : null,
});
export default SurveysPage;