diff --git a/frontend/app/mstore/uxtestingStore.ts b/frontend/app/mstore/uxtestingStore.ts
index bd8e4f0fa..c9890bb8e 100644
--- a/frontend/app/mstore/uxtestingStore.ts
+++ b/frontend/app/mstore/uxtestingStore.ts
@@ -68,7 +68,7 @@ export default class UxtestingStore {
taskStats: TaskStats[] = [];
isLoading: boolean = false;
responses: Record = {};
- hideDevtools: boolean = localStorage.getItem('or_devtools_utx_toggle') === '1';
+ hideDevtools: boolean = localStorage.getItem('or_devtools_uxt_toggle') === '1';
constructor() {
makeAutoObservable(this);
@@ -76,7 +76,7 @@ export default class UxtestingStore {
isUxt() {
const queryParams = new URLSearchParams(document.location.search);
- return queryParams.has('utx');
+ return queryParams.has('uxt');
}
setHideDevtools(hide: boolean) {
diff --git a/frontend/app/types/session/event.ts b/frontend/app/types/session/event.ts
index 4c9fc3473..29f0d13c9 100644
--- a/frontend/app/types/session/event.ts
+++ b/frontend/app/types/session/event.ts
@@ -6,11 +6,11 @@ const CUSTOM = 'CUSTOM';
const CLICKRAGE = 'CLICKRAGE';
const TAPRAGE = 'tap_rage'
const IOS_VIEW = 'VIEW';
-const UTX_EVENT = 'UTX_EVENT';
+const UXT_EVENT = 'UXT_EVENT';
const TOUCH = 'TAP';
const SWIPE = 'SWIPE';
-export const TYPES = { CONSOLE, CLICK, INPUT, LOCATION, CUSTOM, CLICKRAGE, IOS_VIEW, TOUCH, SWIPE, TAPRAGE, UTX_EVENT };
+export const TYPES = { CONSOLE, CLICK, INPUT, LOCATION, CUSTOM, CLICKRAGE, IOS_VIEW, TOUCH, SWIPE, TAPRAGE, UXT_EVENT };
export type EventType =
| typeof CONSOLE
@@ -201,11 +201,11 @@ export class Location extends Event {
}
}
-export type InjectedEvent = Console | Click | Input | Location | Touch | Swipe | UtxEvent;
+export type InjectedEvent = Console | Click | Input | Location | Touch | Swipe | UxtEvent;
export default function (event: EventData) {
if ('allow_typing' in event) {
- return new UtxEvent(event);
+ return new UxtEvent(event);
}
if (!event.type) {
return console.error('Unknown event type: ', event)
@@ -230,9 +230,9 @@ export default function (event: EventData) {
}
}
-export class UtxEvent {
- readonly name = 'UtxEvent'
- readonly type = UTX_EVENT;
+export class UxtEvent {
+ readonly name = 'UxtEvent'
+ readonly type = UXT_EVENT;
allowTyping: boolean;
comment: string;
description: string;
@@ -245,8 +245,8 @@ export class UtxEvent {
constructor(event: Record) {
Object.assign(this, {
- type: UTX_EVENT,
- name: 'UtxEvent',
+ type: UXT_EVENT,
+ name: 'UxtEvent',
allowTyping: event.allow_typing,
comment: event.comment,
description: event.description,
diff --git a/frontend/app/types/session/session.ts b/frontend/app/types/session/session.ts
index 08ff746ae..edf214693 100644
--- a/frontend/app/types/session/session.ts
+++ b/frontend/app/types/session/session.ts
@@ -82,7 +82,7 @@ export interface ISession {
canvasURL: string[];
domURL: string[];
devtoolsURL: string[];
- utxVideo: string[];
+ uxtVideo: string[];
/**
* @deprecated
*/
@@ -239,7 +239,7 @@ export default class Session {
crashes = [],
notes = [],
canvasURL = [],
- utxVideo = [],
+ uxtVideo = [],
...session
} = sessionData;
const duration = Duration.fromMillis(session.duration < 1000 ? 1000 : session.duration);
@@ -334,7 +334,7 @@ export default class Session {
canvasURL,
notesWithEvents: mixedEventsWithIssues,
frustrations: frustrationList,
- utxVideo: utxVideo[0],
+ uxtVideo: uxtVideo[0],
});
}
@@ -362,17 +362,17 @@ export default class Session {
}
const events: InjectedEvent[] = [];
- const utxDoneEvents = userTestingEvents.filter(e => e.status === 'done' && e.title).map(e => ({ ...e, type: 'UTX_EVENT', key: e.signal_id }))
+ const uxtDoneEvents = userTestingEvents.filter(e => e.status === 'done' && e.title).map(e => ({ ...e, type: 'UXT_EVENT', key: e.signal_id }))
const rawEvents: (EventData & { key: number })[] = [];
- let utxIndexNum = 0;
+ let uxtIndexNum = 0;
if (sessionEvents.length) {
- const eventsWithUtx = mergeEventLists(sessionEvents, utxDoneEvents)
- eventsWithUtx.forEach((event, k) => {
- const isRawUtx = 'allow_typing' in event
- if (isRawUtx) {
- utxIndexNum += 1;
- event.indexNum = utxIndexNum;
+ const eventsWithUxt = mergeEventLists(sessionEvents, uxtDoneEvents)
+ eventsWithUxt.forEach((event, k) => {
+ const isRawUxt = 'allow_typing' in event
+ if (isRawUxt) {
+ uxtIndexNum += 1;
+ event.indexNum = uxtIndexNum;
}
const time = event.timestamp - this.startedAt;
if (event.type !== TYPES.CONSOLE && time <= this.durationSeconds) {