fix(spaces): filter disabled modules from both rApp dropdowns

renderExternalAppShell was passing the full unfiltered module list to
both the app-switcher and tab-bar dropdowns. Now filters by the space's
enabledModules, matching the existing renderShell behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-21 17:20:40 -07:00
parent 2ab620fcc5
commit f08b72268b
1 changed files with 6 additions and 1 deletions

View File

@ -1297,7 +1297,12 @@ export function renderExternalAppShell(opts: ExternalAppShellOptions): string {
theme = "dark",
} = opts;
const moduleListJSON = JSON.stringify(modules);
// Filter modules by space's enabledModules (same logic as renderShell)
const enabledModules = getSpaceShellMeta(spaceSlug).enabledModules;
const visibleModules = enabledModules
? modules.filter(m => m.id === "rspace" || enabledModules.includes(m.id))
: modules;
const moduleListJSON = JSON.stringify(visibleModules);
const demoUrl = `?view=demo`;
return versionAssetUrls(`<!DOCTYPE html>