Use our analytics service properly (#9985)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2025-10-01 12:30:23 +07:00
committed by GitHub
parent 7d706ec4f1
commit 2b39a954a0
79 changed files with 328 additions and 429 deletions
@@ -13,6 +13,7 @@
// limitations under the License.
-->
<script lang="ts">
import { Analytics } from '@hcengineering/analytics'
import { translate } from '@hcengineering/platform'
import { ExecutionError } from '@hcengineering/process'
import { Label } from '@hcengineering/ui'
@@ -24,8 +25,8 @@
for (const key in val.intlProps) {
try {
val.props[key] = await translate(val.intlProps[key], {})
} catch (err) {
console.error(err)
} catch (err: any) {
Analytics.handleError(err)
}
}
}
@@ -24,6 +24,7 @@
import { getContext } from '../../utils'
import ProcessAttribute from '../ProcessAttribute.svelte'
import { createEventDispatcher } from 'svelte'
import { Analytics } from '@hcengineering/analytics'
export let readonly: boolean
export let process: Process
@@ -57,11 +58,11 @@
.then((p) => {
editor = p
})
.catch((e) => {
console.error(e)
.catch((e: any) => {
Analytics.handleError(e)
})
} catch (e) {
console.error(e)
} catch (e: any) {
Analytics.handleError(e)
}
}
@@ -22,6 +22,7 @@
import view from '@hcengineering/view'
import { createEventDispatcher } from 'svelte'
import ProcessAttribute from '../ProcessAttribute.svelte'
import { Analytics } from '@hcengineering/analytics'
export let func: ProcessFunction
export let process: Process
@@ -49,11 +50,11 @@
.then((p) => {
editor = p
})
.catch((e) => {
console.error(e)
.catch((e: any) => {
Analytics.handleError(e)
})
} catch (e) {
console.error(e)
} catch (e: any) {
Analytics.handleError(e)
}
}
@@ -22,6 +22,7 @@
import view from '@hcengineering/view'
import { createEventDispatcher } from 'svelte'
import ProcessAttribute from '../ProcessAttribute.svelte'
import { Analytics } from '@hcengineering/analytics'
export let func: ProcessFunction
export let process: Process
@@ -49,11 +50,11 @@
.then((p) => {
editor = p
})
.catch((e) => {
console.error(e)
.catch((e: any) => {
Analytics.handleError(e)
})
} catch (e) {
console.error(e)
} catch (e: any) {
Analytics.handleError(e)
}
}