fix: restore green builds and align frontend-backend contracts (P0)

- Isolate Settings tests from .env and process env leakage
- Fix analytics metadata test to unwrap psycopg Json wrapper
- Remove unused state variables causing frontend build failures
- Fix ReviewPage to use /classifications endpoint instead of nonexistent /result
- Normalize ReviewPage status enums (failed not error) and access_type values
- Align api.ts types with backend response shapes (ReplayPage, AnalyticsData, AgentUsage)
This commit is contained in:
Yaojia Wang
2026-04-05 23:00:39 +02:00
parent 189a0fad34
commit e55ec42ae5
6 changed files with 70 additions and 41 deletions

View File

@@ -1,4 +1,3 @@
import { useState } from "react";
import { useParams, useNavigate } from "react-router-dom";
import { ReplayTimeline } from "../components/ReplayTimeline";
@@ -16,8 +15,6 @@ const MOCK_STEPS = [
export function ReplayPage() {
const { threadId } = useParams<{ threadId: string }>();
const navigate = useNavigate();
const [page, setPage] = useState(1);
if (!threadId) return null;
return (