@altertable/data-app-examples 0.79.0 → 0.81.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/starter-data-app/index.tsx +25 -22
- package/templates/starter-local-data-app/AGENTS.md +1 -1
- package/templates/starter-local-data-app/README.md +1 -1
- package/templates/starter-local-data-app/package.json +3 -3
- package/templates/starter-local-finding-data-app/AGENTS.md +1 -1
- package/templates/starter-local-finding-data-app/README.md +2 -2
- package/templates/starter-local-finding-data-app/package.json +3 -3
- package/templates/starter-local-metric-data-app/AGENTS.md +1 -1
- package/templates/starter-local-metric-data-app/README.md +2 -2
- package/templates/starter-local-metric-data-app/package.json +3 -3
package/package.json
CHANGED
|
@@ -100,28 +100,31 @@ const sampleCounts = sampleCountsView.dataset({
|
|
|
100
100
|
},
|
|
101
101
|
evidence: { id: 'counts-by-group', glossaryIds: ['sampleCount'] },
|
|
102
102
|
});
|
|
103
|
-
const countsContent = sampleCountsView.content(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
103
|
+
const countsContent = sampleCountsView.content(
|
|
104
|
+
result => (
|
|
105
|
+
<VisualizationWidget
|
|
106
|
+
dataset={sampleCounts}
|
|
107
|
+
source={result}
|
|
108
|
+
title="Samples by group"
|
|
109
|
+
>
|
|
110
|
+
{rows => (
|
|
111
|
+
<BarChart
|
|
112
|
+
ariaLabel="Sample counts by group"
|
|
113
|
+
unit="samples"
|
|
114
|
+
valueFormat={{ kind: 'count' }}
|
|
115
|
+
showYAxis
|
|
116
|
+
scrollToEnd={false}
|
|
117
|
+
items={rows.map(row => ({
|
|
118
|
+
id: row.groupName,
|
|
119
|
+
label: row.groupName,
|
|
120
|
+
value: row.sampleCount,
|
|
121
|
+
}))}
|
|
122
|
+
/>
|
|
123
|
+
)}
|
|
124
|
+
</VisualizationWidget>
|
|
125
|
+
),
|
|
126
|
+
{ id: 'samples-by-group' }
|
|
127
|
+
);
|
|
125
128
|
|
|
126
129
|
function App() {
|
|
127
130
|
return (
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Read `node_modules/@altertable/data-app/docs/app-authoring.md` and use this project
|
|
4
4
|
as the selected scaffold. If dependencies are unavailable, read the
|
|
5
|
-
[version-matched recipe](https://github.com/altertable-ai/data-app/blob/v0.
|
|
5
|
+
[version-matched recipe](https://github.com/altertable-ai/data-app/blob/v0.81.0/docs/app-authoring.md). <!-- x-release-please-version -->
|
|
6
6
|
|
|
7
7
|
| Task | App-owned files |
|
|
8
8
|
| ------------------------------------------ | ----------------------------------------------- |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Local data app starter
|
|
2
2
|
|
|
3
3
|
Use `node_modules/@altertable/data-app/docs/app-authoring.md` for this SDK version.
|
|
4
|
-
Otherwise, read the [version-matched authoring recipe](https://github.com/altertable-ai/data-app/blob/v0.
|
|
4
|
+
Otherwise, read the [version-matched authoring recipe](https://github.com/altertable-ai/data-app/blob/v0.81.0/docs/app-authoring.md). <!-- x-release-please-version -->
|
|
5
5
|
See [AGENTS.md](AGENTS.md) for app-owned files.
|
|
6
6
|
|
|
7
7
|
## Run the app
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"lint:fix": "oxlint --type-aware --fix src app.ts"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@altertable/data-app": "0.
|
|
21
|
-
"@altertable/data-app-bun": "0.
|
|
22
|
-
"@altertable/data-app-react": "0.
|
|
20
|
+
"@altertable/data-app": "0.81.0",
|
|
21
|
+
"@altertable/data-app-bun": "0.81.0",
|
|
22
|
+
"@altertable/data-app-react": "0.81.0",
|
|
23
23
|
"react": "19.3.1",
|
|
24
24
|
"react-dom": "19.3.1"
|
|
25
25
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Read `node_modules/@altertable/data-app/docs/app-authoring.md` and use this project
|
|
4
4
|
as the selected scaffold. If dependencies are unavailable, read the
|
|
5
|
-
[version-matched recipe](https://github.com/altertable-ai/data-app/blob/v0.
|
|
5
|
+
[version-matched recipe](https://github.com/altertable-ai/data-app/blob/v0.81.0/docs/app-authoring.md). <!-- x-release-please-version -->
|
|
6
6
|
|
|
7
7
|
| Task | App-owned files |
|
|
8
8
|
| ------------------------------------------ | ------------------------------------------------------ |
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Local finding data app starter
|
|
2
2
|
|
|
3
3
|
Use `node_modules/@altertable/data-app/docs/app-authoring.md` for this SDK version.
|
|
4
|
-
Otherwise, read the [version-matched authoring recipe](https://github.com/altertable-ai/data-app/blob/v0.
|
|
4
|
+
Otherwise, read the [version-matched authoring recipe](https://github.com/altertable-ai/data-app/blob/v0.81.0/docs/app-authoring.md). <!-- x-release-please-version -->
|
|
5
5
|
See [AGENTS.md](AGENTS.md) for app-owned files.
|
|
6
6
|
|
|
7
7
|
The example queries require the seeded sample data described in the
|
|
8
|
-
[local preview guide](https://github.com/altertable-ai/data-app/blob/v0.
|
|
8
|
+
[local preview guide](https://github.com/altertable-ai/data-app/blob/v0.81.0/docs/local-data-apps.md#preview-the-starters). <!-- x-release-please-version -->
|
|
9
9
|
Use that mock for development, or replace the example queries with verified data
|
|
10
10
|
in your lakehouse. The starter does not install a mock or create demo tables.
|
|
11
11
|
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"lint:fix": "oxlint --type-aware --fix src app.ts"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@altertable/data-app": "0.
|
|
21
|
-
"@altertable/data-app-bun": "0.
|
|
22
|
-
"@altertable/data-app-react": "0.
|
|
20
|
+
"@altertable/data-app": "0.81.0",
|
|
21
|
+
"@altertable/data-app-bun": "0.81.0",
|
|
22
|
+
"@altertable/data-app-react": "0.81.0",
|
|
23
23
|
"react": "19.3.1",
|
|
24
24
|
"react-dom": "19.3.1"
|
|
25
25
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Read `node_modules/@altertable/data-app/docs/app-authoring.md` and use this project
|
|
4
4
|
as the selected scaffold. If dependencies are unavailable, read the
|
|
5
|
-
[version-matched recipe](https://github.com/altertable-ai/data-app/blob/v0.
|
|
5
|
+
[version-matched recipe](https://github.com/altertable-ai/data-app/blob/v0.81.0/docs/app-authoring.md). <!-- x-release-please-version -->
|
|
6
6
|
|
|
7
7
|
| Task | App-owned files |
|
|
8
8
|
| ------------------------------------------ | ----------------------------------------------- |
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Local metric data app starter
|
|
2
2
|
|
|
3
3
|
Use `node_modules/@altertable/data-app/docs/app-authoring.md` for this SDK version.
|
|
4
|
-
Otherwise, read the [version-matched authoring recipe](https://github.com/altertable-ai/data-app/blob/v0.
|
|
4
|
+
Otherwise, read the [version-matched authoring recipe](https://github.com/altertable-ai/data-app/blob/v0.81.0/docs/app-authoring.md). <!-- x-release-please-version -->
|
|
5
5
|
See [AGENTS.md](AGENTS.md) for app-owned files.
|
|
6
6
|
|
|
7
7
|
The example queries require the seeded sample data described in the
|
|
8
|
-
[local preview guide](https://github.com/altertable-ai/data-app/blob/v0.
|
|
8
|
+
[local preview guide](https://github.com/altertable-ai/data-app/blob/v0.81.0/docs/local-data-apps.md#preview-the-starters). <!-- x-release-please-version -->
|
|
9
9
|
Use that mock for development, or replace the example queries with verified data
|
|
10
10
|
in your lakehouse. The starter does not install a mock or create demo tables.
|
|
11
11
|
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"lint:fix": "oxlint --type-aware --fix src app.ts"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@altertable/data-app": "0.
|
|
21
|
-
"@altertable/data-app-bun": "0.
|
|
22
|
-
"@altertable/data-app-react": "0.
|
|
20
|
+
"@altertable/data-app": "0.81.0",
|
|
21
|
+
"@altertable/data-app-bun": "0.81.0",
|
|
22
|
+
"@altertable/data-app-react": "0.81.0",
|
|
23
23
|
"react": "19.3.1",
|
|
24
24
|
"react-dom": "19.3.1"
|
|
25
25
|
},
|