feat: auth user feedbacks

This commit is contained in:
gosangam
2026-07-14 18:26:20 +05:30
parent 1582df0ed5
commit 1984797ad3
3 changed files with 235 additions and 0 deletions
+12
View File
@@ -202,6 +202,13 @@ export type Feedback = {
message: string;
contact_email?: string;
created_at: string;
/** Set when the team has seen the submission (one-way). */
acknowledged_at?: string;
/** Set when the submission has been addressed (one-way). */
resolved_at?: string;
/** The team's written reply, if any, and when it was sent. */
reply_message?: string;
replied_at?: string;
};
// ─── Posts ───────────────────────────────────────────────────────────────
@@ -559,6 +566,11 @@ export const feedback = {
}),
});
},
/** The signed-in user's own submissions, newest first — each with its
* status (acknowledged / resolved) and any admin reply. Auth-only. */
mine() {
return call<Feedback[]>("/feedback/mine");
},
};
// ─── Public profile ──────────────────────────────────────────────────────