fix(ui): right rail review follow-ups for Radio reveals and CCTV restores

- A Radio pick reopens a closed Context around an expanded Radio section in
  every HUD layout, not only Cyber.
- The Radio reveal's scrollend landing gives way to a user scroll, key or
  pointer, and stops after two seconds.
- The compact player's Details button scrolls the Radio section and its
  Enable into view inside Context.
- A camera layer switched on by a share link or a saved session no longer
  opens the CCTV panel over the restored tab; a user switch-on still does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
German KhokhlovandClaude Opus 5.5 committed 2026-10-29 14:00:44 +04:00
1 parent 8c788474db
commit 33ccdad744
9 files changed
+191 -33

No files matched your search

+9
View File
@@ -41,6 +41,7 @@ import {
} from './shareFollow.js';
import { runCctvLayerEnableTransition } from '../cctvFocusPolicy.js';
import { LAYER_RESTORE_ORIGINS } from '../data/layerState.js';
import {
describeUnsavedWork,
@@ -1222,6 +1223,14 @@ export class StyleManager extends ShellFacade {
setPanelCollapsed: (...args) => this.setPanelCollapsed(...args),
showToast: (message) => this._showToast(message),
syncViewport: () => this._syncCctvPanelViewport(),
// Tells the panel whether a switch-on restores saved or shared state.
subscribeEnableRequests: (listener) =>
this._dataManager?.subscribeVisibilityRequests?.((change) => {
if (change?.layerId === 'cctv' && change.enabled)
listener(
Object.values(LAYER_RESTORE_ORIGINS).includes(change.origin),
);
}) || null,
setSplitFlapText,
},
});