CI / Build & Quality Checks (push) Skipped
CI / Secret scan (gitleaks) (push) Skipped
CI / Playwright smoke (e2e) (push) Skipped
CI / Secret scan (gitleaks) (pull_request) Successful in 23s
CI / Build & Quality Checks (pull_request) Successful in 5m9s
CI / Trigger Desktop Build (pull_request) Skipped
CI / Docker image build & smoke test (pull_request) Skipped
CI / Playwright smoke (e2e) (pull_request) Successful in 23m21s
Settings → Calls → "In-game overlay (beta)", desktop only, off by default, device-local. While a call is joined it sends the call snapshot to the desktop's new `set_overlay_state` command, which shows a small always-on-top, click-through list while Lotus isn't focused. - utils/callOverlay: pure snapshot builder. Everyone in the call, you first, one row per person across devices (speaking if any device is, muted only if all are), your own mute/deafen/PTT. In PTT mode you're not shown as Muted while the key is up. - useTauriOverlay: live io.lotus.call_state participants plus control state, coalesced to at most one send per 100 ms (latest always lands), unchanged snapshots skipped, cleared on unmount. - Overlay position setting (four corners). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PPmy3tPq869XDW4njjVaKA
32 lines
1.7 KiB
TypeScript
32 lines
1.7 KiB
TypeScript
import { useTauriCallPower } from '../hooks/useTauriCallPower';
|
|
import { useTauriJumpList } from '../hooks/useTauriJumpList';
|
|
import { useTauriThumbbar } from '../hooks/useTauriThumbbar';
|
|
import { useTauriTaskbarProgress } from '../hooks/useTauriTaskbarProgress';
|
|
import { useTauriSmtc } from '../hooks/useTauriSmtc';
|
|
import { useTauriNetwork } from '../hooks/useTauriNetwork';
|
|
import { useTauriToastActions } from '../hooks/useTauriToastActions';
|
|
import { useTauriFocusAssist } from '../hooks/useTauriFocusAssist';
|
|
import { useTauriDnd } from '../hooks/useTauriDnd';
|
|
import { useTauriOverlay } from '../hooks/useTauriOverlay';
|
|
|
|
/**
|
|
* Mounts the client-scoped native desktop feature hooks (call/room aware). Each
|
|
* `useTauri*` hook no-ops in the browser (guards on `isTauri`), so this is safe
|
|
* to render unconditionally. Rendered once by `ClientNonUIFeatures`. App-level
|
|
* desktop features (window chrome) live in `App.tsx` instead, so they work
|
|
* before login.
|
|
*/
|
|
export function TauriDesktopFeatures(): null {
|
|
useTauriCallPower(); // P5-46 no-sleep during calls
|
|
useTauriJumpList(); // P5-36 Windows jump list of recent rooms
|
|
useTauriThumbbar(); // P5-44 taskbar thumbnail toolbar (mute/deafen/end)
|
|
useTauriTaskbarProgress(); // cinny-desktop #10 upload progress on the taskbar button
|
|
useTauriSmtc(); // P5-43 system media transport controls
|
|
useTauriNetwork(); // P5-49 network-change awareness → sync retry
|
|
useTauriToastActions(); // P5-41/35 rich toast click → open room, quick reply → send
|
|
useTauriFocusAssist(); // P5-56 Windows Focus Assist → DND suppression atom
|
|
useTauriDnd(); // P6-1 tray "Do Not Disturb" → notification suppression atom
|
|
useTauriOverlay(); // cinny-desktop #25 in-game voice overlay
|
|
return null;
|
|
}
|