Spaces:
Sleeping
Sleeping
Commit History
-
feat(trials): RAG-grounded mechanism summary per clinical trial (#34)
KevinIsInCoding +1: Claude Opus 4.8Unverified signature* feat(ui): headless UI-verification harness (run-ui skill) + fix combobox JS Adds a reusable, deterministic UI check for the Clinical Trials tab so UI changes stop shipping blind. Building it surfaced and fixed a real production bug. - .claude/skills/run-ui/: launches the app in UI-smoke mode and drives the tab in headless Chromium (Playwright), asserting placeholder, 3-char gate, clean picked value, one-line labels, and a search result — plus a screenshot. Exits non-zero on failure (CI-usable). SKILL.md documents usage + the gotchas learned. - app.py: CANDLE_UI_SMOKE mode skips the heavy startup loads (cross-encoder, ChromaDB, graph, Anthropic client) so UI tests boot in ~25s instead of ~60s. - FIX: the combobox in-box placeholder + 3-char gate never ran — Gradio ignored `js=`/`demo.load(js=)` in this version. Inject the script via gr.Blocks(head=...) with a MutationObserver (the tab renders lazily). This was broken on the live Space too; now verified working end-to-e…4750fb9