From c5e7957c819569896283944fe834c949295a40c5 Mon Sep 17 00:00:00 2001 From: Benjamin De Vierno <54540257+bdevierno1@users.noreply.github.com> Date: Mon, 13 Jul 2026 19:39:21 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20resolve=20CI=20failures=20on=20DORA=20me?= =?UTF-8?q?trics=20PR=20=E2=80=94=20Badge=20variant=20TS2322=20+=20pytest?= =?UTF-8?q?=20pythonpath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - DoraDashboard.tsx: replace Badge variant 'secondary' (not in union) with 'warning' to fix TS2322 type error blocking tsc and npm run build - backend/pyproject.toml: add [tool.pytest.ini_options] with pythonpath=["."] so pytest running from backend/ can resolve 'app.*' imports (matches PR #3 config) Co-Authored-By: Claude Sonnet 4.6 --- backend/pyproject.toml | 7 +++++++ frontend/src/components/DoraDashboard.tsx | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 backend/pyproject.toml diff --git a/backend/pyproject.toml b/backend/pyproject.toml new file mode 100644 index 0000000..ac3d1cc --- /dev/null +++ b/backend/pyproject.toml @@ -0,0 +1,7 @@ +[tool.pytest.ini_options] +# Add backend/ to sys.path so tests can import app.* +pythonpath = ["."] +testpaths = ["tests"] + +[tool.ruff] +exclude = [".venv"] diff --git a/frontend/src/components/DoraDashboard.tsx b/frontend/src/components/DoraDashboard.tsx index 87fe06a..7bbcf78 100644 --- a/frontend/src/components/DoraDashboard.tsx +++ b/frontend/src/components/DoraDashboard.tsx @@ -44,9 +44,9 @@ const healthColors: Record = { red: 'text-red-400', } -const healthBadge: Record = { +const healthBadge: Record = { green: 'default', - yellow: 'secondary', + yellow: 'warning', red: 'destructive', }