Skip to content

Commit 2732434

Browse files
feat: initial work on alerts summary cards (#222)
* feat: initial work on alerts summary cards * chore: use untitled icons
1 parent a3e86e5 commit 2732434

27 files changed

+322
-2331
lines changed

package-lock.json

+22-359
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"generate-client": "npm run fetch-openapi-schema && npm run openapi-ts",
1010
"fetch-openapi-schema": "curl https://raw.githubusercontent.com/stacklok/codegate/refs/heads/main/api/openapi.json > src/api/openapi.json",
1111
"openapi-ts": "openapi-ts",
12-
"knip": "knip --production",
12+
"knip": "knip",
1313
"lint": "eslint .",
1414
"lint:fix": "eslint --fix",
1515
"prepare": "husky",
@@ -40,7 +40,6 @@
4040
"react-markdown": "^9.0.1",
4141
"react-router-dom": "^7.1.1",
4242
"react-syntax-highlighter": "^15.6.1",
43-
"recharts": "^2.15.0",
4443
"remark-gfm": "^4.0.0",
4544
"tailwind-merge": "^2.5.5",
4645
"tailwind-variants": "^0.3.0",
@@ -86,5 +85,8 @@
8685
},
8786
"overrides": {
8887
"vite": "^6.0.1"
88+
},
89+
"optionalDependencies": {
90+
"@rollup/rollup-darwin-arm64": "^4.32.1"
8991
}
9092
}

src/App.test.tsx

+1-12
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
import { render } from "@/lib/test-utils";
22
import { screen, waitFor } from "@testing-library/react";
3-
import { describe, expect, it, vi } from "vitest";
3+
import { describe, expect, it } from "vitest";
44
import App from "./App";
5-
import React from "react";
65
import userEvent from "@testing-library/user-event";
76

8-
vi.mock("recharts", async (importOriginal) => {
9-
const originalModule = (await importOriginal()) as Record<string, unknown>;
10-
return {
11-
...originalModule,
12-
ResponsiveContainer: ({ children }: { children: React.ReactNode }) => {
13-
return <div data-testid="mock-responsive-container">{children}</div>;
14-
},
15-
};
16-
});
17-
187
describe("App", () => {
198
it("should render header", async () => {
209
render(<App />);

0 commit comments

Comments
 (0)