feat(tracker): include uxt in assist query
This commit is contained in:
parent
00eeffe97a
commit
7c8bbb38a2
8 changed files with 20 additions and 4 deletions
Binary file not shown.
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@openreplay/tracker-assist",
|
||||
"description": "Tracker plugin for screen assistance through the WebRTC",
|
||||
"version": "7.0.0",
|
||||
"version": "7.0.1-2",
|
||||
"keywords": [
|
||||
"WebRTC",
|
||||
"assistance",
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
"socket.io-client": "^4.7.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@openreplay/tracker": ">=11.0.0"
|
||||
"@openreplay/tracker": ">=11.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@openreplay/tracker": "file:../tracker",
|
||||
|
|
|
|||
|
|
@ -199,6 +199,7 @@ export default class Assist {
|
|||
'peerId': peerID,
|
||||
'identity': 'session',
|
||||
'tabId': this.app.getTabId(),
|
||||
'uxtId': this.app.getUxtId() ?? undefined,
|
||||
'sessionInfo': JSON.stringify({
|
||||
pageTitle: document.title,
|
||||
active: true,
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
export const pkgVersion = '7.0.0'
|
||||
export const pkgVersion = '7.0.1-2'
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@openreplay/tracker",
|
||||
"description": "The OpenReplay tracker main package",
|
||||
"version": "11.0.1-20",
|
||||
"version": "11.0.1",
|
||||
"keywords": [
|
||||
"logging",
|
||||
"replay"
|
||||
|
|
|
|||
|
|
@ -743,6 +743,10 @@ export default class App {
|
|||
})
|
||||
}
|
||||
|
||||
getUxtId(): number | null {
|
||||
return this.uxtManager?.getTestId()
|
||||
}
|
||||
|
||||
/**
|
||||
* basically we ask other tabs during constructor
|
||||
* and here we just apply 10ms delay just in case
|
||||
|
|
|
|||
|
|
@ -284,6 +284,13 @@ export default class API {
|
|||
return this.app.getTabId()
|
||||
}
|
||||
|
||||
getUxId() {
|
||||
if (this.app === null) {
|
||||
return null
|
||||
}
|
||||
return this.app.getUxtId()
|
||||
}
|
||||
|
||||
sessionID(): string | null | undefined {
|
||||
deprecationWarn("'sessionID' method", "'getSessionID' method", '/')
|
||||
return this.getSessionID()
|
||||
|
|
|
|||
|
|
@ -95,6 +95,10 @@ export default class UserTestManager {
|
|||
}
|
||||
}
|
||||
|
||||
public getTestId() {
|
||||
return this.testId
|
||||
}
|
||||
|
||||
signalTask = (taskId: number, status: 'begin' | 'done' | 'skipped', answer?: string) => {
|
||||
if (!taskId) return console.error('OR: no task id')
|
||||
const taskStart = this.durations.tasks.find((t) => t.taskId === taskId)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue