Skip to content

Commit beb123a

Browse files
LEANDERANTONYclaude
andcommitted
Drop dead frontend code + consolidate eval scripts under tests/quality
frontend/ — two dead files removed - frontend/src/components/backend-health-card.tsx Health-check card from early dev. Confirmed orphaned by a strict importer scan (zero hits in frontend/src/ for either the file path or the BackendHealthCard symbol). - frontend/src/state/workspace-store.ts Zustand store stub. Comment in the file references the deleted docs/NEXT-STEPS-FRONTEND.md and admits "only the `ui` slice is implemented." The redesign chose hooks + lifted callbacks over Zustand, so this file is the abandoned approach. scripts/ → tests/quality/ The repo had two utility scripts at the root in their own folder: eval_resume_parser.py and perf_assistant_stream.py. They're evaluation/perf runners — same role as the 13 *_quality_runner.py files already in tests/quality/. Co-locating them removes the awkward two-file scripts/ folder. - scripts/eval_resume_parser.py → tests/quality/eval_resume_parser.py REPO_ROOT bumped from `parent.parent` to `parent.parent.parent` (file moved one level deeper in the tree, so the parent climb needs to compensate). - scripts/perf_assistant_stream.py → tests/quality/perf_assistant_stream.py Updated 3 docstring usage-example commands to point at the new path (`tests/quality/perf_assistant_stream.py`). The empty scripts/ folder was removed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ab30aca commit beb123a

5 files changed

Lines changed: 8 additions & 189 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit c84a285bcdaeebfd78ee18aa0c9da52847175290

frontend/src/components/backend-health-card.tsx

Lines changed: 0 additions & 96 deletions
This file was deleted.

frontend/src/state/workspace-store.ts

Lines changed: 0 additions & 89 deletions
This file was deleted.
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
from pathlib import Path
66
from typing import Any
77

8-
REPO_ROOT = Path(__file__).resolve().parent.parent
8+
# `tests/quality/<file>.py` → repo root is three parents up. Without
9+
# this, `from src.config import …` below fails because `src/` isn't
10+
# on sys.path when the runner is invoked directly.
11+
REPO_ROOT = Path(__file__).resolve().parent.parent.parent
912
if str(REPO_ROOT) not in sys.path:
1013
sys.path.insert(0, str(REPO_ROOT))
1114

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@
2929
--------
3030
Local, deterministic fallback (no OpenAI key needed)::
3131
32-
uv run python scripts/perf_assistant_stream.py \\
32+
uv run python tests/quality/perf_assistant_stream.py \\
3333
--url http://localhost:8000/api/workspace/assistant/answer/stream
3434
3535
Local, OpenAI-backed (real model, real first-token latency)::
3636
37-
uv run python scripts/perf_assistant_stream.py \\
37+
uv run python tests/quality/perf_assistant_stream.py \\
3838
--url http://localhost:8000/api/workspace/assistant/answer/stream \\
3939
--token "$YOUR_SUPABASE_ACCESS_TOKEN" \\
4040
--refresh-token "$YOUR_SUPABASE_REFRESH_TOKEN"
4141
4242
Deployed::
4343
44-
uv run python scripts/perf_assistant_stream.py \\
44+
uv run python tests/quality/perf_assistant_stream.py \\
4545
--url https://api.example.com/api/workspace/assistant/answer/stream \\
4646
--token "$ACCESS" --refresh-token "$REFRESH"
4747
"""

0 commit comments

Comments
 (0)