Duality: Space key toggles mode without activity tracking #1025

Closed
opened 2026-08-12 08:43:37 +00:00 by spikerj · 1 comment
Owner

Summary

In DualityGameComponent, the on-screen mode button calls toggleMode() which tracks games.duality / toggle-mode before flipping modes. Pressing Space on the canvas flips mode directly in onKeyDown and never calls ActivityTrackingService.track.

Impact

Keyboard users who switch pacman↔snake via Space are invisible in analytics; button toggles are counted. Funnel / engagement metrics under-count mode switches.

Repro

  1. Open Duality game.
  2. Focus the canvas and press Space → mode flips, no track.
  3. Click the mode toggle button → track("games.duality", "toggle-mode") fires.

Expected

Space and the button should share the same toggle path (or Space should also track).

Source

projects/spikersoft/src/app/_components/_games/duality/duality-game.component.ts — onKeyDown vs toggleMode.
Found during Wave 6 coverage tick 11 (a3).

## Summary In `DualityGameComponent`, the on-screen mode button calls `toggleMode()` which tracks `games.duality` / `toggle-mode` before flipping modes. Pressing **Space** on the canvas flips `mode` directly in `onKeyDown` and never calls `ActivityTrackingService.track`. ## Impact Keyboard users who switch pacman↔snake via Space are invisible in analytics; button toggles are counted. Funnel / engagement metrics under-count mode switches. ## Repro 1. Open Duality game. 2. Focus the canvas and press Space → mode flips, no track. 3. Click the mode toggle button → `track("games.duality", "toggle-mode")` fires. ## Expected Space and the button should share the same toggle path (or Space should also track). ## Source `projects/spikersoft/src/app/_components/_games/duality/duality-game.component.ts` — `onKeyDown` vs `toggleMode`. Found during Wave 6 coverage tick 11 (a3).
Author
Owner

Resolved in spikersoft-angular PR #819 (merged to master). Duality Space key tracks activity when toggling mode. Closing.

Resolved in spikersoft-angular [PR #819](https://git.spikersoft.com/spikerj/spikersoft-angular/pulls/819) (merged to `master`). Duality Space key tracks activity when toggling mode. Closing.
Sign in to join this conversation.