Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore: fix vite types
  • Loading branch information
aslilac committed Aug 21, 2025
commit 9cdef70fc75454db30c258aaac3585c3bdd1dde8
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { CSSInterpolation } from "@emotion/css/dist/declarations/src/create-instance";
import { css, type Interpolation, type Theme, useTheme } from "@emotion/react";
import Button from "@mui/material/Button";
import Link from "@mui/material/Link";
Expand All @@ -15,7 +14,6 @@ import { TerminalIcon } from "components/Icons/TerminalIcon";
import { VSCodeIcon } from "components/Icons/VSCodeIcon";
import { Stack } from "components/Stack/Stack";
import dayjs from "dayjs";
import { type ClassName, useClassName } from "hooks/useClassName";
import {
AppWindowIcon,
CircleAlertIcon,
Expand Down Expand Up @@ -53,7 +51,8 @@ export const DeploymentBannerView: FC<DeploymentBannerViewProps> = ({
fetchStats,
}) => {
const theme = useTheme();
const summaryTooltip = useClassName(classNames.summaryTooltip, []);
const summaryTooltip =
"ml-3 mb-1 max-w-[400px] p-4 text-content-primary bg-surface-secondary border border-solid border-border pointer-events-none";

const aggregatedMinutes = useMemo(() => {
if (!stats) {
Expand Down Expand Up @@ -410,20 +409,6 @@ const getHealthErrors = (health: HealthcheckReport) => {
return warnings;
};

const classNames = {
summaryTooltip: (css, theme) => css`
${theme.typography.body2 as CSSInterpolation}

margin: 0 0 4px 12px;
width: 400px;
padding: 16px;
color: ${theme.palette.text.primary};
background-color: ${theme.palette.background.paper};
border: 1px solid ${theme.palette.divider};
pointer-events: none;
`,
} satisfies Record<string, ClassName>;

const styles = {
statusBadge: (theme) => css`
display: flex;
Expand Down
8 changes: 4 additions & 4 deletions site/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
"jsx": "react-jsx",
"jsxImportSource": "@emotion/react",
"lib": ["dom", "dom.iterable", "esnext"],
"module": "esnext",
"moduleResolution": "node",
"module": "preserve",
"moduleResolution": "bundler",
"noEmit": true,
"outDir": "build/",
"preserveWatchOutput": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "es2020",
"types": ["react", "react-dom", "vite/client"],
"baseUrl": "src/"
},
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules/", "_jest"],
"types": ["@emotion/react", "@testing-library/jest-dom", "jest", "node"]
"exclude": ["node_modules/", "_jest"]
}
3 changes: 3 additions & 0 deletions site/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"types": "jest"
},
"exclude": ["node_modules", "_jest"],
"include": ["**/*.stories.tsx", "**/*.test.tsx", "**/*.d.ts"]
}
Loading