Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Upgrade react-zen and migrate UI components to its updated APIs
Mike Cao6ac2b9377c74
diff --git a/package.json b/package.jsonindex 1a47f5e70..11310090f 100644--- a/package.json+++ b/package.json@@ -65,7 +65,7 @@"@prisma/extension-read-replicas": "^0.5.0","@svgr/cli": "^8.1.0","@tanstack/react-query": "^5.101.4",- "@umami/react-zen": "^0.245.0",+ "@umami/react-zen": "^0.247.0","bcryptjs": "^3.0.2","chalk": "^5.6.2","chart.js": "^4.5.1",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 46d5dfbc4..e9b584b9d 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -36,8 +36,8 @@ importers:specifier: ^5.101.4version: 5.101.4([email protected])'@umami/react-zen':- specifier: ^0.245.0- version: 0.245.0(@types/[email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))+ specifier: ^0.247.0+ version: 0.247.0(@date-fns/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))bcryptjs:specifier: ^3.0.2version: 3.0.3@@ -436,6 +436,33 @@ packages:resolution: {integrity: sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==}engines: {node: '>=6.9.0'}+ '@base-ui/[email protected]':+ resolution: {integrity: sha512-/jzjTWJYXhRFO45Bev9lc3cHbmjzCMpUqbMZ2AgKy/z25mY9B6shGSNcXcjQar9n5doM0KYW1W8fcFv2jZBuMw==}+ engines: {node: '>=14.0.0'}+ peerDependencies:+ '@date-fns/tz': ^1.2.0+ '@types/react': ^17 || ^18 || ^19+ date-fns: ^4.0.0+ react: ^17 || ^18 || ^19+ react-dom: ^17 || ^18 || ^19+ peerDependenciesMeta:+ '@date-fns/tz':+ optional: true+ '@types/react':+ optional: true+ date-fns:+ optional: true++ '@base-ui/[email protected]':+ resolution: {integrity: sha512-gFFiltORVmW/N6IILTGxizP3PBpVpysqML1ALY5Vk0mH+7faVkCknOU31goYHN5Aoek2dkjxva1XOD2Ce9WuIg==}+ peerDependencies:+ '@types/react': ^17 || ^18 || ^19+ react: ^17 || ^18 || ^19+ react-dom: ^17 || ^18 || ^19+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@biomejs/[email protected]':resolution: {integrity: sha512-r1S8nFsAG1MY+vJFZALzIvwXAJv6ejDQ0mxP21Tgr9YK3ZFtjrvbBwDdNhx1rUqvccEIeNg20cYCNzl6Cr69pQ==}engines: {node: '>=14.21.3'}@@ -833,6 +860,9 @@ packages:peerDependencies:postcss: ^8.4+ '@date-fns/[email protected]':+ resolution: {integrity: sha512-lwYN/vDPeNRULcepoE/LO2Pgx+7/RV+S9ARfbc9lr2DtGkOD7pAiruHvbR1RX3Qyf6ja47EWJDMsNK5vK08DJg==}+'@dicebear/[email protected]':resolution: {integrity: sha512-5xgkG/mNL4j3Q4SJGQLBU/KnU90tng8Ze5ofThD+55wi0oeY/nSAUowg6UFCmHrktjifj/MEx3CQqbpcPWtfIA==}engines: {node: '>=18.0.0'}@@ -1376,6 +1406,21 @@ packages:'@noble/hashes':optional: true+ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==}++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==}++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==}+ peerDependencies:+ react: '>=16.8.0'+ react-dom: '>=16.8.0'++ '@floating-ui/[email protected]':+ resolution: {integrity: sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==}+'@formatjs/[email protected]':resolution: {integrity: sha512-zXfhLpvA6T7+efdt9JLbBwZ00tT7NsBMDVnDu8rpHeNNv8KfRZAMo2gkG0k9lK/Nzc//3kJ9pImsfuJxk3KhUA==}@@ -1910,6 +1955,9 @@ packages:'@radix-ui/[email protected]':resolution: {integrity: sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q==}+'@radix-ui/[email protected]':resolution: {integrity: sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==}peerDependencies:@@ -1919,6 +1967,120 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-+48PbAAbq3didjJxa+OaWY2ZwgAKsNiRGyeHKszblZMQ+kcpd9pAaT11cMkGEie0vsOi3QdeTE6d5Fe3Gn61kA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-RHCUGwKHDr0hDGg4X7ma4JG4/+12qxw8rkh5QKdDldlCvtja6nUx1Ef/8HVrJze81lEsgLQlqjzjGNHantgnQA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-Ksw4WeROkO4rC9k/onilX/Ao2Cr1ku1unMNH+XSCcP4jSXYu7HDsg9n4ojMjVb22XpYjAQ9qfrFlVbru1vXDUA==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-8g4pfOL9HoKKLWGiypT+dphVqjFfmcXO5GBnhsG6zI+lxAx/8feQpr+1LSN8Re3hiZ+XkLNS4O9ztK11/LzQ6w==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-RNOJjfZMTyBM6xYmV3IVGXkPjIhcBAuv48POevAXwrGJhkWZ9p1rFoIS1JFooPuT193AZmRsCPhpoVJxx6OPoQ==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-wmRZ2WWLvmt6KHy2rNPOdPUjwq5xOHY02+m+udwJTn0aNIox/rkskAvJTyTLGhPK6KgrUjlJUJpgmx/+wFiFIQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-TMQp2llA+RYn7JcjnrMnz7wN4pcVttPZnRZo52PLQsoLVKzNlVwUeHmfePgTgRluXFvlD3GD5g5MOVVTJCO0qA==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-vKQLcWypUnwZVvfV7UkGahH2g6ySe8M8R+zYBwPrv5byZ9QAW6cQVvNKo7GgmD+p8aYb6D9JBuvy8/WhOno2wQ==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-3wyzCQ6+ubRA+D4uv9m95JYLXxmOHp05qjrkjeA7uKHHtjpPggQzc6DAb0URl7j67oR0K2foO4ip27TiX037Bw==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true++ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-MucOnzh6hR5mid6VpkbglRAMYMjKLqRnGBbjXkzjK52fuQDd1qbkx78a5P40mkcnVXJdEVxm26E9OPAiUq7nBg==}+ peerDependencies:+ '@types/react': '*'+ '@types/react-dom': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+ '@types/react-dom':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==}peerDependencies:@@ -1941,6 +2103,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-qx7oqnYbxnK9kYI9m317qmFmEgo6ywqWvbTogdj7cL9p3/yx4M48p7Rnw5z3H890cL/ow/EeWJsuTykeZVXP5Q==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ==}peerDependencies:@@ -1954,6 +2125,15 @@ packages:'@types/react-dom':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-R6OUY2e2fA6Yn6s+VSx5KBV6Nx8LQEhu+cz7LCej18rQ1HLyg9PSC9jP/ZNx0o6FAIK9c0F1kHylzSxKsdlkrQ==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==}peerDependencies:@@ -1963,6 +2143,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-uEQJGT97ZA/TgP/Hydw47lHu+/vQj6z/0jA+WeTbK1o9Rx45GImjpD0tc3W5ad3D6XTSR6e1yEO0FvGq6WQfVQ==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==}peerDependencies:@@ -1972,6 +2161,15 @@ packages:'@types/react':optional: true+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-7cshFL8HGS/7HEiHH+9kL9HBwp2sa9yX18Knwek6KYWmXwM7pegMgta2AXMQKI+rq3JnfSj9x8wYqFMTdG1Jgg==}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+'@radix-ui/[email protected]':resolution: {integrity: sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==}peerDependencies:@@ -1981,11 +2179,14 @@ packages:'@types/react':optional: true- '@react-aria/[email protected]':- resolution: {integrity: sha512-CPxtkyrBi/HYY5P3lE/57sQ6qfa0lN8E55TOm89H0kNGv0lKt+/0zP7lWERzBjRr5IxBVrQX4gFEowBN52LPaA==}+ '@radix-ui/[email protected]':+ resolution: {integrity: sha512-K20DkRkUwDnxEYMBPcg3Y6voLkEy5p5QQmszZgLngKKiC7dzBR/aEuK3w1qlx2JWDUNH6FluahYdgR3BP+QbYw==}peerDependencies:- react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1- react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1+ '@types/react': '*'+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true'@react-spring/[email protected]':resolution: {integrity: sha512-Tqrwz7pIlsSDITzxoLS3n/v/YCUHQdOIKtOJf4yL6kYVSDTSmVK1LI1Q3M/uu2Sx4X3pIWF3xLUhlsA6SPNTNg==}@@ -2566,6 +2767,10 @@ packages:'@swc/[email protected]':resolution: {integrity: sha512-K6h3iUlqeM946U4sXFYeahefR1YBbXJvko+hv8WS8/0BNJ4OHiHRywMnQUJCqkR7Y9+hqQ1TvEpiKqUhz7NEFg==}+ '@tabby_ai/[email protected]':+ resolution: {integrity: sha512-r5bClKrcIusDoo049dSL8CawnHR6mRdDwhlQuIgZRNty68q0x8k3Lf1BtPAMxRf/GgnHBnIO4ujd3+GQdLWzxQ==}+ engines: {node: '>=16.0.0'}+'@tanstack/[email protected]':resolution: {integrity: sha512-gNwcvOJcRbLWPOLG/2OBm+zM+Yv+MKsXKEOWC57USuZDEsI71hEErQsiEGx5wX9rzWWkfwM0fVSPoiIFSsxfiw==}@@ -2722,11 +2927,10 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==}- '@umami/[email protected]':- resolution: {integrity: sha512-UApl8fDJM6VDaDOc8I67sdClzLpp4e9eJB3ntf6rlUgvdllf5T+hdYiHJ98T/tDFfhZWBKuLhnVDX/qNfjlrSw==}+ '@umami/[email protected]':+ resolution: {integrity: sha512-3I8kCsSX3DEDX2D0ft+2g9fUdmXm5+BWR6mMkbOxYy9bColbL5gTF7UOcl+wuN4ETOh7bo9Lxk5CM6hDyZX6uA==}peerDependencies:react: ^18.0.0 || ^19.0.0- react-aria-components: ^1.0.0react-dom: ^18.0.0 || ^19.0.0'@visx/[email protected]':@@ -3051,6 +3255,12 @@ packages:resolution: {integrity: sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-Vsv7kFaXm+ptHDMZ7izaRsP70GgrW9NBNGswt9OZaVBLlE0SNpDq8eu/VGXyF9r7M0azK3Wy7OlYXsuyYLFzHg==}+ peerDependencies:+ react: ^18 || ^19 || ^19.0.0-rc+ react-dom: ^18 || ^19 || ^19.0.0-rc+resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==}@@ -3287,6 +3497,9 @@ packages:resolution: {integrity: sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-hTIP/z+t+qKwBDcmmsnmjWTduxCg+5KfdqWQvb2X/8C9+knYY6epN/pfxdDuyVlSVeFz0sM5eEfwIUQ70U4ckg==}+resolution: {integrity: sha512-sg8HqoTEulcbbbVXeg84u5UnlsQa8GS5QXMqjjYIhS4abEVVKIUwe0/l/UhrZdKaL/W5eWZNlbTeEIiOXTcsBQ==}peerDependencies:@@ -3354,6 +3567,9 @@ packages:resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}engines: {node: '>=8'}+ resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==}+resolution: {integrity: sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==}@@ -3417,6 +3633,19 @@ packages:resolution: {integrity: sha512-zxxR9k+rx5ktMwT/FwyLdPCrq7xN6e4VGGHH8hA01vVYKjTFik7nHOxBnAYtrgYUB1RpAiLvA1/U2YraWxyKKg==}+ resolution: {integrity: sha512-0/PjqU7geVmo6F734pmPqpyHqiM99olvyecY7zdweCw+6tKEXnrE90pBiBbMMU8s5tICemzpQ3hi5EpxzGW+JA==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.1 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc++ resolution: {integrity: sha512-fMVUDUEx0/uIEDM0Mz3dHznDhfX+znCCDCeIophYb1QGVM7YThSWX+wz11zlYwWFOr74b4QLGg0hrGPJeG2s4A==}+ peerDependencies:+ embla-carousel: 8.6.0++ resolution: {integrity: sha512-SjWyZBHJPbqxHOzckOfo8lHisEaJWmwd23XppYFYVh10bU66/Pn5tkVkbkCMZVdbUE5eTCI2nD8OyIP4Z+uwkA==}+resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}@@ -3627,6 +3856,10 @@ packages:resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-I9QVvBw5U/hw3RmWpYKRumUeaDgxTPd401x364rLmWBJcOQ753eov1eTgzDqRG9bqFIfDc7gfzcQEWrUri3o1A==}@@ -4818,6 +5051,12 @@ packages:react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1+ resolution: {integrity: sha512-tBaoDWjPwe0M5pGrum4H0SR6Lyk+BO9oHnp9JbKpGKW2mlraNPgP9BMfsg5pWpwrssARmeqk7YBl2oXutZTaHA==}+ engines: {node: '>=18'}+ peerDependencies:+ react: '>=16.8.0'+resolution: {integrity: sha512-rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==}peerDependencies:@@ -4846,6 +5085,26 @@ packages:resolution: {integrity: sha512-s5un28nYxKJw5gvUHyW5PCC28CvBqLu9r3cWgzHT4Vo/5fqqkFcdRYsGcKf50WMPpjjFZS5d76fn3YCo2njKwQ==}+ resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0+ peerDependenciesMeta:+ '@types/react':+ optional: true++ resolution: {integrity: sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+resolution: {integrity: sha512-NwY5LCo4WrxVvDh0xoMML6EMLPONP/8ckKcIdpnojxexoatZdjLiRqLJQjQK5CPkd4SYiB/2M5BVrjZBQtOO7Q==}peerDependencies:@@ -4864,6 +5123,16 @@ packages:peerDependencies:react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1+ resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+resolution: {integrity: sha512-FW6TIpaOH646k51X7yE+LSCWGkt5Pfsnc1fVyq/sCI9h0pTqmMiBXM04pzFKg3Bt7NGkeV6kqbU8d/QjmFS7Ug==}peerDependencies:@@ -4919,6 +5188,9 @@ packages:resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==}+ resolution: {integrity: sha512-AgZ3UOZm3YndfrJ4OYjgrT7bmCm/1iqkjvEfH/oYjzh6PD2qw4QuT3jjnXIrpdt4MTpMXclMT3lXbmRY+XRakw==}+resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}engines: {node: '>=4'}@@ -5440,11 +5712,31 @@ packages:peerDependencies:browserslist: '>= 4.21.0'+ resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+resolution: {integrity: sha512-wRhU5zyPNgu845++EJ8ckQsi89b22QUop7NlGxNXpsnKSwEJr7WErAkdAYeVQgFTmDWsa8e2NI1e14XbWz9Ecw==}peerDependencies:react: ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0+ resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==}+ engines: {node: '>=10'}+ peerDependencies:+ '@types/react': '*'+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc+ peerDependenciesMeta:+ '@types/react':+ optional: true+resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==}peerDependencies:@@ -5931,6 +6223,31 @@ snapshots:'@babel/helper-validator-identifier': 7.29.7optional: true+ '@base-ui/[email protected](@date-fns/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@babel/runtime': 7.29.7+ '@base-ui/utils': 0.3.1(@types/[email protected])([email protected]([email protected]))([email protected])+ '@floating-ui/utils': 0.2.12+ react: 19.2.8+ react-dom: 19.2.8([email protected])+ use-sync-external-store: 1.6.0([email protected])+ optionalDependencies:+ '@date-fns/tz': 1.5.0+ '@types/react': 19.2.17+ date-fns: 4.4.0++ '@base-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@babel/runtime': 7.29.7+ '@floating-ui/utils': 0.2.12+ react: 19.2.8+ react-dom: 19.2.8([email protected])+ reselect: 5.2.0+ use-sync-external-store: 1.6.0([email protected])+ optionalDependencies:+ '@types/react': 19.2.17+'@biomejs/[email protected]':optionalDependencies:'@biomejs/cli-darwin-arm64': 2.5.5@@ -6310,6 +6627,8 @@ snapshots:dependencies:postcss: 8.5.23+ '@date-fns/[email protected]': {}+'@dicebear/[email protected](@dicebear/[email protected])':dependencies:'@dicebear/core': 9.4.3@@ -6664,6 +6983,23 @@ snapshots:optionalDependencies:'@noble/hashes': 2.2.0+ '@floating-ui/[email protected]':+ dependencies:+ '@floating-ui/utils': 0.2.12++ '@floating-ui/[email protected]':+ dependencies:+ '@floating-ui/core': 1.8.0+ '@floating-ui/utils': 0.2.12++ dependencies:+ '@floating-ui/dom': 1.8.0+ react: 19.2.8+ react-dom: 19.2.8([email protected])++ '@floating-ui/[email protected]': {}+'@formatjs/[email protected]': {}'@formatjs/[email protected]':@@ -7145,12 +7481,114 @@ snapshots:'@radix-ui/[email protected]': {}+ '@radix-ui/[email protected]': {}+dependencies:react: 19.2.8optionalDependencies:'@types/react': 19.2.17+ dependencies:+ react: 19.2.8+ optionalDependencies:+ '@types/react': 19.2.17++ dependencies:+ react: 19.2.8+ optionalDependencies:+ '@types/react': 19.2.17++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.7+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])+ '@radix-ui/react-context': 1.2.2(@types/[email protected])([email protected])+ '@radix-ui/react-dismissable-layer': 1.1.19(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-focus-guards': 1.1.6(@types/[email protected])([email protected])+ '@radix-ui/react-focus-scope': 1.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-portal': 1.1.17(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-presence': 1.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])+ '@radix-ui/react-use-controllable-state': 1.2.6(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])+ aria-hidden: 1.2.6+ react: 19.2.8+ react-dom: 19.2.8([email protected])+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.17+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/primitive': 1.1.7+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-use-effect-event': 0.0.5(@types/[email protected])([email protected])+ react: 19.2.8+ react-dom: 19.2.8([email protected])+ optionalDependencies:+ '@types/react': 19.2.17+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ react: 19.2.8+ optionalDependencies:+ '@types/react': 19.2.17++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-callback-ref': 1.1.4(@types/[email protected])([email protected])+ react: 19.2.8+ react-dom: 19.2.8([email protected])+ optionalDependencies:+ '@types/react': 19.2.17+ '@types/react-dom': 19.2.3(@types/[email protected])++ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])+ react: 19.2.8+ optionalDependencies:+ '@types/react': 19.2.17++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])+ react: 19.2.8+ react-dom: 19.2.8([email protected])+ optionalDependencies:+ '@types/react': 19.2.17+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])+ react: 19.2.8+ react-dom: 19.2.8([email protected])+ optionalDependencies:+ '@types/react': 19.2.17+ '@types/react-dom': 19.2.3(@types/[email protected])++ '@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@radix-ui/react-slot': 1.3.3(@types/[email protected])([email protected])+ react: 19.2.8+ react-dom: 19.2.8([email protected])+ optionalDependencies:+ '@types/react': 19.2.17+ '@types/react-dom': 19.2.3(@types/[email protected])+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])@@ -7167,6 +7605,13 @@ snapshots:optionalDependencies:'@types/react': 19.2.17+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])+ react: 19.2.8+ optionalDependencies:+ '@types/react': 19.2.17+'@radix-ui/[email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@radix-ui/primitive': 1.1.3@@ -7178,6 +7623,12 @@ snapshots:'@types/react': 19.2.17'@types/react-dom': 19.2.3(@types/[email protected])+ dependencies:+ react: 19.2.8+ optionalDependencies:+ '@types/react': 19.2.17+dependencies:'@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])@@ -7186,6 +7637,15 @@ snapshots:optionalDependencies:'@types/react': 19.2.17+ dependencies:+ '@radix-ui/primitive': 1.1.7+ '@radix-ui/react-use-effect-event': 0.0.5(@types/[email protected])([email protected])+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])+ react: 19.2.8+ optionalDependencies:+ '@types/react': 19.2.17+dependencies:'@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])@@ -7193,18 +7653,24 @@ snapshots:optionalDependencies:'@types/react': 19.2.17+ dependencies:+ '@radix-ui/react-use-layout-effect': 1.1.4(@types/[email protected])([email protected])+ react: 19.2.8+ optionalDependencies:+ '@types/react': 19.2.17+dependencies:react: 19.2.8optionalDependencies:'@types/react': 19.2.17dependencies:- '@swc/helpers': 0.5.23react: 19.2.8- react-dom: 19.2.8([email protected])+ optionalDependencies:+ '@types/react': 19.2.17'@react-spring/[email protected]([email protected])':dependencies:@@ -7642,6 +8108,8 @@ snapshots:dependencies:'@swc/counter': 0.1.3+ '@tabby_ai/[email protected]': {}+'@tanstack/[email protected]': {}'@tanstack/[email protected]([email protected])':@@ -7797,22 +8265,27 @@ snapshots:dependencies:'@types/yargs-parser': 21.0.3- '@umami/[email protected](@types/[email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))':+ '@umami/[email protected](@date-fns/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))':dependencies:- '@internationalized/date': 3.12.2+ '@base-ui/react': 1.6.0(@date-fns/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])clsx: 2.1.1+ cmdk: 1.1.1(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ embla-carousel-react: 8.6.0([email protected])lucide-react: 0.555.0([email protected])react: 19.2.8+ react-day-picker: 9.14.0([email protected])react-dom: 19.2.8([email protected])react-hook-form: 7.83.0([email protected])tailwind-merge: 3.6.0tailwind-variants: 3.3.0([email protected])([email protected])zustand: 5.0.14(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))transitivePeerDependencies:+ - '@date-fns/tz'- '@types/react'+ - '@types/react-dom'+ - date-fns- immer- tailwindcss- use-sync-external-store@@ -8171,6 +8644,18 @@ snapshots:+ [email protected](@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected]):+ dependencies:+ '@radix-ui/react-compose-refs': 1.1.5(@types/[email protected])([email protected])+ '@radix-ui/react-dialog': 1.1.23(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ '@radix-ui/react-id': 1.1.4(@types/[email protected])([email protected])+ '@radix-ui/react-primitive': 2.1.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])+ react: 19.2.8+ react-dom: 19.2.8([email protected])+ transitivePeerDependencies:+ - '@types/react'+ - '@types/react-dom'+dependencies:color-name: 1.1.3@@ -8404,6 +8889,8 @@ snapshots:es-errors: 1.3.0is-data-view: 1.0.2+ [email protected]: {}+dependencies:date-fns: 4.4.0@@ -8452,6 +8939,8 @@ snapshots:+ [email protected]: {}+@@ -8519,6 +9008,18 @@ snapshots:+ dependencies:+ embla-carousel: 8.6.0+ embla-carousel-reactive-utils: 8.6.0([email protected])+ react: 19.2.8++ dependencies:+ embla-carousel: 8.6.0++ [email protected]: {}+@@ -8820,6 +9321,8 @@ snapshots:hasown: 2.0.2math-intrinsics: 1.1.0+ [email protected]: {}+@@ -10074,6 +10577,14 @@ snapshots:react-stately: 3.48.0([email protected])use-sync-external-store: 1.6.0([email protected])+ dependencies:+ '@date-fns/tz': 1.5.0+ '@tabby_ai/hijri-converter': 1.0.5+ date-fns: 4.4.0+ date-fns-jalali: 4.1.0-0+ react: 19.2.8+dependencies:react: 19.2.8@@ -10095,6 +10606,25 @@ snapshots:+ dependencies:+ react: 19.2.8+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.17++ dependencies:+ react: 19.2.8+ react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])+ tslib: 2.8.1+ use-callback-ref: 1.3.3(@types/[email protected])([email protected])+ use-sidecar: 1.1.3(@types/[email protected])([email protected])+ optionalDependencies:+ '@types/react': 19.2.17+dependencies:react: 19.2.8@@ -10120,6 +10650,14 @@ snapshots:react: 19.2.8use-sync-external-store: 1.6.0([email protected])+ dependencies:+ get-nonce: 1.0.1+ react: 19.2.8+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.17+dependencies:react: 19.2.8@@ -10191,6 +10729,8 @@ snapshots:+ [email protected]: {}+@@ -10809,6 +11349,13 @@ snapshots:escalade: 3.2.0picocolors: 1.1.1+ dependencies:+ react: 19.2.8+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.17+dependencies:'@formatjs/fast-memoize': 3.1.7@@ -10817,6 +11364,14 @@ snapshots:intl-messageformat: 11.2.12react: 19.2.8+ dependencies:+ detect-node-es: 1.1.0+ react: 19.2.8+ tslib: 2.8.1+ optionalDependencies:+ '@types/react': 19.2.17+dependencies:react: 19.2.8diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 4effe91c4..ec9aa42bb 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -10,3 +10,5 @@ allowBuilds:msw: falseprisma: truesharp: false+minimumReleaseAgeExclude:+ - '@umami/[email protected]'diff --git a/src/app/(main)/SideNav.tsx b/src/app/(main)/SideNav.tsxindex cac1fa4cf..51c85c06f 100644--- a/src/app/(main)/SideNav.tsx+++ b/src/app/(main)/SideNav.tsx@@ -110,27 +110,34 @@ export function SideNav(props: any) {<Column gap="2">{links.map(({ id, path, label, icon }) => {const isSelected = pathname.startsWith(renderUrl(path, false));+ const content = (+ <Focusable>+ <Row+ alignItems="center"+ hover={{ backgroundColor: 'surface-sunken' }}+ backgroundColor={isSelected ? 'surface-sunken' : undefined}+ borderRadius+ minHeight="40px"+ >+ <IconLabel+ icon={icon}+ label={isCollapsed ? '' : label}+ weight={isSelected ? 'bold' : undefined}+ padding+ />+ </Row>+ </Focusable>+ );return (<Link key={id} href={renderUrl(path, false)} role="button">- <TooltipTrigger isDisabled={!isCollapsed} delay={0}>- <Focusable>- <Row- alignItems="center"- hover={{ backgroundColor: 'surface-sunken' }}- backgroundColor={isSelected ? 'surface-sunken' : undefined}- borderRadius- minHeight="40px"- >- <IconLabel- icon={icon}- label={isCollapsed ? '' : label}- weight={isSelected ? 'bold' : undefined}- padding- />- </Row>- </Focusable>- <Tooltip placement="right">{label}</Tooltip>- </TooltipTrigger>+ {isCollapsed ? (+ <TooltipTrigger delay={0}>+ {content}+ <Tooltip placement="right">{label}</Tooltip>+ </TooltipTrigger>+ ) : (+ content+ )}</Link>);})}diff --git a/src/app/(main)/TopNav.tsx b/src/app/(main)/TopNav.tsxindex 3c71dbba6..a3f34d075 100644--- a/src/app/(main)/TopNav.tsx+++ b/src/app/(main)/TopNav.tsx@@ -11,19 +11,19 @@ import { WebsiteSelect } from '@/components/input/WebsiteSelect';export function TopNav() {const { websiteId, linkId, pixelId, boardId, teamId, router, renderUrl } = useNavigation();- const handleWebsiteChange = (value: string) => {+ const handleWebsiteChange = (value: string | number | null) => {router.push(renderUrl(`/websites/${value}`, false));};- const handleLinkChange = (value: string) => {+ const handleLinkChange = (value: string | number | null) => {router.push(renderUrl(`/links/${value}`, false));};- const handlePixelChange = (value: string) => {+ const handlePixelChange = (value: string | number | null) => {router.push(renderUrl(`/pixels/${value}`, false));};- const handleBoardChange = (value: string) => {+ const handleBoardChange = (value: string | number | null) => {router.push(renderUrl(`/boards/${value}`, false));};diff --git a/src/app/(main)/UpdateNotice.tsx b/src/app/(main)/UpdateNotice.tsxindex e61407d9d..2c6d35521 100644--- a/src/app/(main)/UpdateNotice.tsx+++ b/src/app/(main)/UpdateNotice.tsx@@ -1,4 +1,4 @@-import { AlertBanner, Button, Column, Row } from '@umami/react-zen';+import { Alert, AlertTitle, Button, Column, Row } from '@umami/react-zen';import { usePathname } from 'next/navigation';import { useCallback, useEffect, useState } from 'react';import { useMessages } from '@/components/hooks';@@ -49,12 +49,15 @@ export function UpdateNotice({ user, config }) {return (<Column justifyContent="center" alignItems="center" position="fixed" top="10px" width="100%"><Row width="600px">- <AlertBanner title={t(messages.newVersionAvailable, { version: `v${latest}` })}>- <Button variant="primary" onPress={handleViewClick}>- {t(labels.viewDetails)}- </Button>- <Button onPress={handleDismissClick}>{t(labels.dismiss)}</Button>- </AlertBanner>+ <Alert style={{ width: '100%' }}>+ <AlertTitle>{t(messages.newVersionAvailable, { version: `v${latest}` })}</AlertTitle>+ <Row gap="3" paddingTop="2">+ <Button variant="primary" onPress={handleViewClick}>+ {t(labels.viewDetails)}+ </Button>+ <Button onPress={handleDismissClick}>{t(labels.dismiss)}</Button>+ </Row>+ </Alert></Row></Column>);diff --git a/src/app/(main)/admin/teams/AdminTeamsTable.tsx b/src/app/(main)/admin/teams/AdminTeamsTable.tsxindex 24002f2d9..697b19d25 100644--- a/src/app/(main)/admin/teams/AdminTeamsTable.tsx+++ b/src/app/(main)/admin/teams/AdminTeamsTable.tsx@@ -1,4 +1,5 @@import { DataColumn, DataTable, Dialog, Icon, MenuItem, Modal, Row, Text } from '@umami/react-zen';+import { useRouter } from 'next/navigation';import { useState } from 'react';import { DateDistance } from '@/components/common/DateDistance';import Link from '@/components/common/Link';@@ -17,6 +18,7 @@ export function AdminTeamsTable({showActions?: boolean;}) {const { t, labels } = useMessages();+ const router = useRouter();const [deleteTeam, setDeleteTeam] = useState(null);return (@@ -62,7 +64,10 @@ export function AdminTeamsTable({return (<MenuButton>- <MenuItem href={`/admin/teams/${id}`} data-test="link-button-edit">+ <MenuItem+ onAction={() => router.push(`/admin/teams/${id}`)}+ data-test="link-button-edit"+ ><Row alignItems="center" gap><Icon><Edit />diff --git a/src/app/(main)/admin/users/UsersTable.tsx b/src/app/(main)/admin/users/UsersTable.tsxindex 55d46b7c9..4ec3604c0 100644--- a/src/app/(main)/admin/users/UsersTable.tsx+++ b/src/app/(main)/admin/users/UsersTable.tsx@@ -1,4 +1,5 @@import { DataColumn, DataTable, Icon, MenuItem, Modal, Row, Text } from '@umami/react-zen';+import { useRouter } from 'next/navigation';import { useState } from 'react';import { DateDistance } from '@/components/common/DateDistance';import Link from '@/components/common/Link';@@ -18,6 +19,7 @@ export function UsersTable({showActions?: boolean;}) {const { t, labels } = useMessages();+ const router = useRouter();const [deleteUser, setDeleteUser] = useState(null);return (@@ -53,7 +55,10 @@ export function UsersTable({return (<MenuButton>- <MenuItem href={`/admin/users/${id}`} data-test="link-button-edit">+ <MenuItem+ onAction={() => router.push(`/admin/users/${id}`)}+ data-test="link-button-edit"+ ><Row alignItems="center" gap><Icon><Edit />diff --git a/src/app/(main)/admin/users/[userId]/UserTwoFactorSettings.tsx b/src/app/(main)/admin/users/[userId]/UserTwoFactorSettings.tsxindex a577bab7a..c5160e542 100644--- a/src/app/(main)/admin/users/[userId]/UserTwoFactorSettings.tsx+++ b/src/app/(main)/admin/users/[userId]/UserTwoFactorSettings.tsx@@ -1,17 +1,27 @@'use client';-import { Button, Column, Dialog, Modal, Row, Switch, Text, Tooltip, TooltipTrigger } from '@umami/react-zen';+import { useQueryClient } from '@tanstack/react-query';+import {+ Button,+ Column,+ Dialog,+ Modal,+ Row,+ Switch,+ Text,+ Tooltip,+ TooltipTrigger,+} from '@umami/react-zen';import { useState } from 'react';import { Badge } from '@/components/common/Badge';import { TypeConfirmationForm } from '@/components/common/TypeConfirmationForm';import {useDeleteQuery,useMessages,- useUpdateQuery,useTwoFactorStatusQuery,- useUserQuery,useTwoFactorUserStatusQuery,+ useUpdateQuery,+ useUserQuery,} from '@/components/hooks';-import { useQueryClient } from '@tanstack/react-query';const CONFIRM_VALUE = 'RESET';@@ -27,9 +37,11 @@ export function UserTwoFactorSettings({ userId }: { userId: string }) {const { data: userData } = useUserQuery(userId);const { mutateAsync: setUserRequired } = useUpdateQuery(`/admin/users/${userId}/2fa`);- const { mutateAsync: resetUserTwoFactor, isPending: isResetting, error: resetError } = useDeleteQuery(- `/admin/users/${userId}/2fa`,- );+ const {+ mutateAsync: resetUserTwoFactor,+ isPending: isResetting,+ error: resetError,+ } = useDeleteQuery(`/admin/users/${userId}/2fa`);const twoFactorEnabled = !!(userTfaData as any)?.isEnabled;const twoFactorRequired = !!(userData as any)?.twoFactorRequired;@@ -62,7 +74,19 @@ export function UserTwoFactorSettings({ userId }: { userId: string }) {{t(messages.twoFactorRequireUserDescription)}</Text>- <TooltipTrigger isDisabled={!isGlobalRequired}>+ {isGlobalRequired ? (+ <TooltipTrigger>+ <Row alignItems="center" gap="3">+ <Switch+ isSelected={isGlobalRequired || twoFactorRequired}+ isDisabled={isGlobalRequired}+ onChange={handleToggle}+ />+ <Text>{t(labels.twoFactorRequireUser)}</Text>+ </Row>+ <Tooltip>{t(labels.twoFactorGlobalActiveTooltip)}</Tooltip>+ </TooltipTrigger>+ ) : (<Row alignItems="center" gap="3"><SwitchisSelected={isGlobalRequired || twoFactorRequired}@@ -71,8 +95,7 @@ export function UserTwoFactorSettings({ userId }: { userId: string }) {/><Text>{t(labels.twoFactorRequireUser)}</Text></Row>- <Tooltip>{t(labels.twoFactorGlobalActiveTooltip)}</Tooltip>- </TooltipTrigger>+ )}{twoFactorEnabled && (<Column gap="3">@@ -89,7 +112,7 @@ export function UserTwoFactorSettings({ userId }: { userId: string }) {)}</Column>- <Modal isOpen={showReset} isDismissable={true} onOpenChange={open => !open && setShowReset(false)}>+ <Modal isOpen={showReset} onOpenChange={open => !open && setShowReset(false)}><Dialog title={t(labels.twoFactorReset)} style={{ width: 400 }}><TypeConfirmationFormconfirmationValue={CONFIRM_VALUE}diff --git a/src/app/(main)/admin/websites/AdminWebsitesTable.tsx b/src/app/(main)/admin/websites/AdminWebsitesTable.tsxindex f33b4c35d..3ae07d06b 100644--- a/src/app/(main)/admin/websites/AdminWebsitesTable.tsx+++ b/src/app/(main)/admin/websites/AdminWebsitesTable.tsx@@ -1,4 +1,5 @@import { DataColumn, DataTable, Dialog, Icon, MenuItem, Modal, Row, Text } from '@umami/react-zen';+import { useRouter } from 'next/navigation';import { useState } from 'react';import { WebsiteDeleteForm } from '@/app/(main)/websites/[websiteId]/settings/WebsiteDeleteForm';import { DateDistance } from '@/components/common/DateDistance';@@ -11,6 +12,7 @@ import { decodePunycodeDomain } from '@/lib/format';export function AdminWebsitesTable({ data = [], ...props }: { data: any[] }) {const { t, labels } = useMessages();+ const router = useRouter();const [deleteWebsite, setDeleteWebsite] = useState(null);return (@@ -62,7 +64,10 @@ export function AdminWebsitesTable({ data = [], ...props }: { data: any[] }) {return (<MenuButton>- <MenuItem href={`/admin/websites/${id}`} data-test="link-button-edit">+ <MenuItem+ onAction={() => router.push(`/admin/websites/${id}`)}+ data-test="link-button-edit"+ ><Row alignItems="center" gap><Icon><Edit />diff --git a/src/app/(main)/boards/BoardCloneForm.tsx b/src/app/(main)/boards/BoardCloneForm.tsxindex ec35f90cb..eb8161a38 100644--- a/src/app/(main)/boards/BoardCloneForm.tsx+++ b/src/app/(main)/boards/BoardCloneForm.tsx@@ -53,7 +53,9 @@ export function BoardCloneForm({}) {const { t, labels, messages, getErrorMessage } = useMessages();const { data: board, isLoading } = useBoardQuery(boardId);- const { mutateAsync, error, isPending, touch, toast } = useUpdateQuery(`/boards/${boardId}/clone`);+ const { mutateAsync, error, isPending, touch, toast } = useUpdateQuery(+ `/boards/${boardId}/clone`,+ );const values = getDefaultValues(board);const boardType = getBoardType(board, { coerceDashboard: true });const resolvedTeamId = board?.teamId;@@ -95,8 +97,8 @@ export function BoardCloneForm({? t(labels.link): t(labels.website);- const handleEntityChange = (value: string) => {- setValue('entityId', value, { shouldDirty: true });+ const handleEntityChange = (value: string | number | null) => {+ setValue('entityId', (value as string) ?? '', { shouldDirty: true });};return (diff --git a/src/app/(main)/boards/BoardEditForm.tsx b/src/app/(main)/boards/BoardEditForm.tsxindex 0f5ded174..9b458eeae 100644--- a/src/app/(main)/boards/BoardEditForm.tsx+++ b/src/app/(main)/boards/BoardEditForm.tsx@@ -107,13 +107,13 @@ export function BoardEditForm({? t(labels.link): t(labels.website);- const handleTypeChange = (value: string) => {+ const handleTypeChange = (value: string | number | null) => {setValue('type', value as BoardType, { shouldDirty: true });setValue('entityId', '', { shouldDirty: true });};- const handleEntityChange = (value: string) => {- setValue('entityId', value, { shouldDirty: true });+ const handleEntityChange = (value: string | number | null) => {+ setValue('entityId', (value as string) ?? '', { shouldDirty: true });};return (diff --git a/src/app/(main)/boards/[boardId]/BoardComponentSelect.tsx b/src/app/(main)/boards/[boardId]/BoardComponentSelect.tsxindex b87ebbac8..b0f1a3965 100644--- a/src/app/(main)/boards/[boardId]/BoardComponentSelect.tsx+++ b/src/app/(main)/boards/[boardId]/BoardComponentSelect.tsx@@ -97,7 +97,10 @@ export function BoardComponentSelect({const options = (entityType && field.optionsByEntityType?.[entityType]) ?? field.options;const currentValue = defaults[field.name];- if (options?.length && !options.some(option => String(option.value) === String(currentValue))) {+ if (+ options?.length &&+ !options.some(option => String(option.value) === String(currentValue))+ ) {defaults[field.name] = options[0].value;}}@@ -308,7 +311,10 @@ export function BoardComponentSelect({<Text size="sm" color="muted">{t(labels.type)}</Text>- <Select value={selectedEntityType} onChange={handleEntityTypeChange}>+ <Select+ value={selectedEntityType}+ onChange={value => handleEntityTypeChange(value as string)}+ ><ListItem id={BOARD_ENTITY_TYPES.website}>{t(labels.website)}</ListItem><ListItem id={BOARD_ENTITY_TYPES.pixel}>{t(labels.pixel)}</ListItem><ListItem id={BOARD_ENTITY_TYPES.link}>{t(labels.link)}</ListItem>@@ -327,21 +333,21 @@ export function BoardComponentSelect({pixelId={selectedEntityId}teamId={teamId}placeholder={t(labels.selectPixel)}- onChange={setSelectedEntityId}+ onChange={value => setSelectedEntityId(value as string)}/>) : selectedEntityType === BOARD_ENTITY_TYPES.link ? (<LinkSelectlinkId={selectedEntityId}teamId={teamId}placeholder={t(labels.selectLink)}- onChange={setSelectedEntityId}+ onChange={value => setSelectedEntityId(value as string)}/>) : (<WebsiteSelectwebsiteId={selectedEntityId}teamId={teamId}placeholder={t(labels.selectWebsite)}- onChange={setSelectedEntityId}+ onChange={value => setSelectedEntityId(value as string)}/>)}</Column>@@ -373,7 +379,7 @@ export function BoardComponentSelect({{field.type === 'select' && (<Selectvalue={String(configValues[field.name] ?? field.defaultValue ?? '')}- onChange={(value: string) => handleConfigChange(field.name, value)}+ onChange={value => handleConfigChange(field.name, value as string)}maxHeight={300}popoverProps={{ style: { width: 220 } }}>@@ -415,7 +421,7 @@ export function BoardComponentSelect({<><Selectvalue={String(configValues[field.name] ?? field.defaultValue ?? '')}- onChange={(value: string) => handleConfigChange(field.name, value)}+ onChange={value => handleConfigChange(field.name, value as string)}maxHeight={300}popoverProps={{ style: { width: 220 } }}>diff --git a/src/app/(main)/settings/SettingsNav.tsx b/src/app/(main)/settings/SettingsNav.tsxindex 32e349795..6c9cd25d4 100644--- a/src/app/(main)/settings/SettingsNav.tsx+++ b/src/app/(main)/settings/SettingsNav.tsx@@ -58,19 +58,29 @@ export function SettingsNav({return (<Column gap="2"><Link href={renderUrl('/websites', false)} role="button" onClick={onItemClick}>- <TooltipTrigger isDisabled={!isCollapsed} delay={0}>- <Focusable>- <Row- alignItems="center"- hover={{ backgroundColor: 'surface-sunken' }}- borderRadius- minHeight="40px"- >- <IconLabel icon={<ArrowLeft />} label={isCollapsed ? '' : t(labels.back)} padding />- </Row>- </Focusable>- <Tooltip placement="right">{t(labels.back)}</Tooltip>- </TooltipTrigger>+ {(() => {+ const content = (+ <Focusable>+ <Row+ alignItems="center"+ hover={{ backgroundColor: 'surface-sunken' }}+ borderRadius+ minHeight="40px"+ >+ <IconLabel icon={<ArrowLeft />} label={isCollapsed ? '' : t(labels.back)} padding />+ </Row>+ </Focusable>+ );++ return isCollapsed ? (+ <TooltipTrigger delay={0}>+ {content}+ <Tooltip placement="right">{t(labels.back)}</Tooltip>+ </TooltipTrigger>+ ) : (+ content+ );+ })()}</Link>{items.map(({ label: sectionLabel, items: sectionItems }, index) => (<Column key={`${sectionLabel}${index}`} gap="1" marginBottom="1">@@ -81,27 +91,34 @@ export function SettingsNav({)}{sectionItems.map(({ id, path, label, icon }) => {const isSelected = selectedKey === id;+ const content = (+ <Focusable>+ <Row+ alignItems="center"+ hover={{ backgroundColor: 'surface-sunken' }}+ backgroundColor={isSelected ? 'surface-sunken' : undefined}+ borderRadius+ minHeight="40px"+ >+ <IconLabel+ icon={icon}+ label={isCollapsed ? '' : label}+ weight={isSelected ? 'bold' : undefined}+ padding+ />+ </Row>+ </Focusable>+ );return (<Link key={id} href={path} role="button" onClick={onItemClick}>- <TooltipTrigger isDisabled={!isCollapsed} delay={0}>- <Focusable>- <Row- alignItems="center"- hover={{ backgroundColor: 'surface-sunken' }}- backgroundColor={isSelected ? 'surface-sunken' : undefined}- borderRadius- minHeight="40px"- >- <IconLabel- icon={icon}- label={isCollapsed ? '' : label}- weight={isSelected ? 'bold' : undefined}- padding- />- </Row>- </Focusable>- <Tooltip placement="right">{label}</Tooltip>- </TooltipTrigger>+ {isCollapsed ? (+ <TooltipTrigger delay={0}>+ {content}+ <Tooltip placement="right">{label}</Tooltip>+ </TooltipTrigger>+ ) : (+ content+ )}</Link>);})}diff --git a/src/app/(main)/settings/preferences/DateRangeSetting.tsx b/src/app/(main)/settings/preferences/DateRangeSetting.tsxindex 6719cd22e..c8e240706 100644--- a/src/app/(main)/settings/preferences/DateRangeSetting.tsx+++ b/src/app/(main)/settings/preferences/DateRangeSetting.tsx@@ -24,8 +24,7 @@ export function DateRangeSetting() {<DateFiltervalue={date}onChange={handleChange}- placement="bottom start"- style={{ minWidth: '250px' }}+ buttonProps={{ style: { minWidth: '250px' } }}/><Button onPress={handleReset}>{t(labels.reset)}</Button></Row>diff --git a/src/app/(main)/settings/preferences/LanguageSetting.tsx b/src/app/(main)/settings/preferences/LanguageSetting.tsxindex 51c3940ae..5a0c153c3 100644--- a/src/app/(main)/settings/preferences/LanguageSetting.tsx+++ b/src/app/(main)/settings/preferences/LanguageSetting.tsx@@ -34,7 +34,7 @@ export function LanguageSetting() {onSearch={setSearch}onOpenChange={handleOpen}maxHeight={480}- style={{ minWidth: '250px' }}+ buttonProps={{ style: { minWidth: '250px' } }}>{items.map(item => (<ListItem key={item} id={item}>diff --git a/src/app/(main)/settings/preferences/TimezoneSetting.tsx b/src/app/(main)/settings/preferences/TimezoneSetting.tsxindex 765d37608..bb1c0108e 100644--- a/src/app/(main)/settings/preferences/TimezoneSetting.tsx+++ b/src/app/(main)/settings/preferences/TimezoneSetting.tsx@@ -30,7 +30,7 @@ export function TimezoneSetting() {onSearch={setSearch}onOpenChange={handleOpen}maxHeight={480}- style={{ minWidth: '250px' }}+ buttonProps={{ style: { minWidth: '250px' } }}>{items.map((item: any) => (<ListItem key={item} id={item}>diff --git a/src/app/(main)/settings/security/UserSecurityPage.tsx b/src/app/(main)/settings/security/UserSecurityPage.tsxindex 2e23786e5..9d1426a88 100644--- a/src/app/(main)/settings/security/UserSecurityPage.tsx+++ b/src/app/(main)/settings/security/UserSecurityPage.tsx@@ -1,4 +1,5 @@'use client';+import { useQueryClient } from '@tanstack/react-query';import { Column, Row, Switch, Text, Tooltip, TooltipTrigger } from '@umami/react-zen';import { useState } from 'react';import { Badge } from '@/components/common/Badge';@@ -8,7 +9,6 @@ import { Panel } from '@/components/common/Panel';import { useMessages, useTwoFactorStatusQuery } from '@/components/hooks';import { TwoFactorDisableModal } from '@/components/modals/TwoFactorDisableModal';import { TwoFactorSetupModal } from '@/components/modals/TwoFactorSetupModal';-import { useQueryClient } from '@tanstack/react-query';export function UserSecurityPage() {const { t, labels, messages } = useMessages();@@ -61,7 +61,19 @@ export function UserSecurityPage() {<Text>{t(messages.twoFactorUserDescription)}</Text>)}- <TooltipTrigger isDisabled={!(isEnabled && isRequired)}>+ {isEnabled && isRequired ? (+ <TooltipTrigger>+ <Row alignItems="center" gap="3">+ <Switch+ isSelected={isEnabled}+ isDisabled={isEnabled && isRequired}+ onChange={handleToggle}+ />+ <Text>{t(labels.twoFactorEnable)}</Text>+ </Row>+ <Tooltip>{t(messages.twoFactorRequiredMessage)}</Tooltip>+ </TooltipTrigger>+ ) : (<Row alignItems="center" gap="3"><SwitchisSelected={isEnabled}@@ -70,8 +82,7 @@ export function UserSecurityPage() {/><Text>{t(labels.twoFactorEnable)}</Text></Row>- <Tooltip>{t(messages.twoFactorRequiredMessage)}</Tooltip>- </TooltipTrigger>+ )}{isEnabled && isRequired && (<Text size="sm" color="muted">diff --git a/src/app/(main)/teams/[teamId]/TeamEditForm.tsx b/src/app/(main)/teams/[teamId]/TeamEditForm.tsxindex 04904c116..ffb22bd2a 100644--- a/src/app/(main)/teams/[teamId]/TeamEditForm.tsx+++ b/src/app/(main)/teams/[teamId]/TeamEditForm.tsx@@ -68,7 +68,7 @@ export function TeamEditForm({)}{allowEdit && (<FormButtons justifyContent="flex-end">- <FormSubmitButton variant="primary" isPending={isPending}>+ <FormSubmitButton variant="primary" isLoading={isPending}>{t(labels.save)}</FormSubmitButton></FormButtons>diff --git a/src/app/(main)/teams/[teamId]/TeamTwoFactorSettings.tsx b/src/app/(main)/teams/[teamId]/TeamTwoFactorSettings.tsxindex f0d0b4cb7..b77a4b030 100644--- a/src/app/(main)/teams/[teamId]/TeamTwoFactorSettings.tsx+++ b/src/app/(main)/teams/[teamId]/TeamTwoFactorSettings.tsx@@ -1,12 +1,12 @@'use client';+import { useQueryClient } from '@tanstack/react-query';import { Column, Row, Switch, Text, Tooltip, TooltipTrigger } from '@umami/react-zen';import {useMessages,- useUpdateQuery,- useTwoFactorStatusQuery,useTeamQuery,+ useTwoFactorStatusQuery,+ useUpdateQuery,} from '@/components/hooks';-import { useQueryClient } from '@tanstack/react-query';export function TeamTwoFactorSettings({ teamId }: { teamId: string }) {const { t, labels, messages } = useMessages();@@ -29,7 +29,19 @@ export function TeamTwoFactorSettings({ teamId }: { teamId: string }) {<Column gap="4"><Text weight="bold">{t(labels.twoFactorAuth)}</Text>- <TooltipTrigger isDisabled={!isGlobalRequired}>+ {isGlobalRequired ? (+ <TooltipTrigger>+ <Row alignItems="center" gap="3">+ <Switch+ isSelected={isGlobalRequired || twoFactorRequired}+ isDisabled={isGlobalRequired}+ onChange={handleToggle}+ />+ <Text>{t(labels.twoFactorRequireTeam)}</Text>+ </Row>+ <Tooltip>{t(labels.twoFactorGlobalActiveTooltip)}</Tooltip>+ </TooltipTrigger>+ ) : (<Row alignItems="center" gap="3"><SwitchisSelected={isGlobalRequired || twoFactorRequired}@@ -38,8 +50,7 @@ export function TeamTwoFactorSettings({ teamId }: { teamId: string }) {/><Text>{t(labels.twoFactorRequireTeam)}</Text></Row>- <Tooltip>{t(labels.twoFactorGlobalActiveTooltip)}</Tooltip>- </TooltipTrigger>+ )}<Text size="sm" color="muted">{t(messages.twoFactorRequireTeamDescription)}diff --git a/src/app/(main)/websites/[websiteId]/(reports)/attribution/Attribution.tsx b/src/app/(main)/websites/[websiteId]/(reports)/attribution/Attribution.tsxindex 8baaae5a1..f66d261a3 100644--- a/src/app/(main)/websites/[websiteId]/(reports)/attribution/Attribution.tsx+++ b/src/app/(main)/websites/[websiteId]/(reports)/attribution/Attribution.tsx@@ -26,14 +26,18 @@ export function Attribution({type,step,}: AttributionProps) {- const { data, error, isLoading } = useResultQuery<any>('attribution', {- websiteId,- startDate,- endDate,- model,- type,- step,- });+ const { data, error, isLoading } = useResultQuery<any>(+ 'attribution',+ {+ websiteId,+ startDate,+ endDate,+ model,+ type,+ step,+ },+ { enabled: !!step },+ );const { t, labels } = useMessages();diff --git a/src/app/(main)/websites/[websiteId]/(reports)/attribution/AttributionPage.tsx b/src/app/(main)/websites/[websiteId]/(reports)/attribution/AttributionPage.tsxindex f0786332a..0917759a7 100644--- a/src/app/(main)/websites/[websiteId]/(reports)/attribution/AttributionPage.tsx+++ b/src/app/(main)/websites/[websiteId]/(reports)/attribution/AttributionPage.tsx@@ -1,53 +1,96 @@'use client';-import { Column, Grid, ListItem, SearchField, Select } from '@umami/react-zen';+import { Column, Grid, Label, ListItem, Loading, Select } from '@umami/react-zen';import { useState } from 'react';import { WebsiteControls } from '@/app/(main)/websites/[websiteId]/WebsiteControls';-import { useDateRange, useMessages } from '@/components/hooks';+import { Empty } from '@/components/common/Empty';+import { MultiSelect } from '@/components/common/MultiSelect';+import { useDateRange, useMessages, useWebsiteValuesQuery } from '@/components/hooks';import { Attribution } from './Attribution';export function AttributionPage({ websiteId }: { websiteId: string }) {const [model, setModel] = useState('first-click');const [type, setType] = useState('path');- const [step, setStep] = useState('/');+ const [step, setStep] = useState('');+ const [search, setSearch] = useState('');const { t, labels } = useMessages();const {dateRange: { startDate, endDate },} = useDateRange();+ const { data, isLoading } = useWebsiteValuesQuery({+ websiteId,+ type,+ search,+ startDate,+ endDate,+ });+ const items = data?.filter(({ value }) => value) || [];++ const handleTypeChange = (value: any) => {+ setType(value as string);+ setStep('');+ setSearch('');+ };++ const handleStepChange = (values: string[]) => {+ setStep(values.filter(value => value !== step).pop() ?? '');+ };return (<Column gap="6"><WebsiteControls websiteId={websiteId} /><Grid columns={{ base: '1fr', md: '1fr 1fr 1fr' }} gap><Column>- <Select label={t(labels.model)} value={model} defaultValue={model} onChange={setModel}>+ <Select+ label={t(labels.model)}+ value={model}+ defaultValue={model}+ onChange={value => setModel(value as string)}+ ><ListItem id="first-click">{t(labels.firstClick)}</ListItem><ListItem id="last-click">{t(labels.lastClick)}</ListItem></Select></Column><Column>- <Select label={t(labels.type)} value={type} defaultValue={type} onChange={setType}>+ <Select+ label={t(labels.type)}+ value={type}+ defaultValue={type}+ onChange={handleTypeChange}+ ><ListItem id="path">{t(labels.viewedPage)}</ListItem><ListItem id="event">{t(labels.triggeredEvent)}</ListItem></Select></Column><Column>- <SearchField- label={t(labels.conversionStep)}- value={step}- defaultValue={step}- onSearch={setStep}- delay={1000}- />+ <Label>{t(labels.conversionStep)}</Label>+ <MultiSelect+ value={step ? [step] : []}+ onChange={handleStepChange}+ searchValue={search}+ onSearch={setSearch}+ renderEmptyState={() => (isLoading ? <Loading icon="dots" /> : <Empty />)}+ allowSearch+ >+ {items.map(({ value }) => (+ <ListItem key={value} id={value}>+ {value}+ </ListItem>+ ))}+ </MultiSelect></Column></Grid>- <Attribution- websiteId={websiteId}- startDate={startDate}- endDate={endDate}- model={model}- type={type}- step={step}- />+ {step ? (+ <Attribution+ websiteId={websiteId}+ startDate={startDate}+ endDate={endDate}+ model={model}+ type={type}+ step={step}+ />+ ) : (+ <Empty />+ )}</Column>);}diff --git a/src/app/(main)/websites/[websiteId]/(reports)/funnels/EventDataFilterRow.tsx b/src/app/(main)/websites/[websiteId]/(reports)/funnels/EventDataFilterRow.tsxindex 6f673869b..30246c995 100644--- a/src/app/(main)/websites/[websiteId]/(reports)/funnels/EventDataFilterRow.tsx+++ b/src/app/(main)/websites/[websiteId]/(reports)/funnels/EventDataFilterRow.tsx@@ -63,15 +63,11 @@ function PropertySelect({aria-label="PropertySelect"items={properties}inputValue={value}- style={{ width: '100%' }}- onInputChange={v => {+ onInputValueChange={v => {setSearch(v);onChange?.(v);onPropertyChange?.(v);}}- formValue="text"- allowsEmptyCollection- allowsCustomValuerenderEmptyState={() =>isLoading ? (<Loading placement="center" icon="dots" />@@ -125,13 +121,9 @@ function ValueSelect({aria-label="ValueSelect"items={values}inputValue={value}- style={{ width: '100%' }}- onInputChange={v => {+ onInputValueChange={v => {onChange?.(v);}}- formValue="text"- allowsEmptyCollection- allowsCustomValuerenderEmptyState={() =>isLoading ? (<Loading placement="center" icon="dots" />@@ -158,7 +150,7 @@ function OperatorSelect({}) {const { t, labels } = useMessages();return (- <Select value={value} onChange={onChange}>+ <Select value={value} onChange={v => onChange?.(v as string)}><ListItem id="eq">{t(labels.is)}</ListItem><ListItem id="neq">{t(labels.isNot)}</ListItem><ListItem id="c">{t(labels.contains)}</ListItem>diff --git a/src/app/(main)/websites/[websiteId]/(reports)/funnels/Funnel.tsx b/src/app/(main)/websites/[websiteId]/(reports)/funnels/Funnel.tsxindex 01015605c..555aeec9c 100644--- a/src/app/(main)/websites/[websiteId]/(reports)/funnels/Funnel.tsx+++ b/src/app/(main)/websites/[websiteId]/(reports)/funnels/Funnel.tsx@@ -18,14 +18,7 @@ interface FunnelProps {allowEdit?: boolean;}-export function Funnel({- id,- name,- type,- parameters,- websiteId,- allowEdit = true,-}: FunnelProps) {+export function Funnel({ id, name, type, parameters, websiteId, allowEdit = true }: FunnelProps) {const { t, labels } = useMessages();const { pathname } = useNavigation();const isSharePage = pathname.includes('/share/');@@ -134,8 +127,8 @@ export function Funnel({<Row alignItems="center" gap="6"><ProgressBarvalue={visitors || 0}- minValue={0}- maxValue={previous || 1}+ min={0}+ max={previous || 1}style={{ width: '100%' }}/><Row minWidth="90px" justifyContent="end">diff --git a/src/app/(main)/websites/[websiteId]/(reports)/goals/Goal.tsx b/src/app/(main)/websites/[websiteId]/(reports)/goals/Goal.tsxindex 6983ab4cc..13d7a389e 100644--- a/src/app/(main)/websites/[websiteId]/(reports)/goals/Goal.tsx+++ b/src/app/(main)/websites/[websiteId]/(reports)/goals/Goal.tsx@@ -93,8 +93,8 @@ export function Goal({<Row alignItems="center" gap="6"><ProgressBarvalue={data?.num || 0}- minValue={0}- maxValue={data?.total || 1}+ min={0}+ max={data?.total || 1}style={{ width: '100%' }}/><Text weight="bold" size="4xl">diff --git a/src/app/(main)/websites/[websiteId]/(reports)/journeys/Journey.tsx b/src/app/(main)/websites/[websiteId]/(reports)/journeys/Journey.tsxindex 8b3c47499..55c442ad2 100644--- a/src/app/(main)/websites/[websiteId]/(reports)/journeys/Journey.tsx+++ b/src/app/(main)/websites/[websiteId]/(reports)/journeys/Journey.tsx@@ -228,24 +228,25 @@ export function Journey({ websiteId, steps, startStep, endStep, view }: JourneyP<Text truncate>{name}</Text></Row><div className={styles.count} title={nodeCount}>- <TooltipTrigger- delay={0}- isDisabled={columnIndex === 0 || (selectedNode && !selected)}- >- <Focusable>- <div>{formatLongNumber(nodeCount)}</div>- </Focusable>- <Tooltip placement="top" offset={20} showArrow>- <Text transform="lowercase" color="red">- {`${dropped}% ${t(labels.dropoff)}`}- </Text>- <Column>- <Text transform="lowercase">- {`${remaining}% ${t(labels.conversion)}`}+ {columnIndex === 0 || (selectedNode && !selected) ? (+ <div>{formatLongNumber(nodeCount)}</div>+ ) : (+ <TooltipTrigger delay={0}>+ <Focusable>+ <div>{formatLongNumber(nodeCount)}</div>+ </Focusable>+ <Tooltip placement="top" sideOffset={20} showArrow>+ <Text transform="lowercase" color="red">+ {`${dropped}% ${t(labels.dropoff)}`}</Text>- </Column>- </Tooltip>- </TooltipTrigger>+ <Column>+ <Text transform="lowercase">+ {`${remaining}% ${t(labels.conversion)}`}+ </Text>+ </Column>+ </Tooltip>+ </TooltipTrigger>+ )}</div>{columnIndex < columns.length &&lines.map(([fromIndex, nodeIndex], i) => {diff --git a/src/app/(main)/websites/[websiteId]/(reports)/journeys/JourneysPage.tsx b/src/app/(main)/websites/[websiteId]/(reports)/journeys/JourneysPage.tsxindex f7cc4a88d..06939e068 100644--- a/src/app/(main)/websites/[websiteId]/(reports)/journeys/JourneysPage.tsx+++ b/src/app/(main)/websites/[websiteId]/(reports)/journeys/JourneysPage.tsx@@ -39,7 +39,12 @@ export function JourneysPage({ websiteId }: { websiteId: string }) {<Column gap><WebsiteControls websiteId={websiteId} /><Grid columns="repeat(3, 1fr)" gap>- <Select label={t(labels.steps)} value={steps} defaultValue={steps} onChange={setSteps}>+ <Select+ label={t(labels.steps)}+ value={steps}+ defaultValue={steps}+ onChange={value => setSteps(Number(value))}+ >{JOURNEY_STEPS.map(step => (<ListItem key={step} id={step}>{step}diff --git a/src/app/(main)/websites/[websiteId]/(reports)/performance/Performance.tsx b/src/app/(main)/websites/[websiteId]/(reports)/performance/Performance.tsxindex ff7bbb516..db8d64beb 100644--- a/src/app/(main)/websites/[websiteId]/(reports)/performance/Performance.tsx+++ b/src/app/(main)/websites/[websiteId]/(reports)/performance/Performance.tsx@@ -149,7 +149,7 @@ export function Performance({ websiteId, startDate, endDate, unit }: Performance<Selectlabel="Percentile"value={selectedPercentile}- onChange={(value: string) => setSelectedPercentile(value as 'p50' | 'p75' | 'p95')}+ onChange={value => setSelectedPercentile(value as 'p50' | 'p75' | 'p95')}>{PERCENTILES.map(({ id, label }) => (<ListItem key={id} id={id}>diff --git a/src/app/(main)/websites/[websiteId]/(reports)/revenue/Revenue.tsx b/src/app/(main)/websites/[websiteId]/(reports)/revenue/Revenue.tsxindex 112eedf55..d2e4747e1 100644--- a/src/app/(main)/websites/[websiteId]/(reports)/revenue/Revenue.tsx+++ b/src/app/(main)/websites/[websiteId]/(reports)/revenue/Revenue.tsx@@ -92,9 +92,9 @@ export function Revenue({ websiteId, startDate, endDate, unit }: RevenueProps) {<Row justifyContent="end"><Selectvalue={revenueChartMode}- onChange={handleRevenueChartModeChange}- popoverProps={{ placement: 'bottom right' }}- style={{ width: 140 }}+ onChange={value => handleRevenueChartModeChange(value as RevenueChartMode)}+ popoverProps={{ side: 'bottom', align: 'end' }}+ buttonProps={{ style: { width: 140 } }}><ListItem id="period">{t(labels.period)}</ListItem><ListItem id="cumulative">{t(labels.cumulative)}</ListItem>diff --git a/src/app/(main)/websites/[websiteId]/ExpandedViewModal.tsx b/src/app/(main)/websites/[websiteId]/ExpandedViewModal.tsxindex 36638121d..3336d2654 100644--- a/src/app/(main)/websites/[websiteId]/ExpandedViewModal.tsx+++ b/src/app/(main)/websites/[websiteId]/ExpandedViewModal.tsx@@ -28,7 +28,7 @@ export function ExpandedViewModal({};return (- <Modal isOpen={!!view} onOpenChange={handleOpenChange} isDismissable>+ <Modal isOpen={!!view} onOpenChange={handleOpenChange}><Dialogstyle={{maxWidth: 1320,diff --git a/src/app/(main)/websites/[websiteId]/WebsiteMenu.tsx b/src/app/(main)/websites/[websiteId]/WebsiteMenu.tsxindex 3446440c1..34c72e93a 100644--- a/src/app/(main)/websites/[websiteId]/WebsiteMenu.tsx+++ b/src/app/(main)/websites/[websiteId]/WebsiteMenu.tsx@@ -36,13 +36,13 @@ export function WebsiteMenu({ websiteId }: { websiteId: string }) {<MoreHorizontal /></Icon></Button>- <Popover placement="bottom">- <Menu onAction={handleAction}>+ <Popover side="bottom">+ <Menu>{menuItems.map(({ id, label, icon, seperator }, index) => {return (<Fragment key={index}>{seperator && <MenuSeparator />}- <MenuItem id={id}>+ <MenuItem id={id} onAction={handleAction}><Icon>{icon}</Icon><Text>{label}</Text></MenuItem>diff --git a/src/app/(main)/websites/[websiteId]/WebsiteNav.tsx b/src/app/(main)/websites/[websiteId]/WebsiteNav.tsxindex 3fb2a2442..7c0b9058c 100644--- a/src/app/(main)/websites/[websiteId]/WebsiteNav.tsx+++ b/src/app/(main)/websites/[websiteId]/WebsiteNav.tsx@@ -20,19 +20,30 @@ export function WebsiteNav({return (<Column gap="2" marginTop={isCollapsed ? '2' : undefined}><Link href={renderUrl('/websites', false)} role="button" onClick={onItemClick}>- <TooltipTrigger isDisabled={!isCollapsed} delay={0}>- <Focusable>- <Row- alignItems="center"- hover={{ backgroundColor: 'surface-sunken' }}- borderRadius- minHeight="40px"- >- <IconLabel icon={<ArrowLeft />} label={isCollapsed ? '' : t(labels.back)} padding />- </Row>- </Focusable>- <Tooltip placement="right">{t(labels.back)}</Tooltip>- </TooltipTrigger>+ {isCollapsed ? (+ <TooltipTrigger delay={0}>+ <Focusable>+ <Row+ alignItems="center"+ hover={{ backgroundColor: 'surface-sunken' }}+ borderRadius+ minHeight="40px"+ >+ <IconLabel icon={<ArrowLeft />} label="" padding />+ </Row>+ </Focusable>+ <Tooltip placement="right">{t(labels.back)}</Tooltip>+ </TooltipTrigger>+ ) : (+ <Row+ alignItems="center"+ hover={{ backgroundColor: 'surface-sunken' }}+ borderRadius+ minHeight="40px"+ >+ <IconLabel icon={<ArrowLeft />} label={t(labels.back)} padding />+ </Row>+ )}</Link>{items.map(({ label: sectionLabel, items: sectionItems }, index) => (<Column key={`${sectionLabel}${index}`} gap="1" marginBottom="1">@@ -45,25 +56,42 @@ export function WebsiteNav({const isSelected = selectedKey === id;return (<Link key={id} href={path} role="button" onClick={onItemClick}>- <TooltipTrigger isDisabled={!isCollapsed} delay={0}>- <Focusable>- <Row- alignItems="center"- hover={{ backgroundColor: 'surface-sunken' }}- backgroundColor={isSelected ? 'surface-sunken' : undefined}- borderRadius- minHeight="40px"- >- <IconLabel- icon={icon}- label={isCollapsed ? '' : label}- weight={isSelected ? 'bold' : undefined}- padding- />- </Row>- </Focusable>- <Tooltip placement="right">{label}</Tooltip>- </TooltipTrigger>+ {isCollapsed ? (+ <TooltipTrigger delay={0}>+ <Focusable>+ <Row+ alignItems="center"+ hover={{ backgroundColor: 'surface-sunken' }}+ backgroundColor={isSelected ? 'surface-sunken' : undefined}+ borderRadius+ minHeight="40px"+ >+ <IconLabel+ icon={icon}+ label=""+ weight={isSelected ? 'bold' : undefined}+ padding+ />+ </Row>+ </Focusable>+ <Tooltip placement="right">{label}</Tooltip>+ </TooltipTrigger>+ ) : (+ <Row+ alignItems="center"+ hover={{ backgroundColor: 'surface-sunken' }}+ backgroundColor={isSelected ? 'surface-sunken' : undefined}+ borderRadius+ minHeight="40px"+ >+ <IconLabel+ icon={icon}+ label={label}+ weight={isSelected ? 'bold' : undefined}+ padding+ />+ </Row>+ )}</Link>);})}diff --git a/src/app/(main)/websites/[websiteId]/events/EventProperties.tsx b/src/app/(main)/websites/[websiteId]/events/EventProperties.tsxindex 191ed4419..9faac7a55 100644--- a/src/app/(main)/websites/[websiteId]/events/EventProperties.tsx+++ b/src/app/(main)/websites/[websiteId]/events/EventProperties.tsx@@ -109,7 +109,7 @@ export function EventProperties({ websiteId }: { websiteId: string }) {<Label>{t(labels.event)}</Label><Selectvalue={eventName}- onChange={handleEventChange}+ onChange={value => handleEventChange(value as string)}allowSearchsearchValue={eventSearch}onSearch={setEventSearch}@@ -132,10 +132,8 @@ export function EventProperties({ websiteId }: { websiteId: string }) {<Label>{t(labels.property)}</Label><ComboBoxinputValue={propertyName}- onInputChange={setPropertyName}+ onInputValueChange={setPropertyName}isDisabled={!eventName}- allowsCustomValue- allowsEmptyCollection>{properties.map((field: { propertyName: string }) => (<ListItem key={field.propertyName} id={field.propertyName}>diff --git a/src/app/(main)/websites/[websiteId]/events/EventsTable.tsx b/src/app/(main)/websites/[websiteId]/events/EventsTable.tsxindex 8e07880bb..fbe51e0e3 100644--- a/src/app/(main)/websites/[websiteId]/events/EventsTable.tsx+++ b/src/app/(main)/websites/[websiteId]/events/EventsTable.tsx@@ -110,7 +110,7 @@ const PropertiesButton = props => {</Icon></Row></Button>- <Popover placement="right">+ <Popover side="right"><Dialog><EventData {...props} /></Dialog>diff --git a/src/app/(main)/websites/[websiteId]/replays/ReplayModal.tsx b/src/app/(main)/websites/[websiteId]/replays/ReplayModal.tsxindex 6078b4bbd..0e04fa5ea 100644--- a/src/app/(main)/websites/[websiteId]/replays/ReplayModal.tsx+++ b/src/app/(main)/websites/[websiteId]/replays/ReplayModal.tsx@@ -1,11 +1,11 @@'use client';-import { Column, Dialog, Modal, type ModalProps } from '@umami/react-zen';+import { Column, Dialog, Sheet, type SheetProps } from '@umami/react-zen';import { ReplayPlayback } from '@/app/(main)/websites/[websiteId]/replays/[replayId]/ReplayPlayback';import { useNavigation } from '@/components/hooks';import { buildPath } from '@/lib/url';import styles from './ReplayModal.module.css';-export interface ReplayModalProps extends ModalProps {+export interface ReplayModalProps extends SheetProps {websiteId: string;replayId?: string;}@@ -34,17 +34,16 @@ export function ReplayModal({ websiteId, replayId, className, ...props }: Replay};return (- <Modal+ <Sheet{...props}- placement="bottom"- offset="80px"+ side="bottom"+ size="calc(100dvh - 80px)"className={modalClassName}isOpen={!!activeReplayId}onOpenChange={handleOpenChange}- isDismissable><Column height="100%">- <Dialog variant="sheet" className={styles.sheet}>+ <Dialog className={styles.sheet}>{({ close }) => (<Column padding="6">{activeReplayId && (@@ -54,6 +53,6 @@ export function ReplayModal({ websiteId, replayId, className, ...props }: Replay)}</Dialog></Column>- </Modal>+ </Sheet>);}diff --git a/src/app/(main)/websites/[websiteId]/replays/[replayId]/ReplayPlayback.tsx b/src/app/(main)/websites/[websiteId]/replays/[replayId]/ReplayPlayback.tsxindex 4ee20baac..3f9991666 100644--- a/src/app/(main)/websites/[websiteId]/replays/[replayId]/ReplayPlayback.tsx+++ b/src/app/(main)/websites/[websiteId]/replays/[replayId]/ReplayPlayback.tsx@@ -76,7 +76,7 @@ export function ReplayPlayback({<Bookmark fill="none" /></Icon></Button>- <Popover placement="bottom end">+ <Popover side="bottom" align="end"><Dialog title={t(labels.saveReplay)} style={{ width: '300px' }}>{({ close }) => (<ReplaySaveFormdiff --git a/src/app/(main)/websites/[websiteId]/sessions/SessionActivity.tsx b/src/app/(main)/websites/[websiteId]/sessions/SessionActivity.tsxindex 78a62815d..7512769bc 100644--- a/src/app/(main)/websites/[websiteId]/sessions/SessionActivity.tsx+++ b/src/app/(main)/websites/[websiteId]/sessions/SessionActivity.tsx@@ -98,7 +98,7 @@ const PropertiesButton = props => {</Icon></Row></Button>- <Popover placement="right">+ <Popover side="right"><Dialog><EventData {...props} /></Dialog>diff --git a/src/app/(main)/websites/[websiteId]/sessions/SessionModal.tsx b/src/app/(main)/websites/[websiteId]/sessions/SessionModal.tsxindex 1723763ad..d9c41bc8a 100644--- a/src/app/(main)/websites/[websiteId]/sessions/SessionModal.tsx+++ b/src/app/(main)/websites/[websiteId]/sessions/SessionModal.tsx@@ -1,10 +1,10 @@'use client';-import { Column, Dialog, Modal, type ModalProps } from '@umami/react-zen';+import { Column, Dialog, Sheet, type SheetProps } from '@umami/react-zen';import { SessionProfile } from '@/app/(main)/websites/[websiteId]/sessions/SessionProfile';import { useNavigation } from '@/components/hooks';import styles from './SessionModal.module.css';-export interface SessionModalProps extends ModalProps {+export interface SessionModalProps extends SheetProps {websiteId: string;}@@ -23,17 +23,16 @@ export function SessionModal({ websiteId, className, ...props }: SessionModalPro};return (- <Modal- placement="bottom"- offset="80px"+ <Sheet+ side="bottom"+ size="calc(100dvh - 80px)"className={[styles.modal, className].filter(Boolean).join(' ')}isOpen={!!session}onOpenChange={handleOpenChange}- isDismissable{...props}><Column height="100%">- <Dialog variant="sheet" className="rounded-lg">+ <Dialog className="rounded-lg">{({ close }) => (<Column padding="10"><SessionProfile@@ -46,6 +45,6 @@ export function SessionModal({ websiteId, className, ...props }: SessionModalPro)}</Dialog></Column>- </Modal>+ </Sheet>);}diff --git a/src/app/(main)/websites/[websiteId]/sessions/SessionProfileModal.tsx b/src/app/(main)/websites/[websiteId]/sessions/SessionProfileModal.tsxindex fcd18fecd..4de485c38 100644--- a/src/app/(main)/websites/[websiteId]/sessions/SessionProfileModal.tsx+++ b/src/app/(main)/websites/[websiteId]/sessions/SessionProfileModal.tsx@@ -1,9 +1,9 @@'use client';-import { Column, Dialog, Modal } from '@umami/react-zen';+import { Column, Dialog, Sheet } from '@umami/react-zen';import { useRouter, useSearchParams } from 'next/navigation';import { buildPath } from '@/lib/url';-import { SessionProfile } from './SessionProfile';import styles from './SessionModal.module.css';+import { SessionProfile } from './SessionProfile';export function SessionProfileModal({websiteId,@@ -29,21 +29,20 @@ export function SessionProfileModal({};return (- <Modal- placement="bottom"- offset="80px"+ <Sheet+ side="bottom"+ size="calc(100dvh - 80px)"className={styles.modal}isOpenonOpenChange={handleOpenChange}- isDismissable><Column height="100%">- <Dialog variant="sheet" className="rounded-lg">+ <Dialog className="rounded-lg"><Column padding="10"><SessionProfile websiteId={websiteId} sessionId={sessionId} onClose={closeModal} /></Column></Dialog></Column>- </Modal>+ </Sheet>);}diff --git a/src/app/(main)/websites/[websiteId]/sessions/SessionProperties.tsx b/src/app/(main)/websites/[websiteId]/sessions/SessionProperties.tsxindex 7c5e2bdfa..cad156577 100644--- a/src/app/(main)/websites/[websiteId]/sessions/SessionProperties.tsx+++ b/src/app/(main)/websites/[websiteId]/sessions/SessionProperties.tsx@@ -85,12 +85,7 @@ export function SessionProperties({ websiteId }: { websiteId: string }) {><Column gap="1" style={{ minWidth: 0 }}><Label>{t(labels.property)}</Label>- <ComboBox- inputValue={propertyName}- onInputChange={setPropertyName}- allowsCustomValue- allowsEmptyCollection- >+ <ComboBox inputValue={propertyName} onInputValueChange={setPropertyName}>{properties.map((field: { propertyName: string }) => (<ListItem key={field.propertyName} id={field.propertyName}>{field.propertyName}diff --git a/src/app/(main)/websites/[websiteId]/sessions/SessionReplaysDataTable.tsx b/src/app/(main)/websites/[websiteId]/sessions/SessionReplaysDataTable.tsxindex daca0577c..9ff3ec43f 100644--- a/src/app/(main)/websites/[websiteId]/sessions/SessionReplaysDataTable.tsx+++ b/src/app/(main)/websites/[websiteId]/sessions/SessionReplaysDataTable.tsx@@ -52,7 +52,7 @@ export function SessionReplaysDataTable({)}<DataGrid query={queryResult} allowPaging>{({ data }) => (- <SessionReplaysTable data={data} onPlay={handlePlay} selectedId={selectedId} />+ <SessionReplaysTable data={data} onPlay={handlePlay as any} selectedId={selectedId} />)}</DataGrid></Column>diff --git a/src/app/(main)/websites/[websiteId]/settings/WebsiteReplaySettings.tsx b/src/app/(main)/websites/[websiteId]/settings/WebsiteReplaySettings.tsxindex 980f215be..fa02d767b 100644--- a/src/app/(main)/websites/[websiteId]/settings/WebsiteReplaySettings.tsx+++ b/src/app/(main)/websites/[websiteId]/settings/WebsiteReplaySettings.tsx@@ -160,13 +160,12 @@ export function WebsiteReplaySettings({ websiteId }: { websiteId: string }) {{heatmapEnabled && (<Sliderlabel={`Heatmap ${t(labels.sampleRate).toLowerCase()}`}- minValue={0.05}- maxValue={1}+ min={0.05}+ max={1}step={0.05}value={heatmapSampleRate}onChange={v => setHeatmapSampleRate(Array.isArray(v) ? v[0] : v)}showValue- formatOptions={{ style: 'percent', maximumFractionDigits: 0 }}style={{ maxWidth: '360px' }}/>)}@@ -174,25 +173,32 @@ export function WebsiteReplaySettings({ websiteId }: { websiteId: string }) {<><Sliderlabel={`Replay ${t(labels.sampleRate).toLowerCase()}`}- minValue={0.05}- maxValue={1}+ min={0.05}+ max={1}step={0.05}value={sampleRate}onChange={v => setSampleRate(Array.isArray(v) ? v[0] : v)}showValue- formatOptions={{ style: 'percent', maximumFractionDigits: 0 }}style={{ maxWidth: '360px' }}/><Column gap="1"><Label>{t(labels.maskLevel)}</Label>- <Select value={maskLevel} onChange={setMaskLevel} style={{ maxWidth: '360px' }}>+ <Select+ value={maskLevel}+ onChange={v => setMaskLevel(v as typeof maskLevel)}+ buttonProps={{ style: { maxWidth: '360px' } }}+ ><ListItem id="strict">strict</ListItem><ListItem id="moderate">moderate</ListItem></Select></Column><Column gap="1"><Label>{t(labels.maxDuration)}</Label>- <Select value={maxDuration} onChange={setMaxDuration} style={{ maxWidth: '360px' }}>+ <Select+ value={maxDuration}+ onChange={v => setMaxDuration(v as string)}+ buttonProps={{ style: { maxWidth: '360px' } }}+ ><ListItem id="300000">5 minutes</ListItem><ListItem id="600000">10 minutes</ListItem><ListItem id="900000">15 minutes</ListItem>diff --git a/src/app/(main)/websites/[websiteId]/settings/WebsiteTransferForm.tsx b/src/app/(main)/websites/[websiteId]/settings/WebsiteTransferForm.tsxindex ce54f8199..348bccafc 100644--- a/src/app/(main)/websites/[websiteId]/settings/WebsiteTransferForm.tsx+++ b/src/app/(main)/websites/[websiteId]/settings/WebsiteTransferForm.tsx@@ -9,7 +9,7 @@ import {Select,Text,} from '@umami/react-zen';-import { type Key, useState } from 'react';+import { useState } from 'react';import {useLoginQuery,useMessages,@@ -59,7 +59,7 @@ export function WebsiteTransferForm({);};- const handleChange = (key: Key) => {+ const handleChange = (key: string | number | null) => {setTeamId(key as string);};@@ -74,7 +74,7 @@ export function WebsiteTransferForm({</Text><FormField name="teamId">{!isTeamWebsite && (- <Select onSelectionChange={handleChange} selectedKey={teamId}>+ <Select onChange={handleChange} value={teamId}>{items.map(({ id, name }) => {return (<ListItem key={`${id}`} id={`${id}`}>@@ -89,7 +89,7 @@ export function WebsiteTransferForm({<Button onPress={onClose}>{t(labels.cancel)}</Button><FormSubmitButtonvariant="primary"- isPending={isPending}+ isLoading={isPending}isDisabled={!isTeamWebsite && !teamId}>{t(labels.transfer)}diff --git a/src/app/Providers.tsx b/src/app/Providers.tsxindex 049f6a2f1..c6c8a28b6 100644--- a/src/app/Providers.tsx+++ b/src/app/Providers.tsx@@ -1,7 +1,6 @@'use client';import { QueryClient, QueryClientProvider } from '@tanstack/react-query';import { RouterProvider, ZenProvider } from '@umami/react-zen';-import { useRouter } from 'next/navigation';import { NextIntlClientProvider } from 'next-intl';import { useEffect } from 'react';import { ErrorBoundary } from '@/components/common/ErrorBoundary';@@ -34,23 +33,9 @@ function MessagesProvider({ children }) {}export function Providers({ children }) {- const router = useRouter();-- function navigate(url: string) {- if (shouldUseNativeLink(url)) {- window.location.href = url;- } else {- router.push(url);- }- }-- function shouldUseNativeLink(url: string) {- return url.startsWith('http');- }-return (<ZenProvider>- <RouterProvider navigate={navigate}>+ <RouterProvider><MessagesProvider><QueryClientProvider client={client}><ErrorBoundary>{children}</ErrorBoundary>diff --git a/src/app/share/[slug]/[[...path]]/ShareNav.tsx b/src/app/share/[slug]/[[...path]]/ShareNav.tsxindex 85a713630..66be78d3a 100644--- a/src/app/share/[slug]/[[...path]]/ShareNav.tsx+++ b/src/app/share/[slug]/[[...path]]/ShareNav.tsx@@ -177,26 +177,42 @@ export function ShareNav({const isSelected = selectedKey === id;return (<Link key={id} href={path} role="button" onClick={onItemClick}>- <TooltipTrigger isDisabled={!collapsed} delay={0}>- <Focusable>- <Row- alignItems="center"- justifyContent={collapsed ? 'center' : undefined}- hover={{ backgroundColor: 'surface-sunken' }}- backgroundColor={isSelected ? 'surface-sunken' : undefined}- borderRadius- minHeight="40px"- >- <IconLabel- icon={icon}- label={collapsed ? '' : label}- weight={isSelected ? 'bold' : undefined}- {...(!collapsed && { padding: true })}- />- </Row>- </Focusable>- <Tooltip placement="right">{label}</Tooltip>- </TooltipTrigger>+ {collapsed ? (+ <TooltipTrigger delay={0}>+ <Focusable>+ <Row+ alignItems="center"+ justifyContent="center"+ hover={{ backgroundColor: 'surface-sunken' }}+ backgroundColor={isSelected ? 'surface-sunken' : undefined}+ borderRadius+ minHeight="40px"+ >+ <IconLabel+ icon={icon}+ label=""+ weight={isSelected ? 'bold' : undefined}+ />+ </Row>+ </Focusable>+ <Tooltip placement="right">{label}</Tooltip>+ </TooltipTrigger>+ ) : (+ <Row+ alignItems="center"+ hover={{ backgroundColor: 'surface-sunken' }}+ backgroundColor={isSelected ? 'surface-sunken' : undefined}+ borderRadius+ minHeight="40px"+ >+ <IconLabel+ icon={icon}+ label={label}+ weight={isSelected ? 'bold' : undefined}+ padding+ />+ </Row>+ )}</Link>);})}diff --git a/src/components/common/ComboBox.tsx b/src/components/common/ComboBox.tsxindex 65de348a7..899911337 100644--- a/src/components/common/ComboBox.tsx+++ b/src/components/common/ComboBox.tsx@@ -1,8 +1,6 @@import { type ComboBoxProps, type ListProps, ComboBox as ZenComboBox } from '@umami/react-zen';const defaultListProps: Partial<ListProps> = {- shouldSelectOnPressUp: true,- shouldFocusOnHover: false,style: {maxHeight: 'min(400px, calc(100dvh - 8rem))',},diff --git a/src/components/common/MultiSelect.tsx b/src/components/common/MultiSelect.tsxindex 6fbb159c9..1bd9ab169 100644--- a/src/components/common/MultiSelect.tsx+++ b/src/components/common/MultiSelect.tsx@@ -64,8 +64,6 @@ export function MultiSelect({value={value}onChange={onChange}showCheckmark- shouldSelectOnPressUp- shouldFocusOnHover={false}style={listStyle}renderEmptyState={renderEmptyState}>diff --git a/src/components/common/OtpInput.tsx b/src/components/common/OtpInput.tsxindex 0081607b0..1a6a8b175 100644--- a/src/components/common/OtpInput.tsx+++ b/src/components/common/OtpInput.tsx@@ -1,6 +1,6 @@'use client';-import { useRef, ClipboardEvent, KeyboardEvent } from 'react';import { Row, TextField } from '@umami/react-zen';+import { type ClipboardEvent, type KeyboardEvent, useRef } from 'react';interface OtpInputProps {value: string;@@ -36,7 +36,10 @@ export function OtpInput({ value, onChange, onComplete, disabled }: OtpInputProp}};- const handleKeyDown = (index: number, e: KeyboardEvent<HTMLInputElement>) => {+ const handleKeyDown = (+ index: number,+ e: KeyboardEvent<HTMLInputElement & HTMLTextAreaElement>,+ ) => {if (e.key === 'Backspace') {if (digits[index]) {update(index, '');@@ -51,7 +54,7 @@ export function OtpInput({ value, onChange, onComplete, disabled }: OtpInputProp}};- const handlePaste = (e: ClipboardEvent<HTMLInputElement>) => {+ const handlePaste = (e: ClipboardEvent<HTMLInputElement & HTMLTextAreaElement>) => {e.preventDefault();const pasted = e.clipboardData.getData('text').replace(/\D/g, '').slice(0, LENGTH);const next = Array.from({ length: LENGTH }, (_, i) => pasted[i] ?? '');diff --git a/src/components/common/PageBody.tsx b/src/components/common/PageBody.tsxindex 45bfdc8bb..f33cf7a1b 100644--- a/src/components/common/PageBody.tsx+++ b/src/components/common/PageBody.tsx@@ -1,5 +1,5 @@'use client';-import { AlertBanner, Column, type ColumnProps, Loading } from '@umami/react-zen';+import { Alert, AlertTitle, Column, type ColumnProps, Loading } from '@umami/react-zen';import type { ReactNode } from 'react';import { useMessages } from '@/components/hooks';@@ -20,7 +20,11 @@ export function PageBody({const { t, messages } = useMessages();if (error) {- return <AlertBanner title={t(messages.error)} variant="error" />;+ return (+ <Alert variant="danger">+ <AlertTitle>{t(messages.error)}</AlertTitle>+ </Alert>+ );}if (isLoading) {diff --git a/src/components/common/Panel.tsx b/src/components/common/Panel.tsxindex a02b7e108..182027f91 100644--- a/src/components/common/Panel.tsx+++ b/src/components/common/Panel.tsx@@ -65,14 +65,23 @@ export function Panel({{(allowFullscreen || toolbar) && (<Row justifyContent="flex-end" alignItems="center" gap>{toolbar}- {allowFullscreen && (- <TooltipTrigger delay={0} isDisabled={isFullscreen}>+ {allowFullscreen &&+ (isFullscreen ? (<Button size="sm" variant="quiet" onPress={handleFullscreen}>- <Icon>{isFullscreen ? <X /> : <Maximize />}</Icon>+ <Icon>+ <X />+ </Icon></Button>- <Tooltip>{t(labels.maximize)}</Tooltip>- </TooltipTrigger>- )}+ ) : (+ <TooltipTrigger delay={0}>+ <Button size="sm" variant="quiet" onPress={handleFullscreen}>+ <Icon>+ <Maximize />+ </Icon>+ </Button>+ <Tooltip>{t(labels.maximize)}</Tooltip>+ </TooltipTrigger>+ ))}</Row>)}{children}diff --git a/src/components/input/ActionSelect.tsx b/src/components/input/ActionSelect.tsxindex 79827ea0c..1dc1bf547 100644--- a/src/components/input/ActionSelect.tsx+++ b/src/components/input/ActionSelect.tsx@@ -10,7 +10,7 @@ export function ActionSelect({ value = 'path', onChange }: ActionSelectProps) {const { t, labels } = useMessages();return (- <Select value={value} onChange={onChange}>+ <Select value={value} onChange={val => onChange?.(val as string)}><ListItem id="path">{t(labels.viewedPage)}</ListItem><ListItem id="event">{t(labels.triggeredEvent)}</ListItem></Select>diff --git a/src/components/input/BoardSelect.tsx b/src/components/input/BoardSelect.tsxindex ac04f5429..abe837842 100644--- a/src/components/input/BoardSelect.tsx+++ b/src/components/input/BoardSelect.tsx@@ -60,7 +60,7 @@ export function BoardSelect({allowSearch={true}searchValue={search}onSearch={setSearch}- onChange={handleChange}+ onChange={value => handleChange(value as string)}onOpenChange={handleOpenChange}renderValue={renderValue}buttonProps={{diff --git a/src/components/input/DateFilter.tsx b/src/components/input/DateFilter.tsxindex 4bff007ad..84aad53c2 100644--- a/src/components/input/DateFilter.tsx+++ b/src/components/input/DateFilter.tsx@@ -5,7 +5,7 @@ import { useMessages, useMobile } from '@/components/hooks';import { DatePickerForm } from '@/components/metrics/DatePickerForm';import { getMaxSelectableDate, parseDateRange } from '@/lib/date';-export interface DateFilterProps extends SelectProps {+export interface DateFilterProps extends Omit<SelectProps, 'value' | 'onChange'> {value?: string;onChange?: (value: string) => void;showAllTime?: boolean;@@ -101,6 +101,8 @@ export function DateFilter({const selectedValue = value.endsWith(':all') ? 'all' : value;+ const [side, align] = String(placement).split(' ');+return (<><Select@@ -109,7 +111,11 @@ export function DateFilter({placeholder={t(labels.selectDate)}onChange={handleChange}renderValue={renderValue}- popoverProps={{ placement, style: { minWidth: 200 } }}+ popoverProps={{+ side: side as any,+ align: (align === 'top' ? 'start' : align === 'bottom' ? 'end' : align) as any,+ style: { minWidth: 200 },+ }}isFullscreen={isMobile}>{options.map(({ label, value, divider }: any) => {diff --git a/src/components/input/DialogButton.tsx b/src/components/input/DialogButton.tsxindex 76c5903ba..8776be6f5 100644--- a/src/components/input/DialogButton.tsx+++ b/src/components/input/DialogButton.tsx@@ -10,7 +10,7 @@ import type { CSSProperties, ReactNode } from 'react';import { IconLabel } from '@/components/common/IconLabel';import { useMobile } from '@/components/hooks';-export interface DialogButtonProps extends Omit<ButtonProps, 'children'> {+export interface DialogButtonProps extends Omit<ButtonProps, 'children' | 'title'> {icon?: ReactNode;label?: ReactNode;title?: ReactNode;@@ -57,11 +57,7 @@ export function DialogButton({}const dialog = (- <Dialog- variant={isMobile ? 'sheet' : undefined}- title={title === undefined ? label : title}- style={style}- >+ <Dialog title={title === undefined ? label : title} style={style}>{children}</Dialog>);@@ -71,7 +67,6 @@ export function DialogButton({<ModalisOpen={isOpen}onOpenChange={onOpenChange}- isDismissableplacement={isMobile ? 'fullscreen' : 'center'}>{dialog}diff --git a/src/components/input/FieldFilters.tsx b/src/components/input/FieldFilters.tsxindex 9f0346c10..775ea588f 100644--- a/src/components/input/FieldFilters.tsx+++ b/src/components/input/FieldFilters.tsx@@ -88,11 +88,8 @@ export function FieldFilters({<Plus /></Icon></Button>- <Popover placement={isMobile ? 'left' : 'bottom start'} shouldFlip>- <Menu- onAction={handleAdd}- style={{ maxHeight: 'calc(100vh - 2rem)', overflowY: 'auto' }}- >+ <Popover side={isMobile ? 'left' : 'bottom'} align={isMobile ? undefined : 'start'}>+ <Menu style={{ maxHeight: 'calc(100vh - 2rem)', overflowY: 'auto' }}>{groupLabels.map(({ key: groupKey, label }) => {const groupFields = groupedFields[groupKey];if (!groupFields || groupFields.length === 0) return null;@@ -100,7 +97,7 @@ export function FieldFilters({<MenuSection key={groupKey} title={label}>{groupFields.map(field => {return (- <MenuItem key={field.name} id={field.name}>+ <MenuItem key={field.name} id={field.name} onAction={handleAdd}>{field.filterLabel}</MenuItem>);@@ -118,7 +115,7 @@ export function FieldFilters({paddingRight="3"marginRight="6">- <List onAction={handleAdd}>+ <List>{groupLabels.map(({ key: groupKey, label }) => {const groupFields = groupedFields[groupKey];if (!groupFields || groupFields.length === 0) return null;@@ -127,7 +124,11 @@ export function FieldFilters({<ListSection key={groupKey} title={label}>{groupFields.map(field => {return (- <ListItem key={field.name} id={field.name}>+ <ListItem+ key={field.name}+ id={field.name}+ onClick={() => handleAdd(field.name)}+ >{field.filterLabel}</ListItem>);@@ -142,7 +143,11 @@ export function FieldFilters({<Row alignItems="center" gap><Column gap="1"><Label>{t(labels.match)}</Label>- <Select value={match} onChange={onMatchChange} style={{ width: 150 }}>+ <Select+ value={match}+ onChange={value => onMatchChange(value as string)}+ buttonProps={{ style: { width: 150 } }}+ ><ListItem id="all">{t(labels.matchAll)}</ListItem><ListItem id="any">{t(labels.matchAny)}</ListItem></Select>diff --git a/src/components/input/FilterBar.tsx b/src/components/input/FilterBar.tsxindex 1d48c8bc8..61b7d8387 100644--- a/src/components/input/FilterBar.tsx+++ b/src/components/input/FilterBar.tsx@@ -29,13 +29,7 @@ export function FilterBar({ websiteId }: { websiteId?: string }) {const { t, labels } = useMessages();const { isMobile } = useMobile();const { formatValue } = useFormat();- const {- router,- pathname,- updateParams,- replaceParams,- query,- } = useNavigation();+ const { router, pathname, updateParams, replaceParams, query } = useNavigation();const { segment, cohort } = query;const { filters, eventPropertyFilters, sessionPropertyFilters, operatorLabels } = useFilters();const { data, isLoading } = useWebsiteSegmentQuery(websiteId, segment || cohort);@@ -92,7 +86,13 @@ export function FilterBar({ websiteId }: { websiteId?: string }) {router.push(updateParams({ [type]: undefined }));};- if (!filters.length && !eventPropertyFilters.length && !sessionPropertyFilters.length && !segment && !cohort) {+ if (+ !filters.length &&+ !eventPropertyFilters.length &&+ !sessionPropertyFilters.length &&+ !segment &&+ !cohort+ ) {return null;}@@ -181,7 +181,6 @@ export function FilterBar({ websiteId }: { websiteId?: string }) {)}<Modal placement={isMobile ? 'fullscreen' : 'center'}><Dialog- variant={isMobile ? 'sheet' : undefined}title={t(labels.segment)}style={{width: isMobile ? '100%' : '800px',diff --git a/src/components/input/FilterButtons.tsx b/src/components/input/FilterButtons.tsxindex ffd573a43..3898adcda 100644--- a/src/components/input/FilterButtons.tsx+++ b/src/components/input/FilterButtons.tsx@@ -18,7 +18,6 @@ export function FilterButtons({ items, value, onChange }: FilterButtonsProps) {onChange?.(nextValue);}}}- disallowEmptySelection={true}>{items.map(({ id, label }) => (<ToggleGroupItem key={id} id={id}>diff --git a/src/components/input/LanguageButton.tsx b/src/components/input/LanguageButton.tsxindex 9ac2ec3fc..bf5c9ff26 100644--- a/src/components/input/LanguageButton.tsx+++ b/src/components/input/LanguageButton.tsx@@ -18,7 +18,7 @@ export function LanguageButton() {<Globe /></Icon></Button>- <Popover placement="bottom end">+ <Popover side="bottom" align="end"><Dialog><Grid columns="repeat(3, minmax(200px, 1fr))" overflow="hidden">{items.map(({ value, label }) => {diff --git a/src/components/input/LinkSelect.tsx b/src/components/input/LinkSelect.tsxindex dc041bd02..1a771420a 100644--- a/src/components/input/LinkSelect.tsx+++ b/src/components/input/LinkSelect.tsx@@ -64,7 +64,7 @@ export function LinkSelect({allowSearch={true}searchValue={search}onSearch={setSearch}- onChange={handleChange}+ onChange={value => handleChange(value as string)}onOpenChange={handleOpenChange}renderValue={renderValue}buttonProps={{diff --git a/src/components/input/LookupField.tsx b/src/components/input/LookupField.tsxindex 4594066ce..4515f734f 100644--- a/src/components/input/LookupField.tsx+++ b/src/components/input/LookupField.tsx@@ -1,7 +1,7 @@import { type ComboBoxProps, ListItem, Loading, useDebounce } from '@umami/react-zen';-import { ComboBox } from '@/components/common/ComboBox';import { endOfDay, subMonths } from 'date-fns';import { type SetStateAction, useMemo, useState } from 'react';+import { ComboBox } from '@/components/common/ComboBox';import { Empty } from '@/components/common/Empty';import { useMessages, useWebsiteValuesQuery } from '@/components/hooks';@@ -49,14 +49,11 @@ export function LookupField({{...props}items={items}inputValue={value}- onInputChange={value => {+ onInputValueChange={value => {handleSearch(value);onChange?.(value);onValueChange?.(value);}}- formValue="text"- allowsEmptyCollection- allowsCustomValuerenderEmptyState={() =>isLoading ? (<Loading placement="center" icon="dots" />diff --git a/src/components/input/MenuButton.tsx b/src/components/input/MenuButton.tsxindex bac307fef..e99e7dfb9 100644--- a/src/components/input/MenuButton.tsx+++ b/src/components/input/MenuButton.tsx@@ -1,5 +1,12 @@import { Button, DialogTrigger, Icon, Menu, Popover } from '@umami/react-zen';-import type { Key, ReactNode } from 'react';+import {+ Children,+ cloneElement,+ isValidElement,+ type Key,+ type ReactElement,+ type ReactNode,+} from 'react';import { Ellipsis } from '@/components/icons';export function MenuButton({@@ -22,9 +29,15 @@ export function MenuButton({<Ellipsis /></Icon></Button>- <Popover placement="bottom start">- <Menu aria-label="menu" onAction={handleAction} style={{ minWidth: '140px' }}>- {children}+ <Popover side="bottom" align="start">+ <Menu aria-label="menu" style={{ minWidth: '140px' }}>+ {Children.map(children, child =>+ isValidElement(child)+ ? cloneElement(child as ReactElement<{ onAction?: (key: Key) => void }>, {+ onAction: handleAction,+ })+ : child,+ )}</Menu></Popover></DialogTrigger>diff --git a/src/components/input/MobileMenuButton.tsx b/src/components/input/MobileMenuButton.tsxindex a4713ae08..76809e66f 100644--- a/src/components/input/MobileMenuButton.tsx+++ b/src/components/input/MobileMenuButton.tsx@@ -1,4 +1,4 @@-import { Button, Dialog, type DialogProps, DialogTrigger, Icon, Modal } from '@umami/react-zen';+import { Button, Dialog, type DialogProps, DialogTrigger, Icon, Sheet } from '@umami/react-zen';import { Menu } from '@/components/icons';export function MobileMenuButton(props: DialogProps) {@@ -9,9 +9,9 @@ export function MobileMenuButton(props: DialogProps) {<Menu /></Icon></Button>- <Modal placement="left" offset="80px">- <Dialog variant="sheet" {...props} style={{ width: 'auto' }} />- </Modal>+ <Sheet side="left">+ <Dialog {...props} style={{ width: 'auto' }} />+ </Sheet></DialogTrigger>);}diff --git a/src/components/input/MonthSelect.tsx b/src/components/input/MonthSelect.tsxindex 241634edf..3717d58f8 100644--- a/src/components/input/MonthSelect.tsx+++ b/src/components/input/MonthSelect.tsx@@ -24,7 +24,7 @@ export function MonthSelect({ date = new Date(), onChange }) {return (<Row gap>- <Select value={month} onChange={handleMonthChange}>+ <Select value={month} onChange={value => handleMonthChange(value as number)}>{months.map(m => {return (<ListItem id={m} key={m}>@@ -33,7 +33,7 @@ export function MonthSelect({ date = new Date(), onChange }) {);})}</Select>- <Select value={year} onChange={handleYearChange}>+ <Select value={year} onChange={value => handleYearChange(value as number)}>{years.map(y => {return (<ListItem id={y} key={y}>diff --git a/src/components/input/NavButton.tsx b/src/components/input/NavButton.tsxindex e7c7504c6..2e7b599b3 100644--- a/src/components/input/NavButton.tsx+++ b/src/components/input/NavButton.tsx@@ -51,6 +51,14 @@ export function NavButton({ showText = true }: TeamsButtonProps) {}};+ const handleNavigate = (url: string) => {+ if (cloudMode) {+ window.location.href = url;+ } else {+ router.push(url);+ }+ };+return (<MenuTrigger><Pressable>@@ -77,25 +85,29 @@ export function NavButton({ showText = true }: TeamsButtonProps) {)}</Row></Pressable>- <Popover placement="bottom start">+ <Popover side="bottom" align="start"><Column minWidth="300px">- <Menu autoFocus="last">+ <Menu><SubmenuTrigger><MenuItem id="teams" showChecked={false} showSubMenuIcon><IconLabel icon={<Switch />} label={t(labels.switchAccount)} /></MenuItem>- <Popover placement={isMobile ? 'bottom start' : 'right top'}>+ <Popover side={isMobile ? 'bottom' : 'right'} align="start"><Column minWidth="300px">- <Menu selectionMode="single" selectedKeys={selectedKeys} onAction={handleAction}>+ <Menu selectionMode="single" selectedKeys={selectedKeys}><MenuSection title={t(labels.myAccount)}>- <MenuItem id="user">+ <MenuItem id="user" onAction={handleAction}><IconLabel icon={<User />} label={user.username} /></MenuItem></MenuSection><MenuSeparator /><MenuSection title={t(labels.teams)}>{user?.teams?.map(({ id, name }) => (- <MenuItem key={id} id={id} href={getUrl(`/teams/${id}`)}>+ <MenuItem+ key={id}+ id={id}+ onAction={() => handleNavigate(getUrl(`/teams/${id}`))}+ ><IconLabel icon={<Users />}><Text wrap="nowrap">{name}</Text></IconLabel>diff --git a/src/components/input/PixelSelect.tsx b/src/components/input/PixelSelect.tsxindex c2ba711b4..cd066cbe5 100644--- a/src/components/input/PixelSelect.tsx+++ b/src/components/input/PixelSelect.tsx@@ -64,7 +64,7 @@ export function PixelSelect({allowSearch={true}searchValue={search}onSearch={setSearch}- onChange={handleChange}+ onChange={value => handleChange(value as string)}onOpenChange={handleOpenChange}renderValue={renderValue}buttonProps={{diff --git a/src/components/input/PreferencesButton.tsx b/src/components/input/PreferencesButton.tsxindex aa1550ea2..87149bba3 100644--- a/src/components/input/PreferencesButton.tsx+++ b/src/components/input/PreferencesButton.tsx@@ -15,7 +15,7 @@ export function PreferencesButton() {<Settings /></Icon></Button>- <Popover placement="bottom end">+ <Popover side="bottom" align="end"><Panel gap="3"><Column><Label>{t(labels.timezone)}</Label>diff --git a/src/components/input/ProfileButton.tsx b/src/components/input/ProfileButton.tsxindex 114c7668c..2218d64b9 100644--- a/src/components/input/ProfileButton.tsx+++ b/src/components/input/ProfileButton.tsx@@ -17,7 +17,7 @@ import { LockKeyhole, LogOut, UserCircle } from '@/components/icons';export function ProfileButton() {const { t, labels } = useMessages();const { user } = useLoginQuery();- const { renderUrl } = useNavigation();+ const { renderUrl, router } = useNavigation();const items = [{@@ -49,15 +49,15 @@ export function ProfileButton() {<UserCircle /></Icon></Button>- <Popover placement="bottom end">- <Menu autoFocus="last">+ <Popover side="bottom" align="end">+ <Menu><MenuSection title={user.username}><MenuSeparator />{items.map(({ id, path, label, icon, separator }) => {return (<Fragment key={id}>{separator && <MenuSeparator />}- <MenuItem id={id} href={path}>+ <MenuItem id={id} onAction={() => router.push(path)}><Row alignItems="center" gap><Icon>{icon}</Icon><Text>{label}</Text>diff --git a/src/components/input/ReportEditButton.tsx b/src/components/input/ReportEditButton.tsxindex 777b75d5f..c335650ef 100644--- a/src/components/input/ReportEditButton.tsx+++ b/src/components/input/ReportEditButton.tsx@@ -75,15 +75,15 @@ export function ReportEditButton({<MoreHorizontal /></Icon></Button>- <Popover placement="bottom">- <Menu onAction={handleAction}>- <MenuItem id="edit">+ <Popover side="bottom">+ <Menu>+ <MenuItem id="edit" onAction={handleAction}><Icon><Edit /></Icon><Text>{t(labels.edit)}</Text></MenuItem>- <MenuItem id="delete">+ <MenuItem id="delete" onAction={handleAction}><Icon><Trash /></Icon>@@ -103,7 +103,7 @@ export function ReportEditButton({>{children}</DialogButton>- <Modal isOpen={showDelete} isDismissable={true} onOpenChange={open => !open && handleClose()}>+ <Modal isOpen={showDelete} onOpenChange={open => !open && handleClose()}><AlertDialogtitle={t(labels.delete)}onConfirm={handleDelete}diff --git a/src/components/input/SegmentSaveButton.tsx b/src/components/input/SegmentSaveButton.tsxindex 520d5eeaa..fec4e86a5 100644--- a/src/components/input/SegmentSaveButton.tsx+++ b/src/components/input/SegmentSaveButton.tsx@@ -17,7 +17,6 @@ export function SegmentSaveButton({ websiteId }: { websiteId: string }) {</Button><Modal placement={isMobile ? 'fullscreen' : 'center'}><Dialog- variant={isMobile ? 'sheet' : undefined}title={t(labels.segment)}style={{width: isMobile ? '100%' : '800px',diff --git a/src/components/input/SettingsButton.tsx b/src/components/input/SettingsButton.tsxindex 797d16314..147b90878 100644--- a/src/components/input/SettingsButton.tsx+++ b/src/components/input/SettingsButton.tsx@@ -48,26 +48,51 @@ export function SettingsButton() {<UserCircle /></Icon></Button>- <Popover placement="bottom end">- <Menu autoFocus="last" onAction={handleAction}>+ <Popover side="bottom" align="end">+ <Menu><MenuSection title={user.username}><MenuSeparator />- <MenuItem id="/settings" icon={<Settings />} label={t(labels.settings)} />+ <MenuItem+ id="/settings"+ icon={<Settings />}+ label={t(labels.settings)}+ onAction={handleAction}+ />{!cloudMode && user.isAdmin && (- <MenuItem id="/admin" icon={<LockKeyhole />} label={t(labels.admin)} />+ <MenuItem+ id="/admin"+ icon={<LockKeyhole />}+ label={t(labels.admin)}+ onAction={handleAction}+ />)}{cloudMode && (<>- <MenuItem id="/docs" icon={<BookText />} label={t(labels.documentation)}>+ <MenuItem+ id="/docs"+ icon={<BookText />}+ label={t(labels.documentation)}+ onAction={handleAction}+ ><Icon color="muted"><ExternalLink /></Icon></MenuItem>- <MenuItem id="/settings/support" icon={<LifeBuoy />} label={t(labels.support)} />+ <MenuItem+ id="/settings/support"+ icon={<LifeBuoy />}+ label={t(labels.support)}+ onAction={handleAction}+ /></>)}<MenuSeparator />- <MenuItem id="/logout" icon={<LogOut />} label={t(labels.logout)} />+ <MenuItem+ id="/logout"+ icon={<LogOut />}+ label={t(labels.logout)}+ onAction={handleAction}+ /></MenuSection></Menu></Popover>diff --git a/src/components/input/TeamsButton.tsx b/src/components/input/TeamsButton.tsxindex f44ba83a5..268010500 100644--- a/src/components/input/TeamsButton.tsx+++ b/src/components/input/TeamsButton.tsx@@ -34,6 +34,14 @@ export function TeamsButton() {return cloudMode ? `${process.env.cloudUrl}${url}` : url;};+ const handleNavigate = (url: string) => {+ if (cloudMode) {+ window.location.href = url;+ } else {+ router.push(url);+ }+ };+const handleAction = async (key: Key) => {if (key === 'user') {removeItem(LAST_TEAM_CONFIG);@@ -63,18 +71,18 @@ export function TeamsButton() {<ChevronRight /></Icon></Button>- <Popover placement="bottom start">+ <Popover side="bottom" align="start"><Column minWidth="300px">- <Menu selectionMode="single" selectedKeys={selectedKeys} onAction={handleAction}>+ <Menu selectionMode="single" selectedKeys={selectedKeys}><MenuSection title={t(labels.myAccount)}>- <MenuItem id="user">+ <MenuItem id="user" onAction={handleAction}><IconLabel icon={<User />} label={user.username} /></MenuItem></MenuSection><MenuSeparator /><MenuSection title={t(labels.teams)}>{user?.teams?.map(({ id, name }) => (- <MenuItem key={id} id={id} href={getUrl(`/teams/${id}`)}>+ <MenuItem key={id} id={id} onAction={() => handleNavigate(getUrl(`/teams/${id}`))}><IconLabel icon={<Users />}><Text wrap="nowrap">{name}</Text></IconLabel>diff --git a/src/components/input/UnitFilter.tsx b/src/components/input/UnitFilter.tsxindex cabe87eaf..6ac2fffa5 100644--- a/src/components/input/UnitFilter.tsx+++ b/src/components/input/UnitFilter.tsx@@ -56,9 +56,9 @@ export function UnitFilter() {<Row><Selectvalue={selectedUnit}- onChange={handleChange}- popoverProps={{ placement: 'bottom right' }}- style={{ width: 100 }}+ onChange={value => handleChange(value as string)}+ popoverProps={{ side: 'bottom', align: 'end' }}+ buttonProps={{ style: { width: 100 } }}>{options.map(({ id, label }) => (<ListItem key={id} id={id}>diff --git a/src/components/input/UserButton.tsx b/src/components/input/UserButton.tsxindex 91080f344..1d336db62 100644--- a/src/components/input/UserButton.tsx+++ b/src/components/input/UserButton.tsx@@ -14,6 +14,7 @@ import {TooltipTrigger,useTheme,} from '@umami/react-zen';+import { useRouter } from 'next/navigation';import { useConfig, useLocale, useLoginQuery, useMessages, useMobile } from '@/components/hooks';import {BookText,@@ -43,11 +44,23 @@ export function UserButton({ showText = true, onClose }: UserButtonProps) {const { locale, saveLocale } = useLocale();const { theme, setTheme } = useTheme();const { isMobile } = useMobile();+ const router = useRouter();const getUrl = (url: string) => {return cloudMode ? `${process.env.cloudUrl}${url}` : url;};+ const handleNavigate = (url: string, target?: string) => {+ onClose?.();+ if (target) {+ window.open(url, target);+ } else if (url.startsWith('http')) {+ window.location.href = url;+ } else {+ router.push(url);+ }+ };+const languageItems = Object.keys(languages).map(key => ({value: key,label: languages[key].label,@@ -87,33 +100,41 @@ export function UserButton({ showText = true, onClose }: UserButtonProps) {},].filter(Boolean);+ const trigger = (+ <Pressable>+ <Row+ alignItems="center"+ flexGrow={1}+ hover={{ backgroundColor: 'surface-sunken' }}+ borderRadius+ minHeight="40px"+ role="button"+ style={{ cursor: 'pointer', textWrap: 'nowrap', overflow: 'hidden', outline: 'none' }}+ >+ <Row alignItems="center" gap padding>+ <Icon>+ <UserCircle />+ </Icon>+ {showText && <Text>{user.username}</Text>}+ </Row>+ </Row>+ </Pressable>+ );+return (<MenuTrigger>- <TooltipTrigger isDisabled={showText} delay={0}>- <Pressable>- <Row- alignItems="center"- flexGrow={1}- hover={{ backgroundColor: 'surface-sunken' }}- borderRadius- minHeight="40px"- role="button"- style={{ cursor: 'pointer', textWrap: 'nowrap', overflow: 'hidden', outline: 'none' }}- >- <Row alignItems="center" gap padding>- <Icon>- <UserCircle />- </Icon>- {showText && <Text>{user.username}</Text>}- </Row>- </Row>- </Pressable>- <Tooltip placement="right">{user.username}</Tooltip>- </TooltipTrigger>- <Popover placement="top start">+ {showText ? (+ trigger+ ) : (+ <TooltipTrigger delay={0}>+ {trigger}+ <Tooltip placement="right">{user.username}</Tooltip>+ </TooltipTrigger>+ )}+ <Popover side="top" align="start"><Column minWidth="200px">- <Menu autoFocus="last" onAction={onClose}>- <MenuItem id="settings" href={getUrl('/settings')}>+ <Menu>+ <MenuItem id="settings" onAction={() => handleNavigate(getUrl('/settings'))}><Row alignItems="center" gap><Icon><Settings />@@ -130,15 +151,18 @@ export function UserButton({ showText = true, onClose }: UserButtonProps) {<Text>{t(labels.language)}</Text></Row></MenuItem>- <Popover placement={isMobile ? 'bottom start' : 'right bottom'} isNonModal>+ <Popover+ side={isMobile ? 'bottom' : 'right'}+ align={isMobile ? 'start' : 'end'}+ isNonModal+ ><MenuselectionMode="single"selectedKeys={new Set([locale])}- onAction={key => saveLocale(key as string)}style={{ maxHeight: 300, overflow: 'auto' }}>{languageItems.map(({ value, label }) => (- <MenuItem key={value} id={value}>+ <MenuItem key={value} id={value} onAction={key => saveLocale(key as string)}><Text weight={value === locale ? 'bold' : undefined}>{label}</Text></MenuItem>))}@@ -154,13 +178,13 @@ export function UserButton({ showText = true, onClose }: UserButtonProps) {<Text>{t(labels.theme)}</Text></Row></MenuItem>- <Popover placement={isMobile ? 'bottom start' : 'right bottom'} isNonModal>- <Menu- selectionMode="single"- selectedKeys={new Set([theme])}- onAction={key => setTheme(key as 'light' | 'dark')}- >- <MenuItem id="light">+ <Popover+ side={isMobile ? 'bottom' : 'right'}+ align={isMobile ? 'start' : 'end'}+ isNonModal+ >+ <Menu selectionMode="single" selectedKeys={new Set([theme])}>+ <MenuItem id="light" onAction={key => setTheme(key as 'light' | 'dark')}><Row alignItems="center" gap><Icon><Sun />@@ -168,7 +192,7 @@ export function UserButton({ showText = true, onClose }: UserButtonProps) {<Text>Light</Text></Row></MenuItem>- <MenuItem id="dark">+ <MenuItem id="dark" onAction={key => setTheme(key as 'light' | 'dark')}><Row alignItems="center" gap><Icon><Moon />@@ -184,7 +208,7 @@ export function UserButton({ showText = true, onClose }: UserButtonProps) {return <MenuSeparator key={id} />;}return (- <MenuItem key={id} id={id} href={path} target={target}>+ <MenuItem key={id} id={id} onAction={() => handleNavigate(path, target)}><Row alignItems="center" gap><Icon>{icon}</Icon><Text>{label}</Text>diff --git a/src/components/input/UserSelect.tsx b/src/components/input/UserSelect.tsxindex 65e6689fe..19047db65 100644--- a/src/components/input/UserSelect.tsx+++ b/src/components/input/UserSelect.tsx@@ -48,7 +48,7 @@ export function UserSelect({allowSearch={true}searchValue={search}onSearch={handleSearch}- onChange={handleChange}+ onChange={value => handleChange(value as string)}onOpenChange={handleOpenChange}maxHeight={480}listProps={{diff --git a/src/components/input/WebsiteDateFilter.tsx b/src/components/input/WebsiteDateFilter.tsxindex 3908409cc..fffe88178 100644--- a/src/components/input/WebsiteDateFilter.tsx+++ b/src/components/input/WebsiteDateFilter.tsx@@ -91,7 +91,7 @@ export function WebsiteDateFilter({<Selectvalue={compare}onChange={handleSelect}- style={{ width: 200 }}+ buttonProps={{ style: { width: 200 } }}popoverProps={{ style: { width: 200 } }}><ListItem id="prev">{t(labels.previousPeriod)}</ListItem>diff --git a/src/components/input/WebsiteSelect.tsx b/src/components/input/WebsiteSelect.tsxindex f62df93a3..265cda037 100644--- a/src/components/input/WebsiteSelect.tsx+++ b/src/components/input/WebsiteSelect.tsx@@ -79,7 +79,7 @@ export function WebsiteSelect({allowSearch={true}searchValue={search}onSearch={handleSearch}- onChange={handleChange}+ onChange={value => handleChange(value as string)}onOpenChange={handleOpenChange}renderValue={renderValue}buttonProps={{diff --git a/src/components/metrics/DatePickerForm.tsx b/src/components/metrics/DatePickerForm.tsxindex cb6041af6..d28368fb6 100644--- a/src/components/metrics/DatePickerForm.tsx+++ b/src/components/metrics/DatePickerForm.tsx@@ -37,7 +37,7 @@ export function DatePickerForm({return (<Column gap><Row justifyContent="center">- <ToggleGroup disallowEmptySelection value={selected} onChange={setSelected}>+ <ToggleGroup value={selected} onChange={setSelected}><ToggleGroupItem id={FILTER_DAY}>{t(labels.singleDay)}</ToggleGroupItem><ToggleGroupItem id={FILTER_RANGE}>{t(labels.dateRange)}</ToggleGroupItem></ToggleGroup>diff --git a/src/components/metrics/WeeklyTraffic.tsx b/src/components/metrics/WeeklyTraffic.tsxindex 7db54eddf..b75954c32 100644--- a/src/components/metrics/WeeklyTraffic.tsx+++ b/src/components/metrics/WeeklyTraffic.tsx@@ -1,5 +1,6 @@import { Focusable, Grid, Row, Text, Tooltip, TooltipTrigger } from '@umami/react-zen';import { addHours, format, startOfDay } from 'date-fns';+import { Fragment } from 'react';import { LoadingPanel } from '@/components/common/LoadingPanel';import { useLocale, useMessages, useWeeklyTrafficQuery } from '@/components/hooks';import { getDayOfWeekAsDate } from '@/lib/date';@@ -75,28 +76,36 @@ export function WeeklyTraffic({ websiteId }: { websiteId: string }) {>{day?.map((count: number, j) => {const pct = max ? count / max : 0;- return (- <TooltipTrigger key={j} delay={0} isDisabled={count <= 0}>- <Focusable>+ const cell = (+ <Focusable>+ <Row+ alignItems="center"+ justifyContent="center"+ backgroundColor="surface-raised"+ width="16px"+ height="16px"+ borderRadius="full"+ style={{ margin: '0 auto' }}+ role="button"+ ><Row- alignItems="center"- justifyContent="center"- backgroundColor="surface-raised"+ backgroundColor="primary"width="16px"height="16px"borderRadius="full"- style={{ margin: '0 auto' }}- role="button"- >- <Row- backgroundColor="primary"- width="16px"- height="16px"- borderRadius="full"- style={{ opacity: pct, transform: `scale(${pct})` }}- />- </Row>- </Focusable>+ style={{ opacity: pct, transform: `scale(${pct})` }}+ />+ </Row>+ </Focusable>+ );++ if (count <= 0) {+ return <Fragment key={j}>{cell}</Fragment>;+ }++ return (+ <TooltipTrigger key={j} delay={0}>+ {cell}<Tooltipplacement="right"style={{ backgroundColor: 'rgba(0,0,0,0.8)', color: 'white' }}diff --git a/src/components/modals/TwoFactorSetupModal.tsx b/src/components/modals/TwoFactorSetupModal.tsxindex 7daf6be94..56c6b6457 100644--- a/src/components/modals/TwoFactorSetupModal.tsx+++ b/src/components/modals/TwoFactorSetupModal.tsx@@ -1,6 +1,9 @@'use client';+import { useQueryClient } from '@tanstack/react-query';import {- AlertBanner,+ Alert,+ AlertDescription,+ AlertTitle,Box,Button,Code,@@ -14,13 +17,12 @@ import {TagGroup,Text,} from '@umami/react-zen';-import { useQueryClient } from '@tanstack/react-query';-import { ReactNode, useEffect, useState } from 'react';+import { LucideCopy } from 'lucide-react';+import { type ReactNode, useEffect, useState } from 'react';import { OtpInput } from '@/components/common/OtpInput';import { useMessages, useUpdateQuery } from '@/components/hooks';-import { TwoFactorSuccessModal } from './TwoFactorSuccessModal';import styles from './TwoFactorSetupModal.module.css';-import { LucideCopy } from 'lucide-react';+import { TwoFactorSuccessModal } from './TwoFactorSuccessModal';function Step({tag,@@ -187,7 +189,12 @@ export function TwoFactorSetupModal({ required, onClose }: TwoFactorSetupModalPr</Column></Step>- {error && <AlertBanner variant="error" title={t(messages.error)} description={error} />}+ {error && (+ <Alert variant="danger">+ <AlertTitle>{t(messages.error)}</AlertTitle>+ <AlertDescription>{error}</AlertDescription>+ </Alert>+ )}<Row gap="2" justifyContent="flex-end">{!required && (diff --git a/src/components/property-data/PropertyFilterRecord.tsx b/src/components/property-data/PropertyFilterRecord.tsxindex 45032dd39..1631ed7ab 100644--- a/src/components/property-data/PropertyFilterRecord.tsx+++ b/src/components/property-data/PropertyFilterRecord.tsx@@ -180,14 +180,11 @@ export function PropertyFilterRecord({aria-label={filter.propertyName}items={filteredValues}inputValue={filter.value}- style={{ width: '100%' }}- onInputChange={v => {+ className="w-full"+ onInputValueChange={(v: string) => {setSearch(v);onChange({ ...filter, value: v });}}- formValue="text"- allowsEmptyCollection- allowsCustomValuerenderEmptyState={() =>isLoading ? (<Loading placement="center" icon="dots" />@@ -267,7 +264,7 @@ function DateValuePicker({><DateDisplay startDate={selectedDate} endDate={selectedDate} /></Button>- <Popover placement="bottom start" shouldFlip isNonModal>+ <Popover side="bottom" align="start" isNonModal><Dialog><Column gap><Calendardiff --git a/src/components/property-data/PropertyFilters.tsx b/src/components/property-data/PropertyFilters.tsxindex bea3d48e6..5a8e9337e 100644--- a/src/components/property-data/PropertyFilters.tsx+++ b/src/components/property-data/PropertyFilters.tsx@@ -39,14 +39,13 @@ export function PropertyFilters({}) {const { t, messages } = useMessages();const { isMobile } = useMobile();- const { data: queriedFields, isLoading, isFetching } = usePropertyFieldsQuery(- source,- websiteId,- eventName,- {- enabled: !providedFields,- },- );+ const {+ data: queriedFields,+ isLoading,+ isFetching,+ } = usePropertyFieldsQuery(source, websiteId, eventName, {+ enabled: !providedFields,+ });const fields = providedFields ?? queriedFields ?? [];const handleAdd = (propertyName: string) => {@@ -97,13 +96,14 @@ export function PropertyFilters({<Plus /></Icon></Button>- <Popover placement="bottom start" shouldFlip>- <Menu- onAction={key => handleAdd(key.toString())}- style={{ maxHeight: 'calc(100vh - 2rem)', overflowY: 'auto' }}- >+ <Popover side="bottom" align="start">+ <Menu style={{ maxHeight: 'calc(100vh - 2rem)', overflowY: 'auto' }}>{(fields as any[]).map(field => (- <MenuItem key={`${field.propertyName}:${field.dataType}`} id={field.propertyName}>+ <MenuItem+ key={`${field.propertyName}:${field.dataType}`}+ id={field.propertyName}+ onAction={key => handleAdd(key.toString())}+ >{field.propertyName}</MenuItem>))}@@ -118,9 +118,13 @@ export function PropertyFilters({marginRight="6"alignSelf="stretch">- <List onAction={key => handleAdd(key.toString())}>+ <List>{(fields as any[]).map(field => (- <ListItem key={`${field.propertyName}:${field.dataType}`} id={field.propertyName}>+ <ListItem+ key={`${field.propertyName}:${field.dataType}`}+ id={field.propertyName}+ onClick={() => handleAdd(field.propertyName)}+ >{field.propertyName}</ListItem>))}diff --git a/src/permissions/website.test.ts b/src/permissions/website.test.tsindex b9c00a103..780fc9b70 100644--- a/src/permissions/website.test.ts+++ b/src/permissions/website.test.ts@@ -54,8 +54,8 @@ beforeEach(() => {vi.mocked(getEntity).mockReset();vi.mocked(getWebsite).mockReset();vi.mocked(getTeamUser).mockReset();- vi.mocked(prisma.client.website.findMany).mockReset();- vi.mocked(prisma.client.teamUser.findMany).mockReset();+ vi.mocked(prisma.client.website.findMany as (...args: unknown[]) => unknown).mockReset();+ vi.mocked(prisma.client.teamUser.findMany as (...args: unknown[]) => unknown).mockReset();});describe('canViewWebsite', () => {@@ -139,12 +139,16 @@ describe('canViewBatchWebsites', () => {});test('returns owned, team, and share allowed ids for a user', async () => {- vi.mocked(prisma.client.website.findMany).mockResolvedValue([+ vi.mocked(+ prisma.client.website.findMany as (...args: unknown[]) => Promise<unknown>,+ ).mockResolvedValue([{ id: 'owned', userId: 'user-1', teamId: null },{ id: 'team', userId: null, teamId: 'team-1' },{ id: 'foreign', userId: 'other', teamId: null },] as any);- vi.mocked(prisma.client.teamUser.findMany).mockResolvedValue([{ teamId: 'team-1' }] as any);+ vi.mocked(+ prisma.client.teamUser.findMany as (...args: unknown[]) => Promise<unknown>,+ ).mockResolvedValue([{ teamId: 'team-1' }] as any);await expect(canViewBatchWebsites({ user: normalUser, shareToken: { websiteId: 'shared' } as any }, [@@ -157,10 +161,12 @@ describe('canViewBatchWebsites', () => {});test('excludes team websites when the user is not a team member', async () => {- vi.mocked(prisma.client.website.findMany).mockResolvedValue([- { id: 'team', userId: null, teamId: 'team-1' },- ] as any);- vi.mocked(prisma.client.teamUser.findMany).mockResolvedValue([] as any);+ vi.mocked(+ prisma.client.website.findMany as (...args: unknown[]) => Promise<unknown>,+ ).mockResolvedValue([{ id: 'team', userId: null, teamId: 'team-1' }] as any);+ vi.mocked(+ prisma.client.teamUser.findMany as (...args: unknown[]) => Promise<unknown>,+ ).mockResolvedValue([] as any);await expect(canViewBatchWebsites({ user: normalUser }, ['team'])).resolves.toEqual([]);});diff --git a/src/test/render.tsx b/src/test/render.tsxindex 6c1dea6b9..373a4d5a1 100644--- a/src/test/render.tsx+++ b/src/test/render.tsx@@ -45,7 +45,7 @@ function TestProviders({}) {return (<ZenProvider>- <RouterProvider navigate={url => window.history.pushState({}, '', url)}>+ <RouterProvider><NextIntlClientProvider locale={locale} messages={messages} onError={() => null}><QueryClientProvider client={queryClient}>{children}</QueryClientProvider></NextIntlClientProvider>