Skip to content

Commit 3f16db7

Browse files
keugenekclaude
andcommitted
Update AppKit template for SDK 0.1.2
- Fix import path: @databricks/app-kit -> @databricks/appkit - Remove Recharts children from LineChart (use props instead) - Remove unused recharts imports - Bump appkit versions from 0.0.2 to 0.1.2 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent fd6ad60 commit 3f16db7

3 files changed

Lines changed: 10 additions & 13 deletions

File tree

experimental/aitools/templates/appkit/template/{{.project_name}}/client/src/App.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
SelectValue,
1717
} from '@databricks/appkit-ui/react';
1818
import { sql } from "@databricks/appkit-ui/js";
19-
import { Line, XAxis, YAxis, CartesianGrid, Tooltip } from 'recharts';
2019
import { trpc } from './lib/trpc';
2120
import { useState, useEffect } from 'react';
2221

@@ -184,15 +183,13 @@ function App() {
184183
<CardTitle>Sales Trend Custom Line Chart</CardTitle>
185184
</CardHeader>
186185
<CardContent>
187-
<LineChart queryKey="mocked_sales" parameters={salesParameters}>
188-
<CartesianGrid strokeDasharray="3 3" />
189-
<Line type="monotone" dataKey="revenue" stroke="#40d1f5" />
190-
<Line type="monotone" dataKey="expenses" stroke="#4462c9" />
191-
<Line type="monotone" dataKey="customers" stroke="#EB1600" />
192-
<XAxis dataKey="month" />
193-
<YAxis />
194-
<Tooltip />
195-
</LineChart>
186+
<LineChart
187+
queryKey="mocked_sales"
188+
parameters={salesParameters}
189+
xKey="month"
190+
yKey={["revenue", "expenses", "customers"]}
191+
colors={['#40d1f5', '#4462c9', '#EB1600']}
192+
/>
196193
</CardContent>
197194
</Card>
198195
<Card className="shadow-lg flex min-w-0">

experimental/aitools/templates/appkit/template/{{.project_name}}/docs/appkit-sdk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { MyInterface, MyType } from '../../shared/types';
1717
## Server Setup
1818

1919
```typescript
20-
import { createApp, server, analytics } from '@databricks/app-kit';
20+
import { createApp, server, analytics } from '@databricks/appkit';
2121

2222
const app = await createApp({
2323
plugins: [

experimental/aitools/templates/appkit/template/{{.project_name}}/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"license": "Unlicensed",
2828
"description": "",
2929
"dependencies": {
30-
"@databricks/appkit": "^0.0.2",
31-
"@databricks/appkit-ui": "^0.0.2",
30+
"@databricks/appkit": "^0.1.4",
31+
"@databricks/appkit-ui": "^0.1.4",
3232
"@databricks/sdk-experimental": "^0.14.2",
3333
"@radix-ui/react-accordion": "^1.2.12",
3434
"@radix-ui/react-alert-dialog": "^1.1.15",

0 commit comments

Comments
 (0)