Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

fix: keep the session mode badge clear of mobile navigation

Rahman488bdf66f950
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 7809be86..42ef66a2 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -8,6 +8,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
**Fixed**
+- keep the session mode badge clear of mobile navigation
- harden audited execution, integrations and release journeys
**Tests**
diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md
index cf579ac2..7759b1d4 100644
--- a/docs/PROGRESS.md
+++ b/docs/PROGRESS.md
@@ -4,7 +4,7 @@ The audit found outdated security dependencies, implicit command retargeting, hi
Integrations now links directly to login with a validated same-origin return destination, refreshes cards after Verify, uses embedded provider SVG marks where available, and exposes setup instructions without two collapsed levels. Signed-out desktop entry labels mock data persistently; Settings avoids fetching owner AI configuration for anonymous/delegated visitors. Standalone heading hierarchy and verified text contrast are corrected.
-The release build is followed by synthetic browser journeys for desktop, phone portrait and landscape, login/return, a local provider that changes from success to 401, state after reload, harmless file/exec operations and live device-role demotion. Public Integrations also runs automated accessibility checks. All fixture state is disposable; no production credentials are used. Unit test environment baselines and two-instance resource/CSP tests prevent host configuration from changing default-test expectations. Coverage floors follow the observed baseline; palette regressions now fail; strict dependencies are checked daily in CI. Validation: full `bun run verify` passed with 2,668 tests (7 environment-dependent/legacy skips), 44.02% line coverage, zero lint errors, and zero palette contrast failures. The exact committed production build passed all required browser journeys at 1363×936, 390×844 and 844×390, including automated WCAG checks on public Integrations. Strict dependency audit found no high/critical advisories. Eleven existing file-length lint warnings remain. This is synthetic-provider/browser evidence; it does not claim live third-party OAuth, physical-device/screen-reader, load or disaster-recovery coverage. The canonical ship gate repeats verification before deployment.
+The release build is followed by synthetic browser journeys for desktop, phone portrait and landscape, login/return, a local provider that changes from success to 401, state after reload, harmless file/exec operations and live device-role demotion. Public Integrations also runs automated accessibility checks. All fixture state is disposable; no production credentials are used. Unit test environment baselines and two-instance resource/CSP tests prevent host configuration from changing default-test expectations. Coverage floors follow the observed baseline; palette regressions now fail; strict dependencies are checked daily in CI. Validation: full `bun run verify` passed with 2,668 tests (7 environment-dependent/legacy skips), 44.02% line coverage, zero lint errors, and zero palette contrast failures. The exact committed production build passed all required browser journeys at 1363×936, 390×844 and 844×390, including automated WCAG checks on public Integrations. Strict dependency audit found no high/critical advisories. Eleven existing file-length lint warnings remain. This is synthetic-provider/browser evidence; it does not claim live third-party OAuth, physical-device/screen-reader, load or disaster-recovery coverage. The canonical ship gate repeats verification before deployment. Production screenshot review additionally exposed a mobile mode badge overlapping the Settings title; compact mobile placement and a required geometric non-overlap assertion correct that regression.
## 2026-09-09 — Instance portability and MCP privacy boundary
diff --git a/frontend/slices/auth/components/session-mode-banner.tsx b/frontend/slices/auth/components/session-mode-banner.tsx
index 41031064..b2aeca22 100644
--- a/frontend/slices/auth/components/session-mode-banner.tsx
+++ b/frontend/slices/auth/components/session-mode-banner.tsx
@@ -13,7 +13,7 @@ export function SessionModeBanner() {
return (
<aside
aria-label="Server connection mode"
- className="fixed left-1/2 top-9 -translate-x-1/2 z-[60] flex max-w-[calc(100vw-1rem)] items-center gap-3 rounded-lg border border-border bg-popover px-3 py-2 text-xs text-popover-foreground shadow-sm"
+ className="fixed left-1/2 top-0 w-max -translate-x-1/2 z-[60] flex max-w-[calc(100vw-1rem)] items-center gap-3 whitespace-nowrap rounded-lg border border-border bg-popover px-3 py-1 text-xs text-popover-foreground shadow-sm md:top-9 md:py-2"
data-connection-mode={live ? "live" : "mock"}
>
<span>{live ? `Live server · ${role}` : "Demo · Mock data only"}</span>
diff --git a/scripts/e2e/release.mjs b/scripts/e2e/release.mjs
index dd8c5800..7b36b242 100644
--- a/scripts/e2e/release.mjs
+++ b/scripts/e2e/release.mjs
@@ -40,6 +40,15 @@ try {
await expect(page).toHaveURL(/\/settings/);
await expect(page.getByLabel("Server connection mode")).toContainText("Mock data only");
expect(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1)).toBe(true);
+ if (viewport.width < 768) {
+ const title = page.locator('[data-slot="mobile-feature-header"]').getByText("Settings", { exact: true });
+ await expect(title).toBeVisible();
+ await expect.poll(async () => {
+ const badge = await page.getByLabel("Server connection mode").boundingBox();
+ const heading = await title.boundingBox();
+ return badge && heading ? badge.y + badge.height <= heading.y : false;
+ }).toBe(true);
+ }
expect(errors).toEqual([]);
await context.close();
console.log(`PASS public guides, login entry, launcher and reflow ${viewport.width}x${viewport.height}`);