Skip to content

Commit fbdc47e

Browse files
committed
Fix support feedback API endpoints and remove debug logs
1 parent 2f6f3a0 commit fbdc47e

File tree

4 files changed

+900
-447
lines changed

4 files changed

+900
-447
lines changed

apps/dashboard/src/@/analytics/report.ts

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,3 +547,62 @@ export function reportChainInfraRpcOmissionAgreed(properties: {
547547
}) {
548548
posthog.capture("chain infra checkout rpc omission agreed", properties);
549549
}
550+
551+
// ----------------------------
552+
// SUPPORT FEEDBACK
553+
// ----------------------------
554+
555+
/**
556+
* ### Why do we need to report this event?
557+
* - To track successful feedback submissions for closed support tickets
558+
* - To understand feedback ratings distribution
559+
* - To measure customer satisfaction with support interactions
560+
*
561+
* ### Who is responsible for this event?
562+
* @gisellechacon
563+
*/
564+
export function reportSupportFeedbackSubmitted(properties: {
565+
ticketId: string;
566+
rating: number;
567+
hasFeedback: boolean;
568+
feedbackLength?: number;
569+
}) {
570+
posthog.capture("support feedback submitted", properties);
571+
}
572+
573+
/**
574+
* ### Why do we need to report this event?
575+
* - To track failed feedback submissions for closed support tickets
576+
* - To identify and debug production issues with feedback system
577+
* - To understand error patterns and improve reliability
578+
*
579+
* ### Who is responsible for this event?
580+
* @gisellechacon
581+
*/
582+
export function reportSupportFeedbackFailed(properties: {
583+
ticketId: string;
584+
rating: number;
585+
hasFeedback: boolean;
586+
feedbackLength?: number;
587+
errorMessage: string;
588+
errorType: "validation" | "network" | "server" | "unknown";
589+
}) {
590+
posthog.capture("support feedback failed", properties);
591+
}
592+
593+
/**
594+
* ### Why do we need to report this event?
595+
* - To track when feedback status checks fail
596+
* - To identify issues with feedback verification system
597+
* - To understand reliability of feedback status API
598+
*
599+
* ### Who is responsible for this event?
600+
* @gisellechacon
601+
*/
602+
export function reportSupportFeedbackStatusCheckFailed(properties: {
603+
ticketId: string;
604+
errorMessage: string;
605+
errorType: "network" | "server" | "unknown";
606+
}) {
607+
posthog.capture("support feedback status check failed", properties);
608+
}

0 commit comments

Comments
 (0)