Skip to content

Commit ccb4c40

Browse files
authored
chore: add files app template generation (#192)
Add standalone `appkit-files` template and include the files plugin in the `appkit-all-in-one` template for app scaffolding. Signed-off-by: Pawel Kosiec <pawel.kosiec@databricks.com>
1 parent c7d3c36 commit ccb4c40

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

docs/static/appkit-ui/styles.gen.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3584,6 +3584,11 @@
35843584
--tw-exit-opacity: 0;
35853585
}
35863586
}
3587+
.data-\[state\=inactive\]\:invisible {
3588+
&[data-state="inactive"] {
3589+
visibility: hidden;
3590+
}
3591+
}
35873592
.data-\[state\=on\]\:bg-accent {
35883593
&[data-state="on"] {
35893594
background-color: var(--accent);
@@ -4831,6 +4836,16 @@
48314836
border-bottom-left-radius: var(--radius-md);
48324837
}
48334838
}
4839+
.\[\&\>\*\]\:col-start-1 {
4840+
&>* {
4841+
grid-column-start: 1;
4842+
}
4843+
}
4844+
.\[\&\>\*\]\:row-start-1 {
4845+
&>* {
4846+
grid-row-start: 1;
4847+
}
4848+
}
48344849
.\[\&\>\*\]\:w-full {
48354850
&>* {
48364851
width: 100%;

tools/generate-app-templates.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,24 @@ interface AppTemplate {
5252

5353
const FEATURE_DEPENDENCIES: Record<string, string> = {
5454
analytics: "SQL warehouse",
55+
files: "Volume",
5556
genie: "Genie Space",
5657
lakebase: "Database",
5758
};
5859

5960
const APP_TEMPLATES: AppTemplate[] = [
6061
{
6162
name: "appkit-all-in-one",
62-
features: ["analytics", "genie", "lakebase"],
63+
features: ["analytics", "files", "genie", "lakebase"],
6364
set: {
6465
"analytics.sql-warehouse.id": "placeholder",
66+
"files.files.path": "placeholder",
6567
"genie.genie-space.id": "placeholder",
6668
"lakebase.postgres.branch": "placeholder",
6769
"lakebase.postgres.database": "placeholder",
6870
},
6971
description:
70-
"Full-stack Node.js app with SQL analytics dashboards, Genie AI conversations, and Lakebase Autoscaling (Postgres) CRUD",
72+
"Full-stack Node.js app with SQL analytics dashboards, file browser, Genie AI conversations, and Lakebase Autoscaling (Postgres) CRUD",
7173
},
7274
{
7375
name: "appkit-analytics",
@@ -86,6 +88,14 @@ const APP_TEMPLATES: AppTemplate[] = [
8688
description:
8789
"Node.js app with AI/BI Genie for natural language data queries",
8890
},
91+
{
92+
name: "appkit-files",
93+
features: ["files"],
94+
set: {
95+
"files.files.path": "placeholder",
96+
},
97+
description: "Node.js app with file browser for Databricks Volumes",
98+
},
8999
{
90100
name: "appkit-lakebase",
91101
features: ["lakebase"],

0 commit comments

Comments
 (0)