Yeet telemetry to text to cad endpoint (#4847)

yeet telemetry to text to cad endpoint
This commit is contained in:
Kurt Hutten
2024-12-20 14:50:05 +11:00
committed by GitHub
parent 9f891deebb
commit 662c2485ac

View File

@ -452,8 +452,7 @@ export function ToastPromptToEditCadSuccess({
data-negative-button={'reject'}
name={'Reject'}
onClick={() => {
// TODO add telemetry when we know how sendTelemetry is setup for /user/text-to-cad/
// sendTelemetry(modelId, 'rejected', token).catch(reportRejection)
sendTelemetry(modelId, 'rejected', token).catch(reportRejection)
codeManager.updateCodeEditor(oldCode)
kclManager.executeCode().catch(reportRejection)
toast.dismiss(toastId)
@ -469,7 +468,6 @@ export function ToastPromptToEditCadSuccess({
}}
name="Accept"
onClick={() => {
// TODO add telemetry when we know how sendTelemetry is setup for /user/text-to-cad/
sendTelemetry(modelId, 'accepted', token).catch(reportRejection)
toast.dismiss(toastId)
}}