--- status: accepted date: 2026-09-13 --- # Separate shell modes behind a portal adapter ThothII has two presentation modes selected by `shell.mode`: `embedded` (the default), where Omics Portal hosts ThothII, which renders no header and takes locale, theme and fullscreen from the portal; and `full`, where ThothII renders its own header with locale, theme, fullscreen and user controls. One deliberately minimal `PortalAdapter` is the only boundary with the host portal: it delivers snapshots of host shell state and never exposes commands, tokens, identity or transport, so another portal can replace `OmicsPortalAdapter` without touching shell, i18n or workflow. In `full` no adapter is instantiated. The interface and configuration are in the [portal shell adapter contract](../contracts/portal-shell-adapter-v1.md). ## Considered Options - Duplicating the Omics header in embedded mode creates two sources of state and visual mismatch. - Scattering `embedded`/`full` checks through components ties every page to the portal. - Passing user or tokens through the bridge widens the surface and couples UI and authentication. - A full request/response protocol adds no required capability. - Using `profile` to select the shell conflates installation topology with presentation. ## Consequences Identity and authorization are never rebuilt in the browser: in embedded mode Omics Portal keeps login and logout and the server-side `auth_request` chain supplies principal headers (ADR-0015). A new portal must also satisfy that trusted-identity server contract; replacing the UI adapter alone is not enough. Shell mode is independent of the browser fullscreen state, and UI locale is governed by ADR-0046.