diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/responses/components/ResponseDataView.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/responses/components/ResponseDataView.tsx index 5e40dfc1f6..71b8716305 100644 --- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/responses/components/ResponseDataView.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/responses/components/ResponseDataView.tsx @@ -96,6 +96,7 @@ const mapResponsesToTableData = ( ? t("environments.surveys.responses.completed") : t("environments.surveys.responses.not_completed"), responseId: response.id, + singleUseId: response.singleUseId, tags: response.tags, variables: survey.variables.reduce( (acc, curr) => { diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/responses/components/ResponseTableColumns.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/responses/components/ResponseTableColumns.tsx index 7f87fb50df..da03cb95f4 100644 --- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/responses/components/ResponseTableColumns.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/responses/components/ResponseTableColumns.tsx @@ -312,6 +312,14 @@ export const generateResponseTableColumns = ( }, }; + const singleUseIdColumn: ColumnDef = { + accessorKey: "singleUseId", + header: () =>
{t("environments.surveys.responses.single_use_id")}
, + cell: ({ row }) => { + return

{row.original.singleUseId}

; + }, + }; + const quotasColumn: ColumnDef = { accessorKey: "quota", header: t("common.quota"), @@ -409,6 +417,7 @@ export const generateResponseTableColumns = ( // Combine the selection column with the dynamic question columns const baseColumns = [ personColumn, + singleUseIdColumn, dateColumn, ...(showQuotasColumn ? [quotasColumn] : []), statusColumn, diff --git a/packages/types/responses.ts b/packages/types/responses.ts index 598c27fd2c..c6bfd959cb 100644 --- a/packages/types/responses.ts +++ b/packages/types/responses.ts @@ -409,6 +409,7 @@ export type TResponseUpdate = z.infer; export const ZResponseTableData = z.object({ responseId: z.string(), + singleUseId: z.string().nullable(), createdAt: z.date(), status: z.string(), verifiedEmail: z.string(),