AI desktop path: plain-HTML Review and Cost tabs over the Qt bridge, gate in Python
ai_sections.html pastes into the no-AI dashboard.html; ai_bridge.py adds one ai_request slot that hands every AI contract request (incl. GET /roi) to the review backend's dispatch(). Desktop page check reruns the web review and cost cases plus a tampered-page gate case. Eval fixture e-pyqt-ai added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
128f153f84
commit
d89dce3c33
13 files changed
+203
-14
No files matched your search
@@ -63,7 +63,7 @@ def site(tmp_path_factory):
|
||||
sections = (AI / "desktop" / "ai_sections.html").read_text(encoding="utf-8")
|
||||
out = tmp_path_factory.mktemp("desktop")
|
||||
(out / "dashboard.html").write_text(html.replace("</body>", sections + "\n</body>"), encoding="utf-8")
|
||||
for f in ["server_stub.py", "bands.py"]:
|
||||
for f in ["server_stub.py", "bands.py", "pricing.py"]:
|
||||
(out / f).write_bytes((AI / "web" / f).read_bytes())
|
||||
return out
|
||||
|
||||
|
||||
@@ -16,6 +16,14 @@ from test_ai_review import ( # noqa: E402,F401
|
||||
test_page_x_of_y_updates_while_running,
|
||||
)
|
||||
from test_ai_review import FIELDS, FLAGGED, open_review # noqa: E402
|
||||
from test_ai_cost import ( # noqa: E402,F401
|
||||
cost_page,
|
||||
test_by_hand_panel_is_labelled_assumptions_and_recomputes,
|
||||
test_coverage_pill_counts_priced_of_all_documents,
|
||||
test_month_breakdown_groups_runs_by_month,
|
||||
test_runs_show_tokens_and_cost_and_unpriced_is_not_zero,
|
||||
test_spend_tiles_sum_the_priced_runs,
|
||||
)
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "page_check"))
|
||||
from test_contract import ( # noqa: E402,F401
|
||||
|
||||
Reference in new issue
Block a user