Skip to content

Commit 6ebcef4

Browse files
committed
feat: reexport shadcn components and theme
chore: fixup
1 parent acf7a1d commit 6ebcef4

File tree

117 files changed

+7217
-2908
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+7217
-2908
lines changed

apps/dev-playground/client/package-lock.json

Lines changed: 362 additions & 778 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/dev-playground/client/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"react-dom": "^19.1.1",
2626
"recharts": "^3.4.1",
2727
"tailwind-merge": "^3.3.1",
28-
"tailwindcss-animate": "^1.0.7"
28+
"tailwindcss-animate": "^1.0.7",
29+
"tw-animate-css": "^1.4.0"
2930
},
3031
"devDependencies": {
3132
"@eslint/js": "^9.36.0",
@@ -41,7 +42,8 @@
4142
"globals": "^16.4.0",
4243
"postcss": "^8.5.6",
4344
"shiki": "^3.15.0",
44-
"tailwindcss": "^3.4.18",
45+
"tailwindcss": "^4.1.17",
46+
"@tailwindcss/postcss": "^4.1.17",
4547
"typescript": "~5.9.3",
4648
"typescript-eslint": "^8.45.0",
4749
"vite": "npm:[email protected]"
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
import path from "node:path";
2-
3-
const __dirname = path.dirname(new URL(import.meta.url).pathname);
4-
51
export default {
62
plugins: {
7-
tailwindcss: { config: path.resolve(__dirname, "./tailwind.config.ts") },
3+
"@tailwindcss/postcss": {},
84
autoprefixer: {},
95
},
106
};

apps/dev-playground/client/src/appKitTypes.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import "@databricks/app-kit-ui/react";
33

44
declare module "@databricks/app-kit-ui/react" {
55
interface PluginRegistry {
6-
reconnect: {
6+
"reconnect": {
77
"/": {
88
message: string;
99
};
@@ -15,7 +15,7 @@ declare module "@databricks/app-kit-ui/react" {
1515
content: string;
1616
};
1717
}
18-
analytics: {
18+
"analytics": {
1919
"/users/me/query/:query_key": {
2020
chunk_index: number;
2121
row_offset: number;
@@ -32,6 +32,7 @@ declare module "@databricks/app-kit-ui/react" {
3232
}
3333

3434
interface QueryRegistry {
35+
3536
apps_list: {
3637
id: string;
3738
name: string;
@@ -61,5 +62,4 @@ declare module "@databricks/app-kit-ui/react" {
6162
total_cost_usd: number;
6263
}[];
6364
}
64-
6565
}

apps/dev-playground/client/src/components/analytics/analytics-header.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import { DatabricksLogo } from "./databricks-logo";
22

33
export function AnalyticsHeader() {
44
return (
5-
<header className="bg-white border-b border-gray-200 p-4">
5+
<header className="bg-background border-b border-gray-200 p-4">
66
<div className="max-w-7xl mx-auto flex items-center justify-between">
77
<div className="flex items-center gap-4 items-center">
88
<DatabricksLogo />
9-
<p className="leading-7">Apps Cost Insights</p>
9+
<p className="leading-7 text-foreground">Apps Cost Insights</p>
1010
</div>
11-
<div className="w-8 h-8 bg-databricks-red rounded-full flex items-center justify-center">
12-
<span className="text-white text-sm font-medium">S</span>
11+
<div className="w-8 h-8 bg-destructive rounded-full flex items-center justify-center">
12+
<span className="text-foreground text-sm font-medium">S</span>
1313
</div>
1414
</div>
1515
</header>

apps/dev-playground/client/src/components/analytics/filter-bar.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
import { Card, CardContent } from "@/components/ui/card";
1+
import type { Aggregation, DashboardFilters } from "@/lib/types";
22
import {
3+
Card,
4+
CardContent,
35
Select,
46
SelectContent,
57
SelectItem,
68
SelectTrigger,
79
SelectValue,
8-
} from "@/components/ui/select";
9-
import type { Aggregation, DashboardFilters } from "@/lib/types";
10+
} from "@databricks/app-kit-ui/react";
1011

1112
interface FilterBarProps {
1213
filters: DashboardFilters;

apps/dev-playground/client/src/components/analytics/summary-cards.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import {
33
CardDescription,
44
CardHeader,
55
CardTitle,
6-
} from "@/components/ui/card";
7-
import { Skeleton } from "@/components/ui/skeleton";
6+
Skeleton,
7+
} from "@databricks/app-kit-ui/react";
88
import type { Aggregation, DashboardFilters } from "@/lib/types";
99

1010
interface SummaryCardsProps {

apps/dev-playground/client/src/components/analytics/top-contributors-chart.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
import { BarChart } from "@databricks/app-kit-ui/react";
2-
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
31
import {
2+
BarChart,
3+
Card,
4+
CardContent,
5+
CardHeader,
6+
CardTitle,
47
Select,
58
SelectContent,
69
SelectItem,
710
SelectTrigger,
811
SelectValue,
9-
} from "@/components/ui/select";
12+
} from "@databricks/app-kit-ui/react";
1013

1114
interface TopContributorsChartProps {
1215
groupBy: "app" | "user";

apps/dev-playground/client/src/components/analytics/untagged-apps-table.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
CardDescription,
66
CardHeader,
77
CardTitle,
8-
} from "@/components/ui/card";
8+
} from "@databricks/app-kit-ui/react";
99

1010
interface UntaggedApp {
1111
id: string;

apps/dev-playground/client/src/components/analytics/usage-trends-chart.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import { BarChart } from "@databricks/app-kit-ui/react";
2-
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
32
import {
3+
Card,
4+
CardContent,
5+
CardHeader,
6+
CardTitle,
47
Select,
58
SelectContent,
69
SelectItem,
710
SelectTrigger,
811
SelectValue,
9-
} from "@/components/ui/select";
12+
} from "@databricks/app-kit-ui/react";
1013

1114
interface UsageTrendsChartProps {
1215
groupBy: "default" | "app" | "user";

0 commit comments

Comments
 (0)