mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-02 02:19:43 +00:00
feat(admin): preview response media
Show who-likely choices in human terms and provide protected photo and audio previews in activity and user response views. Fetch media by response ID through an authenticated Edge Function that enforces the view_responses permission.
This commit is contained in:
1 parent
7545289dd3
commit
650c81856f
8 files changed
+385
-3
No files matched your search
@@ -524,8 +524,11 @@ export function UserActivityPage() {
|
||||
<TableCell>
|
||||
<ResponseAnswer
|
||||
answer={item.answer}
|
||||
responseId={item.id}
|
||||
questionType={item.question?.question_type}
|
||||
responseData={item.response_data}
|
||||
responderId={item.user_id}
|
||||
responderName={item.profile?.name || item.profile?.email}
|
||||
/>
|
||||
</TableCell>
|
||||
<TableCell className="text-muted-foreground text-sm whitespace-nowrap">
|
||||
|
||||
Reference in new issue
Block a user