diff --git a/package.json b/package.json index 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.yaml index 46d5dfbc4..e9b584b9d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -36,8 +36,8 @@ importers: specifier: ^5.101.4 version: 5.101.4(react@19.2.8) '@umami/react-zen': - specifier: ^0.245.0 - version: 0.245.0(@types/react@19.2.17)(immer@11.1.15)(react-aria-components@1.19.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(tailwindcss@4.1.18)(use-sync-external-store@1.6.0(react@19.2.8)) + specifier: ^0.247.0 + version: 0.247.0(@date-fns/tz@1.5.0)(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(date-fns@4.4.0)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(tailwindcss@4.1.18)(use-sync-external-store@1.6.0(react@19.2.8)) bcryptjs: specifier: ^3.0.2 version: 3.0.3 @@ -436,6 +436,33 @@ packages: resolution: {integrity: sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==} engines: {node: '>=6.9.0'} + '@base-ui/react@1.6.0': + 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/utils@0.3.1': + 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/biome@2.5.5': resolution: {integrity: sha512-r1S8nFsAG1MY+vJFZALzIvwXAJv6ejDQ0mxP21Tgr9YK3ZFtjrvbBwDdNhx1rUqvccEIeNg20cYCNzl6Cr69pQ==} engines: {node: '>=14.21.3'} @@ -833,6 +860,9 @@ packages: peerDependencies: postcss: ^8.4 + '@date-fns/tz@1.5.0': + resolution: {integrity: sha512-lwYN/vDPeNRULcepoE/LO2Pgx+7/RV+S9ARfbc9lr2DtGkOD7pAiruHvbR1RX3Qyf6ja47EWJDMsNK5vK08DJg==} + '@dicebear/adventurer-neutral@9.4.2': 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/core@1.8.0': + resolution: {integrity: sha512-0CIZ5itps/8x7BG8dEIhs53BvCUH2PCoogtakwRTut+Arm58sJooJ0AuZhLw2HJYIR5cMLNPBSS728sPho2khQ==} + + '@floating-ui/dom@1.8.0': + resolution: {integrity: sha512-yXSrzeHZBTZadLOlfyhCkJHNeLJnHRnRInwdZ40L7ZiaAtrBwoYlsDrX3v5zB1Utk7CLfzcOVnVVWoXEky7Ceg==} + + '@floating-ui/react-dom@2.1.9': + resolution: {integrity: sha512-JDjEFGCpImxDCA7JJKviA0M9+RtmJdj0m/NVU5IMgBK+AmZouAQQ7/+2GLH0GXXY0YMw9oXPB8hKdbPYg5QLYg==} + peerDependencies: + react: '>=16.8.0' + react-dom: '>=16.8.0' + + '@floating-ui/utils@0.2.12': + resolution: {integrity: sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww==} + '@formatjs/fast-memoize@3.1.7': resolution: {integrity: sha512-zXfhLpvA6T7+efdt9JLbBwZ00tT7NsBMDVnDu8rpHeNNv8KfRZAMo2gkG0k9lK/Nzc//3kJ9pImsfuJxk3KhUA==} @@ -1910,6 +1955,9 @@ packages: '@radix-ui/primitive@1.1.3': resolution: {integrity: sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==} + '@radix-ui/primitive@1.1.7': + resolution: {integrity: sha512-rqWnm76nYT8HoNNqEjpgJ7Pw/DrBj5iBTrmEPo6HTX5+VJyBNOqTdv4g89G63HuR5g0AaENoAcH7Is5fF2kZ8Q==} + '@radix-ui/react-compose-refs@1.1.2': resolution: {integrity: sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==} peerDependencies: @@ -1919,6 +1967,120 @@ packages: '@types/react': optional: true + '@radix-ui/react-compose-refs@1.1.5': + 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/react-context@1.2.2': + 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/react-dialog@1.1.23': + 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/react-dismissable-layer@1.1.19': + 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/react-focus-guards@1.1.6': + 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/react-focus-scope@1.1.16': + 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/react-id@1.1.4': + 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/react-portal@1.1.17': + 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/react-presence@1.1.10': + 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/react-primitive@2.1.10': + 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/react-primitive@2.1.3': resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==} peerDependencies: @@ -1941,6 +2103,15 @@ packages: '@types/react': optional: true + '@radix-ui/react-slot@1.3.3': + 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/react-toggle@1.1.10': resolution: {integrity: sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ==} peerDependencies: @@ -1954,6 +2125,15 @@ packages: '@types/react-dom': optional: true + '@radix-ui/react-use-callback-ref@1.1.4': + 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/react-use-controllable-state@1.2.2': resolution: {integrity: sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==} peerDependencies: @@ -1963,6 +2143,15 @@ packages: '@types/react': optional: true + '@radix-ui/react-use-controllable-state@1.2.6': + 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/react-use-effect-event@0.0.2': resolution: {integrity: sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==} peerDependencies: @@ -1972,6 +2161,15 @@ packages: '@types/react': optional: true + '@radix-ui/react-use-effect-event@0.0.5': + 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/react-use-layout-effect@1.1.1': resolution: {integrity: sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==} peerDependencies: @@ -1981,11 +2179,14 @@ packages: '@types/react': optional: true - '@react-aria/focus@3.22.1': - resolution: {integrity: sha512-CPxtkyrBi/HYY5P3lE/57sQ6qfa0lN8E55TOm89H0kNGv0lKt+/0zP7lWERzBjRr5IxBVrQX4gFEowBN52LPaA==} + '@radix-ui/react-use-layout-effect@1.1.4': + 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/animated@9.7.5': resolution: {integrity: sha512-Tqrwz7pIlsSDITzxoLS3n/v/YCUHQdOIKtOJf4yL6kYVSDTSmVK1LI1Q3M/uu2Sx4X3pIWF3xLUhlsA6SPNTNg==} @@ -2566,6 +2767,10 @@ packages: '@swc/types@0.1.27': resolution: {integrity: sha512-K6h3iUlqeM946U4sXFYeahefR1YBbXJvko+hv8WS8/0BNJ4OHiHRywMnQUJCqkR7Y9+hqQ1TvEpiKqUhz7NEFg==} + '@tabby_ai/hijri-converter@1.0.5': + resolution: {integrity: sha512-r5bClKrcIusDoo049dSL8CawnHR6mRdDwhlQuIgZRNty68q0x8k3Lf1BtPAMxRf/GgnHBnIO4ujd3+GQdLWzxQ==} + engines: {node: '>=16.0.0'} + '@tanstack/query-core@5.101.4': resolution: {integrity: sha512-gNwcvOJcRbLWPOLG/2OBm+zM+Yv+MKsXKEOWC57USuZDEsI71hEErQsiEGx5wX9rzWWkfwM0fVSPoiIFSsxfiw==} @@ -2722,11 +2927,10 @@ packages: '@types/yargs@17.0.35': resolution: {integrity: sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==} - '@umami/react-zen@0.245.0': - resolution: {integrity: sha512-UApl8fDJM6VDaDOc8I67sdClzLpp4e9eJB3ntf6rlUgvdllf5T+hdYiHJ98T/tDFfhZWBKuLhnVDX/qNfjlrSw==} + '@umami/react-zen@0.247.0': + resolution: {integrity: sha512-3I8kCsSX3DEDX2D0ft+2g9fUdmXm5+BWR6mMkbOxYy9bColbL5gTF7UOcl+wuN4ETOh7bo9Lxk5CM6hDyZX6uA==} peerDependencies: react: ^18.0.0 || ^19.0.0 - react-aria-components: ^1.0.0 react-dom: ^18.0.0 || ^19.0.0 '@visx/curve@4.0.1-alpha.0': @@ -3051,6 +3255,12 @@ packages: resolution: {integrity: sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA==} engines: {node: '>=0.10.0'} + cmdk@1.1.1: + resolution: {integrity: sha512-Vsv7kFaXm+ptHDMZ7izaRsP70GgrW9NBNGswt9OZaVBLlE0SNpDq8eu/VGXyF9r7M0azK3Wy7OlYXsuyYLFzHg==} + peerDependencies: + react: ^18 || ^19 || ^19.0.0-rc + react-dom: ^18 || ^19 || ^19.0.0-rc + color-convert@1.9.3: resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} @@ -3287,6 +3497,9 @@ packages: resolution: {integrity: sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==} engines: {node: '>= 0.4'} + date-fns-jalali@4.1.0-0: + resolution: {integrity: sha512-hTIP/z+t+qKwBDcmmsnmjWTduxCg+5KfdqWQvb2X/8C9+knYY6epN/pfxdDuyVlSVeFz0sM5eEfwIUQ70U4ckg==} + date-fns-tz@3.2.0: resolution: {integrity: sha512-sg8HqoTEulcbbbVXeg84u5UnlsQa8GS5QXMqjjYIhS4abEVVKIUwe0/l/UhrZdKaL/W5eWZNlbTeEIiOXTcsBQ==} peerDependencies: @@ -3354,6 +3567,9 @@ packages: resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} engines: {node: '>=8'} + detect-node-es@1.1.0: + resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==} + dijkstrajs@1.0.3: resolution: {integrity: sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==} @@ -3417,6 +3633,19 @@ packages: elkjs@0.11.1: resolution: {integrity: sha512-zxxR9k+rx5ktMwT/FwyLdPCrq7xN6e4VGGHH8hA01vVYKjTFik7nHOxBnAYtrgYUB1RpAiLvA1/U2YraWxyKKg==} + embla-carousel-react@8.6.0: + 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 + + embla-carousel-reactive-utils@8.6.0: + resolution: {integrity: sha512-fMVUDUEx0/uIEDM0Mz3dHznDhfX+znCCDCeIophYb1QGVM7YThSWX+wz11zlYwWFOr74b4QLGg0hrGPJeG2s4A==} + peerDependencies: + embla-carousel: 8.6.0 + + embla-carousel@8.6.0: + resolution: {integrity: sha512-SjWyZBHJPbqxHOzckOfo8lHisEaJWmwd23XppYFYVh10bU66/Pn5tkVkbkCMZVdbUE5eTCI2nD8OyIP4Z+uwkA==} + emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} @@ -3627,6 +3856,10 @@ packages: resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} engines: {node: '>= 0.4'} + get-nonce@1.0.1: + resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==} + engines: {node: '>=6'} + get-port-please@3.2.0: 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.1 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 + react-day-picker@9.14.0: + resolution: {integrity: sha512-tBaoDWjPwe0M5pGrum4H0SR6Lyk+BO9oHnp9JbKpGKW2mlraNPgP9BMfsg5pWpwrssARmeqk7YBl2oXutZTaHA==} + engines: {node: '>=18'} + peerDependencies: + react: '>=16.8.0' + react-dom@19.2.8: resolution: {integrity: sha512-rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==} peerDependencies: @@ -4846,6 +5085,26 @@ packages: react-is@19.2.8: resolution: {integrity: sha512-s5un28nYxKJw5gvUHyW5PCC28CvBqLu9r3cWgzHT4Vo/5fqqkFcdRYsGcKf50WMPpjjFZS5d76fn3YCo2njKwQ==} + react-remove-scroll-bar@2.3.8: + 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 + + react-remove-scroll@2.7.2: + 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 + react-resizable-panels@4.12.2: 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 + react-style-singleton@2.2.3: + 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 + react-window@2.3.0: resolution: {integrity: sha512-FW6TIpaOH646k51X7yE+LSCWGkt5Pfsnc1fVyq/sCI9h0pTqmMiBXM04pzFKg3Bt7NGkeV6kqbU8d/QjmFS7Ug==} peerDependencies: @@ -4919,6 +5188,9 @@ packages: require-main-filename@2.0.0: resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==} + reselect@5.2.0: + resolution: {integrity: sha512-AgZ3UOZm3YndfrJ4OYjgrT7bmCm/1iqkjvEfH/oYjzh6PD2qw4QuT3jjnXIrpdt4MTpMXclMT3lXbmRY+XRakw==} + resolve-from@4.0.0: resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} @@ -5440,11 +5712,31 @@ packages: peerDependencies: browserslist: '>= 4.21.0' + use-callback-ref@1.3.3: + 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 + use-intl@4.13.4: resolution: {integrity: sha512-wRhU5zyPNgu845++EJ8ckQsi89b22QUop7NlGxNXpsnKSwEJr7WErAkdAYeVQgFTmDWsa8e2NI1e14XbWz9Ecw==} peerDependencies: react: ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0 + use-sidecar@1.1.3: + 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 + use-sync-external-store@1.6.0: resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==} peerDependencies: @@ -5931,6 +6223,31 @@ snapshots: '@babel/helper-validator-identifier': 7.29.7 optional: true + '@base-ui/react@1.6.0(@date-fns/tz@1.5.0)(@types/react@19.2.17)(date-fns@4.4.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@babel/runtime': 7.29.7 + '@base-ui/utils': 0.3.1(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@floating-ui/react-dom': 2.1.9(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@floating-ui/utils': 0.2.12 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + use-sync-external-store: 1.6.0(react@19.2.8) + optionalDependencies: + '@date-fns/tz': 1.5.0 + '@types/react': 19.2.17 + date-fns: 4.4.0 + + '@base-ui/utils@0.3.1(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@babel/runtime': 7.29.7 + '@floating-ui/utils': 0.2.12 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + reselect: 5.2.0 + use-sync-external-store: 1.6.0(react@19.2.8) + optionalDependencies: + '@types/react': 19.2.17 + '@biomejs/biome@2.5.5': optionalDependencies: '@biomejs/cli-darwin-arm64': 2.5.5 @@ -6310,6 +6627,8 @@ snapshots: dependencies: postcss: 8.5.23 + '@date-fns/tz@1.5.0': {} + '@dicebear/adventurer-neutral@9.4.2(@dicebear/core@9.4.3)': dependencies: '@dicebear/core': 9.4.3 @@ -6664,6 +6983,23 @@ snapshots: optionalDependencies: '@noble/hashes': 2.2.0 + '@floating-ui/core@1.8.0': + dependencies: + '@floating-ui/utils': 0.2.12 + + '@floating-ui/dom@1.8.0': + dependencies: + '@floating-ui/core': 1.8.0 + '@floating-ui/utils': 0.2.12 + + '@floating-ui/react-dom@2.1.9(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@floating-ui/dom': 1.8.0 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + + '@floating-ui/utils@0.2.12': {} + '@formatjs/fast-memoize@3.1.7': {} '@formatjs/icu-messageformat-parser@3.5.15': @@ -7145,12 +7481,114 @@ snapshots: '@radix-ui/primitive@1.1.3': {} + '@radix-ui/primitive@1.1.7': {} + '@radix-ui/react-compose-refs@1.1.2(@types/react@19.2.17)(react@19.2.8)': dependencies: react: 19.2.8 optionalDependencies: '@types/react': 19.2.17 + '@radix-ui/react-compose-refs@1.1.5(@types/react@19.2.17)(react@19.2.8)': + dependencies: + react: 19.2.8 + optionalDependencies: + '@types/react': 19.2.17 + + '@radix-ui/react-context@1.2.2(@types/react@19.2.17)(react@19.2.8)': + dependencies: + react: 19.2.8 + optionalDependencies: + '@types/react': 19.2.17 + + '@radix-ui/react-dialog@1.1.23(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@radix-ui/primitive': 1.1.7 + '@radix-ui/react-compose-refs': 1.1.5(@types/react@19.2.17)(react@19.2.8) + '@radix-ui/react-context': 1.2.2(@types/react@19.2.17)(react@19.2.8) + '@radix-ui/react-dismissable-layer': 1.1.19(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@radix-ui/react-focus-guards': 1.1.6(@types/react@19.2.17)(react@19.2.8) + '@radix-ui/react-focus-scope': 1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@radix-ui/react-id': 1.1.4(@types/react@19.2.17)(react@19.2.8) + '@radix-ui/react-portal': 1.1.17(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@radix-ui/react-presence': 1.1.10(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@radix-ui/react-primitive': 2.1.10(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@radix-ui/react-slot': 1.3.3(@types/react@19.2.17)(react@19.2.8) + '@radix-ui/react-use-controllable-state': 1.2.6(@types/react@19.2.17)(react@19.2.8) + '@radix-ui/react-use-layout-effect': 1.1.4(@types/react@19.2.17)(react@19.2.8) + aria-hidden: 1.2.6 + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + react-remove-scroll: 2.7.2(@types/react@19.2.17)(react@19.2.8) + optionalDependencies: + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) + + '@radix-ui/react-dismissable-layer@1.1.19(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@radix-ui/primitive': 1.1.7 + '@radix-ui/react-compose-refs': 1.1.5(@types/react@19.2.17)(react@19.2.8) + '@radix-ui/react-primitive': 2.1.10(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@radix-ui/react-use-callback-ref': 1.1.4(@types/react@19.2.17)(react@19.2.8) + '@radix-ui/react-use-effect-event': 0.0.5(@types/react@19.2.17)(react@19.2.8) + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + optionalDependencies: + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) + + '@radix-ui/react-focus-guards@1.1.6(@types/react@19.2.17)(react@19.2.8)': + dependencies: + react: 19.2.8 + optionalDependencies: + '@types/react': 19.2.17 + + '@radix-ui/react-focus-scope@1.1.16(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@radix-ui/react-compose-refs': 1.1.5(@types/react@19.2.17)(react@19.2.8) + '@radix-ui/react-primitive': 2.1.10(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@radix-ui/react-use-callback-ref': 1.1.4(@types/react@19.2.17)(react@19.2.8) + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + optionalDependencies: + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) + + '@radix-ui/react-id@1.1.4(@types/react@19.2.17)(react@19.2.8)': + dependencies: + '@radix-ui/react-use-layout-effect': 1.1.4(@types/react@19.2.17)(react@19.2.8) + react: 19.2.8 + optionalDependencies: + '@types/react': 19.2.17 + + '@radix-ui/react-portal@1.1.17(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@radix-ui/react-primitive': 2.1.10(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@radix-ui/react-use-layout-effect': 1.1.4(@types/react@19.2.17)(react@19.2.8) + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + optionalDependencies: + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) + + '@radix-ui/react-presence@1.1.10(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@radix-ui/react-use-layout-effect': 1.1.4(@types/react@19.2.17)(react@19.2.8) + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + optionalDependencies: + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) + + '@radix-ui/react-primitive@2.1.10(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + dependencies: + '@radix-ui/react-slot': 1.3.3(@types/react@19.2.17)(react@19.2.8) + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + optionalDependencies: + '@types/react': 19.2.17 + '@types/react-dom': 19.2.3(@types/react@19.2.17) + '@radix-ui/react-primitive@2.1.3(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': dependencies: '@radix-ui/react-slot': 1.2.3(@types/react@19.2.17)(react@19.2.8) @@ -7167,6 +7605,13 @@ snapshots: optionalDependencies: '@types/react': 19.2.17 + '@radix-ui/react-slot@1.3.3(@types/react@19.2.17)(react@19.2.8)': + dependencies: + '@radix-ui/react-compose-refs': 1.1.5(@types/react@19.2.17)(react@19.2.8) + react: 19.2.8 + optionalDependencies: + '@types/react': 19.2.17 + '@radix-ui/react-toggle@1.1.10(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': dependencies: '@radix-ui/primitive': 1.1.3 @@ -7178,6 +7623,12 @@ snapshots: '@types/react': 19.2.17 '@types/react-dom': 19.2.3(@types/react@19.2.17) + '@radix-ui/react-use-callback-ref@1.1.4(@types/react@19.2.17)(react@19.2.8)': + dependencies: + react: 19.2.8 + optionalDependencies: + '@types/react': 19.2.17 + '@radix-ui/react-use-controllable-state@1.2.2(@types/react@19.2.17)(react@19.2.8)': dependencies: '@radix-ui/react-use-effect-event': 0.0.2(@types/react@19.2.17)(react@19.2.8) @@ -7186,6 +7637,15 @@ snapshots: optionalDependencies: '@types/react': 19.2.17 + '@radix-ui/react-use-controllable-state@1.2.6(@types/react@19.2.17)(react@19.2.8)': + dependencies: + '@radix-ui/primitive': 1.1.7 + '@radix-ui/react-use-effect-event': 0.0.5(@types/react@19.2.17)(react@19.2.8) + '@radix-ui/react-use-layout-effect': 1.1.4(@types/react@19.2.17)(react@19.2.8) + react: 19.2.8 + optionalDependencies: + '@types/react': 19.2.17 + '@radix-ui/react-use-effect-event@0.0.2(@types/react@19.2.17)(react@19.2.8)': dependencies: '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.17)(react@19.2.8) @@ -7193,18 +7653,24 @@ snapshots: optionalDependencies: '@types/react': 19.2.17 + '@radix-ui/react-use-effect-event@0.0.5(@types/react@19.2.17)(react@19.2.8)': + dependencies: + '@radix-ui/react-use-layout-effect': 1.1.4(@types/react@19.2.17)(react@19.2.8) + react: 19.2.8 + optionalDependencies: + '@types/react': 19.2.17 + '@radix-ui/react-use-layout-effect@1.1.1(@types/react@19.2.17)(react@19.2.8)': dependencies: react: 19.2.8 optionalDependencies: '@types/react': 19.2.17 - '@react-aria/focus@3.22.1(react-dom@19.2.8(react@19.2.8))(react@19.2.8)': + '@radix-ui/react-use-layout-effect@1.1.4(@types/react@19.2.17)(react@19.2.8)': dependencies: - '@swc/helpers': 0.5.23 react: 19.2.8 - react-aria: 3.50.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8) - react-dom: 19.2.8(react@19.2.8) + optionalDependencies: + '@types/react': 19.2.17 '@react-spring/animated@9.7.5(react@19.2.8)': dependencies: @@ -7642,6 +8108,8 @@ snapshots: dependencies: '@swc/counter': 0.1.3 + '@tabby_ai/hijri-converter@1.0.5': {} + '@tanstack/query-core@5.101.4': {} '@tanstack/react-query@5.101.4(react@19.2.8)': @@ -7797,22 +8265,27 @@ snapshots: dependencies: '@types/yargs-parser': 21.0.3 - '@umami/react-zen@0.245.0(@types/react@19.2.17)(immer@11.1.15)(react-aria-components@1.19.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(tailwindcss@4.1.18)(use-sync-external-store@1.6.0(react@19.2.8))': + '@umami/react-zen@0.247.0(@date-fns/tz@1.5.0)(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(date-fns@4.4.0)(immer@11.1.15)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(tailwindcss@4.1.18)(use-sync-external-store@1.6.0(react@19.2.8))': dependencies: - '@internationalized/date': 3.12.2 - '@react-aria/focus': 3.22.1(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@base-ui/react': 1.6.0(@date-fns/tz@1.5.0)(@types/react@19.2.17)(date-fns@4.4.0)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) '@react-spring/web': 9.7.5(react-dom@19.2.8(react@19.2.8))(react@19.2.8) clsx: 2.1.1 + cmdk: 1.1.1(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + embla-carousel-react: 8.6.0(react@19.2.8) lucide-react: 0.555.0(react@19.2.8) react: 19.2.8 - react-aria-components: 1.19.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + react-day-picker: 9.14.0(react@19.2.8) react-dom: 19.2.8(react@19.2.8) react-hook-form: 7.83.0(react@19.2.8) + react-resizable-panels: 4.12.2(react-dom@19.2.8(react@19.2.8))(react@19.2.8) tailwind-merge: 3.6.0 tailwind-variants: 3.3.0(tailwind-merge@3.6.0)(tailwindcss@4.1.18) zustand: 5.0.14(@types/react@19.2.17)(immer@11.1.15)(react@19.2.8)(use-sync-external-store@1.6.0(react@19.2.8)) transitivePeerDependencies: + - '@date-fns/tz' - '@types/react' + - '@types/react-dom' + - date-fns - immer - tailwindcss - use-sync-external-store @@ -8171,6 +8644,18 @@ snapshots: cluster-key-slot@1.1.2: {} + cmdk@1.1.1(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8): + dependencies: + '@radix-ui/react-compose-refs': 1.1.5(@types/react@19.2.17)(react@19.2.8) + '@radix-ui/react-dialog': 1.1.23(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + '@radix-ui/react-id': 1.1.4(@types/react@19.2.17)(react@19.2.8) + '@radix-ui/react-primitive': 2.1.10(@types/react-dom@19.2.3(@types/react@19.2.17))(@types/react@19.2.17)(react-dom@19.2.8(react@19.2.8))(react@19.2.8) + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + transitivePeerDependencies: + - '@types/react' + - '@types/react-dom' + color-convert@1.9.3: dependencies: color-name: 1.1.3 @@ -8404,6 +8889,8 @@ snapshots: es-errors: 1.3.0 is-data-view: 1.0.2 + date-fns-jalali@4.1.0-0: {} + date-fns-tz@3.2.0(date-fns@4.4.0): dependencies: date-fns: 4.4.0 @@ -8452,6 +8939,8 @@ snapshots: detect-libc@2.1.2: {} + detect-node-es@1.1.0: {} + dijkstrajs@1.0.3: {} dom-accessibility-api@0.5.16: {} @@ -8519,6 +9008,18 @@ snapshots: elkjs@0.11.1: {} + embla-carousel-react@8.6.0(react@19.2.8): + dependencies: + embla-carousel: 8.6.0 + embla-carousel-reactive-utils: 8.6.0(embla-carousel@8.6.0) + react: 19.2.8 + + embla-carousel-reactive-utils@8.6.0(embla-carousel@8.6.0): + dependencies: + embla-carousel: 8.6.0 + + embla-carousel@8.6.0: {} + emoji-regex@8.0.0: {} emoji-regex@9.2.2: {} @@ -8820,6 +9321,8 @@ snapshots: hasown: 2.0.2 math-intrinsics: 1.1.0 + get-nonce@1.0.1: {} + get-port-please@3.2.0: {} get-proto@1.0.1: @@ -10074,6 +10577,14 @@ snapshots: react-stately: 3.48.0(react@19.2.8) use-sync-external-store: 1.6.0(react@19.2.8) + react-day-picker@9.14.0(react@19.2.8): + 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 + react-dom@19.2.8(react@19.2.8): dependencies: react: 19.2.8 @@ -10095,6 +10606,25 @@ snapshots: react-is@19.2.8: {} + react-remove-scroll-bar@2.3.8(@types/react@19.2.17)(react@19.2.8): + dependencies: + react: 19.2.8 + react-style-singleton: 2.2.3(@types/react@19.2.17)(react@19.2.8) + tslib: 2.8.1 + optionalDependencies: + '@types/react': 19.2.17 + + react-remove-scroll@2.7.2(@types/react@19.2.17)(react@19.2.8): + dependencies: + react: 19.2.8 + react-remove-scroll-bar: 2.3.8(@types/react@19.2.17)(react@19.2.8) + react-style-singleton: 2.2.3(@types/react@19.2.17)(react@19.2.8) + tslib: 2.8.1 + use-callback-ref: 1.3.3(@types/react@19.2.17)(react@19.2.8) + use-sidecar: 1.1.3(@types/react@19.2.17)(react@19.2.8) + optionalDependencies: + '@types/react': 19.2.17 + react-resizable-panels@4.12.2(react-dom@19.2.8(react@19.2.8))(react@19.2.8): dependencies: react: 19.2.8 @@ -10120,6 +10650,14 @@ snapshots: react: 19.2.8 use-sync-external-store: 1.6.0(react@19.2.8) + react-style-singleton@2.2.3(@types/react@19.2.17)(react@19.2.8): + dependencies: + get-nonce: 1.0.1 + react: 19.2.8 + tslib: 2.8.1 + optionalDependencies: + '@types/react': 19.2.17 + react-window@2.3.0(react-dom@19.2.8(react@19.2.8))(react@19.2.8): dependencies: react: 19.2.8 @@ -10191,6 +10729,8 @@ snapshots: require-main-filename@2.0.0: {} + reselect@5.2.0: {} + resolve-from@4.0.0: {} resolve-from@5.0.0: {} @@ -10809,6 +11349,13 @@ snapshots: escalade: 3.2.0 picocolors: 1.1.1 + use-callback-ref@1.3.3(@types/react@19.2.17)(react@19.2.8): + dependencies: + react: 19.2.8 + tslib: 2.8.1 + optionalDependencies: + '@types/react': 19.2.17 + use-intl@4.13.4(react@19.2.8): dependencies: '@formatjs/fast-memoize': 3.1.7 @@ -10817,6 +11364,14 @@ snapshots: intl-messageformat: 11.2.12 react: 19.2.8 + use-sidecar@1.1.3(@types/react@19.2.17)(react@19.2.8): + dependencies: + detect-node-es: 1.1.0 + react: 19.2.8 + tslib: 2.8.1 + optionalDependencies: + '@types/react': 19.2.17 + use-sync-external-store@1.6.0(react@19.2.8): dependencies: react: 19.2.8 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 4effe91c4..ec9aa42bb 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -10,3 +10,5 @@ allowBuilds: msw: false prisma: true sharp: false +minimumReleaseAgeExclude: + - '@umami/react-zen@0.247.0' diff --git a/src/app/(main)/SideNav.tsx b/src/app/(main)/SideNav.tsx index cac1fa4cf..51c85c06f 100644 --- a/src/app/(main)/SideNav.tsx +++ b/src/app/(main)/SideNav.tsx @@ -110,27 +110,34 @@ export function SideNav(props: any) { {links.map(({ id, path, label, icon }) => { const isSelected = pathname.startsWith(renderUrl(path, false)); + const content = ( + + + + + + ); return ( - - - - - - - {label} - + {isCollapsed ? ( + + {content} + {label} + + ) : ( + content + )} ); })} diff --git a/src/app/(main)/TopNav.tsx b/src/app/(main)/TopNav.tsx index 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.tsx index 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 ( - - - - + + {t(messages.newVersionAvailable, { version: `v${latest}` })} + + + + + ); diff --git a/src/app/(main)/admin/teams/AdminTeamsTable.tsx b/src/app/(main)/admin/teams/AdminTeamsTable.tsx index 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 ( - + router.push(`/admin/teams/${id}`)} + data-test="link-button-edit" + > diff --git a/src/app/(main)/admin/users/UsersTable.tsx b/src/app/(main)/admin/users/UsersTable.tsx index 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 ( - + router.push(`/admin/users/${id}`)} + data-test="link-button-edit" + > diff --git a/src/app/(main)/admin/users/[userId]/UserTwoFactorSettings.tsx b/src/app/(main)/admin/users/[userId]/UserTwoFactorSettings.tsx index 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)} - + {isGlobalRequired ? ( + + + + {t(labels.twoFactorRequireUser)} + + {t(labels.twoFactorGlobalActiveTooltip)} + + ) : ( {t(labels.twoFactorRequireUser)} - {t(labels.twoFactorGlobalActiveTooltip)} - + )} {twoFactorEnabled && ( @@ -89,7 +112,7 @@ export function UserTwoFactorSettings({ userId }: { userId: string }) { )} - !open && setShowReset(false)}> + !open && setShowReset(false)}> - + router.push(`/admin/websites/${id}`)} + data-test="link-button-edit" + > diff --git a/src/app/(main)/boards/BoardCloneForm.tsx b/src/app/(main)/boards/BoardCloneForm.tsx index 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.tsx index 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.tsx index 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({ {t(labels.type)} - handleEntityTypeChange(value as string)} + > {t(labels.website)} {t(labels.pixel)} {t(labels.link)} @@ -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 ? ( setSelectedEntityId(value as string)} /> ) : ( setSelectedEntityId(value as string)} /> )} @@ -373,7 +379,7 @@ export function BoardComponentSelect({ {field.type === 'select' && ( 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.tsx index 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 ( - - - - } label={isCollapsed ? '' : t(labels.back)} padding /> - - - {t(labels.back)} - + {(() => { + const content = ( + + + } label={isCollapsed ? '' : t(labels.back)} padding /> + + + ); + + return isCollapsed ? ( + + {content} + {t(labels.back)} + + ) : ( + content + ); + })()} {items.map(({ label: sectionLabel, items: sectionItems }, index) => ( @@ -81,27 +91,34 @@ export function SettingsNav({ )} {sectionItems.map(({ id, path, label, icon }) => { const isSelected = selectedKey === id; + const content = ( + + + + + + ); return ( - - - - - - - {label} - + {isCollapsed ? ( + + {content} + {label} + + ) : ( + content + )} ); })} diff --git a/src/app/(main)/settings/preferences/DateRangeSetting.tsx b/src/app/(main)/settings/preferences/DateRangeSetting.tsx index 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() { diff --git a/src/app/(main)/settings/preferences/LanguageSetting.tsx b/src/app/(main)/settings/preferences/LanguageSetting.tsx index 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 => ( diff --git a/src/app/(main)/settings/preferences/TimezoneSetting.tsx b/src/app/(main)/settings/preferences/TimezoneSetting.tsx index 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) => ( diff --git a/src/app/(main)/settings/security/UserSecurityPage.tsx b/src/app/(main)/settings/security/UserSecurityPage.tsx index 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() { {t(messages.twoFactorUserDescription)} )} - + {isEnabled && isRequired ? ( + + + + {t(labels.twoFactorEnable)} + + {t(messages.twoFactorRequiredMessage)} + + ) : ( {t(labels.twoFactorEnable)} - {t(messages.twoFactorRequiredMessage)} - + )} {isEnabled && isRequired && ( diff --git a/src/app/(main)/teams/[teamId]/TeamEditForm.tsx b/src/app/(main)/teams/[teamId]/TeamEditForm.tsx index 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 && ( - + {t(labels.save)} diff --git a/src/app/(main)/teams/[teamId]/TeamTwoFactorSettings.tsx b/src/app/(main)/teams/[teamId]/TeamTwoFactorSettings.tsx index 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 }) { {t(labels.twoFactorAuth)} - + {isGlobalRequired ? ( + + + + {t(labels.twoFactorRequireTeam)} + + {t(labels.twoFactorGlobalActiveTooltip)} + + ) : ( {t(labels.twoFactorRequireTeam)} - {t(labels.twoFactorGlobalActiveTooltip)} - + )} {t(messages.twoFactorRequireTeamDescription)} diff --git a/src/app/(main)/websites/[websiteId]/(reports)/attribution/Attribution.tsx b/src/app/(main)/websites/[websiteId]/(reports)/attribution/Attribution.tsx index 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('attribution', { - websiteId, - startDate, - endDate, - model, - type, - step, - }); + const { data, error, isLoading } = useResultQuery( + '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.tsx index 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 ( - setModel(value as string)} + > {t(labels.firstClick)} {t(labels.lastClick)} - {t(labels.viewedPage)} {t(labels.triggeredEvent)} - + + (isLoading ? : )} + allowSearch + > + {items.map(({ value }) => ( + + {value} + + ))} + - + {step ? ( + + ) : ( + + )} ); } diff --git a/src/app/(main)/websites/[websiteId]/(reports)/funnels/EventDataFilterRow.tsx b/src/app/(main)/websites/[websiteId]/(reports)/funnels/EventDataFilterRow.tsx index 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 - allowsCustomValue renderEmptyState={() => isLoading ? ( @@ -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 - allowsCustomValue renderEmptyState={() => isLoading ? ( @@ -158,7 +150,7 @@ function OperatorSelect({ }) { const { t, labels } = useMessages(); return ( - onChange?.(v as string)}> {t(labels.is)} {t(labels.isNot)} {t(labels.contains)} diff --git a/src/app/(main)/websites/[websiteId]/(reports)/funnels/Funnel.tsx b/src/app/(main)/websites/[websiteId]/(reports)/funnels/Funnel.tsx index 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({ diff --git a/src/app/(main)/websites/[websiteId]/(reports)/goals/Goal.tsx b/src/app/(main)/websites/[websiteId]/(reports)/goals/Goal.tsx index 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({ diff --git a/src/app/(main)/websites/[websiteId]/(reports)/journeys/Journey.tsx b/src/app/(main)/websites/[websiteId]/(reports)/journeys/Journey.tsx index 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 {name}
- - -
{formatLongNumber(nodeCount)}
-
- - - {`${dropped}% ${t(labels.dropoff)}`} - - - - {`${remaining}% ${t(labels.conversion)}`} + {columnIndex === 0 || (selectedNode && !selected) ? ( +
{formatLongNumber(nodeCount)}
+ ) : ( + + +
{formatLongNumber(nodeCount)}
+
+ + + {`${dropped}% ${t(labels.dropoff)}`} -
-
-
+ + + {`${remaining}% ${t(labels.conversion)}`} + + + + + )}
{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.tsx index 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 }) { - setSteps(Number(value))} + > {JOURNEY_STEPS.map(step => ( {step} diff --git a/src/app/(main)/websites/[websiteId]/(reports)/performance/Performance.tsx b/src/app/(main)/websites/[websiteId]/(reports)/performance/Performance.tsx index 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 handleRevenueChartModeChange(value as RevenueChartMode)} + popoverProps={{ side: 'bottom', align: 'end' }} + buttonProps={{ style: { width: 140 } }} > {t(labels.period)} {t(labels.cumulative)} diff --git a/src/app/(main)/websites/[websiteId]/ExpandedViewModal.tsx b/src/app/(main)/websites/[websiteId]/ExpandedViewModal.tsx index 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 ( - + - - + + {menuItems.map(({ id, label, icon, seperator }, index) => { return ( {seperator && } - + {icon} {label} diff --git a/src/app/(main)/websites/[websiteId]/WebsiteNav.tsx b/src/app/(main)/websites/[websiteId]/WebsiteNav.tsx index 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 ( - - - - } label={isCollapsed ? '' : t(labels.back)} padding /> - - - {t(labels.back)} - + {isCollapsed ? ( + + + + } label="" padding /> + + + {t(labels.back)} + + ) : ( + + } label={t(labels.back)} padding /> + + )} {items.map(({ label: sectionLabel, items: sectionItems }, index) => ( @@ -45,25 +56,42 @@ export function WebsiteNav({ const isSelected = selectedKey === id; return ( - - - - - - - {label} - + {isCollapsed ? ( + + + + + + + {label} + + ) : ( + + + + )} ); })} diff --git a/src/app/(main)/websites/[websiteId]/events/EventProperties.tsx b/src/app/(main)/websites/[websiteId]/events/EventProperties.tsx index 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 }) { + - setMaxDuration(v as string)} + buttonProps={{ style: { maxWidth: '360px' } }} + > 5 minutes 10 minutes 15 minutes diff --git a/src/app/(main)/websites/[websiteId]/settings/WebsiteTransferForm.tsx b/src/app/(main)/websites/[websiteId]/settings/WebsiteTransferForm.tsx index 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({ {!isTeamWebsite && ( - {items.map(({ id, name }) => { return ( @@ -89,7 +89,7 @@ export function WebsiteTransferForm({ {t(labels.transfer)} diff --git a/src/app/Providers.tsx b/src/app/Providers.tsx index 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 ( - + {children} diff --git a/src/app/share/[slug]/[[...path]]/ShareNav.tsx b/src/app/share/[slug]/[[...path]]/ShareNav.tsx index 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 ( - - - - - - - {label} - + {collapsed ? ( + + + + + + + {label} + + ) : ( + + + + )} ); })} diff --git a/src/components/common/ComboBox.tsx b/src/components/common/ComboBox.tsx index 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 = { - shouldSelectOnPressUp: true, - shouldFocusOnHover: false, style: { maxHeight: 'min(400px, calc(100dvh - 8rem))', }, diff --git a/src/components/common/MultiSelect.tsx b/src/components/common/MultiSelect.tsx index 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.tsx index 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) => { + const handleKeyDown = ( + index: number, + e: KeyboardEvent, + ) => { 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) => { + const handlePaste = (e: ClipboardEvent) => { 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.tsx index 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 ; + return ( + + {t(messages.error)} + + ); } if (isLoading) { diff --git a/src/components/common/Panel.tsx b/src/components/common/Panel.tsx index a02b7e108..182027f91 100644 --- a/src/components/common/Panel.tsx +++ b/src/components/common/Panel.tsx @@ -65,14 +65,23 @@ export function Panel({ {(allowFullscreen || toolbar) && ( {toolbar} - {allowFullscreen && ( - + {allowFullscreen && + (isFullscreen ? ( - {t(labels.maximize)} - - )} + ) : ( + + + {t(labels.maximize)} + + ))} )} {children} diff --git a/src/components/input/ActionSelect.tsx b/src/components/input/ActionSelect.tsx index 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 ( - onChange?.(val as string)}> {t(labels.viewedPage)} {t(labels.triggeredEvent)} diff --git a/src/components/input/BoardSelect.tsx b/src/components/input/BoardSelect.tsx index 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.tsx index 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 { 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 ( <> + diff --git a/src/components/input/FilterBar.tsx b/src/components/input/FilterBar.tsx index 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 }) { )} {items.map(({ id, label }) => ( diff --git a/src/components/input/LanguageButton.tsx b/src/components/input/LanguageButton.tsx index 9ac2ec3fc..bf5c9ff26 100644 --- a/src/components/input/LanguageButton.tsx +++ b/src/components/input/LanguageButton.tsx @@ -18,7 +18,7 @@ export function LanguageButton() { - + {items.map(({ value, label }) => { diff --git a/src/components/input/LinkSelect.tsx b/src/components/input/LinkSelect.tsx index 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.tsx index 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 - allowsCustomValue renderEmptyState={() => isLoading ? ( diff --git a/src/components/input/MenuButton.tsx b/src/components/input/MenuButton.tsx index 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({ - - - {children} + + + {Children.map(children, child => + isValidElement(child) + ? cloneElement(child as ReactElement<{ onAction?: (key: Key) => void }>, { + onAction: handleAction, + }) + : child, + )} diff --git a/src/components/input/MobileMenuButton.tsx b/src/components/input/MobileMenuButton.tsx index 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) { - - - + + + ); } diff --git a/src/components/input/MonthSelect.tsx b/src/components/input/MonthSelect.tsx index 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 ( - handleMonthChange(value as number)}> {months.map(m => { return ( @@ -33,7 +33,7 @@ export function MonthSelect({ date = new Date(), onChange }) { ); })} - handleYearChange(value as number)}> {years.map(y => { return ( diff --git a/src/components/input/NavButton.tsx b/src/components/input/NavButton.tsx index 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 ( @@ -77,25 +85,29 @@ export function NavButton({ showText = true }: TeamsButtonProps) { )} - + - + } label={t(labels.switchAccount)} /> - + - + - + } label={user.username} /> {user?.teams?.map(({ id, name }) => ( - + handleNavigate(getUrl(`/teams/${id}`))} + > }> {name} diff --git a/src/components/input/PixelSelect.tsx b/src/components/input/PixelSelect.tsx index 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.tsx index aa1550ea2..87149bba3 100644 --- a/src/components/input/PreferencesButton.tsx +++ b/src/components/input/PreferencesButton.tsx @@ -15,7 +15,7 @@ export function PreferencesButton() { - + diff --git a/src/components/input/ProfileButton.tsx b/src/components/input/ProfileButton.tsx index 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() { - - + + {items.map(({ id, path, label, icon, separator }) => { return ( {separator && } - + router.push(path)}> {icon} {label} diff --git a/src/components/input/ReportEditButton.tsx b/src/components/input/ReportEditButton.tsx index 777b75d5f..c335650ef 100644 --- a/src/components/input/ReportEditButton.tsx +++ b/src/components/input/ReportEditButton.tsx @@ -75,15 +75,15 @@ export function ReportEditButton({ - - - + + + {t(labels.edit)} - + @@ -103,7 +103,7 @@ export function ReportEditButton({ > {children} - !open && handleClose()}> + !open && handleClose()}> - - + + - } label={t(labels.settings)} /> + } + label={t(labels.settings)} + onAction={handleAction} + /> {!cloudMode && user.isAdmin && ( - } label={t(labels.admin)} /> + } + label={t(labels.admin)} + onAction={handleAction} + /> )} {cloudMode && ( <> - } label={t(labels.documentation)}> + } + label={t(labels.documentation)} + onAction={handleAction} + > - } label={t(labels.support)} /> + } + label={t(labels.support)} + onAction={handleAction} + /> )} - } label={t(labels.logout)} /> + } + label={t(labels.logout)} + onAction={handleAction} + /> diff --git a/src/components/input/TeamsButton.tsx b/src/components/input/TeamsButton.tsx index 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() { - + - + - + } label={user.username} /> {user?.teams?.map(({ id, name }) => ( - + handleNavigate(getUrl(`/teams/${id}`))}> }> {name} diff --git a/src/components/input/UnitFilter.tsx b/src/components/input/UnitFilter.tsx index cabe87eaf..6ac2fffa5 100644 --- a/src/components/input/UnitFilter.tsx +++ b/src/components/input/UnitFilter.tsx @@ -56,9 +56,9 @@ export function UnitFilter() { {t(labels.previousPeriod)} diff --git a/src/components/input/WebsiteSelect.tsx b/src/components/input/WebsiteSelect.tsx index 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.tsx index cb6041af6..d28368fb6 100644 --- a/src/components/metrics/DatePickerForm.tsx +++ b/src/components/metrics/DatePickerForm.tsx @@ -37,7 +37,7 @@ export function DatePickerForm({ return ( - + {t(labels.singleDay)} {t(labels.dateRange)} diff --git a/src/components/metrics/WeeklyTraffic.tsx b/src/components/metrics/WeeklyTraffic.tsx index 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 ( - - + const cell = ( + + - - - + style={{ opacity: pct, transform: `scale(${pct})` }} + /> + + + ); + + if (count <= 0) { + return {cell}; + } + + return ( + + {cell} - {error && } + {error && ( + + {t(messages.error)} + {error} + + )} {!required && ( diff --git a/src/components/property-data/PropertyFilterRecord.tsx b/src/components/property-data/PropertyFilterRecord.tsx index 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 - allowsCustomValue renderEmptyState={() => isLoading ? ( @@ -267,7 +264,7 @@ function DateValuePicker({ > - + { @@ -97,13 +96,14 @@ export function PropertyFilters({ - - handleAdd(key.toString())} - style={{ maxHeight: 'calc(100vh - 2rem)', overflowY: 'auto' }} - > + + {(fields as any[]).map(field => ( - + handleAdd(key.toString())} + > {field.propertyName} ))} @@ -118,9 +118,13 @@ export function PropertyFilters({ marginRight="6" alignSelf="stretch" > - handleAdd(key.toString())}> + {(fields as any[]).map(field => ( - + handleAdd(field.propertyName)} + > {field.propertyName} ))} diff --git a/src/permissions/website.test.ts b/src/permissions/website.test.ts index 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, + ).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, + ).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, + ).mockResolvedValue([{ id: 'team', userId: null, teamId: 'team-1' }] as any); + vi.mocked( + prisma.client.teamUser.findMany as (...args: unknown[]) => Promise, + ).mockResolvedValue([] as any); await expect(canViewBatchWebsites({ user: normalUser }, ['team'])).resolves.toEqual([]); }); diff --git a/src/test/render.tsx b/src/test/render.tsx index 6c1dea6b9..373a4d5a1 100644 --- a/src/test/render.tsx +++ b/src/test/render.tsx @@ -45,7 +45,7 @@ function TestProviders({ }) { return ( - window.history.pushState({}, '', url)}> + null}> {children}