Initial commit: CI Agent competitive-intelligence monitoring app

FastAPI + Celery + Next.js + Postgres/Redis app with company monitoring,
source collection, LLM-based change analysis, enrichment, and account
security (Turnstile, escalating lockout, email verification).
This commit is contained in:
2026-08-05 10:48:20 -04:00
commit 1a4c80958f
365 changed files with 43541 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import { render, screen } from "@testing-library/react";
import { describe, expect, it } from "vitest";
import { CompanyStatusBadge, SeverityBadge } from "@/components/ui/badge";
import { SEVERITY_LEVELS } from "@/lib/types";
describe("SeverityBadge", () => {
it.each(SEVERITY_LEVELS)("renders the %s severity label", (severity) => {
render(<SeverityBadge severity={severity} />);
expect(screen.getByText(severity)).toBeInTheDocument();
});
});
describe("CompanyStatusBadge", () => {
it("renders active status", () => {
render(<CompanyStatusBadge status="active" />);
expect(screen.getByText("active")).toBeInTheDocument();
});
it("renders paused status", () => {
render(<CompanyStatusBadge status="paused" />);
expect(screen.getByText("paused")).toBeInTheDocument();
});
});