feat: hide AE menu by default in iframe mode; add show_menu override

iframe=true now hides the sys bar for all users (previously trusted_access
users still saw it). Admins can pass show_menu=true to re-enable it while
testing an embedded page like video_conferences.

hide_menu=true remains for non-iframe hide use cases (kiosk, etc).

Updated URL builder: hide_menu checkbox → show_menu checkbox.
Updated GUIDE__Development.md URL params table.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Scott Idem
2026-03-17 20:18:09 -04:00
parent c1f96ba94e
commit ec5b09dfaa
3 changed files with 24 additions and 16 deletions

View File

@@ -36,8 +36,8 @@
let disable_reaction = $state(true);
let disable_raise_hand = $state(true);
// Toggle to hide AE system menu when embedding in other pages
let hide_ae_menu = $state(false);
// show_menu=true overrides the default iframe hide — for admins testing the embed
let show_ae_menu = $state(false);
let show_advanced = $state(false);
let show_sound = $state(false);
@@ -67,8 +67,8 @@
if (disable_participant_left) p.set('participant_left_sound', 'true');
if (disable_reaction) p.set('reaction_sound', 'true');
if (disable_raise_hand) p.set('raise_hand_sound', 'true');
// AE embed option: hide AE system menu when embedding in other pages
if (hide_ae_menu) p.set('hide_menu', 'true');
// AE embed: iframe=true hides the menu by default; show_menu=true lets admins override
if (show_ae_menu) p.set('show_menu', 'true');
return `${effective_base}?${p.toString()}`;
});
@@ -226,12 +226,12 @@
<label class="flex items-center gap-2 cursor-pointer w-fit">
<input
type="checkbox"
bind:checked={hide_ae_menu}
bind:checked={show_ae_menu}
class="checkbox checkbox-sm"
/>
<span class="text-xs"
>Hide AE system menu <span class="opacity-40"
>(hide_menu=true)</span
>Show AE system menu <span class="opacity-40"
>(show_menu=true)</span
></span
>
</label>