diff --git a/desktop/demo.html b/desktop/demo.html deleted file mode 100644 index 5cb6533..0000000 --- a/desktop/demo.html +++ /dev/null @@ -1,324 +0,0 @@ - - - - - - New QC Sheet · 0.2.0 - - - - -
-
-
- - xlsx-clean — New QC Sheet -
-
-

QC datasheet

-

New QC Sheet

-

- Create a new QC datasheet from the latest matching workbook. -

- -
-
- - - -
- -
- - - -
- -
- - -
- -
- - - -
-
- -

- COM backend requires Windows with Microsoft Excel; use ooxml here. -

- -
- - -
-
status
-
Ready.
-
- -

v0.2.0

-
-
-
- - diff --git a/src/xlsx_clean/ui/index.html b/src/xlsx_clean/ui/index.html index 4db9cac..a85ab06 100644 --- a/src/xlsx_clean/ui/index.html +++ b/src/xlsx_clean/ui/index.html @@ -39,9 +39,6 @@ --success: #22c55e; --warning: #f59e0b; --error: #ef4444; - --tl-red: #ff5f56; - --tl-yellow: #ffbd2e; - --tl-green: #27c93f; --bg: #0b0e14; --bg-alt: #111520; --surface: #161b22; @@ -120,61 +117,28 @@ flex-direction: column; width: min(100%, 36rem); margin: auto; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius); - box-shadow: 0 24px 60px -28px rgb(0 0 0 / 55%); - overflow: hidden; + background: transparent; } - .chrome { + .heading-row { display: flex; - align-items: center; - gap: 10px; - min-height: 40px; - padding: 0 14px; - background: var(--surface-2); - border-bottom: 1px solid var(--border); - } - - .traffic { - display: flex; - gap: 6px; - flex-shrink: 0; - } - - .traffic span { - width: 10px; - height: 10px; - border-radius: 50%; - } - - .tl-red { background: var(--tl-red); } - .tl-yellow { background: var(--tl-yellow); } - .tl-green { background: var(--tl-green); } - - .chrome-title { - flex: 1; - color: var(--text-muted); - font-family: var(--font-mono); - font-size: 0.75rem; - letter-spacing: 0.02em; - text-align: center; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; + align-items: flex-start; + justify-content: space-between; + gap: 12px; } .theme-toggle { display: inline-flex; align-items: center; justify-content: center; + flex-shrink: 0; min-width: 52px; height: 28px; + margin-top: 2px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); - background: var(--surface); + background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; @@ -195,13 +159,6 @@ outline-offset: 2px; } - .panel-body { - display: flex; - flex: 1; - flex-direction: column; - padding: 22px 22px 18px; - } - .eyebrow { margin: 0 0 8px; color: var(--primary); @@ -240,7 +197,7 @@ top: 0; left: 11px; padding: 0 4px; - background: var(--surface); + background: var(--bg); color: var(--primary); font-size: 0.75rem; line-height: 1rem; @@ -378,28 +335,12 @@ #create-button:disabled { cursor: not-allowed; opacity: 0.65; } - .terminal { - margin-top: 16px; - border: 1px solid var(--border); - border-radius: var(--radius-sm); - background: var(--bg); - overflow: hidden; - } - - .terminal-bar { - padding: 6px 12px; - border-bottom: 1px solid var(--border); - color: var(--text-dim); - font-family: var(--font-mono); - font-size: 0.7rem; - letter-spacing: 0.04em; - text-transform: uppercase; - } - .status { min-height: 48px; - margin: 0; + margin-top: 16px; padding: 12px; + border: 1px solid var(--border); + border-radius: var(--radius-sm); color: var(--text-muted); font-family: var(--font-mono); font-size: 0.8rem; @@ -429,7 +370,6 @@ @media (max-width: 480px) { .page { padding: 14px; } - .panel-body { padding: 18px 16px 14px; } h1 { font-size: 1.5rem; } } @@ -437,13 +377,11 @@
-
- - xlsx-clean — New QC Sheet +
+
+

QC datasheet

+

New QC Sheet

+
-
-

QC datasheet

-

New QC Sheet

-

Create a new QC datasheet from the latest matching workbook.

+

Create a new QC datasheet from the latest matching workbook.

-
- - - -
- -
- -
-
status
-
Loading configuration...
-
-

+
+ + +
+ +
+ +
Loading configuration...
+

diff --git a/tests/test_ui_assets.py b/tests/test_ui_assets.py index 44743b0..db42f62 100644 --- a/tests/test_ui_assets.py +++ b/tests/test_ui_assets.py @@ -1,5 +1,6 @@ import re from html.parser import HTMLParser +from pathlib import Path from xlsx_clean.paths import package_file @@ -41,6 +42,9 @@ def test_ui_asset_exists_and_has_required_bridge_content(): assert "#0b0e14" in content assert "#e54d5e" in content assert "background-size: var(--grid-size) var(--grid-size)" in content + assert "background: transparent" in content + assert "tl-red" not in content + assert 'class="chrome"' not in content StrictHtmlParser().feed(content) @@ -51,3 +55,7 @@ def test_ui_font_sources_are_bundled_locally(): assert font_urls == ["../fonts/Inter-Regular.ttf", "../fonts/Inter-Bold.ttf"] for font_url in font_urls: assert (package_file("ui") / font_url).resolve().is_file() + + +def test_demo_html_is_not_shipped(): + assert not Path("desktop/demo.html").exists()