Skip to content

feat(keyboards): add G915 X TKL lighting, Game Mode and profiles - #1724

Merged
onyxhq-dev merged 25 commits into
OpenMouse-Project:mainfrom
ruvelro:codex/logitech-lightsync
Dec 3, 2026
Merged

onyxhq-dev merged 25 commits into
OpenMouse-Project:mainfrom
ruvelro:codex/logitech-lightsync

Conversation

@ruvelro

@ruvelro ruvelro commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Scope

  • Adds G915 X TKL LIGHTSYNC zone controls, effects and speed, a per-key editor, reactive key trails, Aurora and a circular rainbow.
  • Adds Game Mode and a three-slot onboard profile editor for independent keys and logo lighting, idle timers, base-layer assignments, and stored animations.
  • Reads saved profiles back, reloads the active slot after saving, and leaves the current active slot selected when editing other slots.

Dependencies

Draft until OpenMouse-Project/keyboard-protocol#24 lands and its package is published. The C547 shared-receiver use case also depends on #1651 and its two protocol releases. The locked packages intentionally still refer to published versions. For local verification, the protocol builds were overlaid on the npm install before running the integrated application check.

Validation

  • Integrated npm run check: 741 tests, type check, production build and bundle budgets.
  • Browser simulation exercised save/reload, active and inactive edits, separate keys and logo, the idle controls, and a linked animation.
  • On the physical G915 X TKL, active timer changes took effect on Save and the owner confirmed that keys and logo show their assigned colors.

Note

Add G915 X TKL support for lighting, Game Mode, and onboard profiles

  • Adds a full Logitech G915 X TKL keyboard layout and new workspace panels: game-mode key selection, per-key and zone lighting editors (key trail, aurora, circular rainbow effects), and onboard-memory profile and animation management in LogitechKeyboardPanel.tsx
  • Extends LogitechKeyboardClient.command in logitech-keyboard.ts with live zone updates, startup lighting, inactivity timers, game-mode writes, and onboard animation/profile save, activate, and leave operations. Profile saves are verified by rereading device state
  • Game-mode selections persist per device in browser storage (logitech-game-mode-storage.ts)
  • Adds a gameMode workspace tab, gated by reported device status in availableKeyboardWorkspaceTabs (workspace-tabs.ts)
  • Adds G915 X TKL device-image resolution and translations for all supported locales
  • Risk: bundle-size budgets raised (CSS 188,000→190,000 bytes, JS 4,800,000→4,900,000 bytes) in check-bundle-size.ts; the Logitech panel in KeyboardPanel.tsx is no longer lazy-loaded, so it loads eagerly for Logitech devices

Macroscope summarized 057a141.

Summary by CodeRabbit

  • New Features
    • Added Logitech keyboard controls for Game Mode, including selecting and saving keys to disable.
    • Added lighting controls for zones, per-key effects, animations, colors, and inactivity timers.
    • Added onboard profile management, including editing, saving, and activating profiles.
    • Added G915 X TKL product imagery and keyboard layout support.
  • Improvements
    • Added translated labels and guidance for the new controls across supported languages.
    • Improved feedback when keyboard settings are unavailable or cannot be read.
  • Chores
    • Updated bundle size budgets.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

CodeRabbit ASCII loading animation

Currently processing new changes in this PR. This may take a few minutes, please wait...

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between bc7ed49 and f48d470.

Files ignored due to path filters: 1

  • public/devices/logitech-g915-x-tkl.png is excluded by !**/*.png
Files selected for processing: 37

  • build/check-bundle-size.ts
  • public/devices/README.md
  • src/device/controller.ts
  • src/device/keyboard-workspace.ts
  • src/device/logitech-game-mode-storage.ts
  • src/device/logitech-keyboard.test.ts
  • src/device/logitech-keyboard.ts
  • src/device/types.ts
  • src/features/devices/OverviewPage.tsx
  • src/features/devices/cards/KeyboardPanel.tsx
  • src/features/devices/cards/LogitechGameModePanel.tsx
  • src/features/devices/cards/LogitechKeyTrail.tsx
  • src/features/devices/cards/LogitechKeyboardPanel.tsx
  • src/features/devices/cards/LogitechLightingEditor.tsx
  • src/features/devices/cards/LogitechOnboardAnimations.tsx
  • src/features/devices/cards/LogitechOnboardAssignments.tsx
  • src/features/devices/cards/LogitechOnboardPanel.tsx
  • src/features/devices/cards/LogitechPerKeyEffects.tsx
  • src/features/devices/cards/logitech-g915-layout.ts
  • src/features/devices/cards/logitech-lighting-frames.ts
  • src/features/devices/workspace-tabs.test.ts
  • src/features/devices/workspace-tabs.ts
  • src/i18n/index.ts
  • src/i18n/locales/ar.ts
  • src/i18n/locales/de.ts
  • src/i18n/locales/es.ts
  • src/i18n/locales/fr.ts
  • src/i18n/locales/ja.ts
  • src/i18n/locales/ko.ts
  • src/i18n/locales/pt.ts
  • src/i18n/locales/ru.ts
  • src/i18n/locales/tr.ts
  • src/i18n/locales/vi.ts
  • src/i18n/locales/zh.ts
  • src/shared/device-images.test.ts
  • src/shared/device-images.ts
  • src/styles/areas/advanced.css

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@onyxhq-dev

Copy link
Copy Markdown
Member

Updated this branch from main (protocol 0.64.0, keyboard-protocol 1.9.0 with #24), so the build errors are gone and CI is green. Two merge conflicts resolved: device-images.ts keeps both the M991 and your G915 X TKL entry, and check-bundle-size.ts keeps your notes plus main's, with CSS 190 kB, JS 4.8 MB and the main chunk at 1.75 MB (same as #1651). Note JS is at 4,789,314 of 4,800,000, so the next addition will need another raise. Mark it ready when you are happy with it.

# Conflicts:
#	build/check-bundle-size.ts
macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Dec 3, 2026
@macroscopeapp

macroscopeapp Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Approvability

Verdict: Needs Human Approval

Macroscope's review found this PR requires human approval — Adds Logitech lighting, Game Mode and onboard profile editing with explicit saves and read-back verification. The unresolved activation-error concern can leave the panel showing a different active profile from the keyboard, including its key assignments; state reconciliation needs resolution.

Notes:

  • The correctness review posted 1 finding. Your repo's Minimum Blocking Severity is Off, so they do not automatically block approval.

You can add or adjust custom eligibility rules. Learn more.

@macroscopeapp
macroscopeapp Bot dismissed their stale review December 3, 2026 12:30

Dismissing prior approval to re-evaluate 057a141

@onyxhq-dev
onyxhq-dev merged commit 26ac79d into OpenMouse-Project:main Dec 3, 2026
5 checks passed
}
}
} else {
const mode = action.kind === "logitechOnboardActivate" ? await this.client.activateOnboardProfile(action.slot) : await this.client.leaveOnboardMemory();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium device/logitech-keyboard.ts:134

When activateOnboardProfile changes the keyboard’s active slot and then throws, this branch leaves this.onboard unchanged, so recoveredWorkspace() reports the old slot and mode. Re-read onboard memory in the activation error path before rethrowing so the profiles panel reflects the keyboard’s actual state.

-        const mode = action.kind === "logitechOnboardActivate" ? await this.client.activateOnboardProfile(action.slot) : await this.client.leaveOnboardMemory();
+        const mode = action.kind === "logitechOnboardActivate"
+          ? await this.client.activateOnboardProfile(action.slot).catch(async error => {
+            this.onboard = await this.client.readOnboardMemory();
+            throw error;
+          })
+          : await this.client.leaveOnboardMemory();
🤖 Copy this AI Prompt to have your agent fix this:
In file @src/device/logitech-keyboard.ts around line 134:

When `activateOnboardProfile` changes the keyboard’s active slot and then throws, this branch leaves `this.onboard` unchanged, so `recoveredWorkspace()` reports the old slot and mode. Re-read onboard memory in the activation error path before rethrowing so the profiles panel reflects the keyboard’s actual state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants