feat: make display setup actionable

This commit is contained in:
ekklesia
2026-09-29 20:49:51 -05:00
parent 7999582460
commit 36c1a72363
5 changed files with 654 additions and 299 deletions
+6
View File
@@ -24,8 +24,12 @@ import type { ChannelGroupView, SettingsResponse } from "./types.js";
*/
export function SignageDashboard({
context,
copyText,
displaySetupUrl,
}: {
readonly context: ModuleUiHostContext;
readonly copyText: (value: string) => Promise<void>;
readonly displaySetupUrl: string;
}): ReactElement {
const api = useMemo(() => createSignageApi(context.api), [context.api]);
// Read before the resources below, so a viewer who may not see Signage at all asks for nothing.
@@ -135,6 +139,8 @@ export function SignageDashboard({
<DisplaysPanel
api={api}
canManage={mayManageDisplays}
copyText={copyText}
displaySetupUrl={displaySetupUrl}
onGroupsChanged={() => {
setGroupId(undefined);
groups.reload();