🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore: upgrade trpc to v11, react-query to v5, typescript to v5.7.2 (#8529)
Nimar0de920c32f7b
diff --git a/ee/package.json b/ee/package.jsonindex ae3e1a452a..ac88d6a246 100644--- a/ee/package.json+++ b/ee/package.json@@ -43,6 +43,6 @@"prettier": "^3.6.2","ts-node": "^10.9.2","tsc-watch": "^6.2.0",- "typescript": "^5.4.5"+ "typescript": "^5.7.2"}}diff --git a/packages/config-eslint/package.json b/packages/config-eslint/package.jsonindex bcace51649..41efe44c82 100644--- a/packages/config-eslint/package.json+++ b/packages/config-eslint/package.json@@ -15,6 +15,6 @@"eslint-config-prettier": "^9.1.0","eslint-config-turbo": "^2.5.6","eslint-plugin-only-warn": "^1.1.0",- "typescript": "^5.4.5"+ "typescript": "^5.7.2"}}diff --git a/packages/shared/package.json b/packages/shared/package.jsonindex f8261eaf3d..f8fafff660 100644--- a/packages/shared/package.json+++ b/packages/shared/package.json@@ -119,7 +119,7 @@"prisma-kysely": "^1.8.0","ts-node": "^10.9.2","tsc-watch": "^6.2.0",- "typescript": "^5.4.5"+ "typescript": "^5.7.2"},"peerDependencies": {"@types/react": "~18.2.79",diff --git a/packages/shared/src/encryption/encryption.ts b/packages/shared/src/encryption/encryption.tsindex e1d2939343..5608788ab3 100644--- a/packages/shared/src/encryption/encryption.ts+++ b/packages/shared/src/encryption/encryption.ts@@ -22,8 +22,8 @@ export function encrypt(plainText: string): string {const iv = crypto.randomBytes(IV_LENGTH); // Directly use Buffer returned by randomBytesconst cipher = crypto.createCipheriv("aes-256-gcm",- Buffer.from(ENCRYPTION_KEY, "hex"),- iv,+ new Uint8Array(Buffer.from(ENCRYPTION_KEY, "hex")),+ new Uint8Array(iv),);let encrypted = cipher.update(plainText, "utf8", "hex");encrypted += cipher.final("hex");@@ -48,12 +48,16 @@ export function decrypt(text: string): string {const decipher = crypto.createDecipheriv("aes-256-gcm",- Buffer.from(ENCRYPTION_KEY, "hex"),- iv,+ new Uint8Array(Buffer.from(ENCRYPTION_KEY, "hex")),+ new Uint8Array(iv),);- decipher.setAuthTag(authTag);+ decipher.setAuthTag(new Uint8Array(authTag));- let decrypted = decipher.update(encryptedText, undefined, "utf8");+ let decrypted = decipher.update(+ new Uint8Array(encryptedText),+ undefined,+ "utf8",+ );decrypted += decipher.final("utf8");return decrypted.toString();diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 658712affa..224f9e068e 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -74,7 +74,7 @@ importers:version: 20.11.29'@typescript-eslint/parser':specifier: ^7.12.0- version: 7.12.0([email protected])([email protected])+ version: 7.12.0([email protected])([email protected])eslint:specifier: ^8.57.0version: 8.57.0@@ -83,7 +83,7 @@ importers:version: 9.1.0([email protected])eslint-config-standard:specifier: ^17.1.0- version: 17.1.0([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected])+ version: 17.1.0([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected])eslint-plugin-prettier:specifier: ^5.1.3version: 5.1.3(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])@@ -92,28 +92,28 @@ importers:version: 3.6.2ts-node:specifier: ^10.9.2- version: 10.9.2(@types/[email protected])([email protected])+ version: 10.9.2(@types/[email protected])([email protected])tsc-watch:specifier: ^6.2.0- version: 6.2.0([email protected])+ version: 6.2.0([email protected])typescript:- specifier: ^5.4.5- version: 5.4.5+ specifier: ^5.7.2+ version: 5.9.2packages/config-eslint:devDependencies:'@typescript-eslint/eslint-plugin':specifier: ^7.1.0- version: 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ version: 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])'@typescript-eslint/parser':specifier: ^7.12.0- version: 7.12.0([email protected])([email protected])+ version: 7.12.0([email protected])([email protected])'@vercel/style-guide':specifier: ^6.0.0- version: 6.0.0(@next/[email protected])([email protected])([email protected](@types/[email protected]))([email protected])([email protected])([email protected](@types/[email protected]))+ version: 6.0.0(@next/[email protected])([email protected])([email protected](@types/[email protected]))([email protected])([email protected])([email protected](@types/[email protected]))eslint-config-next:specifier: ^14.2.15- version: 14.2.15([email protected])([email protected])+ version: 14.2.15([email protected])([email protected])eslint-config-prettier:specifier: ^9.1.0version: 9.1.0([email protected])@@ -124,8 +124,8 @@ importers:specifier: ^1.1.0version: 1.1.0typescript:- specifier: ^5.4.5- version: 5.4.5+ specifier: ^5.7.2+ version: 5.9.2packages/config-typescript: {}@@ -178,7 +178,7 @@ importers:version: 1.9.0'@prisma/client':specifier: ^6.10.1'@react-email/components':specifier: ^0.1.0@@ -241,7 +241,7 @@ importers:version: 6.9.15prisma-extension-kysely:specifier: ^2.1.0- version: 2.1.0(@prisma/[email protected]([email protected]([email protected]))([email protected]))+ version: 2.1.0(@prisma/[email protected]([email protected]([email protected]))([email protected]))react:specifier: ~18.2.0version: 18.2.0@@ -284,7 +284,7 @@ importers:version: 9.0.8'@typescript-eslint/parser':specifier: ^7.12.0- version: 7.12.0([email protected])([email protected])+ version: 7.12.0([email protected])([email protected])eslint:specifier: ^8.57.0version: 8.57.0@@ -293,7 +293,7 @@ importers:version: 9.1.0([email protected])eslint-config-standard:specifier: ^17.1.0- version: 17.1.0([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected])+ version: 17.1.0([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected])eslint-plugin-prettier:specifier: ^5.1.3version: 5.1.3(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])@@ -308,22 +308,22 @@ importers:version: 3.6.2prisma:specifier: ^6.10.1- version: 6.10.1([email protected])+ version: 6.10.1([email protected])prisma-erd-generator:specifier: ^1.11.2- version: 1.11.2(@prisma/[email protected]([email protected]([email protected]))([email protected]))([email protected])+ version: 1.11.2(@prisma/[email protected]([email protected]([email protected]))([email protected]))([email protected])prisma-kysely:specifier: ^1.8.0version: 1.8.0ts-node:specifier: ^10.9.2- version: 10.9.2(@types/[email protected])([email protected])+ version: 10.9.2(@types/[email protected])([email protected])tsc-watch:specifier: ^6.2.0- version: 6.2.0([email protected])+ version: 6.2.0([email protected])typescript:- specifier: ^5.4.5- version: 5.4.5+ specifier: ^5.7.2+ version: 5.9.2web:dependencies:@@ -335,7 +335,7 @@ importers:version: 0.7.3([email protected])'@baselime/trpc-opentelemetry-middleware':specifier: ^0.1.2- version: 0.1.2(@opentelemetry/[email protected])(@trpc/[email protected])'@codemirror/lang-json':specifier: ^6.0.2version: 6.0.2@@ -362,7 +362,7 @@ importers:'@headlessui/tailwindcss':specifier: 0.2.1'@heroicons/react':specifier: ^2.1.5version: 2.1.5([email protected])@@ -389,7 +389,7 @@ importers:version: 7.19.0(@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@mui/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]))(@mui/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@next-auth/prisma-adapter':specifier: ^1.0.7- version: 1.0.7(@prisma/[email protected]([email protected]([email protected]))([email protected]))([email protected](patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected]))+ version: 1.0.7(@prisma/[email protected]([email protected]([email protected]))([email protected]))([email protected](patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected]))'@opentelemetry/api':specifier: ^1.9.0version: 1.9.0@@ -515,13 +515,13 @@ importers:version: 8.55.0(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))(@opentelemetry/[email protected](@opentelemetry/[email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected])'@t3-oss/env-nextjs':specifier: ^0.11.1- version: 0.11.1([email protected])([email protected])+ version: 0.11.1([email protected])([email protected])'@tailwindcss/container-queries':specifier: ^0.1.1'@tanstack/react-query':- specifier: ^4.36.1+ specifier: ^5.85.1+ version: 5.85.1([email protected])'@tanstack/react-table':specifier: ^8.20.5@@ -530,19 +530,19 @@ importers:version: 5.8.0'@tremor/react':specifier: 3.16.2- version: 3.16.2([email protected]([email protected]))([email protected])([email protected]([email protected](@types/[email protected])([email protected])))+ version: 3.16.2([email protected]([email protected]))([email protected])([email protected]([email protected](@types/[email protected])([email protected])))'@trpc/client':- specifier: ^10.45.0- version: 10.45.2(@trpc/[email protected])+ specifier: ^11.4.4'@trpc/next':- specifier: ^10.45.0- version: 10.45.2(@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected])([email protected]([email protected]))([email protected]))(@trpc/[email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ specifier: ^11.4.4+ version: 11.4.4(@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected]))(@trpc/[email protected]([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])'@trpc/react-query':- specifier: ^10.45.0- version: 10.45.2(@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected])([email protected]([email protected]))([email protected])+ specifier: ^11.4.4+ version: 11.4.4(@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])'@trpc/server':- specifier: ^10.45.0- version: 10.45.2+ specifier: ^11.4.4+ version: 11.4.4([email protected])'@uiw/codemirror-themes':specifier: ^4.23.7version: 4.23.7(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])@@ -551,7 +551,7 @@ importers:version: 4.24.1(@babel/[email protected])(@codemirror/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected]))(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])([email protected](@lezer/[email protected]))([email protected]([email protected]))([email protected])ai:specifier: ^3.4.9- version: 3.4.9([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])+ version: 3.4.9([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected])bcryptjs:specifier: ^2.4.3version: 2.4.3@@ -644,7 +644,7 @@ importers:version: 2.4.1([email protected])prisma:specifier: ^6.10.1- version: 6.10.1([email protected])+ version: 6.10.1([email protected])protobufjs:specifier: ^7.4.0version: 7.4.0@@ -706,14 +706,14 @@ importers:specifier: ^17.4.0version: 17.4.0superjson:- specifier: 2.2.1- version: 2.2.1+ specifier: 2.2.2+ version: 2.2.2tailwind-merge:specifier: ^2.5.2version: 2.5.2tailwindcss-animate:specifier: ^1.0.7unified:specifier: ^11.0.5version: 11.0.5@@ -738,7 +738,7 @@ importers:version: 3.0.0'@mermaid-js/mermaid-cli':specifier: ^11.2.0- version: 11.2.0([email protected]([email protected]))+ version: 11.2.0([email protected]([email protected]))'@next/bundle-analyzer':specifier: ^15.4.1version: 15.4.1@@ -753,10 +753,10 @@ importers:version: link:../packages/config-typescript'@tailwindcss/forms':specifier: ^0.5.7'@testing-library/jest-dom':specifier: ^6.4.6- version: 6.4.6(@jest/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])))([email protected](@types/[email protected]))+ version: 6.4.6(@jest/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])))([email protected](@types/[email protected]))'@testing-library/react':specifier: ^15.0.7@@ -798,10 +798,10 @@ importers:version: 9.0.8'@typescript-eslint/eslint-plugin':specifier: ^6.21.0- version: 6.21.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ version: 6.21.0(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])'@typescript-eslint/parser':specifier: ^7.12.0- version: 7.12.0([email protected])([email protected])+ version: 7.12.0([email protected])([email protected])autoprefixer:specifier: ^10.4.19version: 10.4.19([email protected])@@ -816,10 +816,10 @@ importers:version: 8.57.0eslint-config-next:specifier: ^14.2.15- version: 14.2.15([email protected])([email protected])+ version: 14.2.15([email protected])([email protected])jest:specifier: ^29.7.0- version: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))+ version: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))jest-environment-jsdom:specifier: ^29.7.0version: 29.7.0@@ -834,16 +834,16 @@ importers:version: 0.6.13([email protected])tailwindcss:specifier: ^3.4.17ts-node:specifier: ^10.9.2- version: 10.9.2(@types/[email protected])([email protected])+ version: 10.9.2(@types/[email protected])([email protected])tsconfig-paths:specifier: ^4.2.0version: 4.2.0typescript:- specifier: ^5.4.5- version: 5.4.5+ specifier: ^5.7.2+ version: 5.9.2wait-for-expect:specifier: ^3.0.2version: 3.0.2@@ -994,7 +994,7 @@ importers:version: 9.0.8'@typescript-eslint/parser':specifier: ^7.12.0- version: 7.12.0([email protected])([email protected])+ version: 7.12.0([email protected])([email protected])eslint:specifier: ^8.57.0version: 8.57.0@@ -1003,7 +1003,7 @@ importers:version: 9.1.0([email protected])eslint-config-standard:specifier: ^17.1.0- version: 17.1.0([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected])+ version: 17.1.0([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected])eslint-plugin-prettier:specifier: ^5.1.3version: 5.1.3(@types/[email protected])([email protected]([email protected]))([email protected])([email protected])@@ -1012,7 +1012,7 @@ importers:version: 0.16.8([email protected])([email protected])msw:specifier: ^2.6.5- version: 2.6.5(@types/[email protected])([email protected])+ version: 2.6.5(@types/[email protected])([email protected])nodemon:specifier: ^3.1.7version: 3.1.7@@ -1021,16 +1021,16 @@ importers:version: 3.6.2ts-node:specifier: ^10.9.2- version: 10.9.2(@types/[email protected])([email protected])+ version: 10.9.2(@types/[email protected])([email protected])tsc-watch:specifier: ^6.2.0- version: 6.2.0([email protected])+ version: 6.2.0([email protected])typescript:- specifier: ^5.4.5- version: 5.4.5+ specifier: ^5.7.2+ version: 5.9.2vitest:specifier: ^3.2.4- version: 3.2.4(@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])+ version: 3.2.4(@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])wait-for-expect:specifier: ^3.0.2version: 3.0.2@@ -5134,20 +5134,13 @@ packages:peerDependencies:tailwindcss: '>=3.0.0 || >= 3.0.0-alpha.1'- '@tanstack/[email protected]':- resolution: {integrity: sha512-DJSilV5+ytBP1FbFcEJovv4rnnm/CokuVvrBEtW/Va9DvuJ3HksbXUJEpI0aV1KtuL4ZoO9AVE6PyNLzF7tLeA==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-TkPBjaILO6p02JNvRjwBbBJb4ZkI2vCGuV2B29od2j7UxFqYZ6sKwNVQ2CJ+qGDcJ9+qr4L1JGedVTms3V7bSQ==}- '@tanstack/[email protected]':- resolution: {integrity: sha512-y7ySVHFyyQblPl3J3eQBWpXZkliroki3ARnBKsdJchlgt7yJLRDUcf4B8soufgiYt3pEQIkBWBx1N9/ZPIeUWw==}+ '@tanstack/[email protected]':+ resolution: {integrity: sha512-MFnbAsADSE/RPUuJRVuR/0GOFu6s1X3aO/vrrw8U2NxDz0Nwub4Eb5BnJ9oGx+8PPnVGqkaSl6oCa5IaElBy2Q==}peerDependencies:- react: ^16.8.0 || ^17.0.0 || ^18.0.0- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0- react-native: '*'- peerDependenciesMeta:- react-dom:- optional: true- react-native:- optional: true+ react: ^18 || ^19'@tanstack/[email protected]':resolution: {integrity: sha512-WEHopKw3znbUZ61s9i0+i9g8drmDo6asTWbrQh8Us63DAk/M0FkmIqERew6P71HI75ksZ2Pxyuf4vvKh9rAkiA==}@@ -5221,33 +5214,43 @@ packages:react: ^18.0.0react-dom: '>=16.6.0'- '@trpc/[email protected]':- resolution: {integrity: sha512-ykALM5kYWTLn1zYuUOZ2cPWlVfrXhc18HzBDyRhoPYN0jey4iQHEFSEowfnhg1RvYnrAVjNBgHNeSAXjrDbGwg==}+ '@trpc/[email protected]':+ resolution: {integrity: sha512-86OZl+Y+Xlt9ITGlhCMImERcsWCOrVzpNuzg3XBlsDSmSs9NGsghKjeCpJQlE36XaG3aze+o9pRukiYYvBqxgQ==}peerDependencies:- '@trpc/server': 10.45.2+ '@trpc/server': 11.4.4+ typescript: '>=5.7.2'- '@trpc/[email protected]':- resolution: {integrity: sha512-RSORmfC+/nXdmRY1pQ0AalsVgSzwNAFbZLYHiTvPM5QQ8wmMEHilseCYMXpu0se/TbPt9zVR6Ka2d7O6zxKkXg==}+ '@trpc/[email protected]':+ resolution: {integrity: sha512-BTmMHv7whqSf6oE7qAKPCHWNZY9kqEi0inWW690bbs8FJ12A7S5nwIAbzyILfA0S5IJfMFTPJ/ueX2lCMYK67A==}peerDependencies:- '@tanstack/react-query': ^4.18.0- '@trpc/client': 10.45.2- '@trpc/react-query': 10.45.2- '@trpc/server': 10.45.2+ '@tanstack/react-query': ^5.59.15+ '@trpc/client': 11.4.4+ '@trpc/react-query': 11.4.4+ '@trpc/server': 11.4.4next: '*'react: '>=16.8.0'react-dom: '>=16.8.0'+ typescript: '>=5.7.2'+ peerDependenciesMeta:+ '@tanstack/react-query':+ optional: true+ '@trpc/react-query':+ optional: true- '@trpc/[email protected]':- resolution: {integrity: sha512-BAqb9bGZIscroradlNx+Cc9522R+idY3BOSf5z0jHUtkxdMbjeGKxSSMxxu7JzoLqSIEC+LVzL3VvF8sdDWaZQ==}+ '@trpc/[email protected]':+ resolution: {integrity: sha512-syXx1JLSERAHWh8BtBZsbv2PIt2nfvO1Sd6C6vHzNO8wAHxpcmq9HyEdrfi+5SfeRfPCJc/ZPCN2wVv98T+big==}peerDependencies:- '@tanstack/react-query': ^4.18.0- '@trpc/client': 10.45.2- '@trpc/server': 10.45.2- react: '>=16.8.0'- react-dom: '>=16.8.0'+ '@tanstack/react-query': ^5.80.3+ '@trpc/client': 11.4.4+ '@trpc/server': 11.4.4+ react: '>=18.2.0'+ react-dom: '>=18.2.0'+ typescript: '>=5.7.2'- '@trpc/[email protected]':- resolution: {integrity: sha512-wOrSThNNE4HUnuhJG6PfDRp4L2009KDVxsd+2VYH8ro6o/7/jwYZ8Uu5j+VaW+mOmc8EHerHzGcdbGNQSAUPgg==}+ '@trpc/[email protected]':+ resolution: {integrity: sha512-VkJb2xnb4rCynuwlCvgPBh5aM+Dco6fBBIo6lWAdJJRYVwtyE5bxNZBgUvRRz/cFSEAy0vmzLxF7aABDJfK5Rg==}+ peerDependencies:+ typescript: '>=5.7.2''@tsconfig/[email protected]':resolution: {integrity: sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==}@@ -11287,8 +11290,8 @@ packages:engines: {node: '>=16 || 14 >=14.17'}hasBin: true- resolution: {integrity: sha512-8iGv75BYOa0xRJHK5vRLEjE2H/i4lulTjzpUXic3Eg8akftYjkmQDa8JARQ42rlczXyFR3IeRoeFCc7RxHsYZA==}+ resolution: {integrity: sha512-5JRxVqC8I8NuOUjzBbvVJAKNM8qoVuH0O77h4WInc/qC2q5IreqKxYwgkga3PfA22OayK2ikceb/B26dztPl+Q==}engines: {node: '>=16'}@@ -11681,8 +11684,8 @@ packages:resolution: {integrity: sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==}+ resolution: {integrity: sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==}engines: {node: '>=14.17'}hasBin: true@@ -11814,11 +11817,6 @@ packages:'@types/react':optional: true- resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==}- peerDependencies:- react: ^16.8.0 || ^17.0.0 || ^18.0.0-resolution: {integrity: sha512-9WXSPC5fMv61vaupRkCKCxsPxBocVnwakBEkMIHHpkTTg6icbJtg6jzgtLDm4bl3cSHAca52rYWih0k4K3PfHw==}peerDependencies:@@ -12323,13 +12321,13 @@ snapshots:optionalDependencies:zod: 3.25.62dependencies:'@ai-sdk/provider-utils': 1.0.20([email protected])'@ai-sdk/ui-utils': 0.0.46([email protected])- swrv: 1.0.4([email protected]([email protected]))+ swrv: 1.0.4([email protected]([email protected]))optionalDependencies:- vue: 3.4.27([email protected])+ vue: 3.4.27([email protected])transitivePeerDependencies:- zod@@ -13825,10 +13823,10 @@ snapshots:'@babel/helper-string-parser': 7.27.1'@babel/helper-validator-identifier': 7.27.1+ '@baselime/[email protected](@opentelemetry/[email protected])(@trpc/[email protected]([email protected]))':dependencies:'@opentelemetry/api': 1.9.0- '@trpc/server': 10.45.2+ '@trpc/server': 11.4.4([email protected])flat: 6.0.1'@bcoe/[email protected]': {}@@ -14441,9 +14439,9 @@ snapshots:react: 18.2.0react-dom: 18.2.0([email protected])- '@headlessui/[email protected]([email protected]([email protected](@types/[email protected])([email protected])))':+ '@headlessui/[email protected]([email protected]([email protected](@types/[email protected])([email protected])))':dependencies:'@heroicons/[email protected]([email protected])':dependencies:@@ -14662,7 +14660,7 @@ snapshots:jest-util: 29.7.0slash: 3.0.0- '@jest/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))':+ '@jest/[email protected]([email protected])([email protected](@types/[email protected])([email protected]))':dependencies:'@jest/console': 29.7.0'@jest/reporters': 29.7.0@@ -14676,7 +14674,7 @@ snapshots:exit: 0.1.2graceful-fs: 4.2.11jest-changed-files: 29.7.0- jest-config: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))+ jest-config: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))jest-haste-map: 29.7.0jest-message-util: 29.7.0jest-regex-util: 29.6.3@@ -14968,11 +14966,11 @@ snapshots:react: 18.2.0react-dom: 18.2.0([email protected])- '@mermaid-js/[email protected]([email protected])':+ '@mermaid-js/[email protected]([email protected])':dependencies:chalk: 5.4.1commander: 10.0.1- puppeteer: 19.11.1([email protected])+ puppeteer: 19.11.1([email protected])transitivePeerDependencies:- bufferutil- encoding@@ -14980,12 +14978,12 @@ snapshots:- typescript- utf-8-validatedependencies:chalk: 5.3.0commander: 12.1.0mermaid: 11.3.0- puppeteer: 19.11.1([email protected])+ puppeteer: 19.11.1([email protected])transitivePeerDependencies:- supports-color@@ -15173,9 +15171,9 @@ snapshots:transitivePeerDependencies:- '@types/react'- '@next-auth/[email protected](@prisma/[email protected]([email protected]([email protected]))([email protected]))([email protected](patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected]))':+ '@next-auth/[email protected](@prisma/[email protected]([email protected]([email protected]))([email protected]))([email protected](patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected]))':dependencies:next-auth: 4.24.11(patch_hash=cczsf6i6qe2m2htirvgxjtoclu)([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])'@next/[email protected]':@@ -15862,10 +15860,10 @@ snapshots:'@popperjs/[email protected]': {}optionalDependencies:- prisma: 6.10.1([email protected])- typescript: 5.4.5+ prisma: 6.10.1([email protected])+ typescript: 5.9.2'@prisma/[email protected]':dependencies:@@ -16044,7 +16042,7 @@ snapshots:'@protobufjs/[email protected]': {}- '@puppeteer/[email protected]([email protected])':+ '@puppeteer/[email protected]([email protected])':dependencies:debug: 4.3.4extract-zip: 2.0.1@@ -16055,7 +16053,7 @@ snapshots:unbzip2-stream: 1.4.3yargs: 17.7.1optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2transitivePeerDependencies:- supports-color@@ -17821,37 +17819,34 @@ snapshots:'@swc/counter': 0.1.3tslib: 2.8.1dependencies:zod: 3.25.62optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2dependencies:- '@t3-oss/env-core': 0.11.1([email protected])([email protected])+ '@t3-oss/env-core': 0.11.1([email protected])([email protected])zod: 3.25.62optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2- '@tailwindcss/[email protected]([email protected]([email protected](@types/[email protected])([email protected])))':+ '@tailwindcss/[email protected]([email protected]([email protected](@types/[email protected])([email protected])))':dependencies:- '@tailwindcss/[email protected]([email protected]([email protected](@types/[email protected])([email protected])))':+ '@tailwindcss/[email protected]([email protected]([email protected](@types/[email protected])([email protected])))':dependencies:mini-svg-data-uri: 1.4.4- '@tanstack/[email protected]': {}+ '@tanstack/[email protected]': {}+ '@tanstack/[email protected]([email protected])':dependencies:- '@tanstack/query-core': 4.36.1+ '@tanstack/query-core': 5.85.1react: 18.2.0- use-sync-external-store: 1.2.0([email protected])- optionalDependencies:- react-dom: 18.2.0([email protected])dependencies:@@ -17889,7 +17884,7 @@ snapshots:lz-string: 1.5.0pretty-format: 27.5.1- '@testing-library/[email protected](@jest/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])))([email protected](@types/[email protected]))':+ '@testing-library/[email protected](@jest/[email protected])(@types/[email protected])([email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])))([email protected](@types/[email protected]))':dependencies:'@adobe/css-tools': 4.4.0'@babel/runtime': 7.24.7@@ -17902,8 +17897,8 @@ snapshots:optionalDependencies:'@jest/globals': 29.7.0'@types/jest': 29.5.12- jest: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))- vitest: 3.2.4(@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])+ jest: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))+ vitest: 3.2.4(@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])'@testing-library/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:@@ -17919,11 +17914,11 @@ snapshots:'@tootallnate/[email protected]': {}- '@tremor/[email protected]([email protected]([email protected]))([email protected])([email protected]([email protected](@types/[email protected])([email protected])))':+ '@tremor/[email protected]([email protected]([email protected]))([email protected])([email protected]([email protected](@types/[email protected])([email protected])))':dependencies:- '@headlessui/tailwindcss': 0.2.1([email protected]([email protected](@types/[email protected])([email protected])))+ '@headlessui/tailwindcss': 0.2.1([email protected]([email protected](@types/[email protected])([email protected])))date-fns: 2.30.0react: 18.2.0react-day-picker: 8.10.1([email protected])([email protected])@@ -17934,29 +17929,35 @@ snapshots:transitivePeerDependencies:- tailwindcss- '@trpc/[email protected](@trpc/[email protected])':dependencies:- '@trpc/server': 10.45.2+ '@trpc/server': 11.4.4([email protected])+ typescript: 5.9.2- '@trpc/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected])([email protected]([email protected]))([email protected]))(@trpc/[email protected])([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])':+ '@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected]))(@trpc/[email protected]([email protected]))([email protected](@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])':dependencies:- '@trpc/client': 10.45.2(@trpc/[email protected])- '@trpc/react-query': 10.45.2(@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected])([email protected]([email protected]))([email protected])- '@trpc/server': 10.45.2+ '@trpc/server': 11.4.4([email protected])next: 14.2.30(@babel/[email protected])(@opentelemetry/[email protected])(@playwright/[email protected])([email protected])([email protected]([email protected]))([email protected])react: 18.2.0react-dom: 18.2.0([email protected])+ typescript: 5.9.2+ optionalDependencies:+ '@tanstack/react-query': 5.85.1([email protected])+ '@trpc/react-query': 11.4.4(@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])- '@trpc/[email protected](@tanstack/[email protected]([email protected]([email protected]))([email protected]))(@trpc/[email protected](@trpc/[email protected]))(@trpc/[email protected])([email protected]([email protected]))([email protected])':+ '@trpc/[email protected](@tanstack/[email protected]([email protected]))(@trpc/[email protected](@trpc/[email protected]([email protected]))([email protected]))(@trpc/[email protected]([email protected]))([email protected]([email protected]))([email protected])([email protected])':dependencies:- '@trpc/client': 10.45.2(@trpc/[email protected])- '@trpc/server': 10.45.2+ '@tanstack/react-query': 5.85.1([email protected])+ '@trpc/server': 11.4.4([email protected])react: 18.2.0react-dom: 18.2.0([email protected])+ typescript: 5.9.2- '@trpc/[email protected]': {}+ '@trpc/[email protected]([email protected])':+ dependencies:+ typescript: 5.9.2'@tsconfig/[email protected]': {}@@ -18302,13 +18303,13 @@ snapshots:'@types/node': 20.11.29optional: true- '@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])':+ '@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])':dependencies:'@eslint-community/regexpp': 4.10.0- '@typescript-eslint/parser': 7.12.0([email protected])([email protected])+ '@typescript-eslint/parser': 7.12.0([email protected])([email protected])'@typescript-eslint/scope-manager': 6.21.0- '@typescript-eslint/type-utils': 6.21.0([email protected])([email protected])- '@typescript-eslint/utils': 6.21.0([email protected])([email protected])+ '@typescript-eslint/type-utils': 6.21.0([email protected])([email protected])+ '@typescript-eslint/utils': 6.21.0([email protected])([email protected])'@typescript-eslint/visitor-keys': 6.21.0debug: 4.3.4eslint: 8.57.0@@ -18316,19 +18317,19 @@ snapshots:ignore: 5.3.1natural-compare: 1.4.0semver: 7.6.0- ts-api-utils: 1.3.0([email protected])+ ts-api-utils: 1.3.0([email protected])optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2transitivePeerDependencies:- supports-color- '@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])':+ '@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])':dependencies:'@eslint-community/regexpp': 4.10.0- '@typescript-eslint/parser': 7.12.0([email protected])([email protected])+ '@typescript-eslint/parser': 7.12.0([email protected])([email protected])'@typescript-eslint/scope-manager': 7.3.1- '@typescript-eslint/type-utils': 7.3.1([email protected])([email protected])- '@typescript-eslint/utils': 7.3.1([email protected])([email protected])+ '@typescript-eslint/type-utils': 7.3.1([email protected])([email protected])+ '@typescript-eslint/utils': 7.3.1([email protected])([email protected])'@typescript-eslint/visitor-keys': 7.3.1debug: 4.3.4eslint: 8.57.0@@ -18336,22 +18337,22 @@ snapshots:ignore: 5.3.1natural-compare: 1.4.0semver: 7.6.0- ts-api-utils: 1.3.0([email protected])+ ts-api-utils: 1.3.0([email protected])optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2transitivePeerDependencies:- supports-colordependencies:'@typescript-eslint/scope-manager': 7.12.0'@typescript-eslint/types': 7.12.0- '@typescript-eslint/typescript-estree': 7.12.0([email protected])+ '@typescript-eslint/typescript-estree': 7.12.0([email protected])'@typescript-eslint/visitor-keys': 7.12.0debug: 4.3.4eslint: 8.57.0optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2transitivePeerDependencies:- supports-color@@ -18375,27 +18376,27 @@ snapshots:'@typescript-eslint/types': 7.3.1'@typescript-eslint/visitor-keys': 7.3.1dependencies:- '@typescript-eslint/typescript-estree': 6.21.0([email protected])- '@typescript-eslint/utils': 6.21.0([email protected])([email protected])+ '@typescript-eslint/typescript-estree': 6.21.0([email protected])+ '@typescript-eslint/utils': 6.21.0([email protected])([email protected])debug: 4.3.4eslint: 8.57.0- ts-api-utils: 1.3.0([email protected])+ ts-api-utils: 1.3.0([email protected])optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2transitivePeerDependencies:- supports-colordependencies:- '@typescript-eslint/typescript-estree': 7.3.1([email protected])- '@typescript-eslint/utils': 7.3.1([email protected])([email protected])+ '@typescript-eslint/typescript-estree': 7.3.1([email protected])+ '@typescript-eslint/utils': 7.3.1([email protected])([email protected])debug: 4.3.4eslint: 8.57.0- ts-api-utils: 1.3.0([email protected])+ ts-api-utils: 1.3.0([email protected])optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2transitivePeerDependencies:- supports-color@@ -18407,7 +18408,7 @@ snapshots:'@typescript-eslint/[email protected]': {}- '@typescript-eslint/[email protected]([email protected])':+ '@typescript-eslint/[email protected]([email protected])':dependencies:'@typescript-eslint/types': 5.62.0'@typescript-eslint/visitor-keys': 5.62.0@@ -18415,13 +18416,13 @@ snapshots:globby: 11.1.0is-glob: 4.0.3semver: 7.7.2- tsutils: 3.21.0([email protected])+ tsutils: 3.21.0([email protected])optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2transitivePeerDependencies:- supports-color- '@typescript-eslint/[email protected]([email protected])':+ '@typescript-eslint/[email protected]([email protected])':dependencies:'@typescript-eslint/types': 6.21.0'@typescript-eslint/visitor-keys': 6.21.0@@ -18430,13 +18431,13 @@ snapshots:is-glob: 4.0.3minimatch: 9.0.3semver: 7.7.2- ts-api-utils: 1.3.0([email protected])+ ts-api-utils: 1.3.0([email protected])optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2transitivePeerDependencies:- supports-color- '@typescript-eslint/[email protected]([email protected])':+ '@typescript-eslint/[email protected]([email protected])':dependencies:'@typescript-eslint/types': 7.12.0'@typescript-eslint/visitor-keys': 7.12.0@@ -18445,13 +18446,13 @@ snapshots:is-glob: 4.0.3minimatch: 9.0.5semver: 7.7.1- ts-api-utils: 1.3.0([email protected])+ ts-api-utils: 1.3.0([email protected])optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2transitivePeerDependencies:- supports-color- '@typescript-eslint/[email protected]([email protected])':+ '@typescript-eslint/[email protected]([email protected])':dependencies:'@typescript-eslint/types': 7.3.1'@typescript-eslint/visitor-keys': 7.3.1@@ -18460,20 +18461,20 @@ snapshots:is-glob: 4.0.3minimatch: 9.0.3semver: 7.7.1- ts-api-utils: 1.3.0([email protected])+ ts-api-utils: 1.3.0([email protected])optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2transitivePeerDependencies:- supports-colordependencies:'@eslint-community/eslint-utils': 4.7.0([email protected])'@types/json-schema': 7.0.15'@types/semver': 7.5.8'@typescript-eslint/scope-manager': 5.62.0'@typescript-eslint/types': 5.62.0- '@typescript-eslint/typescript-estree': 5.62.0([email protected])+ '@typescript-eslint/typescript-estree': 5.62.0([email protected])eslint: 8.57.0eslint-scope: 5.1.1semver: 7.7.2@@ -18481,28 +18482,28 @@ snapshots:- supports-color- typescriptdependencies:'@eslint-community/eslint-utils': 4.4.0([email protected])'@types/json-schema': 7.0.15'@types/semver': 7.5.8'@typescript-eslint/scope-manager': 6.21.0'@typescript-eslint/types': 6.21.0- '@typescript-eslint/typescript-estree': 6.21.0([email protected])+ '@typescript-eslint/typescript-estree': 6.21.0([email protected])eslint: 8.57.0semver: 7.7.1transitivePeerDependencies:- supports-color- typescriptdependencies:'@eslint-community/eslint-utils': 4.4.0([email protected])'@types/json-schema': 7.0.15'@types/semver': 7.5.8'@typescript-eslint/scope-manager': 7.3.1'@typescript-eslint/types': 7.3.1- '@typescript-eslint/typescript-estree': 7.3.1([email protected])+ '@typescript-eslint/typescript-estree': 7.3.1([email protected])eslint: 8.57.0semver: 7.7.1transitivePeerDependencies:@@ -18564,33 +18565,33 @@ snapshots:'@ungap/[email protected]': {}- '@vercel/[email protected](@next/[email protected])([email protected])([email protected](@types/[email protected]))([email protected])([email protected])([email protected](@types/[email protected]))':+ '@vercel/[email protected](@next/[email protected])([email protected])([email protected](@types/[email protected]))([email protected])([email protected])([email protected](@types/[email protected]))':dependencies:'@babel/core': 7.24.3'@babel/eslint-parser': 7.24.1(@babel/[email protected])([email protected])'@rushstack/eslint-patch': 1.7.2- '@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])- '@typescript-eslint/parser': 7.12.0([email protected])([email protected])+ '@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ '@typescript-eslint/parser': 7.12.0([email protected])([email protected])eslint-config-prettier: 9.1.0([email protected])- eslint-import-resolver-alias: 1.1.2([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))- eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-import-resolver-alias: 1.1.2([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))+ eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])eslint-plugin-eslint-comments: 3.2.0([email protected])- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])- eslint-plugin-jest: 27.9.0(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected](@types/[email protected]))([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-plugin-jest: 27.9.0(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected](@types/[email protected]))([email protected])eslint-plugin-jsx-a11y: 6.8.0([email protected])- eslint-plugin-playwright: 1.5.4([email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected](@types/[email protected]))([email protected]))([email protected])+ eslint-plugin-playwright: 1.5.4([email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected](@types/[email protected]))([email protected]))([email protected])eslint-plugin-react: 7.34.1([email protected])eslint-plugin-react-hooks: 4.6.0([email protected])- eslint-plugin-testing-library: 6.2.0([email protected])([email protected])+ eslint-plugin-testing-library: 6.2.0([email protected])([email protected])eslint-plugin-tsdoc: 0.2.17eslint-plugin-unicorn: 51.0.1([email protected])- eslint-plugin-vitest: 0.3.26(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected]))+ eslint-plugin-vitest: 0.3.26(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected]))prettier-plugin-packagejson: 2.4.12([email protected])optionalDependencies:'@next/eslint-plugin-next': 14.2.15eslint: 8.57.0prettier: 3.6.2- typescript: 5.4.5+ typescript: 5.9.2transitivePeerDependencies:- eslint-import-resolver-node- eslint-import-resolver-webpack@@ -18606,13 +18607,13 @@ snapshots:chai: 5.2.1tinyrainbow: 2.0.0- '@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@vitest/[email protected]([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@vitest/spy': 3.2.4estree-walker: 3.0.3magic-string: 0.30.17optionalDependencies:- msw: 2.6.5(@types/[email protected])([email protected])+ msw: 2.6.5(@types/[email protected])([email protected])vite: 7.0.5(@types/[email protected])([email protected])([email protected])([email protected])([email protected])@@ -18695,11 +18696,11 @@ snapshots:'@vue/shared': 3.4.27csstype: 3.1.3dependencies:'@vue/compiler-ssr': 3.4.27'@vue/shared': 3.4.27- vue: 3.4.27([email protected])+ vue: 3.4.27([email protected])'@vue/[email protected]': {}@@ -18849,7 +18850,7 @@ snapshots:clean-stack: 2.2.0indent-string: 4.0.0- [email protected]([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected]):+ [email protected]([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected]([email protected]))([email protected]):dependencies:'@ai-sdk/provider': 0.0.24'@ai-sdk/provider-utils': 1.0.20([email protected])@@ -18857,7 +18858,7 @@ snapshots:'@ai-sdk/solid': 0.0.49([email protected])([email protected])'@ai-sdk/svelte': 0.0.51([email protected])([email protected])'@ai-sdk/ui-utils': 0.0.46([email protected])'@opentelemetry/api': 1.9.0eventsource-parser: 1.1.2json-schema: 0.4.0@@ -19705,13 +19706,13 @@ snapshots:crc-32: 1.2.2readable-stream: 3.6.2- [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):+ [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):dependencies:'@jest/types': 29.6.3chalk: 4.1.2exit: 0.1.2graceful-fs: 4.2.11- jest-config: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))+ jest-config: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))jest-util: 29.7.0prompts: 2.4.2transitivePeerDependencies:@@ -19726,7 +19727,7 @@ snapshots:chalk: 4.1.2exit: 0.1.2graceful-fs: 4.2.11- jest-config: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))+ jest-config: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))jest-util: 29.7.0prompts: 2.4.2transitivePeerDependencies:@@ -20521,21 +20522,21 @@ snapshots:eslint: 8.57.0semver: 7.7.2dependencies:'@next/eslint-plugin-next': 14.2.15'@rushstack/eslint-patch': 1.7.2- '@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])- '@typescript-eslint/parser': 7.12.0([email protected])([email protected])+ '@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ '@typescript-eslint/parser': 7.12.0([email protected])([email protected])eslint: 8.57.0eslint-import-resolver-node: 0.3.9- eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])eslint-plugin-jsx-a11y: 6.8.0([email protected])eslint-plugin-react: 7.34.1([email protected])eslint-plugin-react-hooks: 4.6.0([email protected])optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2transitivePeerDependencies:- eslint-import-resolver-webpack- supports-color@@ -20544,10 +20545,10 @@ snapshots:dependencies:eslint: 8.57.0- [email protected]([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected]):+ [email protected]([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]))([email protected]([email protected]))([email protected]([email protected]))([email protected]):dependencies:eslint: 8.57.0- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])eslint-plugin-n: 16.6.2([email protected])eslint-plugin-promise: 6.4.0([email protected])@@ -20557,9 +20558,9 @@ snapshots:eslint-plugin-turbo: 2.5.6([email protected])([email protected])turbo: 2.5.6- [email protected]([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])):+ [email protected]([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])):dependencies:- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])dependencies:@@ -20569,13 +20570,13 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]):dependencies:debug: 4.4.1enhanced-resolve: 5.17.1eslint: 8.57.0- eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected])- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])fast-glob: 3.3.3get-tsconfig: 4.8.1is-core-module: 2.15.1@@ -20586,13 +20587,13 @@ snapshots:- eslint-import-resolver-webpack- supports-color- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]):dependencies:debug: 4.4.1enhanced-resolve: 5.17.1eslint: 8.57.0- eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])+ eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])fast-glob: 3.3.3get-tsconfig: 4.8.1is-core-module: 2.15.1@@ -20603,25 +20604,25 @@ snapshots:- eslint-import-resolver-webpack- supports-color- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected]):dependencies:debug: 3.2.7optionalDependencies:- '@typescript-eslint/parser': 7.12.0([email protected])([email protected])+ '@typescript-eslint/parser': 7.12.0([email protected])([email protected])eslint: 8.57.0eslint-import-resolver-node: 0.3.9- eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])+ eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected])transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected]):dependencies:debug: 3.2.7optionalDependencies:- '@typescript-eslint/parser': 7.12.0([email protected])([email protected])+ '@typescript-eslint/parser': 7.12.0([email protected])([email protected])eslint: 8.57.0eslint-import-resolver-node: 0.3.9- eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])transitivePeerDependencies:- supports-color@@ -20638,7 +20639,7 @@ snapshots:eslint: 8.57.0ignore: 5.3.2- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]):dependencies:array-includes: 3.1.7array.prototype.findlastindex: 1.2.4@@ -20648,7 +20649,7 @@ snapshots:doctrine: 2.1.0eslint: 8.57.0eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])+ eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])hasown: 2.0.2is-core-module: 2.15.1is-glob: 4.0.3@@ -20659,13 +20660,13 @@ snapshots:semver: 6.3.1tsconfig-paths: 3.15.0optionalDependencies:- '@typescript-eslint/parser': 7.12.0([email protected])([email protected])+ '@typescript-eslint/parser': 7.12.0([email protected])([email protected])transitivePeerDependencies:- eslint-import-resolver-typescript- eslint-import-resolver-webpack- supports-color- [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]):+ [email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected]):dependencies:array-includes: 3.1.7array.prototype.findlastindex: 1.2.4@@ -20675,7 +20676,7 @@ snapshots:doctrine: 2.1.0eslint: 8.57.0eslint-import-resolver-node: 0.3.9- eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected])+ eslint-module-utils: 2.8.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])([email protected]))([email protected])hasown: 2.0.2is-core-module: 2.15.1is-glob: 4.0.3@@ -20686,18 +20687,18 @@ snapshots:semver: 6.3.1tsconfig-paths: 3.15.0optionalDependencies:- '@typescript-eslint/parser': 7.12.0([email protected])([email protected])+ '@typescript-eslint/parser': 7.12.0([email protected])([email protected])transitivePeerDependencies:- eslint-import-resolver-typescript- eslint-import-resolver-webpack- supports-color- [email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected](@types/[email protected]))([email protected]):+ [email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected](@types/[email protected]))([email protected]):dependencies:- '@typescript-eslint/utils': 5.62.0([email protected])([email protected])+ '@typescript-eslint/utils': 5.62.0([email protected])([email protected])eslint: 8.57.0optionalDependencies:- '@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ '@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])jest: 29.7.0(@types/[email protected])transitivePeerDependencies:- supports-color@@ -20740,12 +20741,12 @@ snapshots:- [email protected]([email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected](@types/[email protected]))([email protected]))([email protected]):+ [email protected]([email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected](@types/[email protected]))([email protected]))([email protected]):dependencies:eslint: 8.57.0globals: 13.24.0optionalDependencies:- eslint-plugin-jest: 27.9.0(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected](@types/[email protected]))([email protected])+ eslint-plugin-jest: 27.9.0(@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected](@types/[email protected]))([email protected])[email protected](@types/[email protected])([email protected]([email protected]))([email protected])([email protected]):dependencies:@@ -20787,9 +20788,9 @@ snapshots:semver: 6.3.1string.prototype.matchall: 4.0.10dependencies:- '@typescript-eslint/utils': 5.62.0([email protected])([email protected])+ '@typescript-eslint/utils': 5.62.0([email protected])([email protected])eslint: 8.57.0transitivePeerDependencies:- supports-color@@ -20828,12 +20829,12 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])):+ [email protected](@typescript-eslint/[email protected](@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected]))([email protected])([email protected])([email protected](@types/[email protected])):dependencies:- '@typescript-eslint/utils': 7.3.1([email protected])([email protected])+ '@typescript-eslint/utils': 7.3.1([email protected])([email protected])eslint: 8.57.0optionalDependencies:- '@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])+ '@typescript-eslint/eslint-plugin': 7.3.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])vitest: 3.2.4(@types/[email protected])transitivePeerDependencies:- supports-color@@ -22058,16 +22059,16 @@ snapshots:- babel-plugin-macros- supports-color- [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):+ [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):dependencies:- '@jest/core': 29.7.0([email protected])([email protected](@types/[email protected])([email protected]))+ '@jest/core': 29.7.0([email protected])([email protected](@types/[email protected])([email protected]))'@jest/test-result': 29.7.0'@jest/types': 29.6.3chalk: 4.1.2- create-jest: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))+ create-jest: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))exit: 0.1.2import-local: 3.1.0- jest-config: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))+ jest-config: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))jest-util: 29.7.0jest-validate: 29.7.0yargs: 17.7.2@@ -22079,14 +22080,14 @@ snapshots:[email protected](@types/[email protected]):dependencies:- '@jest/core': 29.7.0([email protected])([email protected](@types/[email protected])([email protected]))+ '@jest/core': 29.7.0([email protected])([email protected](@types/[email protected])([email protected]))'@jest/test-result': 29.7.0'@jest/types': 29.6.3chalk: 4.1.2create-jest: 29.7.0(@types/[email protected])exit: 0.1.2import-local: 3.1.0- jest-config: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))+ jest-config: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))jest-util: 29.7.0jest-validate: 29.7.0yargs: 17.7.2@@ -22097,7 +22098,7 @@ snapshots:- ts-nodeoptional: true- [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):+ [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):dependencies:'@babel/core': 7.24.3'@jest/test-sequencer': 29.7.0@@ -22123,12 +22124,12 @@ snapshots:strip-json-comments: 3.1.1optionalDependencies:'@types/node': 20.11.29- ts-node: 10.9.2(@types/[email protected])([email protected])+ ts-node: 10.9.2(@types/[email protected])([email protected])transitivePeerDependencies:- babel-plugin-macros- supports-color- [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):+ [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):dependencies:'@babel/core': 7.24.3'@jest/test-sequencer': 29.7.0@@ -22154,7 +22155,7 @@ snapshots:strip-json-comments: 3.1.1optionalDependencies:'@types/node': 20.14.8- ts-node: 10.9.2(@types/[email protected])([email protected])+ ts-node: 10.9.2(@types/[email protected])([email protected])transitivePeerDependencies:- babel-plugin-macros- supports-color@@ -22395,12 +22396,12 @@ snapshots:merge-stream: 2.0.0supports-color: 8.1.1- [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):+ [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])):dependencies:- '@jest/core': 29.7.0([email protected])([email protected](@types/[email protected])([email protected]))+ '@jest/core': 29.7.0([email protected])([email protected](@types/[email protected])([email protected]))'@jest/types': 29.6.3import-local: 3.1.0- jest-cli: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))+ jest-cli: 29.7.0(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected]))transitivePeerDependencies:- '@types/node'- babel-plugin-macros@@ -22409,7 +22410,7 @@ snapshots:[email protected](@types/[email protected]):dependencies:- '@jest/core': 29.7.0([email protected])([email protected](@types/[email protected])([email protected]))+ '@jest/core': 29.7.0([email protected])([email protected](@types/[email protected])([email protected]))'@jest/types': 29.6.3import-local: 3.1.0jest-cli: 29.7.0(@types/[email protected])@@ -23349,7 +23350,7 @@ snapshots:optionalDependencies:msgpackr-extract: 3.0.3dependencies:'@bundled-es-modules/cookie': 2.0.1'@bundled-es-modules/statuses': 1.0.1@@ -23370,7 +23371,7 @@ snapshots:type-fest: 4.27.0yargs: 17.7.2optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2transitivePeerDependencies:- '@types/node'@@ -24018,13 +24019,13 @@ snapshots:camelcase-css: 2.0.1postcss: 8.4.49- [email protected]([email protected])([email protected](@types/[email protected])([email protected])):+ [email protected]([email protected])([email protected](@types/[email protected])([email protected])):dependencies:lilconfig: 3.1.3yaml: 2.5.1optionalDependencies:postcss: 8.4.49- ts-node: 10.9.2(@types/[email protected])([email protected])+ ts-node: 10.9.2(@types/[email protected])([email protected])dependencies:@@ -24144,10 +24145,10 @@ snapshots:clsx: 2.1.1react: 18.2.0- [email protected](@prisma/[email protected]([email protected]([email protected]))([email protected]))([email protected]):+ [email protected](@prisma/[email protected]([email protected]([email protected]))([email protected]))([email protected]):dependencies:- '@mermaid-js/mermaid-cli': 10.8.0([email protected])+ '@mermaid-js/mermaid-cli': 10.8.0([email protected])'@prisma/generator-helper': 5.3.1dotenv: 16.4.5transitivePeerDependencies:@@ -24157,27 +24158,27 @@ snapshots:- typescript- utf-8-validate- [email protected](@prisma/[email protected]([email protected]([email protected]))([email protected])):+ [email protected](@prisma/[email protected]([email protected]([email protected]))([email protected])):dependencies:dependencies:'@mrleebo/prisma-ast': 0.7.0'@prisma/generator-helper': 5.3.1'@prisma/internals': 5.3.1- typescript: 5.4.5+ typescript: 5.9.2zod: 3.25.62transitivePeerDependencies:- encoding- supports-colordependencies:'@prisma/config': 6.10.1'@prisma/engines': 6.10.1optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2@@ -24250,9 +24251,9 @@ snapshots:dependencies:- '@puppeteer/browsers': 0.5.0([email protected])+ '@puppeteer/browsers': 0.5.0([email protected])chromium-bidi: 0.4.7([email protected])cross-fetch: 3.1.5debug: 4.3.4@@ -24264,21 +24265,21 @@ snapshots:unbzip2-stream: 1.4.3ws: 8.13.0optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2transitivePeerDependencies:- bufferutil- encoding- supports-color- utf-8-validatedependencies:- '@puppeteer/browsers': 0.5.0([email protected])+ '@puppeteer/browsers': 0.5.0([email protected])cosmiconfig: 8.1.3https-proxy-agent: 5.0.1progress: 2.0.3proxy-from-env: 1.1.0- puppeteer-core: 19.11.1([email protected])+ puppeteer-core: 19.11.1([email protected])transitivePeerDependencies:- bufferutil- encoding@@ -25265,7 +25266,7 @@ snapshots:pirates: 4.0.6ts-interface-checker: 0.1.13dependencies:copy-anything: 3.0.5@@ -25313,9 +25314,9 @@ snapshots:dependencies:- vue: 3.4.27([email protected])+ vue: 3.4.27([email protected])@@ -25335,11 +25336,11 @@ snapshots:- [email protected]([email protected]([email protected](@types/[email protected])([email protected]))):+ [email protected]([email protected]([email protected](@types/[email protected])([email protected]))):dependencies:dependencies:'@alloc/quick-lru': 5.2.0arg: 5.0.2@@ -25358,7 +25359,7 @@ snapshots:postcss: 8.4.49postcss-import: 15.1.0([email protected])postcss-js: 4.0.1([email protected])- postcss-load-config: 4.0.2([email protected])([email protected](@types/[email protected])([email protected]))+ postcss-load-config: 4.0.2([email protected])([email protected](@types/[email protected])([email protected]))postcss-nested: 6.2.0([email protected])postcss-selector-parser: 6.1.2resolve: 1.22.8@@ -25513,15 +25514,15 @@ snapshots:dependencies:- typescript: 5.4.5+ typescript: 5.9.2dependencies:'@cspotcode/source-map-support': 0.8.1'@tsconfig/node10': 1.0.9@@ -25535,19 +25536,19 @@ snapshots:create-require: 1.1.1diff: 4.0.2make-error: 1.3.6- typescript: 5.4.5+ typescript: 5.9.2v8-compile-cache-lib: 3.0.1yn: 3.1.1dependencies:cross-spawn: 7.0.6node-cleanup: 2.1.2ps-tree: 1.2.0string-argv: 0.3.2- typescript: 5.4.5+ typescript: 5.9.2dependencies:@@ -25568,10 +25569,10 @@ snapshots:dependencies:tslib: 1.14.1- typescript: 5.4.5+ typescript: 5.9.2dependencies:@@ -25677,7 +25678,7 @@ snapshots:is-typed-array: 1.1.13possible-typed-array-names: 1.0.0- [email protected]: {}+ [email protected]: {}@@ -25815,10 +25816,6 @@ snapshots:optionalDependencies:'@types/react': 18.2.79- dependencies:- react: 18.2.0-dependencies:react: 18.2.0@@ -25982,11 +25979,11 @@ snapshots:fsevents: 2.3.3optional: true- [email protected](@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected]):dependencies:'@types/chai': 5.2.2'@vitest/expect': 3.2.4- '@vitest/mocker': 3.2.4([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ '@vitest/mocker': 3.2.4([email protected](@types/[email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@vitest/pretty-format': 3.2.4'@vitest/runner': 3.2.4'@vitest/snapshot': 3.2.4@@ -26083,15 +26080,15 @@ snapshots:dependencies:'@vue/compiler-dom': 3.4.27'@vue/compiler-sfc': 3.4.27'@vue/runtime-dom': 3.4.27- '@vue/server-renderer': 3.4.27([email protected]([email protected]))+ '@vue/server-renderer': 3.4.27([email protected]([email protected]))'@vue/shared': 3.4.27optionalDependencies:- typescript: 5.4.5+ typescript: 5.9.2diff --git a/web/package.json b/web/package.jsonindex bb287f3080..41e06e6615 100644--- a/web/package.json+++ b/web/package.json@@ -86,14 +86,14 @@"@sentry/nextjs": "^8.52.0","@t3-oss/env-nextjs": "^0.11.1","@tailwindcss/container-queries": "^0.1.1",- "@tanstack/react-query": "^4.36.1",+ "@tanstack/react-query": "^5.85.1","@tanstack/react-table": "^8.20.5","@team-plain/typescript-sdk": "^5.8.0","@tremor/react": "3.16.2",- "@trpc/client": "^10.45.0",- "@trpc/next": "^10.45.0",- "@trpc/react-query": "^10.45.0",- "@trpc/server": "^10.45.0",+ "@trpc/client": "^11.4.4",+ "@trpc/next": "^11.4.4",+ "@trpc/react-query": "^11.4.4",+ "@trpc/server": "^11.4.4","@uiw/codemirror-themes": "^4.23.7","@uiw/react-codemirror": "^4.24.1","ai": "^3.4.9",@@ -148,7 +148,7 @@"remark-stringify": "^11.0.0","sonner": "^1.4.41","stripe": "^17.4.0",- "superjson": "2.2.1",+ "superjson": "2.2.2","tailwind-merge": "^2.5.2","tailwindcss-animate": "^1.0.7","unified": "^11.0.5",@@ -195,7 +195,7 @@"tailwindcss": "^3.4.17","ts-node": "^10.9.2","tsconfig-paths": "^4.2.0",- "typescript": "^5.4.5",+ "typescript": "^5.7.2","wait-for-expect": "^3.0.2"},"ct3aMetadata": {diff --git a/web/src/components/ModelParameters/LLMApiKeyComponent.tsx b/web/src/components/ModelParameters/LLMApiKeyComponent.tsxindex d1b29b9396..4ef7eed1ed 100644--- a/web/src/components/ModelParameters/LLMApiKeyComponent.tsx+++ b/web/src/components/ModelParameters/LLMApiKeyComponent.tsx@@ -29,7 +29,7 @@ export const LLMApiKeyComponent = (p: {projectId: p.projectId,});- if (apiKeys.isLoading) {+ if (apiKeys.isPending) {return (<div><Label className="text-xs font-semibold">API key</Label>diff --git a/web/src/components/VersionLabel.tsx b/web/src/components/VersionLabel.tsxindex ae3413654f..0e332f2fdb 100644--- a/web/src/components/VersionLabel.tsx+++ b/web/src/components/VersionLabel.tsx@@ -34,7 +34,7 @@ export const VersionLabel = ({ className }: { className?: string }) => {refetchOnWindowFocus: false,refetchOnReconnect: false,enabled: !env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION, // do not check for updates on Langfuse Cloud- onError: (error) => console.error("checkUpdate error", error), // do not render default error message+ throwOnError: false, // do not render default error message},);@@ -43,7 +43,7 @@ export const VersionLabel = ({ className }: { className?: string }) => {refetchOnWindowFocus: false,refetchOnReconnect: false,enabled: !env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION, // do not check for updates on Langfuse Cloud- onError: (error) => console.error("checkUpdate error", error), // do not render default error message+ throwOnError: false, // do not render default error message});const plan = usePlan();diff --git a/web/src/components/deleteButton.tsx b/web/src/components/deleteButton.tsxindex ad934cdc3b..91e888fddc 100644--- a/web/src/components/deleteButton.tsx+++ b/web/src/components/deleteButton.tsx@@ -201,7 +201,7 @@ export function DeleteTraceButton(props: DeleteButtonProps) {}entityToDeleteName="trace"executeDeleteMutation={executeDeleteMutation}- isDeleteMutationLoading={traceMutation.isLoading}+ isDeleteMutationLoading={traceMutation.isPending}enabled={hasTraceDeletionEntitlement}/>);@@ -244,7 +244,7 @@ export function DeleteDatasetButton(props: DeleteButtonProps) {}entityToDeleteName="dataset"executeDeleteMutation={executeDeleteMutation}- isDeleteMutationLoading={datasetMutation.isLoading}+ isDeleteMutationLoading={datasetMutation.isPending}/>);}@@ -287,7 +287,7 @@ export function DeleteDashboardButton(props: DeleteButtonProps) {}entityToDeleteName="dashboard"executeDeleteMutation={executeDeleteMutation}- isDeleteMutationLoading={dashboardMutation.isLoading}+ isDeleteMutationLoading={dashboardMutation.isPending}/>);}@@ -341,7 +341,7 @@ export function DeleteEvalConfigButton(props: DeleteButtonProps) {customDeletePrompt="This action cannot be undone and removes all logs associated with this running evaluator. Scores produced by this evaluator will not be deleted."entityToDeleteName="running evaluator"executeDeleteMutation={executeDeleteMutation}- isDeleteMutationLoading={evaluatorMutation.isLoading}+ isDeleteMutationLoading={evaluatorMutation.isPending}/>);}@@ -356,7 +356,7 @@ export function DeleteEvaluationModelButton(invalidateFunc = () => void utils.defaultLlmModel.invalidate(),} = props;- const { mutateAsync: deleteDefaultModel, isLoading } =+ const { mutateAsync: deleteDefaultModel, isPending } =api.defaultLlmModel.deleteDefaultModel.useMutation({onSuccess: () => {showSuccessToast({@@ -399,7 +399,7 @@ export function DeleteEvaluationModelButton(customDeletePrompt="Deleting this model might cause running evaluators to fail. Please make sure you have no running evaluators relying on this model."deleteConfirmation="delete"executeDeleteMutation={executeDeleteMutation}- isDeleteMutationLoading={isLoading}+ isDeleteMutationLoading={isPending}/>);}diff --git a/web/src/components/publish-object-switch.tsx b/web/src/components/publish-object-switch.tsxindex 243ebe6d07..219271709a 100644--- a/web/src/components/publish-object-switch.tsx+++ b/web/src/components/publish-object-switch.tsx@@ -42,7 +42,7 @@ export const PublishTraceSwitch = (props: {});capture("trace_detail:publish_button_click");}}- isLoading={mut.isLoading}+ isLoading={mut.isPending}disabled={!hasAccess}/>);@@ -78,7 +78,7 @@ export const PublishSessionSwitch = (props: {});capture("session_detail:publish_button_click");}}- isLoading={mut.isLoading}+ isLoading={mut.isPending}disabled={!hasAccess}/>);diff --git a/web/src/components/session/index.tsx b/web/src/components/session/index.tsxindex 6c11e6d95a..49b4c22b27 100644--- a/web/src/components/session/index.tsx+++ b/web/src/components/session/index.tsx@@ -10,6 +10,7 @@ import { DetailPageNav } from "@/src/features/navigate-detail-pages/DetailPageNaimport { useDetailPageLists } from "@/src/features/navigate-detail-pages/context";import { api } from "@/src/utils/api";import { usdFormatter } from "@/src/utils/numbers";+import { getNumberFromMap } from "@/src/utils/map-utils";import Link from "next/link";import { useEffect, useState } from "react";import { AnnotateDrawer } from "@/src/features/scores/components/AnnotateDrawer";@@ -246,7 +247,7 @@ export const SessionPage: React.FC<{projectId={projectId}objectId={sessionId}objectType="SESSION"- count={sessionCommentCounts.data?.get(sessionId)}+ count={getNumberFromMap(sessionCommentCounts.data, sessionId)}/><div className="flex items-start"><AnnotateDrawer@@ -255,7 +256,14 @@ export const SessionPage: React.FC<{type: "session",sessionId,}}- scores={session.data?.scores ?? []}+ scores={+ session.data?.scores?.map((score) => ({+ ...score,+ timestamp: new Date(score.timestamp),+ createdAt: new Date(score.createdAt),+ updatedAt: new Date(score.updatedAt),+ })) ?? []+ }emptySelectedConfigIds={emptySelectedConfigIds}setEmptySelectedConfigIds={setEmptySelectedConfigIds}buttonVariant="outline"@@ -280,7 +288,16 @@ export const SessionPage: React.FC<{Total cost: {usdFormatter(session.data.totalCost, 2)}</Badge>)}- <SessionScores scores={session.data?.scores ?? []} />+ <SessionScores+ scores={+ session.data?.scores?.map((score) => ({+ ...score,+ timestamp: new Date(score.timestamp),+ createdAt: new Date(score.createdAt),+ updatedAt: new Date(score.updatedAt),+ })) ?? []+ }+ /></div><div className="mt-5 flex flex-col gap-2 border-t pt-5">{session.data?.traces.slice(0, visibleTraces).map((trace) => (@@ -292,7 +309,7 @@ export const SessionPage: React.FC<{<SessionIOtraceId={trace.id}projectId={projectId}- timestamp={trace.timestamp}+ timestamp={new Date(trace.timestamp)}/></div><div className="-mt-1 p-1 opacity-50 transition-opacity group-hover:opacity-100">@@ -330,7 +347,7 @@ export const SessionPage: React.FC<{projectId={projectId}objectId={trace.id}objectType="TRACE"- count={traceCommentCounts.data?.get(trace.id)}+ count={getNumberFromMap(traceCommentCounts.data, trace.id)}className="h-6 rounded-full text-xs"/></div>diff --git a/web/src/components/star-toggle.tsx b/web/src/components/star-toggle.tsxindex 0e3a500a12..9039e1e07e 100644--- a/web/src/components/star-toggle.tsx+++ b/web/src/components/star-toggle.tsx@@ -240,7 +240,7 @@ export function StarSessionToggle({<StarTogglevalue={value}size={size}- isLoading={mutBookmarkSession.isLoading}+ isLoading={mutBookmarkSession.isPending}disabled={!hasAccess}onClick={(value) => {capture("table:bookmark_button_click", {diff --git a/web/src/components/table/peek/peek-dataset-compare-detail.tsx b/web/src/components/table/peek/peek-dataset-compare-detail.tsxindex 799dcb0b36..61fab89dad 100644--- a/web/src/components/table/peek/peek-dataset-compare-detail.tsx+++ b/web/src/components/table/peek/peek-dataset-compare-detail.tsx@@ -115,7 +115,14 @@ export const PeekDatasetCompareDetail = ({{trace.data ? (<Command><h3 className="mb-3 font-semibold">- Run: {runsData?.find((r) => r.id === runId)?.name}+ Run:{" "}+ {+ runsData?.find(+ (+ r: RouterOutputs["datasets"]["baseRunDataByDatasetId"][number],+ ) => r.id === runId,+ )?.name+ }</h3>{tree && (<TraceTree@@ -177,7 +184,11 @@ export const PeekDatasetCompareDetail = ({{row?.runs && (<div className="flex h-[calc(100%-2rem)] w-full gap-4 overflow-x-auto">{Object.entries(row.runs).map(([id, run]) => {- const runData = runsData?.find((r) => r.id === id);+ const runData = runsData?.find(+ (+ r: RouterOutputs["datasets"]["baseRunDataByDatasetId"][number],+ ) => r.id === id,+ );return (<divkey={id}diff --git a/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx b/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsxindex 2fed1e76cd..e7787a77a2 100644--- a/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx+++ b/web/src/components/table/table-view-presets/components/data-table-view-presets-drawer.tsx@@ -470,7 +470,7 @@ export function TableViewPresetsDrawer({<div className="flex w-full justify-end"><Buttontype="submit"- loading={updateNameMutation.isLoading}+ loading={updateNameMutation.isPending}disabled={!!form.formState.errors.name}@@ -493,7 +493,7 @@ export function TableViewPresetsDrawer({await handleDeleteView(view.id);}}isDeleteMutationLoading={- deleteMutation.isLoading+ deleteMutation.isPending}invalidateFunc={() => {utils.TableViewPresets.invalidate();@@ -614,13 +614,13 @@ export function TableViewPresetsDrawer({<Buttontype="submit"disabled={- createMutation.isLoading ||+ createMutation.isPending ||!!form.formState.errors.name ||!hasWriteAccess}>{!hasWriteAccess && <Lock className="mr-2 h-4 w-4" />}- {createMutation.isLoading ? "Saving..." : "Save View"}+ {createMutation.isPending ? "Saving..." : "Save View"}</Button></DialogFooter></form>diff --git a/web/src/components/table/table-view-presets/hooks/useTableViewManager.ts b/web/src/components/table/table-view-presets/hooks/useTableViewManager.tsindex 8c7ed782c9..54b39b2174 100644--- a/web/src/components/table/table-view-presets/hooks/useTableViewManager.ts+++ b/web/src/components/table/table-view-presets/hooks/useTableViewManager.ts@@ -65,10 +65,13 @@ export function useTableViewManager({);// Keep track of the viewId in session storage and in the query params- const handleSetViewId = (viewId: string | null) => {- setStoredViewId(viewId);- setSelectedViewId(viewId);- };+ const handleSetViewId = useCallback(+ (viewId: string | null) => {+ setStoredViewId(viewId);+ setSelectedViewId(viewId);+ },+ [setStoredViewId, setSelectedViewId],+ );// Extract updater functionsconst {@@ -97,31 +100,14 @@ export function useTableViewManager({}, [storedViewId, setStoredViewId, setSelectedViewId]);// Fetch view data if viewId is provided- const { isLoading: isViewLoading } = api.TableViewPresets.getById.useQuery(+ const {+ data: viewData,+ isLoading: isViewLoading,+ error: viewError,+ } = api.TableViewPresets.getById.useQuery({ viewId: viewId as string, projectId },{enabled: !!viewId && !isInitialized,- onSuccess: (data) => {- if (data) {- // Track permalink visit- capture("saved_views:permalink_visit", {- tableName,- viewId: viewId as string,- name: data.name,- });-- // Apply view state- applyViewState(data);- }- setIsInitialized(true);- setIsLoading(false);- },- onError: (error) => {- setIsInitialized(true);- setIsLoading(false);- handleSetViewId(null);- showErrorToast("Error applying view", error.message, "WARNING");- },},);@@ -188,6 +174,41 @@ export function useTableViewManager({],);+ // Handle successful view data fetch+ useEffect(() => {+ if (viewData && !isInitialized) {+ // Track permalink visit+ capture("saved_views:permalink_visit", {+ tableName,+ viewId: viewId as string,+ name: viewData.name,+ });++ // Apply view state+ applyViewState(viewData);+ setIsInitialized(true);+ setIsLoading(false);+ }+ }, [+ viewData,+ isInitialized,+ capture,+ tableName,+ viewId,+ applyViewState,+ setIsLoading,+ ]);++ // Handle view data fetch error+ useEffect(() => {+ if (viewError && !isInitialized) {+ setIsInitialized(true);+ setIsLoading(false);+ handleSetViewId(null);+ showErrorToast("Error applying view", viewError.message, "WARNING");+ }+ }, [viewError, isInitialized, setIsLoading, handleSetViewId]);+// Initialize on mount if no viewIduseEffect(() => {if (!isInitialized && !isViewLoading && !viewId) {diff --git a/web/src/components/table/use-cases/models.tsx b/web/src/components/table/use-cases/models.tsxindex 6e4d6c7f38..fc87b47e20 100644--- a/web/src/components/table/use-cases/models.tsx+++ b/web/src/components/table/use-cases/models.tsx@@ -2,6 +2,7 @@ import { DataTable } from "@/src/components/table/data-table";import { type LangfuseColumnDef } from "@/src/components/table/types";import useColumnVisibility from "@/src/features/column-visibility/hooks/useColumnVisibility";import { api } from "@/src/utils/api";+import { safeExtract } from "@/src/utils/map-utils";import { type Prisma } from "@langfuse/shared/src/db";import { useQueryParams, withDefault, NumberParam } from "use-query-params";import { IOTableCell } from "../../ui/IOTableCell";@@ -298,7 +299,7 @@ export default function ModelTable({ projectId }: { projectId: string }) {tableName={"models"}columns={columns}data={- models.isLoading+ models.isPending? { isLoading: true, isError: false }: models.isError? {@@ -309,7 +310,9 @@ export default function ModelTable({ projectId }: { projectId: string }) {: {isLoading: false,isError: false,- data: models.data.models.map((t) => convertToTableRow(t)),+ data: safeExtract(models.data, "models", []).map((t) =>+ convertToTableRow(t),+ ),}}pagination={{diff --git a/web/src/components/table/use-cases/observations.tsx b/web/src/components/table/use-cases/observations.tsxindex 694c090dd9..f565b7c347 100644--- a/web/src/components/table/use-cases/observations.tsx+++ b/web/src/components/table/use-cases/observations.tsx@@ -795,7 +795,7 @@ export default function ObservationsTable({enableHiding: true,defaultHidden: true,cell: () => {- return generations.isLoading ? (+ return generations.isPending ? (<Skeleton className="h-3 w-1/2" />) : null;},@@ -885,7 +885,7 @@ export default function ObservationsTable({enableHiding: true,defaultHidden: true,cell: () => {- return generations.isLoading ? (+ return generations.isPending ? (<Skeleton className="h-3 w-1/2" />) : null;},@@ -1101,7 +1101,7 @@ export default function ObservationsTable({columns={columns}peekView={peekConfig}data={- generations.isLoading || isViewLoading+ generations.isPending || isViewLoading? { isLoading: true, isError: false }: generations.error? {@@ -1173,7 +1173,7 @@ const GenerationsDynamicCell = ({return (<MemoizedIOTableCell- isLoading={observation.isLoading}+ isLoading={observation.isPending}data={data}className={cn(col === "output" && "bg-accent-light-green")}singleLine={singleLine}diff --git a/web/src/components/table/use-cases/score-configs.tsx b/web/src/components/table/use-cases/score-configs.tsxindex b8630bd5fa..60a2618a32 100644--- a/web/src/components/table/use-cases/score-configs.tsx+++ b/web/src/components/table/use-cases/score-configs.tsx@@ -205,7 +205,7 @@ export function ScoreConfigsTable({ projectId }: { projectId: string }) {<Buttontype="button"variant={isArchived ? "default" : "destructive"}- loading={configMutation.isLoading}+ loading={configMutation.isPending}onClick={() => {void configMutation.mutateAsync({projectId,@@ -257,7 +257,7 @@ export function ScoreConfigsTable({ projectId }: { projectId: string }) {tableName={"scoreConfigs"}columns={columns}data={- configs.isLoading+ configs.isPending? { isLoading: true, isError: false }: configs.isError? {diff --git a/web/src/components/table/use-cases/scores.tsx b/web/src/components/table/use-cases/scores.tsxindex fa99ed85bb..27deb271fd 100644--- a/web/src/components/table/use-cases/scores.tsx+++ b/web/src/components/table/use-cases/scores.tsx@@ -681,7 +681,7 @@ export default function ScoresTable({tableName={"scores"}columns={columns}data={- scores.isLoading || isViewLoading+ scores.isPending || isViewLoading? { isLoading: true, isError: false }: scores.isError? {@@ -737,7 +737,7 @@ const ScoresMetadataCell = ({);return (<IOTableCell- isLoading={score.isLoading}+ isLoading={score.isPending}data={score.data?.metadata}singleLine={singleLine}/>diff --git a/web/src/components/table/use-cases/sessions.tsx b/web/src/components/table/use-cases/sessions.tsxindex 24b46a075a..09deb5e782 100644--- a/web/src/components/table/use-cases/sessions.tsx+++ b/web/src/components/table/use-cases/sessions.tsx@@ -677,7 +677,7 @@ export default function SessionsTable({tableName={"sessions"}columns={columns}data={- sessions.isLoading || isViewLoading+ sessions.isPending || isViewLoading? { isLoading: true, isError: false }: sessions.isError? {diff --git a/web/src/components/table/use-cases/traces.tsx b/web/src/components/table/use-cases/traces.tsxindex 93e011d6f6..f2bbbbb8cd 100644--- a/web/src/components/table/use-cases/traces.tsx+++ b/web/src/components/table/use-cases/traces.tsx@@ -413,7 +413,7 @@ export default function TracesTable({setSelectedRows({});};- const displayCount = totalCountQuery.isLoading ? (+ const displayCount = totalCountQuery.isPending ? (<span className="inline-block font-mono">...</span>) : selectAll ? (compactNumberFormatter(totalCountQuery.data?.totalCount)@@ -853,7 +853,7 @@ export default function TracesTable({enableHiding: true,defaultHidden: true,cell: () => {- return traceMetrics.isLoading ? (+ return traceMetrics.isPending ? (<Skeleton className="h-3 w-1/2" />) : null;},@@ -911,7 +911,7 @@ export default function TracesTable({enableHiding: true,defaultHidden: true,cell: () => {- return traceMetrics.isLoading ? (+ return traceMetrics.isPending ? (<Skeleton className="h-3 w-1/2" />) : null;},@@ -1181,7 +1181,7 @@ export default function TracesTable({columns={columns}hidePagination={hideControls}data={- traces.isLoading || isViewLoading+ traces.isPending || isViewLoading? { isLoading: true, isError: false }: traces.isError? {@@ -1251,7 +1251,7 @@ const TracesDynamicCell = ({return (<MemoizedIOTableCell- isLoading={trace.isLoading}+ isLoading={trace.isPending}data={data}className={cn(col === "output" && "bg-accent-light-green")}singleLine={singleLine}diff --git a/web/src/components/trace/TraceTimelineView.tsx b/web/src/components/trace/TraceTimelineView.tsxindex c4c8f98380..ab728fa958 100644--- a/web/src/components/trace/TraceTimelineView.tsx+++ b/web/src/components/trace/TraceTimelineView.tsx@@ -33,6 +33,7 @@ import { CommentCountIcon } from "@/src/features/comments/CommentCountIcon";import { GroupedScoreBadges } from "@/src/components/grouped-score-badge";import { formatIntervalSeconds } from "@/src/utils/dates";import { usdFormatter } from "@/src/utils/numbers";+import { getNumberFromMap, castToNumberMap } from "@/src/utils/map-utils";// Fixed widths for styling for v1const SCALE_WIDTH = 900;@@ -662,7 +663,10 @@ export function TraceTimelineView({showComments={showComments}colorCodeMetrics={colorCodeMetrics}scores={traceScores}- commentCount={traceCommentCounts.data?.get(id)}+ commentCount={getNumberFromMap(+ traceCommentCounts.data,+ id,+ )}totalCost={totalCost}/>}@@ -679,7 +683,9 @@ export function TraceTimelineView({scores={scores}observations={observations}cardWidth={cardWidth}- commentCounts={observationCommentCounts.data}+ commentCounts={castToNumberMap(+ observationCommentCounts.data,+ )}currentObservationId={currentObservationId}setCurrentObservationId={setCurrentObservationId}showMetrics={showMetrics}diff --git a/web/src/components/trace/index.tsx b/web/src/components/trace/index.tsxindex 35bdd581b4..fa6990f7ae 100644--- a/web/src/components/trace/index.tsx+++ b/web/src/components/trace/index.tsx@@ -9,6 +9,7 @@ import {} from "use-query-params";import { type ObservationReturnTypeWithMetadata } from "@/src/server/api/routers/traces";import { api } from "@/src/utils/api";+import { castToNumberMap } from "@/src/utils/map-utils";import useLocalStorage from "@/src/components/useLocalStorage";import {Settings2,@@ -645,7 +646,7 @@ export function Trace(props: {trace={props.trace}observations={props.observations}scores={props.scores}- commentCounts={traceCommentCounts.data}+ commentCounts={castToNumberMap(traceCommentCounts.data)}viewType={viewType}/>) : isValidObservationId ? (@@ -655,7 +656,7 @@ export function Trace(props: {projectId={props.projectId}currentObservationId={currentObservationId}traceId={props.trace.id}- commentCounts={observationCommentCounts.data}+ commentCounts={castToNumberMap(observationCommentCounts.data)}viewType={viewType}isTimeline={props.selectedTab?.includes("timeline")}/>diff --git a/web/src/ee/features/audit-log-viewer/AuditLogsTable.tsx b/web/src/ee/features/audit-log-viewer/AuditLogsTable.tsxindex 5e081a8223..7e8c48df97 100644--- a/web/src/ee/features/audit-log-viewer/AuditLogsTable.tsx+++ b/web/src/ee/features/audit-log-viewer/AuditLogsTable.tsx@@ -1,6 +1,7 @@import { DataTable } from "@/src/components/table/data-table";import { type LangfuseColumnDef } from "@/src/components/table/types";import { api } from "@/src/utils/api";+import { safeExtract } from "@/src/utils/map-utils";import { useQueryParams, withDefault, NumberParam } from "use-query-params";import { IOTableCell } from "@/src/components/ui/IOTableCell";import {@@ -141,7 +142,7 @@ export function AuditLogsTable(props: { projectId: string }) {tableName={"auditLogs"}columns={columns}data={- auditLogs.isLoading+ auditLogs.isPending? { isLoading: true, isError: false }: auditLogs.isError? {@@ -152,7 +153,7 @@ export function AuditLogsTable(props: { projectId: string }) {: {isLoading: false,isError: false,- data: auditLogs.data.data,+ data: safeExtract(auditLogs.data, "data", []),}}pagination={{diff --git a/web/src/ee/features/billing/components/UsageAlerts.tsx b/web/src/ee/features/billing/components/UsageAlerts.tsxindex 1b400fc951..8b2397e1f3 100644--- a/web/src/ee/features/billing/components/UsageAlerts.tsx+++ b/web/src/ee/features/billing/components/UsageAlerts.tsx@@ -309,8 +309,8 @@ export function UsageAlerts({ orgId }: { orgId: string }) {)}<div className="flex justify-end">- <Button type="submit" disabled={upsertUsageAlerts.isLoading}>- {upsertUsageAlerts.isLoading ? "Saving..." : "Save Changes"}+ <Button type="submit" disabled={upsertUsageAlerts.isPending}>+ {upsertUsageAlerts.isPending ? "Saving..." : "Save Changes"}</Button></div></form>diff --git a/web/src/ee/features/billing/components/UsageTracker.tsx b/web/src/ee/features/billing/components/UsageTracker.tsxindex 96d11fbfe4..00215d139c 100644--- a/web/src/ee/features/billing/components/UsageTracker.tsx+++ b/web/src/ee/features/billing/components/UsageTracker.tsx@@ -39,7 +39,7 @@ export const UsageTracker = () => {);if (- usageQuery.isLoading ||+ usageQuery.isPending ||!usageQuery.data ||!hasEntitlement ||plan !== "cloud:hobby"diff --git a/web/src/features/annotation-queues/components/AnnotationQueueItemPage.tsx b/web/src/features/annotation-queues/components/AnnotationQueueItemPage.tsxindex c54a7eab6e..993a2e53f4 100644--- a/web/src/features/annotation-queues/components/AnnotationQueueItemPage.tsx+++ b/web/src/features/annotation-queues/components/AnnotationQueueItemPage.tsx@@ -144,9 +144,9 @@ export const AnnotationQueueItemPage: React.FC<{}, [relevantItem]);if (- (seenItemData.isLoading && itemId) ||- (fetchAndLockNextMutation.isLoading && !itemId) ||- unseenPendingItemCount.isLoading ||+ (seenItemData.isPending && itemId) ||+ (fetchAndLockNextMutation.isPending && !itemId) ||+ unseenPendingItemCount.isPending ||objectData.isLoading) {return <Skeleton className="h-full w-full" />;@@ -279,7 +279,7 @@ export const AnnotationQueueItemPage: React.FC<{onClick={handleComplete}size="lg"className="w-full"- disabled={completeMutation.isLoading || !hasAccess}+ disabled={completeMutation.isPending || !hasAccess}>{isSingleItem || progressIndex + 1 === totalItems? "Complete"diff --git a/web/src/features/annotation-queues/components/AnnotationQueueItemsTable.tsx b/web/src/features/annotation-queues/components/AnnotationQueueItemsTable.tsxindex bc0b3c4efe..71385ac327 100644--- a/web/src/features/annotation-queues/components/AnnotationQueueItemsTable.tsx+++ b/web/src/features/annotation-queues/components/AnnotationQueueItemsTable.tsx@@ -2,6 +2,7 @@ import { DataTable } from "@/src/components/table/data-table";import TableLink from "@/src/components/table/table-link";import { type LangfuseColumnDef } from "@/src/components/table/types";import { api } from "@/src/utils/api";+import { safeExtract } from "@/src/utils/map-utils";import { useQueryParams, withDefault, NumberParam } from "use-query-params";import { DataTableToolbar } from "@/src/components/table/data-table-toolbar";import useColumnVisibility from "@/src/features/column-visibility/hooks/useColumnVisibility";@@ -101,8 +102,8 @@ const QueueItemTableMultiSelectAction = ({<Buttontype="button"variant="destructive"- loading={mutDeleteItems.isLoading}- disabled={mutDeleteItems.isLoading}+ loading={mutDeleteItems.isPending}+ disabled={mutDeleteItems.isPending}onClick={() => {void mutDeleteItems.mutateAsync({@@ -443,7 +444,7 @@ export function AnnotationQueueItemsTable({: {isLoading: false,isError: false,- data: items.data.queueItems.map((item) =>+ data: safeExtract(items.data, "queueItems", []).map((item) =>convertToTableRow(item),),}diff --git a/web/src/features/annotation-queues/components/AnnotationQueuesTable.tsx b/web/src/features/annotation-queues/components/AnnotationQueuesTable.tsxindex 738c471ec2..bfbeb8ec4a 100644--- a/web/src/features/annotation-queues/components/AnnotationQueuesTable.tsx+++ b/web/src/features/annotation-queues/components/AnnotationQueuesTable.tsx@@ -1,6 +1,7 @@import { DataTable } from "@/src/components/table/data-table";import { type LangfuseColumnDef } from "@/src/components/table/types";import { api } from "@/src/utils/api";+import { safeExtract } from "@/src/utils/map-utils";import { useQueryParams, withDefault, NumberParam } from "use-query-params";import { type RouterOutput } from "@/src/utils/types";import useColumnVisibility from "@/src/features/column-visibility/hooks/useColumnVisibility";@@ -254,7 +255,9 @@ export function AnnotationQueuesTable({ projectId }: { projectId: string }) {: {isLoading: false,isError: false,- data: queues.data.queues.map((t) => convertToTableRow(t)),+ data: safeExtract(queues.data, "queues", []).map((t) =>+ convertToTableRow(t),+ ),}}pagination={{diff --git a/web/src/features/annotation-queues/components/CreateOrEditAnnotationQueueButton.tsx b/web/src/features/annotation-queues/components/CreateOrEditAnnotationQueueButton.tsxindex e8c2ac4d19..d3ad6a9e91 100644--- a/web/src/features/annotation-queues/components/CreateOrEditAnnotationQueueButton.tsx+++ b/web/src/features/annotation-queues/components/CreateOrEditAnnotationQueueButton.tsx@@ -405,14 +405,14 @@ export const CreateOrEditAnnotationQueueButton = ({className="text-xs"disabled={!!form.formState.errors.name ||- createQueueMutation.isLoading ||- editQueueMutation.isLoading ||- createQueueAssignmentsMutation.isLoading+ createQueueMutation.isPending ||+ editQueueMutation.isPending ||+ createQueueAssignmentsMutation.isPending}>- {createQueueMutation.isLoading ||- editQueueMutation.isLoading ||- createQueueAssignmentsMutation.isLoading+ {createQueueMutation.isPending ||+ editQueueMutation.isPending ||+ createQueueAssignmentsMutation.isPending? "Processing...": `${queueId ? "Save" : "Create"} queue`}</Button>diff --git a/web/src/features/annotation-queues/components/DeleteAnnotationQueueButton.tsx b/web/src/features/annotation-queues/components/DeleteAnnotationQueueButton.tsxindex de3e3972d1..f96a779a51 100644--- a/web/src/features/annotation-queues/components/DeleteAnnotationQueueButton.tsx+++ b/web/src/features/annotation-queues/components/DeleteAnnotationQueueButton.tsx@@ -51,7 +51,7 @@ export const DeleteAnnotationQueueButton = ({<Dialogopen={isOpen}onOpenChange={(open) => {- if (!mutDelete.isLoading) {+ if (!mutDelete.isPending) {setIsOpen(open);}}}@@ -69,8 +69,8 @@ export const DeleteAnnotationQueueButton = ({<DialogFooter><Buttonvariant="destructive"- loading={mutDelete.isLoading}- disabled={mutDelete.isLoading}+ loading={mutDelete.isPending}+ disabled={mutDelete.isPending}onClick={async (event) => {event.preventDefault();await mutDelete.mutateAsync({diff --git a/web/src/features/annotation-queues/components/UserAssignmentSection.tsx b/web/src/features/annotation-queues/components/UserAssignmentSection.tsxindex cf490d8c48..6339ed721c 100644--- a/web/src/features/annotation-queues/components/UserAssignmentSection.tsx+++ b/web/src/features/annotation-queues/components/UserAssignmentSection.tsx@@ -162,7 +162,7 @@ export const UserAssignmentSection = ({size="icon-sm"disabled={!hasQueueAssignmentWriteAccess ||- deleteQueueAssignmentMutation.isLoading+ deleteQueueAssignmentMutation.isPending}onClick={() => handleUserRemove(user.id)}>diff --git a/web/src/features/auth-credentials/components/ResetPasswordPage.tsx b/web/src/features/auth-credentials/components/ResetPasswordPage.tsxindex 531237ec2c..bf14d079d3 100644--- a/web/src/features/auth-credentials/components/ResetPasswordPage.tsx+++ b/web/src/features/auth-credentials/components/ResetPasswordPage.tsx@@ -198,8 +198,8 @@ export function ResetPasswordPage({<Buttontype="submit"className="w-full"- disabled={mutResetPassword.isLoading}- loading={mutResetPassword.isLoading}+ disabled={mutResetPassword.isPending}+ loading={mutResetPassword.isPending}variant={showResetPasswordEmailButton ? "secondary" : "default"}diff --git a/web/src/features/automations/components/DeleteAutomationButton.tsx b/web/src/features/automations/components/DeleteAutomationButton.tsxindex 3ca492eb6a..f065dcaba7 100644--- a/web/src/features/automations/components/DeleteAutomationButton.tsx+++ b/web/src/features/automations/components/DeleteAutomationButton.tsx@@ -81,7 +81,7 @@ export const DeleteAutomationButton: React.FC<DeleteAutomationButtonProps> = ({<Buttontype="button"variant="destructive"- loading={deleteAutomationMutation.isLoading}+ loading={deleteAutomationMutation.isPending}onClick={() => {void deleteAutomationMutation.mutateAsync({projectId,diff --git a/web/src/features/automations/components/actions/WebhookActionForm.tsx b/web/src/features/automations/components/actions/WebhookActionForm.tsxindex aeafb28608..6e659d7183 100644--- a/web/src/features/automations/components/actions/WebhookActionForm.tsx+++ b/web/src/features/automations/components/actions/WebhookActionForm.tsx@@ -398,10 +398,10 @@ export const RegenerateWebhookSecretButton = ({type="button"variant="outline"size="default"- disabled={regenerateSecretMutation.isLoading}+ disabled={regenerateSecretMutation.isPending}><RefreshCw- className={`mr-2 h-4 w-4 ${regenerateSecretMutation.isLoading ? "animate-spin" : ""}`}+ className={`mr-2 h-4 w-4 ${regenerateSecretMutation.isPending ? "animate-spin" : ""}`}/>Regenerate</Button>@@ -418,14 +418,14 @@ export const RegenerateWebhookSecretButton = ({type="button"variant="outline"onClick={() => setShowConfirmPopover(false)}- disabled={regenerateSecretMutation.isLoading}+ disabled={regenerateSecretMutation.isPending}>Cancel</Button><Buttontype="button"variant="destructive"- loading={regenerateSecretMutation.isLoading}+ loading={regenerateSecretMutation.isPending}onClick={handleRegenerateSecret}>Regenerate Secretdiff --git a/web/src/features/background-migrations/components/background-migrations.tsx b/web/src/features/background-migrations/components/background-migrations.tsxindex 6e6f21f32c..8e114929d3 100644--- a/web/src/features/background-migrations/components/background-migrations.tsx+++ b/web/src/features/background-migrations/components/background-migrations.tsx@@ -90,7 +90,7 @@ export default function BackgroundMigrationsTable() {tableName={"backgroundMigrations"}columns={columns}data={- backgroundMigrations.isLoading+ backgroundMigrations.isPending? { isLoading: true, isError: false }: backgroundMigrations.isError? {@@ -101,7 +101,7 @@ export default function BackgroundMigrationsTable() {: {isLoading: false,isError: false,- data: backgroundMigrations.data.migrations,+ data: backgroundMigrations.data?.migrations ?? [],}}/>diff --git a/web/src/features/background-migrations/components/retry-background-migration.tsx b/web/src/features/background-migrations/components/retry-background-migration.tsxindex f33ca27693..8975d8b83e 100644--- a/web/src/features/background-migrations/components/retry-background-migration.tsx+++ b/web/src/features/background-migrations/components/retry-background-migration.tsx@@ -42,7 +42,7 @@ export function RetryBackgroundMigration({<Buttontype="button"variant="default"- loading={mutRetryBackgroundMigration.isLoading}+ loading={mutRetryBackgroundMigration.isPending}onClick={() => {void mutRetryBackgroundMigration.mutateAsync({name: backgroundMigrationName,diff --git a/web/src/features/batch-exports/components/BatchExportsTable.tsx b/web/src/features/batch-exports/components/BatchExportsTable.tsxindex 05ca3a79fa..7f4153cea6 100644--- a/web/src/features/batch-exports/components/BatchExportsTable.tsx+++ b/web/src/features/batch-exports/components/BatchExportsTable.tsx@@ -1,6 +1,7 @@import { DataTable } from "@/src/components/table/data-table";import { type LangfuseColumnDef } from "@/src/components/table/types";import { api } from "@/src/utils/api";+import { safeExtract } from "@/src/utils/map-utils";import { type BatchExport } from "@langfuse/shared";import { StatusBadge } from "@/src/components/layouts/status-badge";import { NumberParam, useQueryParams, withDefault } from "use-query-params";@@ -137,7 +138,7 @@ export function BatchExportsTable(props: { projectId: string }) {tableName={"batchExports"}columns={columns}data={- batchExports.isLoading+ batchExports.isPending? { isLoading: true, isError: false }: batchExports.isError? {@@ -148,7 +149,7 @@ export function BatchExportsTable(props: { projectId: string }) {: {isLoading: false,isError: false,- data: batchExports.data.exports,+ data: safeExtract(batchExports.data, "exports", []),}}pagination={{diff --git a/web/src/features/comments/CommentList.tsx b/web/src/features/comments/CommentList.tsxindex 7583d504ad..8a5087f2c6 100644--- a/web/src/features/comments/CommentList.tsx+++ b/web/src/features/comments/CommentList.tsx@@ -176,7 +176,7 @@ export function CommentList({}};- if (comments.isLoading)+ if (comments.isPending)return (<divclassName={cn(@@ -243,7 +243,7 @@ export function CommentList({size="icon-xs"variant="ghost"title="Delete comment"- loading={deleteCommentMutation.isLoading}+ loading={deleteCommentMutation.isPending}className="-mr-1"onClick={() => {if (@@ -327,7 +327,7 @@ export function CommentList({size="icon-xs"variant="outline"title="Submit comment"- loading={createCommentMutation.isLoading}+ loading={createCommentMutation.isPending}onClick={() => {form.handleSubmit(onSubmit)();}}diff --git a/web/src/features/dashboard/components/ChartScores.tsx b/web/src/features/dashboard/components/ChartScores.tsxindex f1cdd093ee..772ec6f20b 100644--- a/web/src/features/dashboard/components/ChartScores.tsx+++ b/web/src/features/dashboard/components/ChartScores.tsx@@ -87,7 +87,7 @@ export function ChartScores(props: {className={props.className}title="Scores"description="Moving average per score"- isLoading={props.isLoading || scores.isLoading}+ isLoading={props.isLoading || scores.isPending}>{!isEmptyTimeSeries({ data: extractedScores }) ? (<BaseTimeSeriesChart@@ -97,7 +97,7 @@ export function ChartScores(props: {/>) : (<NoDataOrLoading- isLoading={props.isLoading || scores.isLoading}+ isLoading={props.isLoading || scores.isPending}description="Scores evaluate LLM quality and can be created manually or using the SDK."href="https://langfuse.com/docs/evaluation/overview"className="h-full"diff --git a/web/src/features/dashboard/components/DashboardTable.tsx b/web/src/features/dashboard/components/DashboardTable.tsxindex a99835df17..24198eaf7e 100644--- a/web/src/features/dashboard/components/DashboardTable.tsx+++ b/web/src/features/dashboard/components/DashboardTable.tsx@@ -3,6 +3,7 @@ import useProjectIdFromURL from "@/src/hooks/useProjectIdFromURL";import { useOrderByState } from "@/src/features/orderBy/hooks/useOrderByState";import { NumberParam, useQueryParams, withDefault } from "use-query-params";import { api } from "@/src/utils/api";+import { safeExtract } from "@/src/utils/map-utils";import { DataTable } from "@/src/components/table/data-table";import { type LangfuseColumnDef } from "@/src/components/table/types";import { createColumnHelper } from "@tanstack/react-table";@@ -285,7 +286,7 @@ export function DashboardTable() {tableName={"dashboards"}columns={dashboardColumns}data={- dashboards.isLoading+ dashboards.isPending? { isLoading: true, isError: false }: dashboards.isError? {@@ -296,7 +297,7 @@ export function DashboardTable() {: {isLoading: false,isError: false,- data: dashboards.data.dashboards,+ data: safeExtract(dashboards.data, "dashboards", []),}}orderBy={orderByState}diff --git a/web/src/features/dashboard/components/EditDashboardDialog.tsx b/web/src/features/dashboard/components/EditDashboardDialog.tsxindex 11210a8aa3..4b7f1d4fa7 100644--- a/web/src/features/dashboard/components/EditDashboardDialog.tsx+++ b/web/src/features/dashboard/components/EditDashboardDialog.tsx@@ -105,7 +105,7 @@ export function EditDashboardDialog({<ButtononClick={handleSave}type="button"- loading={updateDashboard.isLoading}+ loading={updateDashboard.isPending}>Save Changes</Button>diff --git a/web/src/features/dashboard/components/LatencyChart.tsx b/web/src/features/dashboard/components/LatencyChart.tsxindex fe731f1fdc..d544812296 100644--- a/web/src/features/dashboard/components/LatencyChart.tsx+++ b/web/src/features/dashboard/components/LatencyChart.tsx@@ -150,7 +150,7 @@ export const GenerationLatencyChart = ({title="Model latencies"description="Latencies (seconds) per LLM generation"isLoading={- isLoading || (latencies.isLoading && selectedModels.length > 0)+ isLoading || (latencies.isPending && selectedModels.length > 0)}headerRight={<div className="flex items-center justify-end">@@ -180,7 +180,7 @@ export const GenerationLatencyChart = ({/>) : (<NoDataOrLoading- isLoading={isLoading || latencies.isLoading}+ isLoading={isLoading || latencies.isPending}/>)}</>diff --git a/web/src/features/dashboard/components/LatencyTables.tsx b/web/src/features/dashboard/components/LatencyTables.tsxindex 8d5e7fdb49..6523ab0a4a 100644--- a/web/src/features/dashboard/components/LatencyTables.tsx+++ b/web/src/features/dashboard/components/LatencyTables.tsx@@ -174,7 +174,7 @@ export const LatencyTables = ({<DashboardCardclassName="col-span-1 xl:col-span-2"title="Trace latency percentiles"- isLoading={isLoading || tracesLatencies.isLoading}+ isLoading={isLoading || tracesLatencies.isPending}><DashboardTableheaders={[@@ -187,14 +187,14 @@ export const LatencyTables = ({<RightAlignedCell key="p99">p99</RightAlignedCell>,]}rows={generateLatencyData(tracesLatencies.data)}- isLoading={isLoading || tracesLatencies.isLoading}+ isLoading={isLoading || tracesLatencies.isPending}collapse={{ collapsed: 5, expanded: 20 }}/></DashboardCard><DashboardCardclassName="col-span-1 xl:col-span-2"title="Generation latency percentiles"- isLoading={isLoading || generationsLatencies.isLoading}+ isLoading={isLoading || generationsLatencies.isPending}><DashboardTableheaders={[@@ -207,14 +207,14 @@ export const LatencyTables = ({<RightAlignedCell key="p99">p99</RightAlignedCell>,]}rows={generateLatencyData(generationsLatencies.data)}- isLoading={isLoading || generationsLatencies.isLoading}+ isLoading={isLoading || generationsLatencies.isPending}collapse={{ collapsed: 5, expanded: 20 }}/></DashboardCard><DashboardCardclassName="col-span-1 xl:col-span-2"title="Span latency percentiles"- isLoading={isLoading || spansLatencies.isLoading}+ isLoading={isLoading || spansLatencies.isPending}><DashboardTableheaders={[@@ -227,7 +227,7 @@ export const LatencyTables = ({<RightAlignedCell key="p99">p99</RightAlignedCell>,]}rows={generateLatencyData(spansLatencies.data)}- isLoading={isLoading || spansLatencies.isLoading}+ isLoading={isLoading || spansLatencies.isPending}collapse={{ collapsed: 5, expanded: 20 }}/></DashboardCard>diff --git a/web/src/features/dashboard/components/ModelUsageChart.tsx b/web/src/features/dashboard/components/ModelUsageChart.tsxindex 6faf11082c..468623c31e 100644--- a/web/src/features/dashboard/components/ModelUsageChart.tsx+++ b/web/src/features/dashboard/components/ModelUsageChart.tsx@@ -320,7 +320,7 @@ export const ModelUsageChart = ({className={className}title="Model Usage"isLoading={- isLoading || (queryResult.isLoading && selectedModels.length > 0)+ isLoading || (queryResult.isPending && selectedModels.length > 0)}headerRight={<div className="flex items-center justify-end">@@ -348,9 +348,9 @@ export const ModelUsageChart = ({/>{isEmptyTimeSeries({ data: item.data }) ||isLoading ||- queryResult.isLoading ? (+ queryResult.isPending ? (<NoDataOrLoading- isLoading={isLoading || queryResult.isLoading}+ isLoading={isLoading || queryResult.isPending}/>) : (<BaseTimeSeriesChartdiff --git a/web/src/features/dashboard/components/ScoresTable.tsx b/web/src/features/dashboard/components/ScoresTable.tsxindex 949e84c724..b96b82b413 100644--- a/web/src/features/dashboard/components/ScoresTable.tsx+++ b/web/src/features/dashboard/components/ScoresTable.tsx@@ -186,9 +186,9 @@ export const ScoresTable = ({title="Scores"isLoading={isLoading ||- metrics.isLoading ||- zeroValueScores.isLoading ||- oneValueScores.isLoading+ metrics.isPending ||+ zeroValueScores.isPending ||+ oneValueScores.isPending}><DashboardTable@@ -225,9 +225,9 @@ export const ScoresTable = ({collapse={{ collapsed: 5, expanded: 20 }}isLoading={isLoading ||- metrics.isLoading ||- zeroValueScores.isLoading ||- oneValueScores.isLoading+ metrics.isPending ||+ zeroValueScores.isPending ||+ oneValueScores.isPending}noDataProps={{description:diff --git a/web/src/features/dashboard/components/TracesBarListChart.tsx b/web/src/features/dashboard/components/TracesBarListChart.tsxindex 7464e712b6..b7219b5c09 100644--- a/web/src/features/dashboard/components/TracesBarListChart.tsx+++ b/web/src/features/dashboard/components/TracesBarListChart.tsx@@ -103,7 +103,7 @@ export const TracesBarListChart = ({className={className}title={"Traces"}description={null}- isLoading={isLoading || traces.isLoading || totalTraces.isLoading}+ isLoading={isLoading || traces.isPending || totalTraces.isPending}><><TotalMetric@@ -128,7 +128,7 @@ export const TracesBarListChart = ({</>) : (<NoDataOrLoading- isLoading={isLoading || traces.isLoading || totalTraces.isLoading}+ isLoading={isLoading || traces.isPending || totalTraces.isPending}description="Traces contain details about LLM applications and can be created using the SDK."href="https://langfuse.com/docs/get-started"/>diff --git a/web/src/features/dashboard/components/TracesTimeSeriesChart.tsx b/web/src/features/dashboard/components/TracesTimeSeriesChart.tsxindex 923809c0be..7dfefdbab3 100644--- a/web/src/features/dashboard/components/TracesTimeSeriesChart.tsx+++ b/web/src/features/dashboard/components/TracesTimeSeriesChart.tsx@@ -158,7 +158,7 @@ export const TracesAndObservationsTimeSeriesChart = ({<DashboardCardclassName={className}title="Traces by time"- isLoading={isLoading || traces.isLoading}+ isLoading={isLoading || traces.isPending}cardContentClassName="flex flex-col content-end "><TabComponent@@ -185,7 +185,7 @@ export const TracesAndObservationsTimeSeriesChart = ({/>) : (<NoDataOrLoading- isLoading={isLoading || traces.isLoading}+ isLoading={isLoading || traces.isPending}description="Traces contain details about LLM applications and can be created using the SDK."href="https://langfuse.com/docs/observability/overview"/>diff --git a/web/src/features/dashboard/components/UserChart.tsx b/web/src/features/dashboard/components/UserChart.tsxindex 2f2bf11919..5d5db6f763 100644--- a/web/src/features/dashboard/components/UserChart.tsx+++ b/web/src/features/dashboard/components/UserChart.tsx@@ -161,7 +161,7 @@ export const UserChart = ({<DashboardCardclassName={className}title="User consumption"- isLoading={isLoading || user.isLoading}+ isLoading={isLoading || user.isPending}><TabComponenttabs={data.map((item) => {@@ -185,7 +185,7 @@ export const UserChart = ({</>) : (<NoDataOrLoading- isLoading={isLoading || user.isLoading}+ isLoading={isLoading || user.isPending}description="Consumption per user is tracked by passing their ids on traces."href="https://langfuse.com/docs/observability/features/users"/>diff --git a/web/src/features/dashboard/components/score-analytics/ScoreAnalytics.tsx b/web/src/features/dashboard/components/score-analytics/ScoreAnalytics.tsxindex c18de9ef7b..49481d2a1a 100644--- a/web/src/features/dashboard/components/score-analytics/ScoreAnalytics.tsx+++ b/web/src/features/dashboard/components/score-analytics/ScoreAnalytics.tsx@@ -79,10 +79,10 @@ export function ScoreAnalytics(props: {className={props.className}title="Scores Analytics"description="Aggregate scores and averages over time"- isLoading={props.isLoading || scoreKeysAndProps.isLoading}+ isLoading={props.isLoading || scoreKeysAndProps.isPending}headerClassName={"grid grid-cols-[1fr,auto,auto] items-center"}headerChildren={- !scoreKeysAndProps.isLoading &&+ !scoreKeysAndProps.isPending &&!props.isLoading &&Boolean(scoreKeysAndProps.data?.length) && (<MultiSelectKeyValues@@ -201,7 +201,7 @@ export function ScoreAnalytics(props: {</Text></Flex>) : (- <NoDataOrLoading isLoading={scoreKeysAndProps.isLoading} />+ <NoDataOrLoading isLoading={scoreKeysAndProps.isPending} />)}</DashboardCard>);diff --git a/web/src/features/datasets/components/DatasetAggregateTableCell.tsx b/web/src/features/datasets/components/DatasetAggregateTableCell.tsxindex 809d49450a..656a0e54cf 100644--- a/web/src/features/datasets/components/DatasetAggregateTableCell.tsx+++ b/web/src/features/datasets/components/DatasetAggregateTableCell.tsx@@ -60,7 +60,6 @@ const DatasetAggregateCell = ({refetchOnWindowFocus: false,refetchOnReconnect: false,staleTime: Infinity,- onError: () => {},},);const observation = api.observations.byId.useQuery(@@ -80,7 +79,6 @@ const DatasetAggregateCell = ({refetchOnWindowFocus: false,refetchOnReconnect: false,staleTime: Infinity,- onError: () => {},},);diff --git a/web/src/features/datasets/components/DatasetCompareRunsTable.tsx b/web/src/features/datasets/components/DatasetCompareRunsTable.tsxindex 1a97827ff8..60ee521e2f 100644--- a/web/src/features/datasets/components/DatasetCompareRunsTable.tsx+++ b/web/src/features/datasets/components/DatasetCompareRunsTable.tsx@@ -213,11 +213,28 @@ function DatasetCompareRunsTableInternal(props: {props.localExperiments,unchangedCounts,),- onSuccess: (data) => handleQuerySuccess(runId, data),},),}));+ const runStatusDeps = useMemo(+ () =>+ runs.map((r) => ({+ runId: r.runId,+ isSuccess: r.items.isSuccess,+ dataHash: JSON.stringify(r.items.data),+ })),+ [runs],+ );++ useEffect(() => {+ runs.forEach(({ runId, items }) => {+ if (items.isSuccess && items.data) {+ handleQuerySuccess(runId, items.data);+ }+ });+ }, [runs, runStatusDeps, handleQuerySuccess]);+const combinedData = useMemo(() => {if (!baseDatasetItems.data) return null;@@ -424,7 +441,7 @@ function DatasetCompareRunsTableInternal(props: {columnVisibility={columnVisibility}onColumnVisibilityChange={setColumnVisibility}data={- baseDatasetItems.isLoading+ baseDatasetItems.isPending? { isLoading: true, isError: false }: baseDatasetItems.isError? {diff --git a/web/src/features/datasets/components/DatasetForm.tsx b/web/src/features/datasets/components/DatasetForm.tsxindex e3bfc5f08c..b3bc0f818f 100644--- a/web/src/features/datasets/components/DatasetForm.tsx+++ b/web/src/features/datasets/components/DatasetForm.tsx@@ -274,8 +274,8 @@ export const DatasetForm = (props: DatasetFormProps) => {variant={props.mode === "delete" ? "destructive" : "default"}disabled={!!form.formState.errors.name}loading={- (props.mode === "create" && createMutation.isLoading) ||- (props.mode === "delete" && deleteMutation.isLoading)+ (props.mode === "create" && createMutation.isPending) ||+ (props.mode === "delete" && deleteMutation.isPending)}className="w-full">diff --git a/web/src/features/datasets/components/DatasetItemsTable.tsx b/web/src/features/datasets/components/DatasetItemsTable.tsxindex 28b9bbe089..cebc979d44 100644--- a/web/src/features/datasets/components/DatasetItemsTable.tsx+++ b/web/src/features/datasets/components/DatasetItemsTable.tsx@@ -1,6 +1,7 @@import { DataTable } from "@/src/components/table/data-table";import TableLink from "@/src/components/table/table-link";import { api } from "@/src/utils/api";+import { safeExtract } from "@/src/utils/map-utils";import { type RouterOutput } from "@/src/utils/types";import { useRouter } from "next/router";import {@@ -81,9 +82,10 @@ export function DatasetItemsTable({useEffect(() => {if (items.isSuccess) {+ const { datasetItems = [] } = items.data ?? {};setDetailPageList("datasetItems",- items.data.datasetItems.map((t) => ({ id: t.id })),+ datasetItems.map((t) => ({ id: t.id })),);}// eslint-disable-next-line react-hooks/exhaustive-deps@@ -384,7 +386,7 @@ export function DatasetItemsTable({tableName={"datasetItems"}columns={columns}data={- items.isLoading+ items.isPending? { isLoading: true, isError: false }: items.isError? {@@ -395,7 +397,7 @@ export function DatasetItemsTable({: {isLoading: false,isError: false,- data: items.data.datasetItems.map((t) =>+ data: safeExtract(items.data, "datasetItems", []).map((t) =>convertToTableRow(t),),}diff --git a/web/src/features/datasets/components/DatasetRunItemsTable.tsx b/web/src/features/datasets/components/DatasetRunItemsTable.tsxindex b457099273..69c5d700ba 100644--- a/web/src/features/datasets/components/DatasetRunItemsTable.tsx+++ b/web/src/features/datasets/components/DatasetRunItemsTable.tsx@@ -354,7 +354,6 @@ const TraceObservationIOCell = ({enabled: observationId === undefined,refetchOnMount: false, // prevents refetching loopsstaleTime: 60 * 1000, // 1 minute- onError: () => {},},);const observation = api.observations.byId.useQuery(@@ -367,7 +366,6 @@ const TraceObservationIOCell = ({enabled: observationId !== undefined,refetchOnMount: false, // prevents refetching loopsstaleTime: 60 * 1000, // 1 minute- onError: () => {},},);diff --git a/web/src/features/datasets/components/DatasetRunsTable.tsx b/web/src/features/datasets/components/DatasetRunsTable.tsxindex c455653aa2..53f2fbc9ec 100644--- a/web/src/features/datasets/components/DatasetRunsTable.tsx+++ b/web/src/features/datasets/components/DatasetRunsTable.tsx@@ -138,7 +138,7 @@ const DatasetRunTableMultiSelectAction = ({key="delete-dialog"open={isDeleteDialogOpen}onOpenChange={(isOpen) => {- if (!mutDelete.isLoading) {+ if (!mutDelete.isPending) {setIsDeleteDialogOpen(isOpen);}}}@@ -155,8 +155,8 @@ const DatasetRunTableMultiSelectAction = ({<DialogFooter><Buttonvariant="destructive"- loading={mutDelete.isLoading}- disabled={mutDelete.isLoading}+ loading={mutDelete.isPending}+ disabled={mutDelete.isPending}onClick={async (event) => {event.preventDefault();capture("dataset_run:delete_form_submit");@@ -623,7 +623,7 @@ export function DatasetRunsTable(props: {tableName={"datasetRuns"}columns={columns}data={- runs.isLoading+ runs.isPending? { isLoading: true, isError: false }: runs.isError? {@@ -684,7 +684,7 @@ export function DatasetRunsTable(props: {tableName={"datasetRuns"}columns={columns}data={- runs.isLoading+ runs.isPending? { isLoading: true, isError: false }: runs.isError? {diff --git a/web/src/features/datasets/components/DeleteDatasetRunButton.tsx b/web/src/features/datasets/components/DeleteDatasetRunButton.tsxindex 6324627746..4d06f0ff2f 100644--- a/web/src/features/datasets/components/DeleteDatasetRunButton.tsx+++ b/web/src/features/datasets/components/DeleteDatasetRunButton.tsx@@ -58,7 +58,7 @@ export const DeleteDatasetRunButton = ({<Dialogopen={isDialogOpen}onOpenChange={(isOpen) => {- if (!mutDelete.isLoading) {+ if (!mutDelete.isPending) {setIsDialogOpen(isOpen);}}}@@ -75,8 +75,8 @@ export const DeleteDatasetRunButton = ({<DialogFooter><Buttonvariant="destructive"- loading={mutDelete.isLoading}- disabled={mutDelete.isLoading}+ loading={mutDelete.isPending}+ disabled={mutDelete.isPending}onClick={async (event) => {event.preventDefault();capture("dataset_run:delete_form_submit");diff --git a/web/src/features/datasets/components/DuplicateDatasetButton.tsx b/web/src/features/datasets/components/DuplicateDatasetButton.tsxindex c84fa5341f..f4c1f5b85f 100644--- a/web/src/features/datasets/components/DuplicateDatasetButton.tsx+++ b/web/src/features/datasets/components/DuplicateDatasetButton.tsx@@ -34,7 +34,7 @@ export const DuplicateDatasetButton: React.FC<{onClick={handleDuplicate}variant="ghost"title="Duplicate dataset"- loading={duplicateDataset.isLoading}+ loading={duplicateDataset.isPending}disabled={!hasAccess}><Copy className="mr-2 h-4 w-4" />diff --git a/web/src/features/datasets/components/EditDatasetItem.tsx b/web/src/features/datasets/components/EditDatasetItem.tsxindex 18f3d7c889..8ddfd924f8 100644--- a/web/src/features/datasets/components/EditDatasetItem.tsx+++ b/web/src/features/datasets/components/EditDatasetItem.tsx@@ -140,7 +140,7 @@ export const EditDatasetItem = ({) : null}<Buttontype="submit"- loading={updateDatasetItemMutation.isLoading}+ loading={updateDatasetItemMutation.isPending}disabled={!hasChanges || !hasAccess}variant={hasChanges ? "default" : "ghost"}>diff --git a/web/src/features/datasets/components/NewDatasetItemForm.tsx b/web/src/features/datasets/components/NewDatasetItemForm.tsxindex d4a279401f..b206ca4731 100644--- a/web/src/features/datasets/components/NewDatasetItemForm.tsx+++ b/web/src/features/datasets/components/NewDatasetItemForm.tsx@@ -334,7 +334,7 @@ export const NewDatasetItemForm = (props: {<div className="flex flex-col gap-4"><Buttontype="submit"- loading={createManyDatasetItemsMutation.isLoading}+ loading={createManyDatasetItemsMutation.isPending}className="w-full"disabled={selectedDatasetCount === 0}>diff --git a/web/src/features/evals/components/deactivate-config.tsx b/web/src/features/evals/components/deactivate-config.tsxindex 5ed261f9ec..9ea96a8658 100644--- a/web/src/features/evals/components/deactivate-config.tsx+++ b/web/src/features/evals/components/deactivate-config.tsx@@ -81,7 +81,7 @@ export function DeactivateEvalConfig({variant={evalConfig?.status === "ACTIVE" ? "destructive" : "default"}- loading={mutEvaluator.isLoading}+ loading={mutEvaluator.isPending}onClick={onClick}>{evalConfig?.status === "ACTIVE" ? "Deactivate" : "Activate"}diff --git a/web/src/features/evals/components/eval-log.tsx b/web/src/features/evals/components/eval-log.tsxindex 54a079ba09..74fffac8b8 100644--- a/web/src/features/evals/components/eval-log.tsx+++ b/web/src/features/evals/components/eval-log.tsx@@ -10,6 +10,7 @@ import useColumnVisibility from "@/src/features/column-visibility/hooks/useColumimport { useQueryFilterState } from "@/src/features/filters/hooks/useFilterState";import { evalExecutionsFilterCols } from "@/src/server/api/definitions/evalExecutionsTable";import { type RouterOutputs, api } from "@/src/utils/api";+import { safeExtract } from "@/src/utils/map-utils";import { type Prisma } from "@langfuse/shared";import { createColumnHelper } from "@tanstack/react-table";import { useQueryParams, withDefault, NumberParam } from "use-query-params";@@ -220,7 +221,9 @@ export default function EvalLogTable({: {isLoading: false,isError: false,- data: logs.data.data.map((t) => convertToTableRow(t)),+ data: safeExtract(logs.data, "data", []).map((t) =>+ convertToTableRow(t),+ ),}}pagination={{diff --git a/web/src/features/evals/components/eval-template-detail.tsx b/web/src/features/evals/components/eval-template-detail.tsxindex c3f09a29ad..540e295dcf 100644--- a/web/src/features/evals/components/eval-template-detail.tsx+++ b/web/src/features/evals/components/eval-template-detail.tsx@@ -49,7 +49,7 @@ export const EvalTemplateDetail = () => {},{enabled:- !template.isLoading &&+ !template.isPending &&!template.isError &&template.data?.name !== undefined,},@@ -94,7 +94,7 @@ export const EvalTemplateDetail = () => {? `${template.data.name}-v${template.data.version}`: undefined}- enabled={!template.isLoading}+ enabled={!template.isPending}/> */}</>),diff --git a/web/src/features/evals/components/eval-templates-table.tsx b/web/src/features/evals/components/eval-templates-table.tsxindex 654ed93840..b1d06f9928 100644--- a/web/src/features/evals/components/eval-templates-table.tsx+++ b/web/src/features/evals/components/eval-templates-table.tsx@@ -3,6 +3,7 @@ import { DataTableToolbar } from "@/src/components/table/data-table-toolbar";import { type LangfuseColumnDef } from "@/src/components/table/types";import useColumnVisibility from "@/src/features/column-visibility/hooks/useColumnVisibility";import { type RouterOutputs, api } from "@/src/utils/api";+import { safeExtract } from "@/src/utils/map-utils";import { createColumnHelper } from "@tanstack/react-table";import { Copy, Pen } from "lucide-react";import {@@ -148,9 +149,10 @@ export default function EvalsTemplateTable({useEffect(() => {if (templates.isSuccess) {+ const { templates: templateList = [] } = templates.data ?? {};setDetailPageList("eval-templates",- templates.data.templates.map((template) => ({ id: template.latestId })),+ templateList.map((template) => ({ id: template.latestId })),);}// eslint-disable-next-line react-hooks/exhaustive-deps@@ -355,7 +357,7 @@ export default function EvalsTemplateTable({: {isLoading: false,isError: false,- data: templates.data.templates.map((t) =>+ data: safeExtract(templates.data, "templates", []).map((t) =>convertToTableRow(t),),}diff --git a/web/src/features/evals/components/evaluator-detail.tsx b/web/src/features/evals/components/evaluator-detail.tsxindex 6f22d103e3..9fb7aac68e 100644--- a/web/src/features/evals/components/evaluator-detail.tsx+++ b/web/src/features/evals/components/evaluator-detail.tsx@@ -42,12 +42,12 @@ export const EvaluatorDetail = () => {name: evaluator.data?.evalTemplate?.name ?? "",},{- enabled: !evaluator.isLoading && !evaluator.isError,+ enabled: !evaluator.isPending && !evaluator.isError,},);if (- evaluator.isLoading ||+ evaluator.isPending ||!evaluator.data ||allTemplates.isLoading ||!allTemplates.datadiff --git a/web/src/features/evals/components/evaluator-table.tsx b/web/src/features/evals/components/evaluator-table.tsxindex 5e72a96486..a684b66304 100644--- a/web/src/features/evals/components/evaluator-table.tsx+++ b/web/src/features/evals/components/evaluator-table.tsx@@ -8,6 +8,7 @@ import { InlineFilterState } from "@/src/features/filters/components/filter-builimport { useDetailPageLists } from "@/src/features/navigate-detail-pages/context";import { useQueryFilterState } from "@/src/features/filters/hooks/useFilterState";import { type RouterOutputs, api } from "@/src/utils/api";+import { safeExtract } from "@/src/utils/map-utils";import { type FilterState, singleFilter } from "@langfuse/shared";import { createColumnHelper } from "@tanstack/react-table";import { useEffect, useState } from "react";@@ -123,9 +124,10 @@ export default function EvaluatorTable({ projectId }: { projectId: string }) {useEffect(() => {if (evaluators.isSuccess) {+ const { configs: configList = [] } = evaluators.data ?? {};setDetailPageList("evals",- evaluators.data.configs.map((evaluator) => ({ id: evaluator.id })),+ configList.map((evaluator) => ({ id: evaluator.id })),);}// eslint-disable-next-line react-hooks/exhaustive-deps@@ -401,8 +403,8 @@ export default function EvaluatorTable({ projectId }: { projectId: string }) {: {isLoading: false,isError: false,- data: evaluators.data.configs.map((evaluator) =>- convertToTableRow(evaluator),+ data: safeExtract(evaluators.data, "configs", []).map(+ (evaluator) => convertToTableRow(evaluator),),}}diff --git a/web/src/features/evals/components/inner-evaluator-form.tsx b/web/src/features/evals/components/inner-evaluator-form.tsxindex f2ad1d5471..98155478d4 100644--- a/web/src/features/evals/components/inner-evaluator-form.tsx+++ b/web/src/features/evals/components/inner-evaluator-form.tsx@@ -1111,7 +1111,7 @@ export const InnerEvaluatorForm = (props: {{!props.disabled ? (<Buttontype="submit"- loading={createJobMutation.isLoading || updateJobMutation.isLoading}+ loading={createJobMutation.isPending || updateJobMutation.isPending}className="mt-3 max-w-fit">{props.mode === "edit" ? "Update" : "Execute"}diff --git a/web/src/features/evals/components/template-form.tsx b/web/src/features/evals/components/template-form.tsxindex ecbac3278c..a20cf608ca 100644--- a/web/src/features/evals/components/template-form.tsx+++ b/web/src/features/evals/components/template-form.tsx@@ -519,7 +519,7 @@ export const InnerEvalTemplateForm = (props: {{props.isEditing && (<Buttontype="submit"- loading={createEvalTemplateMutation.isLoading}+ loading={createEvalTemplateMutation.isPending}className="max-w-fit">Savediff --git a/web/src/features/evals/pages/default-evaluation-model.tsx b/web/src/features/evals/pages/default-evaluation-model.tsxindex 6414fae4b3..a4de3d96b4 100644--- a/web/src/features/evals/pages/default-evaluation-model.tsx+++ b/web/src/features/evals/pages/default-evaluation-model.tsx@@ -58,7 +58,7 @@ export default function DefaultEvaluationModelPage() {setModelParams,);- const { mutateAsync: upsertDefaultModel, isLoading } =+ const { mutateAsync: upsertDefaultModel, isPending: isUpsertLoading } =api.defaultLlmModel.upsertDefaultModel.useMutation({onSuccess: () => {showSuccessToast({@@ -181,7 +181,7 @@ export default function DefaultEvaluationModelPage() {{selectedModel ? (<UpdateButtonprojectId={projectId}- isLoading={isLoading}+ isLoading={isUpsertLoading}executeUpsertMutation={executeUpsertMutation}/>) : (diff --git a/web/src/features/experiments/components/RemoteExperimentTriggerModal.tsx b/web/src/features/experiments/components/RemoteExperimentTriggerModal.tsxindex 6d208474a1..8b6b0d4ad1 100644--- a/web/src/features/experiments/components/RemoteExperimentTriggerModal.tsx+++ b/web/src/features/experiments/components/RemoteExperimentTriggerModal.tsx@@ -169,15 +169,15 @@ export const RemoteExperimentTriggerModal = ({type="button"variant="outline"onClick={() => setShowTriggerModal(false)}- disabled={runRemoteExperimentMutation.isLoading}+ disabled={runRemoteExperimentMutation.isPending}>Cancel</Button><Buttontype="submit"- disabled={runRemoteExperimentMutation.isLoading}+ disabled={runRemoteExperimentMutation.isPending}>- {runRemoteExperimentMutation.isLoading && (+ {runRemoteExperimentMutation.isPending && (<Loader2 className="mr-2 h-4 w-4 animate-spin" />)}Rundiff --git a/web/src/features/experiments/components/RemoteExperimentUpsertForm.tsx b/web/src/features/experiments/components/RemoteExperimentUpsertForm.tsxindex 8e5fd2ffe3..78ccba3d4c 100644--- a/web/src/features/experiments/components/RemoteExperimentUpsertForm.tsx+++ b/web/src/features/experiments/components/RemoteExperimentUpsertForm.tsx@@ -144,7 +144,7 @@ export const RemoteExperimentUpsertForm = ({return null;}- if (dataset.isLoading) {+ if (dataset.isPending) {return <Skeleton className="h-48 w-full" />;}@@ -234,9 +234,9 @@ export const RemoteExperimentUpsertForm = ({type="button"variant="destructive"onClick={handleDelete}- disabled={deleteRemoteExperimentMutation.isLoading}+ disabled={deleteRemoteExperimentMutation.isPending}>- {deleteRemoteExperimentMutation.isLoading && (+ {deleteRemoteExperimentMutation.isPending && (<Loader2 className="mr-2 h-4 w-4 animate-spin" />)}Delete@@ -244,9 +244,9 @@ export const RemoteExperimentUpsertForm = ({)}<Buttontype="submit"- disabled={upsertRemoteExperimentMutation.isLoading}+ disabled={upsertRemoteExperimentMutation.isPending}>- {upsertRemoteExperimentMutation.isLoading ? (+ {upsertRemoteExperimentMutation.isPending ? (<Loader2 className="mr-2 h-4 w-4 animate-spin" />) : null}{existingRemoteExperiment ? "Update" : "Set up"}diff --git a/web/src/features/experiments/hooks/useExperimentEvaluatorSelection.ts b/web/src/features/experiments/hooks/useExperimentEvaluatorSelection.tsindex 9fb84aaf1a..852c2d0ef4 100644--- a/web/src/features/experiments/hooks/useExperimentEvaluatorSelection.ts+++ b/web/src/features/experiments/hooks/useExperimentEvaluatorSelection.ts@@ -111,6 +111,6 @@ export function useExperimentEvaluatorSelection({isTemplateInactive,// Loading- isLoading: updateStatus.isLoading,+ isLoading: updateStatus.isPending,};}diff --git a/web/src/features/models/components/DeleteModelButton.tsx b/web/src/features/models/components/DeleteModelButton.tsxindex ff80f15370..3649945160 100644--- a/web/src/features/models/components/DeleteModelButton.tsx+++ b/web/src/features/models/components/DeleteModelButton.tsx@@ -56,7 +56,7 @@ export const DeleteModelButton = ({<Buttontype="button"variant="destructive"- loading={mut.isLoading}+ loading={mut.isPending}onClick={() => {capture("models:delete_button_click");mut.mutateAsync({diff --git a/web/src/features/models/components/UpsertModelFormDrawer.tsx b/web/src/features/models/components/UpsertModelFormDrawer.tsxindex 456f9e16fa..a877d618ab 100644--- a/web/src/features/models/components/UpsertModelFormDrawer.tsx+++ b/web/src/features/models/components/UpsertModelFormDrawer.tsx@@ -475,7 +475,7 @@ export const UpsertModelFormDrawer = ({<Buttontype="submit"className="w-full"- loading={upsertModelMutation.isLoading}+ loading={upsertModelMutation.isPending}>Submit</Button>diff --git a/web/src/features/orderBy/hooks/useOrderByState.clienttest.tsx b/web/src/features/orderBy/hooks/useOrderByState.clienttest.tsxindex 67279c3391..9edea04bb1 100644--- a/web/src/features/orderBy/hooks/useOrderByState.clienttest.tsx+++ b/web/src/features/orderBy/hooks/useOrderByState.clienttest.tsx@@ -32,13 +32,21 @@ describe("useOrderByState hook", () => {jest.resetAllMocks();locationMock = new LocationMock("https://langfuse.com");testRouter = new TestRouter(locationMock);- window.location = locationMock;+ Object.defineProperty(window, "location", {+ value: locationMock,+ writable: true,+ configurable: true,+ });(useRouter as jest.Mock).mockReturnValue(testRouter);});afterAll(() => {- window.location = savedLocation;+ Object.defineProperty(window, "location", {+ value: savedLocation,+ writable: true,+ configurable: true,+ });});test("orderBy takes the default value if no url param is given", () => {diff --git a/web/src/features/organizations/components/DeleteOrganizationButton.tsx b/web/src/features/organizations/components/DeleteOrganizationButton.tsxindex a64a167885..c171b3f27b 100644--- a/web/src/features/organizations/components/DeleteOrganizationButton.tsx+++ b/web/src/features/organizations/components/DeleteOrganizationButton.tsx@@ -117,7 +117,7 @@ export function DeleteOrganizationButton() {<Buttontype="submit"variant="destructive"- loading={deleteOrganization.isLoading}+ loading={deleteOrganization.isPending}disabled={hasProjects}className="w-full">diff --git a/web/src/features/organizations/components/NewOrganizationForm.tsx b/web/src/features/organizations/components/NewOrganizationForm.tsxindex db0d9035d0..7ac721caa3 100644--- a/web/src/features/organizations/components/NewOrganizationForm.tsx+++ b/web/src/features/organizations/components/NewOrganizationForm.tsx@@ -182,7 +182,7 @@ export const NewOrganizationForm = ({)}</>)}- <Button type="submit" loading={createOrgMutation.isLoading}>+ <Button type="submit" loading={createOrgMutation.isPending}>Create</Button></form>diff --git a/web/src/features/organizations/components/RenameOrganization.tsx b/web/src/features/organizations/components/RenameOrganization.tsxindex 11ce5c6108..03b7ccfe3d 100644--- a/web/src/features/organizations/components/RenameOrganization.tsx+++ b/web/src/features/organizations/components/RenameOrganization.tsx@@ -113,7 +113,7 @@ export default function RenameOrganization() {<Buttonvariant="secondary"type="submit"- loading={renameOrganization.isLoading}+ loading={renameOrganization.isPending}disabled={form.getValues().name === "" || !hasAccess}className="mt-4">diff --git a/web/src/features/projects/components/ConfigureRetention.tsx b/web/src/features/projects/components/ConfigureRetention.tsxindex a094f13f19..79dfd30a18 100644--- a/web/src/features/projects/components/ConfigureRetention.tsx+++ b/web/src/features/projects/components/ConfigureRetention.tsx@@ -130,7 +130,7 @@ export default function ConfigureRetention() {variant="secondary"hasAccess={hasAccess}hasEntitlement={hasEntitlement}- loading={setRetention.isLoading}+ loading={setRetention.isPending}disabled={form.getValues().retention === null}className="mt-4"type="submit"diff --git a/web/src/features/projects/components/DeleteProjectButton.tsx b/web/src/features/projects/components/DeleteProjectButton.tsxindex f5dfe1f69f..ed13b2e224 100644--- a/web/src/features/projects/components/DeleteProjectButton.tsx+++ b/web/src/features/projects/components/DeleteProjectButton.tsx@@ -111,7 +111,7 @@ export function DeleteProjectButton() {<Buttontype="submit"variant="destructive"- loading={deleteProject.isLoading}+ loading={deleteProject.isPending}className="w-full">Delete projectdiff --git a/web/src/features/projects/components/NewProjectForm.tsx b/web/src/features/projects/components/NewProjectForm.tsxindex ff93064156..ad9edccc14 100644--- a/web/src/features/projects/components/NewProjectForm.tsx+++ b/web/src/features/projects/components/NewProjectForm.tsx@@ -84,7 +84,7 @@ export const NewProjectForm = ({</FormItem>)}/>- <Button type="submit" loading={createProjectMutation.isLoading}>+ <Button type="submit" loading={createProjectMutation.isPending}>Create</Button></form>diff --git a/web/src/features/projects/components/RenameProject.tsx b/web/src/features/projects/components/RenameProject.tsxindex 63cf634d56..e93b8a86ee 100644--- a/web/src/features/projects/components/RenameProject.tsx+++ b/web/src/features/projects/components/RenameProject.tsx@@ -111,7 +111,7 @@ export default function RenameProject() {<Buttonvariant="secondary"type="submit"- loading={renameProject.isLoading}+ loading={renameProject.isPending}disabled={form.getValues().name === "" || !hasAccess}className="mt-4">diff --git a/web/src/features/projects/components/TransferProjectButton.tsx b/web/src/features/projects/components/TransferProjectButton.tsxindex 739a4c3d5d..b96e0264df 100644--- a/web/src/features/projects/components/TransferProjectButton.tsx+++ b/web/src/features/projects/components/TransferProjectButton.tsx@@ -146,7 +146,7 @@ export function TransferProjectButton() {<SelectonValueChange={field.onChange}value={field.value}- disabled={transferProject.isLoading}+ disabled={transferProject.isPending}><SelectTrigger><SelectValue placeholder="Select organization" />@@ -191,7 +191,7 @@ export function TransferProjectButton() {<Buttontype="submit"variant="destructive"- loading={transferProject.isLoading}+ loading={transferProject.isPending}className="w-full">Transfer projectdiff --git a/web/src/features/prompts/components/NewPromptForm/index.tsx b/web/src/features/prompts/components/NewPromptForm/index.tsxindex 5980f2d3eb..3b4ccbd184 100644--- a/web/src/features/prompts/components/NewPromptForm/index.tsx+++ b/web/src/features/prompts/components/NewPromptForm/index.tsx@@ -411,7 +411,7 @@ export const NewPromptForm: React.FC<NewPromptFormProps> = (props) => {<ReviewPromptDialoginitialPrompt={initialPrompt}getNewPromptValues={form.getValues}- isLoading={createPromptMutation.isLoading}+ isLoading={createPromptMutation.isPending}onConfirm={form.handleSubmit(onSubmit)}><Button@@ -425,7 +425,7 @@ export const NewPromptForm: React.FC<NewPromptFormProps> = (props) => {<Buttontype="submit"- loading={createPromptMutation.isLoading}+ loading={createPromptMutation.isPending}className="w-full"disabled={!form.formState.isValid}>@@ -435,7 +435,7 @@ export const NewPromptForm: React.FC<NewPromptFormProps> = (props) => {) : (<Buttontype="submit"- loading={createPromptMutation.isLoading}+ loading={createPromptMutation.isPending}className="w-full"disabled={Boolean(!initialPrompt && form.formState.errors.name?.message,diff --git a/web/src/features/prompts/components/ProtectedLabelsSettings.tsx b/web/src/features/prompts/components/ProtectedLabelsSettings.tsxindex 1a093f6a83..bedb704594 100644--- a/web/src/features/prompts/components/ProtectedLabelsSettings.tsx+++ b/web/src/features/prompts/components/ProtectedLabelsSettings.tsx@@ -213,7 +213,7 @@ export default function ProtectedLabelsSettings({<ActionButtontype="submit"variant="secondary"- loading={addProtectedLabel.isLoading}+ loading={addProtectedLabel.isPending}hasAccess={hasAccess}hasEntitlement={hasEntitlement}>diff --git a/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx b/web/src/features/prompts/components/SetPromptVersionLabels/index.tsxindex 2e184c162e..19f9c2c667 100644--- a/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx+++ b/web/src/features/prompts/components/SetPromptVersionLabels/index.tsx@@ -218,7 +218,7 @@ export function SetPromptVersionLabels({? "destructive": "default"}- loading={mutatePromptVersionLabels.isLoading}+ loading={mutatePromptVersionLabels.isPending}disabled={!labelsChanged}className="w-full"onClick={handleSubmitLabels}diff --git a/web/src/features/prompts/components/delete-prompt-version.tsx b/web/src/features/prompts/components/delete-prompt-version.tsxindex 165f54254f..f128e57193 100644--- a/web/src/features/prompts/components/delete-prompt-version.tsx+++ b/web/src/features/prompts/components/delete-prompt-version.tsx@@ -83,7 +83,7 @@ export function DeletePromptVersion({<Buttontype="button"variant="destructive"- loading={mutDeletePromptVersion.isLoading}+ loading={mutDeletePromptVersion.isPending}onClick={() => {if (!projectId) {console.error("Project ID is missing");diff --git a/web/src/features/prompts/components/delete-prompt.tsx b/web/src/features/prompts/components/delete-prompt.tsxindex 75f3e27003..0e4fa26fde 100644--- a/web/src/features/prompts/components/delete-prompt.tsx+++ b/web/src/features/prompts/components/delete-prompt.tsx@@ -43,7 +43,7 @@ export function DeletePrompt({ promptName }: { promptName: string }) {<Buttontype="button"variant="destructive"- loading={mutDeletePrompt.isLoading}+ loading={mutDeletePrompt.isPending}onClick={() => {if (!projectId) {console.error("Project ID is missing");diff --git a/web/src/features/prompts/components/duplicate-prompt.tsx b/web/src/features/prompts/components/duplicate-prompt.tsxindex 32de577791..dda4d6ff09 100644--- a/web/src/features/prompts/components/duplicate-prompt.tsx+++ b/web/src/features/prompts/components/duplicate-prompt.tsx@@ -167,7 +167,7 @@ const DuplicatePromptForm: React.FC<{<DialogFooter><Buttontype="submit"- loading={duplicatePrompt.isLoading}+ loading={duplicatePrompt.isPending}className="mt-auto w-full">Submitdiff --git a/web/src/features/prompts/components/prompt-detail.tsx b/web/src/features/prompts/components/prompt-detail.tsxindex 7b1deccfeb..2862bb9c6a 100644--- a/web/src/features/prompts/components/prompt-detail.tsx+++ b/web/src/features/prompts/components/prompt-detail.tsx@@ -20,6 +20,7 @@ import { CodeView, JSONView } from "@/src/components/ui/CodeJsonViewer";import { DetailPageNav } from "@/src/features/navigate-detail-pages/DetailPageNav";import useProjectIdFromURL from "@/src/hooks/useProjectIdFromURL";import { api } from "@/src/utils/api";+import { getNumberFromMap } from "@/src/utils/map-utils";import {extractVariables,PRODUCTION_LABEL,@@ -434,7 +435,7 @@ export const PromptDetail = ({projectId={projectId as string}objectId={prompt.id}objectType="PROMPT"- count={commentCounts?.data?.get(prompt.id)}+ count={getNumberFromMap(commentCounts?.data, prompt.id)}variant="outline"/><DropdownMenu>diff --git a/web/src/features/public-api/components/ApiKeyList.tsx b/web/src/features/public-api/components/ApiKeyList.tsxindex c4d716ab4f..79ad903e0e 100644--- a/web/src/features/public-api/components/ApiKeyList.tsx+++ b/web/src/features/public-api/components/ApiKeyList.tsx@@ -242,7 +242,7 @@ function DeleteApiKeyButton(props: {variant="destructive"onClick={handleDelete}loading={- mutDeleteOrgApiKey.isLoading || mutDeleteProjectApiKey.isLoading+ mutDeleteOrgApiKey.isPending || mutDeleteProjectApiKey.isPending}>Permanently deletediff --git a/web/src/features/public-api/components/CreateApiKeyButton.tsx b/web/src/features/public-api/components/CreateApiKeyButton.tsxindex f74d5d315c..b275f9eed3 100644--- a/web/src/features/public-api/components/CreateApiKeyButton.tsx+++ b/web/src/features/public-api/components/CreateApiKeyButton.tsx@@ -101,7 +101,7 @@ export function CreateApiKeyButton(props: {<Buttonvariant="secondary"loading={- mutCreateProjectApiKey.isLoading || mutCreateOrgApiKey.isLoading+ mutCreateProjectApiKey.isPending || mutCreateOrgApiKey.isPending}><PlusIcon className="-ml-0.5 mr-1.5 h-5 w-5" aria-hidden="true" />diff --git a/web/src/features/public-api/components/LLMApiKeyList.tsx b/web/src/features/public-api/components/LLMApiKeyList.tsxindex 54ee892bc5..0e83f0f55a 100644--- a/web/src/features/public-api/components/LLMApiKeyList.tsx+++ b/web/src/features/public-api/components/LLMApiKeyList.tsx@@ -203,7 +203,7 @@ function DeleteApiKeyButton(props: { projectId: string; apiKeyId: string }) {console.error(error);});}}- loading={mutDeleteApiKey.isLoading}+ loading={mutDeleteApiKey.isPending}>Permanently delete</Button>diff --git a/web/src/features/rbac/components/CreateProjectMemberButton.tsx b/web/src/features/rbac/components/CreateProjectMemberButton.tsxindex 3fb5c9f294..eda7569e78 100644--- a/web/src/features/rbac/components/CreateProjectMemberButton.tsx+++ b/web/src/features/rbac/components/CreateProjectMemberButton.tsx@@ -140,7 +140,7 @@ export function CreateProjectMemberButton(props: {<DialogTrigger asChild><ActionButtonvariant="secondary"- loading={mutCreateProjectMember.isLoading}+ loading={mutCreateProjectMember.isPending}hasAccess={hasOrgAccess || hasOnlySingleProjectAccess}limit={orgMemberLimit}limitValue={(orgMemberCount ?? 0) + (inviteCount ?? 0)}diff --git a/web/src/features/rbac/components/MembersTable.tsx b/web/src/features/rbac/components/MembersTable.tsxindex 3fb5011efe..505956f589 100644--- a/web/src/features/rbac/components/MembersTable.tsx+++ b/web/src/features/rbac/components/MembersTable.tsx@@ -16,6 +16,7 @@ import useColumnVisibility from "@/src/features/column-visibility/hooks/useColumimport { CreateProjectMemberButton } from "@/src/features/rbac/components/CreateProjectMemberButton";import { useHasOrganizationAccess } from "@/src/features/rbac/utils/checkOrganizationAccess";import { api } from "@/src/utils/api";+import { safeExtract } from "@/src/utils/map-utils";import type { RouterOutput } from "@/src/utils/types";import { Role } from "@langfuse/shared";import { type Row } from "@tanstack/react-table";@@ -368,7 +369,7 @@ export function MembersTable({tableName={project ? "projectMembers" : "orgMembers"}columns={columns}data={- members.isLoading+ members.isPending? { isLoading: true, isError: false }: members.isError? {@@ -379,8 +380,8 @@ export function MembersTable({: {isLoading: false,isError: false,- data: members.data.memberships.map((t) =>- convertToTableRow(t),+ data: safeExtract(members.data, "memberships", []).map(+ (t) => convertToTableRow(t),),}}@@ -400,7 +401,7 @@ export function MembersTable({tableName={project ? "projectMembers" : "orgMembers"}columns={columns}data={- members.isLoading+ members.isPending? { isLoading: true, isError: false }: members.isError? {@@ -411,8 +412,8 @@ export function MembersTable({: {isLoading: false,isError: false,- data: members.data.memberships.map((t) =>- convertToTableRow(t),+ data: safeExtract(members.data, "memberships", []).map(+ (t) => convertToTableRow(t),),}}@@ -460,7 +461,7 @@ const OrgRoleDropdown = ({return (<Select- disabled={!hasCudAccess || mut.isLoading}+ disabled={!hasCudAccess || mut.isPending}value={currentRole}onValueChange={(value) => {if (@@ -520,7 +521,7 @@ const ProjectRoleDropdown = ({return (<Select- disabled={!hasCudAccess || mut.isLoading}+ disabled={!hasCudAccess || mut.isPending}value={currentProjectRole ?? Role.NONE}onValueChange={(value) => {if (diff --git a/web/src/features/rbac/components/MembershipInvitesPage.tsx b/web/src/features/rbac/components/MembershipInvitesPage.tsxindex 6e33eb4f56..2d3d9e3731 100644--- a/web/src/features/rbac/components/MembershipInvitesPage.tsx+++ b/web/src/features/rbac/components/MembershipInvitesPage.tsx@@ -8,6 +8,7 @@ import {} from "@/src/components/ui/avatar";import { useHasOrganizationAccess } from "@/src/features/rbac/utils/checkOrganizationAccess";import { api } from "@/src/utils/api";+import { safeExtract } from "@/src/utils/map-utils";import type { RouterOutput } from "@/src/utils/types";import { Trash } from "lucide-react";import { type Organization, type Role } from "@langfuse/shared";@@ -224,7 +225,7 @@ export function MembershipInvitesPage({: {isLoading: false,isError: false,- data: invites.data.invitations.map((i) =>+ data: safeExtract(invites.data, "invitations", []).map((i) =>convertToTableRow(i),),}diff --git a/web/src/features/scores/components/AnnotateDrawerContent.tsx b/web/src/features/scores/components/AnnotateDrawerContent.tsxindex 6375d0a87c..090ac7cc73 100644--- a/web/src/features/scores/components/AnnotateDrawerContent.tsx+++ b/web/src/features/scores/components/AnnotateDrawerContent.tsx@@ -429,18 +429,18 @@ export function AnnotateDrawerContent<Target extends ScoreTarget>({useEffect(() => {if (- updateMutation.isLoading ||- createMutation.isLoading ||- deleteMutation.isLoading+ updateMutation.isPending ||+ createMutation.isPending ||+ deleteMutation.isPending) {setShowSaving(true);} else {setShowSaving(false);}}, [- updateMutation.isLoading,- createMutation.isLoading,- deleteMutation.isLoading,+ updateMutation.isPending,+ createMutation.isPending,+ deleteMutation.isPending,setShowSaving,]);@@ -598,7 +598,7 @@ export function AnnotateDrawerContent<Target extends ScoreTarget>({optimisticScores.some((score) => score.configId === config.id && !!score.value,) ||- deleteMutation.isLoading,+ deleteMutation.isPending,isArchived: config.isArchived,}))}values={fields@@ -762,7 +762,7 @@ export function AnnotateDrawerContent<Target extends ScoreTarget>({!field.value ||config.isArchived}- loading={updateMutation.isLoading}+ loading={updateMutation.isPending}onClick={handleCommentUpdate({field,score,@@ -783,7 +783,7 @@ export function AnnotateDrawerContent<Target extends ScoreTarget>({disabled={!field.value || !score.comment}- loading={updateMutation.isLoading}+ loading={updateMutation.isPending}onClick={handleCommentUpdate({field,score,@@ -958,7 +958,7 @@ export function AnnotateDrawerContent<Target extends ScoreTarget>({<Buttontype="button"variant="destructive"- loading={deleteMutation.isLoading}+ loading={deleteMutation.isPending}onClick={async () => {if (score.scoreId) {// Record deletion timestamp@@ -1021,10 +1021,10 @@ export function AnnotateDrawerContent<Target extends ScoreTarget>({title="Delete score from trace/observation"disabled={isScoreUnsaved(score.scoreId) ||- updateMutation.isLoading+ updateMutation.isPending}loading={- deleteMutation.isLoading &&+ deleteMutation.isPending &&!optimisticScores.some((s) => s.scoreId === score.scoreId,) &&diff --git a/web/src/features/scores/components/CreateScoreConfigButton.tsx b/web/src/features/scores/components/CreateScoreConfigButton.tsxindex e1937cd247..ff7970fb71 100644--- a/web/src/features/scores/components/CreateScoreConfigButton.tsx+++ b/web/src/features/scores/components/CreateScoreConfigButton.tsx@@ -180,7 +180,7 @@ export function CreateScoreConfigButton({ projectId }: { projectId: string }) {}}><DialogTrigger asChild>- <Button variant="secondary" loading={createScoreConfig.isLoading}>+ <Button variant="secondary" loading={createScoreConfig.isPending}><PlusIcon className="-ml-0.5 mr-1.5 h-4 w-4" aria-hidden="true" />Add new score config</Button>diff --git a/web/src/features/setup/components/SetupPage.tsx b/web/src/features/setup/components/SetupPage.tsxindex 68558931ca..a1abfe8595 100644--- a/web/src/features/setup/components/SetupPage.tsx+++ b/web/src/features/setup/components/SetupPage.tsx@@ -278,7 +278,7 @@ const TracingSetup = ({</p><ButtononClick={createApiKey}- loading={mutCreateApiKey.isLoading}+ loading={mutCreateApiKey.isPending}className="self-start">Create API Keydiff --git a/web/src/features/slack/components/SlackTestMessageButton.tsx b/web/src/features/slack/components/SlackTestMessageButton.tsxindex 513d5d3b69..e5c0041541 100644--- a/web/src/features/slack/components/SlackTestMessageButton.tsx+++ b/web/src/features/slack/components/SlackTestMessageButton.tsx@@ -82,7 +82,7 @@ export const SlackTestMessageButton: React.FC<SlackTestMessageButtonProps> = ({// Determine if button should be disabledconst isDisabled =- disabled || !hasAccess || testMessageMutation.isLoading || !selectedChannel;+ disabled || !hasAccess || testMessageMutation.isPending || !selectedChannel;return (<Button@@ -92,7 +92,7 @@ export const SlackTestMessageButton: React.FC<SlackTestMessageButtonProps> = ({size={size}className="flex items-center gap-2">- {testMessageMutation.isLoading ? (+ {testMessageMutation.isPending ? (<><div className="h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" />{showText && <span>Sending...</span>}diff --git a/web/src/features/widgets/components/DashboardWidget.tsx b/web/src/features/widgets/components/DashboardWidget.tsxindex 7bb3df2d1c..caebf3fb66 100644--- a/web/src/features/widgets/components/DashboardWidget.tsx+++ b/web/src/features/widgets/components/DashboardWidget.tsx@@ -134,7 +134,7 @@ export function DashboardWidget({skipBatch: true,},},- enabled: !widget.isLoading && Boolean(widget.data),+ enabled: !widget.isPending && Boolean(widget.data),},);@@ -223,7 +223,7 @@ export function DashboardWidget({}};- if (widget.isLoading) {+ if (widget.isPending) {return (<divclassName={`flex items-center justify-center rounded-lg border bg-background p-4`}@@ -288,7 +288,7 @@ export function DashboardWidget({</>)}{/* Download button or loading indicator - always available */}- {queryResult.isLoading ? (+ {queryResult.isPending ? (<divclassName="text-muted-foreground"aria-label="Loading chart data"@@ -337,7 +337,7 @@ export function DashboardWidget({onSortChange={widget.data.chartType === "PIVOT_TABLE" ? updateSort : undefined}- isLoading={queryResult.isLoading}+ isLoading={queryResult.isPending}/></div></div>diff --git a/web/src/features/widgets/components/SelectWidgetDialog.tsx b/web/src/features/widgets/components/SelectWidgetDialog.tsxindex d8f6b1cbb9..fedf9ecc53 100644--- a/web/src/features/widgets/components/SelectWidgetDialog.tsx+++ b/web/src/features/widgets/components/SelectWidgetDialog.tsx@@ -90,7 +90,7 @@ export function SelectWidgetDialog({<DialogBody><div className="max-h-[400px] overflow-y-auto">- {widgets.isLoading ? (+ {widgets.isPending ? (<div className="py-8 text-center">Loading widgets...</div>) : widgets.isError ? (<div className="py-8 text-center text-destructive">diff --git a/web/src/features/widgets/components/WidgetTable.tsx b/web/src/features/widgets/components/WidgetTable.tsxindex 784c4d5787..ac11ca635f 100644--- a/web/src/features/widgets/components/WidgetTable.tsx+++ b/web/src/features/widgets/components/WidgetTable.tsx@@ -86,7 +86,7 @@ export function DeleteWidget({<Buttontype="button"variant="destructive"- loading={mutDeleteWidget.isLoading}+ loading={mutDeleteWidget.isPending}onClick={() => {if (!projectId) {console.error("Project ID is missing");@@ -242,7 +242,7 @@ export function DashboardWidgetTable() {: {isLoading: false,isError: false,- data: widgets.data.widgets,+ data: widgets.data?.widgets ?? [],}}orderBy={orderByState}diff --git a/web/src/pages/api/public/otel/v1/traces/index.ts b/web/src/pages/api/public/otel/v1/traces/index.tsindex 7ea750e50a..03e6f812c2 100644--- a/web/src/pages/api/public/otel/v1/traces/index.ts+++ b/web/src/pages/api/public/otel/v1/traces/index.ts@@ -39,7 +39,7 @@ export default withMiddlewares({if (req.headers["content-encoding"]?.includes("gzip")) {try {body = await new Promise((resolve, reject) => {- gunzip(body, (err, result) =>+ gunzip(new Uint8Array(body), (err, result) =>err ? reject(err) : resolve(result),);});diff --git a/web/src/pages/project/[projectId]/dashboards/[dashboardId]/index.tsx b/web/src/pages/project/[projectId]/dashboards/[dashboardId]/index.tsxindex 5069a8a55a..0f6214df39 100644--- a/web/src/pages/project/[projectId]/dashboards/[dashboardId]/index.tsx+++ b/web/src/pages/project/[projectId]/dashboards/[dashboardId]/index.tsx@@ -360,7 +360,7 @@ export default function DashboardDetail() {{hasCloneAccess && (<ButtononClick={handleCloneDashboard}- disabled={mutateCloneDashboard.isLoading}+ disabled={mutateCloneDashboard.isPending}><Copy size={16} className="mr-1 h-4 w-4" />Clone@@ -377,7 +377,7 @@ export default function DashboardDetail() {onSelectWidget={handleSelectWidget}dashboardId={dashboardId}/>- {dashboard.isLoading || !localDashboardDefinition ? (+ {dashboard.isPending || !localDashboardDefinition ? (<NoDataOrLoading isLoading={true} />) : dashboard.isError ? (<div className="flex h-64 items-center justify-center">diff --git a/web/src/pages/project/[projectId]/dashboards/new.tsx b/web/src/pages/project/[projectId]/dashboards/new.tsxindex 3be7b72103..d15f9d38b2 100644--- a/web/src/pages/project/[projectId]/dashboards/new.tsx+++ b/web/src/pages/project/[projectId]/dashboards/new.tsx@@ -72,10 +72,10 @@ export default function NewDashboard() {onClick={handleCreateDashboard}disabled={!dashboardName.trim() ||- createDashboard.isLoading ||+ createDashboard.isPending ||!hasCUDAccess}- loading={createDashboard.isLoading}+ loading={createDashboard.isPending}>Create</Button>diff --git a/web/src/pages/project/[projectId]/datasets/[datasetId]/items/[itemId].tsx b/web/src/pages/project/[projectId]/datasets/[datasetId]/items/[itemId].tsxindex 278aa33862..897c2b451a 100644--- a/web/src/pages/project/[projectId]/datasets/[datasetId]/items/[itemId].tsx+++ b/web/src/pages/project/[projectId]/datasets/[datasetId]/items/[itemId].tsx@@ -69,7 +69,7 @@ export default function Dataset() {});const toggleArchiveStatus = () => {- if (!item.data?.status || !hasAccess || mutUpdate.isLoading) return;+ if (!item.data?.status || !hasAccess || mutUpdate.isPending) return;const newStatus =item.data.status === DatasetStatus.ARCHIVED@@ -89,7 +89,7 @@ export default function Dataset() {};const handleDelete = () => {- if (!hasAccess || mutDelete.isLoading) return;+ if (!hasAccess || mutDelete.isPending) return;if (window.confirm("Are you sure you want to delete this item? This will also delete all run items that belong to this item.",@@ -149,7 +149,7 @@ export default function Dataset() {</div><ButtononClick={toggleArchiveStatus}- disabled={!hasAccess || mutUpdate.isLoading}+ disabled={!hasAccess || mutUpdate.isPending}variant={item.data.status === DatasetStatus.ACTIVE? "destructive"@@ -157,7 +157,7 @@ export default function Dataset() {}size="sm">- {mutUpdate.isLoading+ {mutUpdate.isPending? "Processing...": item.data.status === DatasetStatus.ACTIVE? "Archive"@@ -209,11 +209,11 @@ export default function Dataset() {<DropdownMenuContent className="flex flex-col [&>*]:w-full [&>*]:justify-start"><DropdownMenuItemonClick={handleDelete}- disabled={!hasAccess || mutDelete.isLoading}+ disabled={!hasAccess || mutDelete.isPending}className="text-destructive"><Trash2 className="mr-2 h-4 w-4" />- {mutDelete.isLoading ? "Deleting..." : "Delete"}+ {mutDelete.isPending ? "Deleting..." : "Delete"}</DropdownMenuItem></DropdownMenuContent></DropdownMenu>diff --git a/web/src/pages/project/[projectId]/datasets/[datasetId]/runs/[runId].tsx b/web/src/pages/project/[projectId]/datasets/[datasetId]/runs/[runId].tsxindex d3a57cd4c2..20409b1e5a 100644--- a/web/src/pages/project/[projectId]/datasets/[datasetId]/runs/[runId].tsx+++ b/web/src/pages/project/[projectId]/datasets/[datasetId]/runs/[runId].tsx@@ -105,7 +105,7 @@ export default function Dataset() {<SidePanelTitle>Run details</SidePanelTitle></SidePanelHeader><SidePanelContent>- {run.isLoading ? (+ {run.isPending ? (<Skeleton className="h-full w-full" />) : (<>diff --git a/web/src/pages/project/[projectId]/index.tsx b/web/src/pages/project/[projectId]/index.tsxindex 2f37d287c1..2addfa6a0b 100644--- a/web/src/pages/project/[projectId]/index.tsx+++ b/web/src/pages/project/[projectId]/index.tsx@@ -235,7 +235,7 @@ export default function Dashboard() {globalFilterState={[...userFilterState, ...environmentFilter]}fromTimestamp={fromTimestamp}toTimestamp={toTimestamp}- isLoading={environmentFilterOptions.isLoading}+ isLoading={environmentFilterOptions.isPending}/><ModelCostTableclassName="col-span-1 xl:col-span-2"@@ -243,13 +243,13 @@ export default function Dashboard() {globalFilterState={[...userFilterState, ...environmentFilter]}fromTimestamp={fromTimestamp}toTimestamp={toTimestamp}- isLoading={environmentFilterOptions.isLoading}+ isLoading={environmentFilterOptions.isPending}/><ScoresTableclassName="col-span-1 xl:col-span-2"projectId={projectId}globalFilterState={mergedFilterState}- isLoading={environmentFilterOptions.isLoading}+ isLoading={environmentFilterOptions.isPending}/><TracesAndObservationsTimeSeriesChartclassName="col-span-1 xl:col-span-3"@@ -258,7 +258,7 @@ export default function Dashboard() {fromTimestamp={fromTimestamp}toTimestamp={toTimestamp}agg={agg}- isLoading={environmentFilterOptions.isLoading}+ isLoading={environmentFilterOptions.isPending}/><ModelUsageChartclassName="col-span-1 min-h-24 xl:col-span-3"@@ -268,7 +268,7 @@ export default function Dashboard() {toTimestamp={toTimestamp}userAndEnvFilterState={[...userFilterState, ...environmentFilter]}agg={agg}- isLoading={environmentFilterOptions.isLoading}+ isLoading={environmentFilterOptions.isPending}/><UserChartclassName="col-span-1 xl:col-span-3"@@ -276,7 +276,7 @@ export default function Dashboard() {globalFilterState={[...userFilterState, ...environmentFilter]}fromTimestamp={fromTimestamp}toTimestamp={toTimestamp}- isLoading={environmentFilterOptions.isLoading}+ isLoading={environmentFilterOptions.isPending}/><ChartScoresclassName="col-span-1 xl:col-span-3"@@ -285,14 +285,14 @@ export default function Dashboard() {globalFilterState={[...userFilterState, ...environmentFilter]}fromTimestamp={fromTimestamp}toTimestamp={toTimestamp}- isLoading={environmentFilterOptions.isLoading}+ isLoading={environmentFilterOptions.isPending}/><LatencyTablesprojectId={projectId}globalFilterState={[...userFilterState, ...environmentFilter]}fromTimestamp={fromTimestamp}toTimestamp={toTimestamp}- isLoading={environmentFilterOptions.isLoading}+ isLoading={environmentFilterOptions.isPending}/><GenerationLatencyChartclassName="col-span-1 flex-auto justify-between lg:col-span-full"@@ -301,7 +301,7 @@ export default function Dashboard() {globalFilterState={[...userFilterState, ...environmentFilter]}fromTimestamp={fromTimestamp}toTimestamp={toTimestamp}- isLoading={environmentFilterOptions.isLoading}+ isLoading={environmentFilterOptions.isPending}/><ScoreAnalyticsclassName="col-span-1 flex-auto justify-between lg:col-span-full"@@ -310,7 +310,7 @@ export default function Dashboard() {globalFilterState={[...userFilterState, ...environmentFilter]}fromTimestamp={fromTimestamp}toTimestamp={toTimestamp}- isLoading={environmentFilterOptions.isLoading}+ isLoading={environmentFilterOptions.isPending}/></div></Page>diff --git a/web/src/pages/project/[projectId]/settings/integrations/blobstorage.tsx b/web/src/pages/project/[projectId]/settings/integrations/blobstorage.tsxindex e5869988e3..d306291c7c 100644--- a/web/src/pages/project/[projectId]/settings/integrations/blobstorage.tsx+++ b/web/src/pages/project/[projectId]/settings/integrations/blobstorage.tsx@@ -618,7 +618,7 @@ const BlobStorageIntegrationSettingsForm = ({</form><div className="mt-8 flex gap-2"><Button- loading={mut.isLoading}+ loading={mut.isPending}onClick={blobStorageForm.handleSubmit(onSubmit)}disabled={isLoading}>@@ -626,7 +626,7 @@ const BlobStorageIntegrationSettingsForm = ({</Button><Buttonvariant="secondary"- loading={mutValidate.isLoading}+ loading={mutValidate.isPending}disabled={isLoading || !state}title="Test your saved configuration by uploading a small test file to your storage"onClick={() => {@@ -637,7 +637,7 @@ const BlobStorageIntegrationSettingsForm = ({</Button><Buttonvariant="secondary"- loading={mutRunNow.isLoading}+ loading={mutRunNow.isPending}disabled={isLoading || !state?.enabled}title="Trigger an immediate export of all data since the last sync"onClick={() => {@@ -653,7 +653,7 @@ const BlobStorageIntegrationSettingsForm = ({</Button><Buttonvariant="ghost"- loading={mutDelete.isLoading}+ loading={mutDelete.isPending}disabled={isLoading || !!!state}onClick={() => {if (diff --git a/web/src/pages/project/[projectId]/settings/integrations/posthog.tsx b/web/src/pages/project/[projectId]/settings/integrations/posthog.tsxindex f22f11b512..e13ec140de 100644--- a/web/src/pages/project/[projectId]/settings/integrations/posthog.tsx+++ b/web/src/pages/project/[projectId]/settings/integrations/posthog.tsx@@ -223,7 +223,7 @@ const PostHogIntegrationSettings = ({</form><div className="mt-8 flex gap-2"><Button- loading={mut.isLoading}+ loading={mut.isPending}onClick={posthogForm.handleSubmit(onSubmit)}disabled={isLoading}>@@ -231,7 +231,7 @@ const PostHogIntegrationSettings = ({</Button><Buttonvariant="ghost"- loading={mutDelete.isLoading}+ loading={mutDelete.isPending}disabled={isLoading || !!!state}onClick={() => {if (diff --git a/web/src/server/api/trpc.ts b/web/src/server/api/trpc.tsindex 1ac1310d5b..92167746c4 100644--- a/web/src/server/api/trpc.ts+++ b/web/src/server/api/trpc.ts@@ -154,10 +154,13 @@ const withErrorHandling = t.middleware(async ({ ctx, next }) => {// otel setup with proper context propagationconst withOtelInstrumentation = t.middleware(async (opts) => {+ // In tRPC v11, input is lazy-loaded and must be accessed via getRawInput()+ const actualInput = await opts.getRawInput();+const baggageCtx = contextWithLangfuseProps({headers: opts.ctx.headers,userId: opts.ctx.session?.user?.id,- projectId: (opts.rawInput as Record<string, string>)?.projectId,+ projectId: (actualInput as Record<string, string>)?.projectId,});// Execute the next middleware/procedure with our context@@ -216,83 +219,83 @@ const inputProjectSchema = z.object({* Protected (authenticated) procedure with project role*/-const enforceUserIsAuthedAndProjectMember = t.middleware(- async ({ ctx, rawInput, next }) => {- if (!ctx.session || !ctx.session.user) {- throw new TRPCError({ code: "UNAUTHORIZED" });- }+const enforceUserIsAuthedAndProjectMember = t.middleware(async (opts) => {+ const { ctx, next } = opts;+ if (!ctx.session || !ctx.session.user) {+ throw new TRPCError({ code: "UNAUTHORIZED" });+ }- const result = inputProjectSchema.safeParse(rawInput);- if (!result.success)- throw new TRPCError({- code: "BAD_REQUEST",- message: "Invalid input, projectId is required",- });+ const actualInput = await opts.getRawInput();+ const parsedInput = inputProjectSchema.safeParse(actualInput);+ if (!parsedInput.success)+ throw new TRPCError({+ code: "BAD_REQUEST",+ message: "Invalid input, projectId is required",+ });- // check that the user is a member of this project- const projectId = result.data.projectId;- const sessionProject = ctx.session.user.organizations- .flatMap((org) =>- org.projects.map((project) => ({ ...project, organization: org })),- )- .find((project) => project.id === projectId);-- if (!sessionProject) {- if (ctx.session.user.admin === true) {- // fetch org as it is not available in the session for admins- const dbProject = await ctx.prisma.project.findFirst({- select: {- orgId: true,- },- where: {- id: projectId,- deletedAt: null,- },- });- if (!dbProject) {- logger.error(`Project with ${projectId} id not found`);- throw new TRPCError({- code: "NOT_FOUND",- message: "Project not found",- });- }- return next({- ctx: {- // infers the `session` as non-nullable- session: {- ...ctx.session,- user: ctx.session.user,- orgId: dbProject.orgId,- orgRole: Role.OWNER,- projectId: projectId,- projectRole: Role.OWNER,- },- },+ // check that the user is a member of this project+ const projectId = parsedInput.data.projectId;+ const sessionProject = ctx.session.user.organizations+ .flatMap((org) =>+ org.projects.map((project) => ({ ...project, organization: org })),+ )+ .find((project) => project.id === projectId);++ if (!sessionProject) {+ if (ctx.session.user.admin === true) {+ // fetch org as it is not available in the session for admins+ const dbProject = await ctx.prisma.project.findFirst({+ select: {+ orgId: true,+ },+ where: {+ id: projectId,+ deletedAt: null,+ },+ });+ if (!dbProject) {+ logger.error(`Project with ${projectId} id not found`);+ throw new TRPCError({+ code: "NOT_FOUND",+ message: "Project not found",});}- // not a member- logger.warn(`User is not a member of this project with id ${projectId}`);- throw new TRPCError({- code: "UNAUTHORIZED",- message: "User is not a member of this project",+ return next({+ ctx: {+ // infers the `session` as non-nullable+ session: {+ ...ctx.session,+ user: ctx.session.user,+ orgId: dbProject.orgId,+ orgRole: Role.OWNER,+ projectId: projectId,+ projectRole: Role.OWNER,+ },+ },});}+ // not a member+ logger.warn(`User is not a member of this project with id ${projectId}`);+ throw new TRPCError({+ code: "UNAUTHORIZED",+ message: "User is not a member of this project",+ });+ }- return next({- ctx: {- // infers the `session` as non-nullable- session: {- ...ctx.session,- user: ctx.session.user,- orgId: sessionProject.organization.id,- orgRole: sessionProject.organization.role,- projectId: projectId,- projectRole: sessionProject.role,- },+ return next({+ ctx: {+ // infers the `session` as non-nullable+ session: {+ ...ctx.session,+ user: ctx.session.user,+ orgId: sessionProject.organization.id,+ orgRole: sessionProject.organization.role,+ projectId: projectId,+ projectRole: sessionProject.role,},- });- },-);+ },+ });+});export const protectedProjectProcedure = withOtelTracingProcedure.use(withErrorHandling)@@ -306,12 +309,14 @@ const inputOrganizationSchema = z.object({orgId: z.string(),});-const enforceIsAuthedAndOrgMember = t.middleware(({ ctx, rawInput, next }) => {+const enforceIsAuthedAndOrgMember = t.middleware(async (opts) => {+ const { ctx, next } = opts;if (!ctx.session || !ctx.session.user) {throw new TRPCError({ code: "UNAUTHORIZED" });}- const result = inputOrganizationSchema.safeParse(rawInput);+ const actualInput = await opts.getRawInput();+ const result = inputOrganizationSchema.safeParse(actualInput);if (!result.success) {throw new TRPCError({code: "BAD_REQUEST",@@ -363,8 +368,10 @@ const inputTraceSchema = z.object({truncated: z.boolean().default(false),});-const enforceTraceAccess = t.middleware(async ({ ctx, rawInput, next }) => {- const result = inputTraceSchema.safeParse(rawInput);+const enforceTraceAccess = t.middleware(async (opts) => {+ const { ctx, next } = opts;+ const actualInput = await opts.getRawInput();+ const result = inputTraceSchema.safeParse(actualInput);if (!result.success) {logger.error("Invalid input when parsing request body", result.error);@@ -458,8 +465,10 @@ const inputSessionSchema = z.object({projectId: z.string(),});-const enforceSessionAccess = t.middleware(async ({ ctx, rawInput, next }) => {- const result = inputSessionSchema.safeParse(rawInput);+const enforceSessionAccess = t.middleware(async (opts) => {+ const { ctx, next } = opts;+ const actualInput = await opts.getRawInput();+ const result = inputSessionSchema.safeParse(actualInput);if (!result.success)throw new TRPCError({code: "BAD_REQUEST",diff --git a/web/src/utils/api.ts b/web/src/utils/api.tsindex dc1bf14563..77cdf3554c 100644--- a/web/src/utils/api.ts+++ b/web/src/utils/api.ts@@ -114,13 +114,6 @@ const buildIdLink = (): TRPCLink<AppRouter> => () => {export const api = createTRPCNext<AppRouter>({config() {return {- /**- * Transformer used for data de-serialization from the server.- *- * @see https://trpc.io/docs/data-transformers- */- transformer: superjson,-/*** Links used to determine request flow from client to server.*@@ -147,10 +140,12 @@ export const api = createTRPCNext<AppRouter>({// when condition is true, use normal requesttrue: httpLink({url: `${getBaseUrl()}/api/trpc`,+ transformer: superjson,}),// when condition is false, use batchingfalse: httpBatchLink({url: `${getBaseUrl()}/api/trpc`,+ transformer: superjson,maxURLLength: 2083, // avoid too large batches}),}),@@ -158,7 +153,7 @@ export const api = createTRPCNext<AppRouter>({queryClientConfig: {defaultOptions: {queries: {- onError: (error) => handleTrpcError(error),+ onError: (error: unknown) => handleTrpcError(error),// react query defaults to `online`, but we want to disable it as it caused issues for some usersnetworkMode: "always",},@@ -177,6 +172,7 @@ export const api = createTRPCNext<AppRouter>({* @see https://trpc.io/docs/nextjs#ssr-boolean-default-false*/ssr: false,+ transformer: superjson, // since tRPC v11 has to be here for some reason});/**@@ -184,7 +180,6 @@ export const api = createTRPCNext<AppRouter>({* To be used whenever you need to call the API without react hooks.*/export const directApi = createTRPCProxyClient<AppRouter>({- transformer: superjson,links: [loggerLink({// Only enable in development - production logs would be captured by Sentry@@ -194,6 +189,7 @@ export const directApi = createTRPCProxyClient<AppRouter>({}),httpBatchLink({url: `${getBaseUrl()}/api/trpc`,+ transformer: superjson,maxURLLength: 2083, // avoid too large batches}),],diff --git a/web/src/utils/map-utils.ts b/web/src/utils/map-utils.tsnew file mode 100644index 0000000000..bb3738911c--- /dev/null+++ b/web/src/utils/map-utils.ts@@ -0,0 +1,33 @@+/**+ * Safely gets a number value from a Map, returning undefined if the key doesn't exist.+ * Specifically typed for Maps that return numbers.+ */+export function getNumberFromMap(+ map: Map<any, any> | undefined,+ key: any,+): number | undefined {+ return map?.get(key) as number | undefined;+}++/**+ * Type-casts a Map with unknown generic types to a Map<string, number>.+ * Useful to handle Maps returned from tRPC queries where TypeScript+ * can't properly infer the generic types.+ */+export function castToNumberMap(+ map: Map<unknown, unknown> | undefined,+): Map<string, number> | undefined {+ return map as Map<string, number> | undefined;+}++/**+ * Safely extracts a property from potentially undefined data (e.g. tRPC query responses),+ * returning a default value if not found.+ */+export function safeExtract<T, K extends keyof T, R>(+ data: T | undefined | null,+ key: K,+ defaultValue: R = [] as R,+): T[K] | R {+ return data?.[key] ?? defaultValue;+}diff --git a/worker/package.json b/worker/package.jsonindex fee405f8f6..fc815a23ff 100644--- a/worker/package.json+++ b/worker/package.json@@ -81,7 +81,7 @@"prettier": "^3.6.2","ts-node": "^10.9.2","tsc-watch": "^6.2.0",- "typescript": "^5.4.5",+ "typescript": "^5.7.2","vitest": "^3.2.4","wait-for-expect": "^3.0.2"}