feat(ui): responsive + WCAG AA polish pass across chat and sources — v1 feature complete

This commit is contained in:
2026-08-21 19:44:46 -04:00
parent e5810b0bcf
commit 1b29b1cf9d
9 changed files with 582 additions and 15 deletions
+12 -5
View File
@@ -3,6 +3,8 @@ from __future__ import annotations
import json
import pytest
from app.config import get_settings
@@ -48,12 +50,17 @@ def test_suggestions_honors_bor_suggestions_env_override(monkeypatch) -> None:
assert r.json() == {"suggestions": override}
def test_index_html_served_locally(client) -> None:
"""No-CDN check: the page is served by FastAPI and references only
same-origin assets (no https:// script/link tags)."""
r = client.get("/")
@pytest.mark.parametrize(
("path", "marker"),
[("/", "Brain of Reese"), ("/sources.html", "Knowledge base")],
)
def test_html_pages_served_locally_no_cdn(client, path: str, marker: str) -> None:
"""No-CDN check (PLAN §7.3, re-verified on BOTH pages in phase 07):
each page is served by FastAPI and references only same-origin assets
(no https:// script/link tags)."""
r = client.get(path)
assert r.status_code == 200
assert "Brain of Reese" in r.text
assert marker in r.text
assert 'src="https://' not in r.text
assert 'href="https://' not in r.text