Skip to content

Commit 1e790c2

Browse files
committed
runtime: remove top chrome from preview and prod shells
1 parent 3286ca3 commit 1e790c2

3 files changed

Lines changed: 6 additions & 19 deletions

File tree

src/namel3ss/runtime/web/preview.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,6 @@
1616
</head>
1717
<body class="n3-runtime">
1818
<div class="runtime-shell">
19-
<header class="runtime-bar" role="banner">
20-
<div class="runtime-brand">
21-
<span class="runtime-badge">preview</span>
22-
<span id="appLabel">namel3ss</span>
23-
</div>
24-
<div class="runtime-controls">
25-
<label for="pageSelect">Page</label>
26-
<select id="pageSelect" aria-label="Page selection"></select>
27-
</div>
28-
</header>
2919
<main class="runtime-canvas" role="main">
3020
<div id="ui" class="ui-body" data-testid="runtime-ui"></div>
3121
</main>

src/namel3ss/runtime/web/prod.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@
1616
</head>
1717
<body class="n3-runtime">
1818
<div class="runtime-shell">
19-
<header class="runtime-bar" role="banner">
20-
<div class="runtime-brand">
21-
<span id="appLabel">namel3ss</span>
22-
</div>
23-
<div class="runtime-controls">
24-
<label for="pageSelect">Page</label>
25-
<select id="pageSelect" aria-label="Page selection"></select>
26-
</div>
27-
</header>
2819
<main class="runtime-canvas" role="main">
2920
<div id="ui" class="ui-body" data-testid="runtime-ui"></div>
3021
</main>

tests/runtime/test_browser_web_contract.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ def test_preview_html_excludes_overlay_and_status() -> None:
1313
html = Path("src/namel3ss/runtime/web/preview.html").read_text(encoding="utf-8")
1414
assert 'id="devOverlay"' not in html
1515
assert "runtimeStatus" not in html
16+
assert "runtime-bar" not in html
17+
assert "pageSelect" not in html
18+
assert "appLabel" not in html
1619
assert 'mode: "preview"' in html
1720

1821

@@ -21,4 +24,7 @@ def test_prod_html_excludes_overlay_status_and_badge() -> None:
2124
assert 'id="devOverlay"' not in html
2225
assert "runtimeStatus" not in html
2326
assert "runtime-badge" not in html
27+
assert "runtime-bar" not in html
28+
assert "pageSelect" not in html
29+
assert "appLabel" not in html
2430
assert 'mode: "preview"' in html

0 commit comments

Comments
 (0)