Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions src/components/desktop/apps/PodTaskTracker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,41 +169,6 @@ export function PodTaskTracker() {
return
}

// Intentional error for Slack and Call sources to test Sentry
if (newTask.source === 'slack' || newTask.source === 'call') {
const error = new Error(`Task creation from ${newTask.source} source is not yet implemented`)

// Set user context
Sentry.setUser({
username: 'SaidRedouane',
id: 'said-redouane',
})

// Capture exception with additional context
Sentry.captureException(error, {
tags: {
feature: 'task-creation',
source: newTask.source,
user: 'SaidRedouane',
assignee: newTask.assignee!,
priority: newTask.priority!,
},
contexts: {
task: {
title: newTask.title,
customer: newTask.customer,
assignee: newTask.assignee,
source: newTask.source,
}
},
level: 'error'
})

console.error(`Sentry error captured: ${newTask.source} integration not available`, error)
alert(`Error: ${newTask.source} integration is not yet available. This error has been sent to Sentry.`)
return
}

const task: Task = {
id: Date.now().toString(),
title: newTask.title!,
Expand Down