Merge branch 'develop' of github.com:thecodingmachine/workadventure into end-to-end-tests
# Conflicts: # front/src/Administration/AnalyticsClient.ts
This commit is contained in:
commit
550ffaf8a8
@ -42,6 +42,7 @@ class AnalyticsClient {
|
|||||||
this.posthogPromise
|
this.posthogPromise
|
||||||
?.then((posthog) => {
|
?.then((posthog) => {
|
||||||
posthog.capture("$pageView", { roomId, roomGroup });
|
posthog.capture("$pageView", { roomId, roomGroup });
|
||||||
|
posthog.capture("enteredRoom");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,5 +66,26 @@ class AnalyticsClient {
|
|||||||
posthog.capture("wa-entered-jitsi", { roomName, roomId });
|
posthog.capture("wa-entered-jitsi", { roomName, roomId });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
validationName() {
|
||||||
|
this.posthogPromise
|
||||||
|
?.then((posthog) => {
|
||||||
|
posthog.capture("wa-name-validation");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
validationWoka(scene: string) {
|
||||||
|
this.posthogPromise
|
||||||
|
?.then((posthog) => {
|
||||||
|
posthog.capture("wa-woka-validation", { scene });
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
validationVideo() {
|
||||||
|
this.posthogPromise
|
||||||
|
?.then((posthog) => {
|
||||||
|
posthog.capture("wa-video-validation");
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
export const analyticsClient = new AnalyticsClient();
|
export const analyticsClient = new AnalyticsClient();
|
||||||
|
@ -14,6 +14,7 @@ import { waScaleManager } from "../Services/WaScaleManager";
|
|||||||
import { isMobile } from "../../Enum/EnvironmentVariable";
|
import { isMobile } from "../../Enum/EnvironmentVariable";
|
||||||
import { CustomizedCharacter } from "../Entity/CustomizedCharacter";
|
import { CustomizedCharacter } from "../Entity/CustomizedCharacter";
|
||||||
import { get } from "svelte/store";
|
import { get } from "svelte/store";
|
||||||
|
import { analyticsClient } from "../../Administration/AnalyticsClient";
|
||||||
|
|
||||||
export const CustomizeSceneName = "CustomizeScene";
|
export const CustomizeSceneName = "CustomizeScene";
|
||||||
|
|
||||||
@ -278,6 +279,8 @@ export class CustomizeScene extends AbstractCharacterScene {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
analyticsClient.validationWoka("CustomizeWoka");
|
||||||
|
|
||||||
gameManager.setCharacterLayers(layers);
|
gameManager.setCharacterLayers(layers);
|
||||||
this.scene.sleep(CustomizeSceneName);
|
this.scene.sleep(CustomizeSceneName);
|
||||||
waScaleManager.restoreZoom();
|
waScaleManager.restoreZoom();
|
||||||
|
@ -2,6 +2,7 @@ import { gameManager } from "../Game/GameManager";
|
|||||||
import { ResizableScene } from "./ResizableScene";
|
import { ResizableScene } from "./ResizableScene";
|
||||||
import { enableCameraSceneVisibilityStore } from "../../Stores/MediaStore";
|
import { enableCameraSceneVisibilityStore } from "../../Stores/MediaStore";
|
||||||
import { localUserStore } from "../../Connexion/LocalUserStore";
|
import { localUserStore } from "../../Connexion/LocalUserStore";
|
||||||
|
import { analyticsClient } from "../../Administration/AnalyticsClient";
|
||||||
|
|
||||||
export const EnableCameraSceneName = "EnableCameraScene";
|
export const EnableCameraSceneName = "EnableCameraScene";
|
||||||
|
|
||||||
@ -27,6 +28,8 @@ export class EnableCameraScene extends ResizableScene {
|
|||||||
update(time: number, delta: number): void {}
|
update(time: number, delta: number): void {}
|
||||||
|
|
||||||
public login(): void {
|
public login(): void {
|
||||||
|
analyticsClient.validationVideo();
|
||||||
|
|
||||||
enableCameraSceneVisibilityStore.hideEnableCameraScene();
|
enableCameraSceneVisibilityStore.hideEnableCameraScene();
|
||||||
|
|
||||||
this.scene.sleep(EnableCameraSceneName);
|
this.scene.sleep(EnableCameraSceneName);
|
||||||
|
@ -4,6 +4,7 @@ import { loginSceneVisibleIframeStore, loginSceneVisibleStore } from "../../Stor
|
|||||||
import { localUserStore } from "../../Connexion/LocalUserStore";
|
import { localUserStore } from "../../Connexion/LocalUserStore";
|
||||||
import { connectionManager } from "../../Connexion/ConnectionManager";
|
import { connectionManager } from "../../Connexion/ConnectionManager";
|
||||||
import { gameManager } from "../Game/GameManager";
|
import { gameManager } from "../Game/GameManager";
|
||||||
|
import { analyticsClient } from "../../Administration/AnalyticsClient";
|
||||||
|
|
||||||
export const LoginSceneName = "LoginScene";
|
export const LoginSceneName = "LoginScene";
|
||||||
|
|
||||||
@ -34,6 +35,8 @@ export class LoginScene extends ResizableScene {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public login(name: string): void {
|
public login(name: string): void {
|
||||||
|
analyticsClient.validationName();
|
||||||
|
|
||||||
name = name.trim();
|
name = name.trim();
|
||||||
gameManager.setPlayerName(name);
|
gameManager.setPlayerName(name);
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ import { PinchManager } from "../UserInput/PinchManager";
|
|||||||
import { selectCharacterSceneVisibleStore } from "../../Stores/SelectCharacterStore";
|
import { selectCharacterSceneVisibleStore } from "../../Stores/SelectCharacterStore";
|
||||||
import { waScaleManager } from "../Services/WaScaleManager";
|
import { waScaleManager } from "../Services/WaScaleManager";
|
||||||
import { isMobile } from "../../Enum/EnvironmentVariable";
|
import { isMobile } from "../../Enum/EnvironmentVariable";
|
||||||
|
import { analyticsClient } from "../../Administration/AnalyticsClient";
|
||||||
|
|
||||||
//todo: put this constants in a dedicated file
|
//todo: put this constants in a dedicated file
|
||||||
export const SelectCharacterSceneName = "SelectCharacterScene";
|
export const SelectCharacterSceneName = "SelectCharacterScene";
|
||||||
@ -98,6 +99,9 @@ export class SelectCharacterScene extends AbstractCharacterScene {
|
|||||||
if (!this.selectedPlayer) {
|
if (!this.selectedPlayer) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
analyticsClient.validationWoka("SelectWoka");
|
||||||
|
|
||||||
this.scene.stop(SelectCharacterSceneName);
|
this.scene.stop(SelectCharacterSceneName);
|
||||||
waScaleManager.restoreZoom();
|
waScaleManager.restoreZoom();
|
||||||
gameManager.setCharacterLayers([this.selectedPlayer.texture.key]);
|
gameManager.setCharacterLayers([this.selectedPlayer.texture.key]);
|
||||||
|
Loading…
Reference in New Issue
Block a user