feat: create AuditSession page with annotation tools, reporting, and session management
This commit is contained in:
@@ -66,7 +66,7 @@ export const AuditSession: React.FC = () => {
|
||||
const [reportMessage, setReportMessage] = useState('');
|
||||
const [reportSending, setReportSending] = useState(false);
|
||||
|
||||
const DEVS = ['aromal', 'divya', 'Poonam', 'ravi', 'Kaushik', 'Saleth', 'Jagan', 'Yash', 'faraz_siddiqui', 'brinda.n', 'SasiVardhan', 'Shubham'];
|
||||
const DEVS = ['aromal', 'divya', 'Poonam', 'ravi', 'Kaushik', 'Saleth', 'Jagan', 'Yash', 'faraz_siddiqui', 'brinda.n', 'SasiVardhan', 'Shubham', 'sohail'];
|
||||
|
||||
const handleSendReport = async () => {
|
||||
if (!reportDev || !reportMessage.trim()) return;
|
||||
@@ -110,7 +110,15 @@ export const AuditSession: React.FC = () => {
|
||||
reportMessage.trim(),
|
||||
].join('\n');
|
||||
|
||||
await axiosClient.post('/api/audit/report', { channel: `@${reportDev}`, text: context });
|
||||
await axiosClient.post('/api/audit/report', {
|
||||
channel: `@${reportDev}`,
|
||||
text: context,
|
||||
anomalyId: a?.id,
|
||||
asset: a?.Asset || null,
|
||||
plaza: a?.Plaza || null,
|
||||
devHandle: reportDev,
|
||||
reporter: user?.username || user?.email || null,
|
||||
});
|
||||
setIsReportDialogOpen(false);
|
||||
setReportDev('');
|
||||
setReportMessage('');
|
||||
|
||||
Reference in New Issue
Block a user