Skip to content

Commit c4332ed

Browse files
authored
fix(designer): ext store (#1700)
1 parent 7e52303 commit c4332ed

File tree

14 files changed

+387
-339
lines changed

14 files changed

+387
-339
lines changed

biome.json

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.1.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.0/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",
@@ -39,6 +39,9 @@
3939
"enabled": true,
4040
"rules": {
4141
"recommended": true,
42+
"suspicious": {
43+
"noUnknownAtRules": "off"
44+
},
4245
"nursery": {
4346
"useSortedClasses": {
4447
"level": "error",
@@ -55,24 +58,22 @@
5558
}
5659
}
5760
}
61+
},
62+
"domains": {
63+
"react": "recommended"
5864
}
5965
},
6066
"javascript": {
6167
"formatter": {
68+
"quoteStyle": "double",
69+
"semicolons": "always",
70+
"trailingCommas": "es5",
71+
"bracketSpacing": true,
6272
"jsxQuoteStyle": "double",
6373
"quoteProperties": "asNeeded",
64-
"trailingCommas": "es5",
65-
"semicolons": "always",
6674
"arrowParentheses": "always",
6775
"bracketSameLine": false,
68-
"quoteStyle": "double",
69-
"attributePosition": "auto",
70-
"bracketSpacing": true
71-
}
72-
},
73-
"html": {
74-
"formatter": {
75-
"selfCloseVoidElements": "always"
76+
"attributePosition": "auto"
7677
}
7778
},
7879
"assist": {
@@ -82,5 +83,10 @@
8283
"organizeImports": "on"
8384
}
8485
}
86+
},
87+
"css": {
88+
"parser": {
89+
"tailwindDirectives": true
90+
}
8591
}
8692
}

core/src/ten_manager/designer_frontend/bun.lock

Lines changed: 168 additions & 175 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/src/ten_manager/designer_frontend/package.json

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "tsc -b && vite build",
9-
"lint": "eslint .",
10-
"check": "biome check --write",
9+
"lint": "biome check --write",
1110
"preview": "vite preview",
1211
"test:prepare": "playwright install",
1312
"test:e2e": "playwright test",
@@ -16,36 +15,36 @@
1615
"dependencies": {
1716
"@autoform/react": "^4.0.0",
1817
"@autoform/zod": "^5.0.0",
19-
"@hookform/resolvers": "^5.2.1",
18+
"@hookform/resolvers": "^5.2.2",
2019
"@monaco-editor/react": "^4.7.0",
2120
"@radix-ui/react-accordion": "^1.2.12",
22-
"@radix-ui/react-avatar": "^1.1.10",
21+
"@radix-ui/react-avatar": "^1.1.11",
2322
"@radix-ui/react-checkbox": "^1.3.3",
2423
"@radix-ui/react-context-menu": "^2.2.16",
2524
"@radix-ui/react-dialog": "^1.1.15",
2625
"@radix-ui/react-dropdown-menu": "^2.1.16",
27-
"@radix-ui/react-label": "^2.1.7",
26+
"@radix-ui/react-label": "^2.1.8",
2827
"@radix-ui/react-navigation-menu": "^1.2.14",
2928
"@radix-ui/react-popover": "^1.1.15",
30-
"@radix-ui/react-progress": "^1.1.7",
29+
"@radix-ui/react-progress": "^1.1.8",
3130
"@radix-ui/react-scroll-area": "^1.2.10",
3231
"@radix-ui/react-select": "^2.2.6",
33-
"@radix-ui/react-separator": "^1.1.7",
34-
"@radix-ui/react-slot": "^1.2.3",
32+
"@radix-ui/react-separator": "^1.1.8",
33+
"@radix-ui/react-slot": "^1.2.4",
3534
"@radix-ui/react-switch": "^1.2.6",
3635
"@radix-ui/react-tabs": "^1.1.13",
3736
"@radix-ui/react-toggle": "^1.1.10",
3837
"@radix-ui/react-tooltip": "^1.2.8",
39-
"@tanstack/react-query": "^5.85.5",
40-
"@tanstack/react-query-devtools": "^5.85.5",
38+
"@tanstack/react-query": "^5.90.6",
39+
"@tanstack/react-query-devtools": "^5.90.2",
4140
"@tanstack/react-table": "^8.21.3",
4241
"@types/react-window": "^1.8.8",
4342
"@xterm/addon-attach": "^0.11.0",
4443
"@xterm/addon-fit": "^0.10.0",
4544
"@xterm/addon-unicode11": "^0.8.0",
4645
"@xterm/addon-web-links": "^0.11.0",
4746
"@xterm/xterm": "^5.5.0",
48-
"@xyflow/react": "^12.8.4",
47+
"@xyflow/react": "^12.9.2",
4948
"agora-rtc-react": "2.0.0",
5049
"agora-token": "^2.0.5",
5150
"buffer": "^6.0.3",
@@ -60,15 +59,15 @@
6059
"i18next-http-backend": "^3.0.2",
6160
"lucide-react": "^0.525.0",
6261
"monaco-editor": "^0.52.2",
63-
"motion": "^12.23.12",
62+
"motion": "^12.23.24",
6463
"next-themes": "^0.4.6",
65-
"pino": "^9.9.0",
64+
"pino": "^9.14.0",
6665
"process": "^0.11.10",
6766
"react": "^18.3.1",
68-
"react-day-picker": "^9.9.0",
67+
"react-day-picker": "^9.11.1",
6968
"react-dom": "^18.3.1",
70-
"react-hook-form": "^7.62.0",
71-
"react-i18next": "^15.7.1",
69+
"react-hook-form": "^7.66.0",
70+
"react-i18next": "^15.7.4",
7271
"react-icons": "^5.5.0",
7372
"react-markdown": "^10.1.0",
7473
"react-resizable-panels": "^2.1.9",
@@ -81,32 +80,33 @@
8180
"tailwind-merge": "^3.3.1",
8281
"tailwindcss-animate": "^1.0.7",
8382
"trulience-sdk": "https://trulience.com/release/prod/latest/trulience-sdk.tar.gz",
84-
"zod": "^4.0.17",
83+
"zod": "^4.1.12",
8584
"zustand": "^5.0.8"
8685
},
8786
"devDependencies": {
88-
"@eslint/js": "^9.33.0",
89-
"@playwright/test": "^1.55.0",
90-
"@tailwindcss/postcss": "^4.1.12",
91-
"@tailwindcss/typography": "^0.5.16",
92-
"@tanstack/eslint-plugin-query": "^5.83.1",
87+
"@biomejs/biome": "2.3.0",
88+
"@eslint/js": "^9.39.1",
89+
"@playwright/test": "^1.56.1",
90+
"@tailwindcss/postcss": "^4.1.16",
91+
"@tailwindcss/typography": "^0.5.19",
92+
"@tanstack/eslint-plugin-query": "^5.91.2",
9393
"@types/dagre": "^0.7.53",
94-
"@types/node": "^24.3.0",
95-
"@types/react": "^18.3.23",
94+
"@types/node": "^24.10.0",
95+
"@types/react": "^18.3.26",
9696
"@types/react-dom": "^18.3.7",
9797
"@vitejs/plugin-react-swc": "^3.11.0",
9898
"esbuild": "^0.24.2",
99-
"eslint": "^9.33.0",
99+
"eslint": "^9.39.1",
100100
"eslint-plugin-react-hooks": "^5.2.0",
101-
"eslint-plugin-react-refresh": "^0.4.20",
101+
"eslint-plugin-react-refresh": "^0.4.24",
102102
"globals": "^15.15.0",
103-
"pino-pretty": "^13.1.1",
104-
"playwright": "^1.55.0",
103+
"pino-pretty": "^13.1.2",
104+
"playwright": "^1.56.1",
105105
"postcss": "^8.5.6",
106-
"tailwindcss": "^4.1.12",
106+
"tailwindcss": "^4.1.16",
107107
"typescript": "~5.7.3",
108-
"typescript-eslint": "^8.40.0",
109-
"vite": "^7.1.3",
108+
"typescript-eslint": "^8.46.3",
109+
"vite": "^7.1.12",
110110
"vite-plugin-node-polyfills": "^0.24.0"
111111
}
112112
}

core/src/ten_manager/designer_frontend/src/api/services/extension.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,12 @@ export const searchTenCloudStorePackages = async (
9090
return template.responseSchema.parse(res).data;
9191
};
9292

93-
export const useSearchTenCloudStorePackages = (payload?: {
94-
filter: z.infer<typeof TenPackageQueryFilterSchema>;
95-
options?: z.infer<typeof TenPackageQueryOptionsSchema>;
96-
}) => {
93+
export const useSearchTenCloudStorePackages = (
94+
payload?: {
95+
filter: z.infer<typeof TenPackageQueryFilterSchema>;
96+
options?: z.infer<typeof TenPackageQueryOptionsSchema>;
97+
} | null
98+
) => {
9799
const queryClient = getTanstackQueryClient();
98100
const filter = payload?.filter || {
99101
field: "name",
@@ -113,7 +115,7 @@ export const useSearchTenCloudStorePackages = (payload?: {
113115
queryKey,
114116
queryFn: ({ signal }) =>
115117
searchTenCloudStorePackages(filter, options, signal),
116-
enabled: !!filter,
118+
enabled: payload !== null,
117119
});
118120
const mutation = useMutation({
119121
mutationFn: () => searchTenCloudStorePackages(filter, options),

core/src/ten_manager/designer_frontend/src/components/popup/base.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,14 +287,15 @@ export const PopupBase = (props: IPopupBaseProps) => {
287287
(widget_id?: string) => {
288288
const highestZIndex = Math.max(
289289
...Array.from(document.querySelectorAll(".popup")).map(
290-
(el) => parseInt(window.getComputedStyle(el).zIndex) || 0
290+
(el) => parseInt(window.getComputedStyle(el).zIndex, 10) || 0
291291
)
292292
);
293293
if (widget_id) {
294294
onSelectWidget?.(widget_id);
295295
}
296296
if (popupRef.current) {
297-
if (highestZIndex === parseInt(popupRef.current.style.zIndex)) return;
297+
if (highestZIndex === parseInt(popupRef.current.style.zIndex, 10))
298+
return;
298299
popupRef.current.style.zIndex = (highestZIndex + 1).toString();
299300
}
300301
},

core/src/ten_manager/designer_frontend/src/components/widget/extension-widget/extension-details.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,12 +427,12 @@ export const ExtensionDetails = (props: {
427427
{
428428
field: "name",
429429
operator: "regex",
430-
value: `${name}`,
430+
value: `^${name}$`,
431431
},
432432
{
433433
field: "type",
434434
operator: "regex",
435-
value: `${type}`,
435+
value: `^${type}$`,
436436
},
437437
],
438438
},

0 commit comments

Comments
 (0)