Skip to content

Commit 97d49a5

Browse files
authored
Merge pull request #2116 from undb-io/release/v1.0.0-111
Release version v1.0.0-111
2 parents c58ea22 + 5ce658e commit 97d49a5

File tree

91 files changed

+6174
-542
lines changed

Some content is hidden

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

91 files changed

+6174
-542
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
- name: Install dependencies
2929
run: bun install
3030

31+
- name: Run tests
32+
run: bun test
33+
3134
- name: Build
3235
run: bun run build
3336

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## v1.0.0-111
4+
5+
6+
### 🚀 Enhancements
7+
8+
- Support formula field aggregate ([b1ceece](https://github.com/undb-io/undb/commit/b1ceece))
9+
10+
### ❤️ Contributors
11+
12+
- Nichenqin ([@nichenqin](http://github.com/nichenqin))
13+
314
## v1.0.0-110
415

516
## v1.0.0-109

apps/frontend/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"@sveltejs/adapter-static": "^3.0.5",
2323
"@sveltejs/kit": "^2.7.1",
2424
"@sveltejs/vite-plugin-svelte": "^3.1.2",
25+
"@tailwindcss/typography": "^0.5.15",
2526
"@tanstack/eslint-plugin-query": "^5.59.7",
2627
"@types/eslint": "^8.56.12",
2728
"@types/lodash.unzip": "^3.4.9",
@@ -31,6 +32,7 @@
3132
"@typescript-eslint/parser": "^8.10.0",
3233
"@undb/commands": "workspace:*",
3334
"@undb/domain": "workspace:*",
35+
"@undb/formula": "workspace:*",
3436
"@undb/i18n": "workspace:*",
3537
"@undb/openapi": "workspace:*",
3638
"@undb/queries": "workspace:*",
@@ -73,11 +75,16 @@
7375
"type-fest": "^4.26.1",
7476
"typescript": "^5.6.3",
7577
"vite": "^5.4.9",
78+
"vite-plugin-node-polyfills": "^0.22.0",
7679
"vitest": "^2.1.3",
7780
"xlsx": "^0.18.5"
7881
},
7982
"type": "module",
8083
"dependencies": {
84+
"@codemirror/commands": "^6.7.1",
85+
"@codemirror/language": "^6.10.3",
86+
"@codemirror/state": "^6.4.1",
87+
"@codemirror/view": "^6.34.1",
8188
"@formkit/auto-animate": "^0.8.2",
8289
"@internationalized/date": "^3.5.6",
8390
"@svelte-put/clickoutside": "^3.0.2",

apps/frontend/schema.graphql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ type Field {
4444
defaultValue: JSON
4545
display: Boolean
4646
id: ID!
47+
metadata: JSON
4748
name: String!
4849
option: JSON
4950
type: FieldType!

apps/frontend/src/lib/components/blocks/aggregate/config/aggregate-config.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script lang="ts">
22
import * as Tabs from "$lib/components/ui/tabs"
3-
import { getTable } from "$lib/store/table.store"
43
import { invalidate } from "$app/navigation"
54
import {
65
filterAggregateField,

apps/frontend/src/lib/components/blocks/dashboard/dashboard-widget-share-table.gql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ query GetDashboardWidgetShareTable($shareId: ID!, $tableId: ID!) {
1616
display
1717
constraint
1818
option
19+
metadata
1920
}
2021

2122
views {

apps/frontend/src/lib/components/blocks/dashboard/dashboard-widget-table.gql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ query GetDashboardWidgetTable($tableId: ID!) {
1616
display
1717
constraint
1818
option
19+
metadata
1920
}
2021

2122
views {

apps/frontend/src/lib/components/blocks/field-options/field-options.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import ButtonFieldOption from "./button-field-option.svelte"
2020
import DurationFieldOption from "./duration-field-option.svelte"
2121
import PercentageFieldOption from "./percentage-field-option.svelte"
22+
import FormulaFieldOption from "./formula-field-option.svelte"
2223
2324
export let constraint: IFieldConstraint | undefined
2425
export let option: any | undefined
@@ -47,6 +48,7 @@
4748
date: DateFieldOption,
4849
duration: DurationFieldOption,
4950
percentage: PercentageFieldOption,
51+
formula: FormulaFieldOption,
5052
}
5153
5254
export let type: NoneSystemFieldType

apps/frontend/src/lib/components/blocks/field-options/foreign-table.gql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ query GetForeignTableQuery($tableId: ID!) {
1010
display
1111
constraint
1212
option
13+
metadata
1314
}
1415
views {
1516
id
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<script lang="ts">
2+
import { Label } from "$lib/components/ui/label/index.js"
3+
import FormulaEditor from "$lib/components/formula/formula-editor.svelte"
4+
import { FormulaField, type IFormulaFieldOption } from "@undb/table"
5+
6+
export let option: IFormulaFieldOption = {
7+
fn: "",
8+
}
9+
10+
export let field: FormulaField | undefined = undefined
11+
</script>
12+
13+
<div class="space-y-2">
14+
<div class="space-y-1">
15+
<Label for="Formula" class="text-xs font-normal">Formula</Label>
16+
</div>
17+
<FormulaEditor bind:value={option.fn} {field} />
18+
</div>

0 commit comments

Comments
 (0)