mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-05-25 03:00:23 +00:00
dca8624454
Merged as v0.50.226. Integration branch absorbed @aronprins's original PR #1141 with one reviewer fix from @nesquena (`1d11646`: queue hide tooltip updated to reference the queue pill, not the removed titlebar badge). **Full gate results:** - 2595 tests passing ✅ - Browser QA 21/21 (desktop 1440×900 + mobile iPhone 14) ✅ - Independent review: APPROVED by @nesquena ✅ Thank you @aronprins for the clean PR — the titlebar is properly restored.
26 lines
983 B
Python
26 lines
983 B
Python
from pathlib import Path
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
INDEX_HTML = (ROOT / "static" / "index.html").read_text(encoding="utf-8")
|
|
STYLE_CSS = (ROOT / "static" / "style.css").read_text(encoding="utf-8")
|
|
PANELS_JS = (ROOT / "static" / "panels.js").read_text(encoding="utf-8")
|
|
UI_JS = (ROOT / "static" / "ui.js").read_text(encoding="utf-8")
|
|
|
|
|
|
def test_app_titlebar_no_longer_contains_tps_chip():
|
|
assert 'id="tpsStat"' not in INDEX_HTML
|
|
|
|
|
|
def test_app_titlebar_returns_to_centered_desktop_layout():
|
|
assert ".app-titlebar{display:flex;align-items:center;justify-content:center;" in STYLE_CSS
|
|
assert ".app-titlebar-inner{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;justify-content:center;}" in STYLE_CSS
|
|
|
|
|
|
def test_app_titlebar_subtitle_shows_message_count_again():
|
|
assert "subText = t('n_messages', vis.length);" in PANELS_JS
|
|
|
|
|
|
def test_queue_updates_do_not_hijack_app_titlebar_subtitle():
|
|
assert "_syncQueueTitlebar" not in UI_JS
|