Skip to content

Commit 1b85651

Browse files
committed
feat: use library components
chore: fixup
1 parent d79a4c2 commit 1b85651

Some content is hidden

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

50 files changed

+500
-3647
lines changed

experimental/apps-mcp/templates/appkit/template/{{.project_name}}/client/src/App.tsx

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1-
import { useAnalyticsQuery, AreaChart, LineChart, RadarChart } from '@databricks/app-kit-ui/react';
1+
import {
2+
useAnalyticsQuery,
3+
AreaChart,
4+
LineChart,
5+
RadarChart,
6+
Card,
7+
CardContent,
8+
CardHeader,
9+
CardTitle,
10+
Skeleton,
11+
Label,
12+
Select,
13+
SelectContent,
14+
SelectItem,
15+
SelectTrigger,
16+
SelectValue,
17+
} from '@databricks/app-kit-ui/react';
218
import { sql } from "@databricks/app-kit-ui/js";
319
import { Line, XAxis, YAxis, CartesianGrid, Tooltip } from 'recharts';
4-
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
5-
import { Skeleton } from '@/components/ui/skeleton';
6-
import { Label } from '@/components/ui/label';
7-
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select';
820
import { trpc } from './lib/trpc';
921
import { useState, useEffect } from 'react';
1022

@@ -98,8 +110,8 @@ function App() {
98110
{health && (
99111
<div className="space-y-2">
100112
<div className="flex items-center gap-2">
101-
<div className="w-2 h-2 rounded-full bg-[hsl(var(--success))] animate-pulse"></div>
102-
<div className="text-lg font-semibold text-[hsl(var(--success))]">{health.status.toUpperCase()}</div>
113+
<div className="w-2 h-2 rounded-full bg-success animate-pulse"></div>
114+
<div className="text-lg font-semibold text-success">{health.status.toUpperCase()}</div>
103115
</div>
104116
<div className="text-sm text-muted-foreground">
105117
Last checked: {new Date(health.timestamp).toLocaleString()}

experimental/apps-mcp/templates/appkit/template/{{.project_name}}/client/src/ErrorBoundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Component } from 'react';
22
import type { ReactNode } from 'react';
3-
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
3+
import { Card, CardContent, CardHeader, CardTitle } from '@databricks/app-kit-ui/react';
44

55
interface Props {
66
children: ReactNode;

experimental/apps-mcp/templates/appkit/template/{{.project_name}}/client/src/components/ui/accordion.tsx

Lines changed: 0 additions & 51 deletions
This file was deleted.

experimental/apps-mcp/templates/appkit/template/{{.project_name}}/client/src/components/ui/alert-dialog.tsx

Lines changed: 0 additions & 111 deletions
This file was deleted.

experimental/apps-mcp/templates/appkit/template/{{.project_name}}/client/src/components/ui/alert.tsx

Lines changed: 0 additions & 49 deletions
This file was deleted.

experimental/apps-mcp/templates/appkit/template/{{.project_name}}/client/src/components/ui/aspect-ratio.tsx

Lines changed: 0 additions & 7 deletions
This file was deleted.

experimental/apps-mcp/templates/appkit/template/{{.project_name}}/client/src/components/ui/avatar.tsx

Lines changed: 0 additions & 34 deletions
This file was deleted.

experimental/apps-mcp/templates/appkit/template/{{.project_name}}/client/src/components/ui/badge.tsx

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)