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
Fixed properties queries.
Mike Cao5e6799a715f6
diff --git a/package.json b/package.jsonindex ce8475b0f..2acd714cc 100644--- a/package.json+++ b/package.json@@ -82,7 +82,7 @@"@react-spring/web": "^9.7.3","@svgr/cli": "^8.1.0","@tanstack/react-query": "^5.80.10",- "@umami/react-zen": "^0.145.0",+ "@umami/react-zen": "^0.147.0","@umami/redis-client": "^0.27.0","bcryptjs": "^2.4.3","chalk": "^4.1.1",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 9443ea0c4..bbb4ecc06 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -45,8 +45,8 @@ importers:specifier: ^5.80.10version: 5.80.10([email protected])'@umami/react-zen':- specifier: ^0.145.0- version: 0.145.0(@babel/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))+ specifier: ^0.147.0+ version: 0.147.0(@babel/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))'@umami/redis-client':specifier: ^0.27.0version: 0.27.0@@ -355,45 +355,6 @@ importers:specifier: ^5.5.3version: 5.8.3- dist:- dependencies:- '@tanstack/react-query':- specifier: ^4.33.0- classnames:- specifier: ^2.3.1- version: 2.5.1- colord:- specifier: ^2.9.2- version: 2.9.3- date-fns-tz:- specifier: ^1.1.4- version: 1.3.8([email protected])- immer:- specifier: ^9.0.12- version: 9.0.21- moment-timezone:- specifier: ^0.5.35- version: 0.5.48- next:- specifier: ^13.4.0- version: 13.5.11(@babel/[email protected])([email protected]([email protected]))([email protected])- next-basics:- specifier: ^0.36.0- version: 0.36.0([email protected](@babel/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])- react:- specifier: ^18.2.0- version: 18.3.1- react-dom:- specifier: ^18.2.0- version: 18.3.1([email protected])- react-intl:- specifier: ^5.24.7- version: 5.25.1([email protected])([email protected])- zustand:- specifier: ^4.3.8-packages:'@ampproject/[email protected]':@@ -1095,9 +1056,6 @@ packages:'@formatjs/[email protected]':resolution: {integrity: sha512-qrycXDeaORzIqNhBOx0btnhpD1c+/qFIHAN9znofuMJX6QBwtbrmlpWfD4oiUUD2vJUOIYFA/gYtg2KAMGG7sA==}- '@formatjs/[email protected]':- resolution: {integrity: sha512-Rg0e76nomkz3vF9IPlKeV+Qynok0r7YZjL6syLz4/urSg0IbjPZCB/iYUMNsYA643gh4mgrX3T7KEIFIxJBQeg==}-'@formatjs/[email protected]':resolution: {integrity: sha512-3jeJ+HyOfu8osl3GNSL4vVHUuWFXR03Iz9jjgI7RwjG6ysu/Ymdr0JRCPHfF5yGbTE6JCrd63EpvX1/WybYRbA==}@@ -1122,15 +1080,9 @@ packages:'@formatjs/[email protected]':resolution: {integrity: sha512-vHwK3piXwamFcx5YQdCdJxUQ1WdTl6ANclt5xba5zLGDv5Bsur7qz8AD7BevaKxITwpgDeU0u8My3AIibW9ywA==}- '@formatjs/[email protected]':- resolution: {integrity: sha512-4r12A3mS5dp5hnSaQCWBuBNfi9Amgx2dzhU4lTFfhSxgb5DOAiAbMpg6+7gpWZgl4ahsj3l2r/iHIjdmdXOE2Q==}-'@formatjs/[email protected]':resolution: {integrity: sha512-85b+GdAKCsleS6cqVxf/Aw/uBd+20EM0wDpgaxzHo3RIR3bxF4xCJqH/Grbzx8CXurTgDDZHPdPdwJC+May41w==}- '@formatjs/[email protected]':- resolution: {integrity: sha512-ozpz515F/+3CU+HnLi5DYPsLa6JoCfBggBSSg/8nOB5LYSFW9+ZgNQJxJ8tdhKYeODT+4qVHX27EeJLoxLGLNg==}-'@formatjs/[email protected]':resolution: {integrity: sha512-Wzes10SMNeYgnxYiKsda4rnHP3Q3II4XT2tZyOgnH5fWuHDtIkceuWlRQNsvrI3uiwP4hLqp2XdQTCsfkhXulg==}@@ -1154,14 +1106,6 @@ packages:typescript:optional: true- '@formatjs/[email protected]':- resolution: {integrity: sha512-vgvyUOOrzqVaOFYzTf2d3+ToSkH2JpR7x/4U1RyoHQLmvEaTQvXJ7A2qm1Iy3brGNXC/+/7bUlc3lpH+h/LOJA==}- peerDependencies:- typescript: ^4.5- peerDependenciesMeta:- typescript:- optional: true-'@formatjs/[email protected]':resolution: {integrity: sha512-mu7sHXZk1NWZrQ3eUqugpSYo8x5/tXkrI4uIbFqCEC0eNgQaIcoKgVeDFgDAcgG+cEme2atAUYSFF+DFWC4org==}peerDependencies:@@ -1437,111 +1381,54 @@ packages:resolution: {integrity: sha512-SCF2UPT+mDrfO3DDeUb7eTRqHycBEx4aJ8vACm17Nyn2b2ueaLlS5u/2V42SSZF/F6LydI7R78fv3xPW7HHdWw==}engines: {node: '>=18.0.0'}- '@next/[email protected]':- resolution: {integrity: sha512-fbb2C7HChgM7CemdCY+y3N1n8pcTKdqtQLbC7/EQtPdLvlMUT9JX/dBYl8MMZAtYG4uVMyPFHXckb68q/NRwqg==}-'@next/[email protected]':resolution: {integrity: sha512-ZkdYzBseS6UjYzz6ylVKPOK+//zLWvD6Ta+vpoye8cW11AjiQjGYVibF0xuvT4L0iJfAPfZLFidaEzAOywyOAQ==}'@next/[email protected]':resolution: {integrity: sha512-mvVsMIutMxQ4NGZEMZ1kiBNc+la8Xmlk30bKUmCPQz2eFkmsLv54Mha8QZarMaCtSPkkFA1TMD+FIZk0l/PpzA==}- '@next/[email protected]':- resolution: {integrity: sha512-pVyd8/1y1l5atQRvOaLOvfbmRwefxLhqQOzYo/M7FQ5eaRwA1+wuCn7t39VwEgDd7Aw1+AIWwd+MURXUeXhwDw==}- engines: {node: '>= 10'}- cpu: [arm64]- os: [darwin]-'@next/[email protected]':resolution: {integrity: sha512-z0qIYTONmPRbwHWvpyrFXJd5F9YWLCsw3Sjrzj2ZvMYy9NPQMPZ1NjOJh4ojr4oQzcGYwgJKfidzehaNa1BpEg==}engines: {node: '>= 10'}cpu: [arm64]os: [darwin]- '@next/[email protected]':- resolution: {integrity: sha512-DwdeJqP7v8wmoyTWPbPVodTwCybBZa02xjSJ6YQFIFZFZ7dFgrieKW4Eo0GoIcOJq5+JxkQyejmI+8zwDp3pwA==}- engines: {node: '>= 10'}- cpu: [x64]- os: [darwin]-'@next/[email protected]':resolution: {integrity: sha512-Z0FYJM8lritw5Wq+vpHYuCIzIlEMjewG2aRkc3Hi2rcbULknYL/xqfpBL23jQnCSrDUGAo/AEv0Z+s2bff9Zkw==}engines: {node: '>= 10'}cpu: [x64]os: [darwin]- '@next/[email protected]':- resolution: {integrity: sha512-wdQsKsIsGSNdFojvjW3Ozrh8Q00+GqL3wTaMjDkQxVtRbAqfFBtrLPO0IuWChVUP2UeuQcHpVeUvu0YgOP00+g==}- engines: {node: '>= 10'}- cpu: [arm64]- os: [linux]-'@next/[email protected]':resolution: {integrity: sha512-l8ZQOCCg7adwmsnFm8m5q9eIPAHdaB2F3cxhufYtVo84pymwKuWfpYTKcUiFcutJdp9xGHC+F1Uq3xnFU1B/7g==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]- '@next/[email protected]':- resolution: {integrity: sha512-6VpS+bodQqzOeCwGxoimlRoosiWlSc0C224I7SQWJZoyJuT1ChNCo+45QQH+/GtbR/s7nhaUqmiHdzZC9TXnXA==}- engines: {node: '>= 10'}- cpu: [arm64]- os: [linux]-'@next/[email protected]':resolution: {integrity: sha512-wFyZ7X470YJQtpKot4xCY3gpdn8lE9nTlldG07/kJYexCUpX1piX+MBfZdvulo+t1yADFVEuzFfVHfklfEx8kw==}engines: {node: '>= 10'}cpu: [arm64]os: [linux]- '@next/[email protected]':- resolution: {integrity: sha512-XxG3yj61WDd28NA8gFASIR+2viQaYZEFQagEodhI/R49gXWnYhiflTeeEmCn7Vgnxa/OfK81h1gvhUZ66lozpw==}- engines: {node: '>= 10'}- cpu: [x64]- os: [linux]-'@next/[email protected]':resolution: {integrity: sha512-gEbH9rv9o7I12qPyvZNVTyP/PWKqOp8clvnoYZQiX800KkqsaJZuOXkWgMa7ANCCh/oEN2ZQheh3yH8/kWPSEg==}engines: {node: '>= 10'}cpu: [x64]os: [linux]- '@next/[email protected]':- resolution: {integrity: sha512-/dnscWqfO3+U8asd+Fc6dwL2l9AZDl7eKtPNKW8mKLh4Y4wOpjJiamhe8Dx+D+Oq0GYVjuW0WwjIxYWVozt2bA==}- engines: {node: '>= 10'}- cpu: [x64]- os: [linux]-'@next/[email protected]':resolution: {integrity: sha512-Cf8sr0ufuC/nu/yQ76AnarbSAXcwG/wj+1xFPNbyNo8ltA6kw5d5YqO8kQuwVIxk13SBdtgXrNyom3ZosHAy4A==}engines: {node: '>= 10'}cpu: [x64]os: [linux]- '@next/[email protected]':- resolution: {integrity: sha512-T/iPnyurOK5a4HRUcxAlss8uzoEf5h9tkd+W2dSWAfzxv8WLKlUgbfk+DH43JY3Gc2xK5URLuXrxDZ2mGfk/jw==}- engines: {node: '>= 10'}- cpu: [arm64]- os: [win32]-'@next/[email protected]':resolution: {integrity: sha512-ay5+qADDN3rwRbRpEhTOreOn1OyJIXS60tg9WMYTWCy3fB6rGoyjLVxc4dR9PYjEdR2iDYsaF5h03NA+XuYPQQ==}engines: {node: '>= 10'}cpu: [arm64]os: [win32]- '@next/[email protected]':- resolution: {integrity: sha512-BLiPKJomaPrTAb7ykjA0LPcuuNMLDVK177Z1xe0nAem33+9FIayU4k/OWrtSn9SAJW/U60+1hoey5z+KCHdRLQ==}- engines: {node: '>= 10'}- cpu: [ia32]- os: [win32]-- '@next/[email protected]':- resolution: {integrity: sha512-/72/dZfjXXNY/u+n8gqZDjI6rxKMpYsgBBYNZKWOQw0BpBF7WCnPflRy3ZtvQ2+IYI3ZH2bPyj7K+6a6wNk90Q==}- engines: {node: '>= 10'}- cpu: [x64]- os: [win32]-'@next/[email protected]':resolution: {integrity: sha512-4kDt31Bc9DGyYs41FTL1/kNpDeHyha2TC0j5sRRoKCyrhNcfZ/nRQkAUlF27mETwm8QyHqIjHJitfcza2Iykfg==}engines: {node: '>= 10'}@@ -2429,27 +2316,9 @@ packages:'@swc/[email protected]':resolution: {integrity: sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A==}- '@swc/[email protected]':- resolution: {integrity: sha512-E4KcWTpoLHqwPHLxidpOqQbcrZVgi0rsmmZXUle1jXmJfuIf/UWpczUJ7MZZ5tlxytgJXyp0w4PGkkeLiuIdZw==}-- '@tanstack/[email protected]':- resolution: {integrity: sha512-7MJTtZkCSuehMC7IxMOCGsLvHS3jHx4WjveSrGsG1Nc1UQLjaFwwkpLA2LmPfvOAxnH4mszMOBFD6LlZE+aB+Q==}-'@tanstack/[email protected]':resolution: {integrity: sha512-mUNQOtzxkjL6jLbyChZoSBP6A5gQDVRUiPvW+/zw/9ftOAz+H754zCj3D8PwnzPKyHzGkQ9JbH48ukhym9LK1Q==}- '@tanstack/[email protected]':- resolution: {integrity: sha512-mgD07S5N8e5v81CArKDWrHE4LM7HxZ9k/KLeD3+NUD9WimGZgKIqojUZf/rXkfAMYZU9p0Chzj2jOXm7xpgHHQ==}- peerDependencies:- react: ^16.8.0 || ^17.0.0 || ^18.0.0- react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0- react-native: '*'- peerDependenciesMeta:- react-dom:- optional: true- react-native:- optional: true-'@tanstack/[email protected]':resolution: {integrity: sha512-6zM098J8sLy9oU60XAdzUlAH4wVzoMVsWUWiiE/Iz4fd67PplxeyL4sw/MPcVJJVhbwGGXCsHn9GrQt2mlAzig==}peerDependencies:@@ -2678,8 +2547,8 @@ packages:resolution: {integrity: sha512-xoh5rJ+tgsRKoXnkBPFRLZ7rjKM0AfVbC68UZ/ECXoDbfggb9RbEySN359acY1vS3qZ0jVTVWzbtfapwm5ztxw==}engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}- '@umami/[email protected]':- resolution: {integrity: sha512-bbbdgWDwW0MIXfSc3JJPDOcmATZpwDsbrDdj37LEvP6rdtUgwAarnATjJa9l3133LGhhEAdYitZqwrDfHHPI5g==}+ '@umami/[email protected]':+ resolution: {integrity: sha512-29A4IxHX/IC4w2v9cCXg8uU8lZ3VPVUrlJH9mngTKSSaCcMzlkgNjKosrQ2xV+wEsMWHl1zV3JRmLL0sgJ9TxA==}'@umami/[email protected]':resolution: {integrity: sha512-SbHTpxhgeZyTBUSp2zdZM+XUtpsaSL4Tad8QXIEhEtjWhvvfoornyT5kLuyYCVtzSAT4daALeGmOO1z6EE1KcA==}@@ -4186,9 +4055,6 @@ packages:resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}engines: {node: '>=10.13.0'}- resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==}-resolution: {integrity: sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==}engines: {node: '>=16 || 14 >=14.17'}@@ -4425,9 +4291,6 @@ packages:resolution: {integrity: sha512-F134jIoeYMro/3I0h08D0Yt4N9o9pjddU/4IIxMMURqbAtI2wu70X8hvG1V48W49zXHXv3RKSF/po+0fDfsGjA==}- resolution: {integrity: sha512-7sGC7QnSQGa5LZP7bXLDhVDtQOeKGeBFGHF2Y8LVBwYZoQZCgWeKoPGTa5GMG8g/TzDgeXuYJQis7Ggiw2xTOw==}-resolution: {integrity: sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA==}engines: {node: '>= 10'}@@ -5219,12 +5082,6 @@ packages:resolution: {integrity: sha512-DXO4L9W+08T+A7h5+xdT32l7IMot8z7WOH+7C1Maol571PnktQ8un7Ni4CyPFp4H+vht/FDA5/tpjRvWMFQDMw==}engines: {node: '>=10', npm: '>=6'}- resolution: {integrity: sha512-f22b8LV1gbTO2ms2j2z13MuPogNoh5UzxL3nzNAYKGraILnbGc9NEE6dyiiiLv46DGRb8A4kg8UKWLjPthxBHw==}-- resolution: {integrity: sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==}-resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}@@ -5244,28 +5101,6 @@ packages:resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}- resolution: {integrity: sha512-Nwou8pCjFuoD/ZxUw9iKC7hhZeWbo/ng0ze74yck3W89MNc/CepwCDziflAHY5XcmIVNmpXOCu9OfmzTdVRPWQ==}- peerDependencies:- next: ^13.4.0- react: ^18.2.0- react-dom: ^18.2.0-- resolution: {integrity: sha512-WUPJ6WbAX9tdC86kGTu92qkrRdgRqVrY++nwM+shmWQwmyxt4zhZfR59moXSI4N8GDYCBY3lIAqhzjDd4rTC8Q==}- engines: {node: '>=16.14.0'}- hasBin: true- peerDependencies:- '@opentelemetry/api': ^1.1.0- react: ^18.2.0- react-dom: ^18.2.0- sass: ^1.3.0- peerDependenciesMeta:- '@opentelemetry/api':- optional: true- sass:- optional: true-resolution: {integrity: sha512-mHKd50C+mCjam/gcnwqL1T1vPx/XQNFlXqFIVdgQdVAFY9iIQtY0IfaVflEYzKiqjeA7B0cYYMaCrmAYFjs4rA==}engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}@@ -6101,11 +5936,6 @@ packages:react: ^18.2.0react-dom: ^18.2.0- resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==}- peerDependencies:- react: ^18.3.1-resolution: {integrity: sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==}peerDependencies:@@ -6133,15 +5963,6 @@ packages:peerDependencies:react: '*'- resolution: {integrity: sha512-pkjdQDvpJROoXLMltkP/5mZb0/XqrqLoPGKUCfbdkP8m6U9xbK40K51Wu+a4aQqTEvEK5lHBk0fWzUV72SJ3Hg==}- peerDependencies:- react: ^16.3.0 || 17 || 18- typescript: ^4.5- peerDependenciesMeta:- typescript:- optional: true-resolution: {integrity: sha512-TUfj5E7lyUDvz/GtovC9OMh441kBr08rtIbgh3p0R8iF3hVY+V2W9Am7rb8BpJ/29BH1utJOqOOhmvEVh3GfZg==}peerDependencies:@@ -6197,10 +6018,6 @@ packages:react: ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0react-dom: ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0- resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}- engines: {node: '>=0.10.0'}-resolution: {integrity: sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==}engines: {node: '>=0.10.0'}@@ -6387,9 +6204,6 @@ packages:resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}- resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==}-resolution: {integrity: sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==}@@ -6649,19 +6463,6 @@ packages:resolution: {integrity: sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg==}- resolution: {integrity: sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==}- engines: {node: '>= 12.0.0'}- peerDependencies:- '@babel/core': '*'- babel-plugin-macros: '*'- react: '>= 16.8.0 || 17.x.x || ^18.0.0-0'- peerDependenciesMeta:- '@babel/core':- optional: true- babel-plugin-macros:- optional: true-resolution: {integrity: sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==}engines: {node: '>= 12.0.0'}@@ -7038,10 +6839,6 @@ packages:resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==}- resolution: {integrity: sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==}- engines: {node: '>=10.13.0'}-resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==}engines: {node: '>= 8'}@@ -7157,21 +6954,6 @@ packages:resolution: {integrity: sha512-idA2YXwpCdqUSKRCACDE6ItZD9TZzy3OZMtpfLoh6oPR47lipysRrJfjzMqFxQ3uJuUPyUeWe1r9vLH33xO/Qw==}- resolution: {integrity: sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==}- engines: {node: '>=12.7.0'}- peerDependencies:- '@types/react': '>=16.8'- immer: '>=9.0.6'- react: '>=16.8'- peerDependenciesMeta:- '@types/react':- optional: true- immer:- optional: true- react:- optional: true-resolution: {integrity: sha512-mILtRfKW9xM47hqxGIxCv12gXusoY/xTSHBYApXozR0HmQv299whhBeeAcRy+KrPPybzosvJBCOmVjq6x12fCg==}engines: {node: '>=12.20.0'}@@ -7845,10 +7627,6 @@ snapshots:decimal.js: 10.6.0tslib: 2.8.1- '@formatjs/[email protected]':- dependencies:- tslib: 2.8.1-'@formatjs/[email protected]':dependencies:tslib: 2.8.1@@ -7890,24 +7668,12 @@ snapshots:'@formatjs/ecma402-abstract': 2.2.4tslib: 2.8.1- '@formatjs/[email protected]':- dependencies:- '@formatjs/ecma402-abstract': 1.11.4- '@formatjs/intl-localematcher': 0.2.25- tslib: 2.8.1-'@formatjs/[email protected]':dependencies:'@formatjs/ecma402-abstract': 2.2.4'@formatjs/intl-localematcher': 0.5.8tslib: 2.8.1- '@formatjs/[email protected]':- dependencies:- '@formatjs/ecma402-abstract': 1.11.4- '@formatjs/intl-localematcher': 0.2.25- tslib: 2.8.1-'@formatjs/[email protected]':dependencies:'@formatjs/ecma402-abstract': 2.2.4@@ -7943,18 +7709,6 @@ snapshots:optionalDependencies:typescript: 5.8.3- '@formatjs/[email protected]([email protected])':- dependencies:- '@formatjs/ecma402-abstract': 1.11.4- '@formatjs/fast-memoize': 1.2.1- '@formatjs/icu-messageformat-parser': 2.1.0- '@formatjs/intl-displaynames': 5.4.3- '@formatjs/intl-listformat': 6.5.3- intl-messageformat: 9.13.0- tslib: 2.8.1- optionalDependencies:- typescript: 4.9.5-'@formatjs/[email protected]([email protected](@babel/[email protected])(@jest/[email protected])(@jest/[email protected])([email protected](@babel/[email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected](@types/[email protected])([email protected])))([email protected]))':dependencies:intl-messageformat-parser: 6.1.2@@ -8316,62 +8070,33 @@ snapshots:'@netlify/[email protected]': {}- '@next/[email protected]': {}-'@next/[email protected]': {}'@next/[email protected]':dependencies:glob: 10.3.10- '@next/[email protected]':- optional: true-'@next/[email protected]':optional: true- '@next/[email protected]':- optional: true-'@next/[email protected]':optional: true- '@next/[email protected]':- optional: true-'@next/[email protected]':optional: true- '@next/[email protected]':- optional: true-'@next/[email protected]':optional: true- '@next/[email protected]':- optional: true-'@next/[email protected]':optional: true- '@next/[email protected]':- optional: true-'@next/[email protected]':optional: true- '@next/[email protected]':- optional: true-'@next/[email protected]':optional: true- '@next/[email protected]':- optional: true-- '@next/[email protected]':- optional: true-'@next/[email protected]':optional: true@@ -9728,22 +9453,8 @@ snapshots:dependencies:tslib: 2.8.1- '@swc/[email protected]':- dependencies:- tslib: 2.8.1-- '@tanstack/[email protected]': {}-'@tanstack/[email protected]': {}- dependencies:- '@tanstack/query-core': 4.40.0- react: 18.3.1- use-sync-external-store: 1.5.0([email protected])- optionalDependencies:- react-dom: 18.3.1([email protected])-'@tanstack/[email protected]([email protected])':dependencies:'@tanstack/query-core': 5.80.10@@ -10025,7 +9736,7 @@ snapshots:'@typescript-eslint/types': 8.34.1eslint-visitor-keys: 4.2.1- '@umami/[email protected](@babel/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))':+ '@umami/[email protected](@babel/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]([email protected]))':dependencies:'@fontsource/jetbrains-mono': 5.2.6'@internationalized/date': 3.8.2@@ -11848,8 +11559,6 @@ snapshots:dependencies:is-glob: 4.0.3- [email protected]: {}-dependencies:foreground-child: 3.3.1@@ -12079,13 +11788,6 @@ snapshots:'@formatjs/icu-messageformat-parser': 2.9.4tslib: 2.8.1- dependencies:- '@formatjs/ecma402-abstract': 1.11.4- '@formatjs/fast-memoize': 1.2.1- '@formatjs/icu-messageformat-parser': 2.1.0- tslib: 2.8.1-@@ -13062,12 +12764,6 @@ snapshots:- dependencies:- moment: 2.30.1-- [email protected]: {}-@@ -13078,40 +12774,6 @@ snapshots:- [email protected]([email protected](@babel/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):- dependencies:- bcryptjs: 2.4.3- jsonwebtoken: 9.0.2- pure-rand: 6.1.0- react: 18.3.1- react-dom: 18.3.1([email protected])-- [email protected](@babel/[email protected])([email protected]([email protected]))([email protected]):- dependencies:- '@next/env': 13.5.11- '@swc/helpers': 0.5.2- busboy: 1.6.0- caniuse-lite: 1.0.30001727- postcss: 8.4.31- react: 18.3.1- react-dom: 18.3.1([email protected])- styled-jsx: 5.1.1(@babel/[email protected])([email protected])- watchpack: 2.4.0- optionalDependencies:- '@next/swc-darwin-arm64': 13.5.9- '@next/swc-darwin-x64': 13.5.9- '@next/swc-linux-arm64-gnu': 13.5.9- '@next/swc-linux-arm64-musl': 13.5.9- '@next/swc-linux-x64-gnu': 13.5.9- '@next/swc-linux-x64-musl': 13.5.9- '@next/swc-win32-arm64-msvc': 13.5.9- '@next/swc-win32-ia32-msvc': 13.5.9- '@next/swc-win32-x64-msvc': 13.5.9- transitivePeerDependencies:- - '@babel/core'- - babel-plugin-macros-[email protected](@babel/[email protected])([email protected])([email protected]([email protected]))([email protected]):dependencies:'@next/env': 15.3.4@@ -13997,12 +13659,6 @@ snapshots:react-hook-form: 7.56.4([email protected])- dependencies:- loose-envify: 1.4.0- react: 18.3.1- scheduler: 0.23.2-dependencies:react: 19.1.0@@ -14025,22 +13681,6 @@ snapshots:dependencies:react: 19.1.0- dependencies:- '@formatjs/ecma402-abstract': 1.11.4- '@formatjs/icu-messageformat-parser': 2.1.0- '@formatjs/intl': 2.2.1([email protected])- '@formatjs/intl-displaynames': 5.4.3- '@formatjs/intl-listformat': 6.5.3- '@types/hoist-non-react-statics': 3.3.6- '@types/react': 18.3.23- hoist-non-react-statics: 3.3.2- intl-messageformat: 9.13.0- react: 18.3.1- tslib: 2.8.1- optionalDependencies:- typescript: 4.9.5-dependencies:'@formatjs/ecma402-abstract': 2.2.4@@ -14123,10 +13763,6 @@ snapshots:react: 19.1.0react-dom: 19.1.0([email protected])- dependencies:- loose-envify: 1.4.0-@@ -14360,10 +13996,6 @@ snapshots:- dependencies:- loose-envify: 1.4.0-@@ -14682,13 +14314,6 @@ snapshots:- dependencies:- client-only: 0.0.1- react: 18.3.1- optionalDependencies:- '@babel/core': 7.27.1-dependencies:client-only: 0.0.1@@ -15070,10 +14695,6 @@ snapshots:dependencies:react: 19.1.0- dependencies:- react: 18.3.1-dependencies:react: 19.1.0@@ -15119,11 +14740,6 @@ snapshots:dependencies:makeerror: 1.0.12- dependencies:- glob-to-regexp: 0.4.1- graceful-fs: 4.2.11-@@ -15265,14 +14881,6 @@ snapshots:- dependencies:- use-sync-external-store: 1.5.0([email protected])- optionalDependencies:- '@types/react': 19.1.8- immer: 9.0.21- react: 18.3.1-[email protected](@types/[email protected])([email protected])([email protected])([email protected]([email protected])):optionalDependencies:'@types/react': 19.1.8diff --git a/src/app/(main)/settings/websites/WebsiteAddButton.tsx b/src/app/(main)/settings/websites/WebsiteAddButton.tsxindex 4db62c44d..050098f05 100644--- a/src/app/(main)/settings/websites/WebsiteAddButton.tsx+++ b/src/app/(main)/settings/websites/WebsiteAddButton.tsx@@ -1,14 +1,5 @@import { useMessages, useModified } from '@/components/hooks';-import {- Button,- Icon,- Modal,- Dialog,- DialogTrigger,- Text,- Column,- useToast,-} from '@umami/react-zen';+import { Button, Icon, Modal, Dialog, DialogTrigger, Text, useToast } from '@umami/react-zen';import { Plus } from '@/components/icons';import { WebsiteAddForm } from './WebsiteAddForm';@@ -33,11 +24,7 @@ export function WebsiteAddButton({ teamId, onSave }: { teamId: string; onSave?:</Button><Modal><Dialog title={formatMessage(labels.addWebsite)} style={{ width: 400 }}>- {({ close }) => (- <Column width="300px">- <WebsiteAddForm teamId={teamId} onSave={handleSave} onClose={close} />- </Column>- )}+ {({ close }) => <WebsiteAddForm teamId={teamId} onSave={handleSave} onClose={close} />}</Dialog></Modal></DialogTrigger>diff --git a/src/app/(main)/settings/websites/WebsitesSettingsPage.tsx b/src/app/(main)/settings/websites/WebsitesSettingsPage.tsxindex 675c94997..6196e7597 100644--- a/src/app/(main)/settings/websites/WebsitesSettingsPage.tsx+++ b/src/app/(main)/settings/websites/WebsitesSettingsPage.tsx@@ -1,21 +1,15 @@'use client';import { Column } from '@umami/react-zen';-import { useLoginQuery, useMessages } from '@/components/hooks';+import { useMessages } from '@/components/hooks';import { WebsitesDataTable } from './WebsitesDataTable';-import { ROLES } from '@/lib/constants';import { SectionHeader } from '@/components/common/SectionHeader';-import { WebsiteAddButton } from './WebsiteAddButton';export function WebsitesSettingsPage({ teamId }: { teamId: string }) {- const { user } = useLoginQuery();- const canCreate = user.role !== ROLES.viewOnly;const { formatMessage, labels } = useMessages();return (<Column gap>- <SectionHeader title={formatMessage(labels.websites)}>- {canCreate && <WebsiteAddButton teamId={teamId} />}- </SectionHeader>+ <SectionHeader title={formatMessage(labels.websites)} /><WebsitesDataTable teamId={teamId} /></Column>);diff --git a/src/app/(main)/websites/[websiteId]/WebsiteLayout.tsx b/src/app/(main)/websites/[websiteId]/WebsiteLayout.tsxindex 3a3255bd5..3f85b4f33 100644--- a/src/app/(main)/websites/[websiteId]/WebsiteLayout.tsx+++ b/src/app/(main)/websites/[websiteId]/WebsiteLayout.tsx@@ -4,14 +4,12 @@ import { Column } from '@umami/react-zen';import { WebsiteProvider } from './WebsiteProvider';import { PageBody } from '@/components/common/PageBody';import { WebsiteHeader } from './WebsiteHeader';-import { WebsiteTabs } from './WebsiteTabs';export function WebsiteLayout({ websiteId, children }: { websiteId: string; children: ReactNode }) {return (<WebsiteProvider websiteId={websiteId}><PageBody><WebsiteHeader />- <WebsiteTabs /><Column>{children}</Column></PageBody></WebsiteProvider>diff --git a/src/app/(main)/websites/[websiteId]/events/EventsDataTable.tsx b/src/app/(main)/websites/[websiteId]/events/EventsDataTable.tsxindex 145f06dd5..22b0f679d 100644--- a/src/app/(main)/websites/[websiteId]/events/EventsDataTable.tsx+++ b/src/app/(main)/websites/[websiteId]/events/EventsDataTable.tsx@@ -13,8 +13,8 @@ export function EventsDataTable({children?: ReactNode;}) {const { formatMessage, labels } = useMessages();- const query = useWebsiteEventsQuery(websiteId);const [view, setView] = useState('all');+ const query = useWebsiteEventsQuery(websiteId);const buttons = [{diff --git a/src/app/(main)/websites/[websiteId]/events/EventsTable.tsx b/src/app/(main)/websites/[websiteId]/events/EventsTable.tsxindex 598e3c7d7..c034c9eab 100644--- a/src/app/(main)/websites/[websiteId]/events/EventsTable.tsx+++ b/src/app/(main)/websites/[websiteId]/events/EventsTable.tsx@@ -1,5 +1,5 @@import { DataTable, DataColumn, Icon, Row } from '@umami/react-zen';-import { useMessages, useNavigation } from '@/components/hooks';+import { useFormat, useMessages, useNavigation } from '@/components/hooks';import { Empty } from '@/components/common/Empty';import { Avatar } from '@/components/common/Avatar';import Link from 'next/link';@@ -10,6 +10,7 @@ import { TypeIcon } from '@/components/common/TypeIcon';export function EventsTable({ data = [] }) {const { formatMessage, labels } = useMessages();const { renderUrl } = useNavigation();+ const { formatValue } = useFormat();if (data.length === 0) {return <Empty />;@@ -20,7 +21,10 @@ export function EventsTable({ data = [] }) {<DataColumn id="event" label={formatMessage(labels.event)} width="2fr">{(row: any) => {return (- <Row alignItems="center" gap="2">+ <Row alignItems="center" gap>+ <Link href={renderUrl(`/websites/${row.websiteId}/sessions/${row.sessionId}`)}>+ <Avatar seed={row.sessionId} size={32} />+ </Link><Icon>{row.eventName ? <Bolt /> : <Eye />}</Icon>{formatMessage(row.eventName ? labels.triggeredEvent : labels.viewedPage)}<strong>{row.eventName || row.urlPath}</strong>@@ -28,22 +32,30 @@ export function EventsTable({ data = [] }) {);}}</DataColumn>- <DataColumn id="created" width="1fr" align="end">+ <DataColumn id="location" label={formatMessage(labels.location)}>{(row: any) => (- <Row alignItems="center" gap>- <DateDistance date={new Date(row.createdAt)} />- <Link href={renderUrl(`/websites/${row.websiteId}/sessions/${row.sessionId}`)}>- <Avatar seed={row.sessionId} size={32} />- </Link>- <Row alignItems="center" gap="1">- <TypeIcon type="country" value={row.country} />- <TypeIcon type="browser" value={row.browser} />- <TypeIcon type="os" value={row.os} />- <TypeIcon type="device" value={row.device} />- </Row>- </Row>+ <TypeIcon type="country" value={row.country}>+ {row.city ? `${row.city}, ` : ''} {formatValue(row.country, 'country')}+ </TypeIcon>+ )}+ </DataColumn>+ <DataColumn id="browser" label={formatMessage(labels.browser)}>+ {(row: any) => (+ <TypeIcon type="browser" value={row.browser}>+ {formatValue(row.browser, 'browser')}+ </TypeIcon>)}</DataColumn>+ <DataColumn id="device" label={formatMessage(labels.device)}>+ {(row: any) => (+ <TypeIcon type="device" value={row.device}>+ {formatValue(row.device, 'device')}+ </TypeIcon>+ )}+ </DataColumn>+ <DataColumn id="created" width="160px" align="end">+ {(row: any) => <DateDistance date={new Date(row.createdAt)} />}+ </DataColumn></DataTable>);}diff --git a/src/app/(main)/websites/[websiteId]/sessions/SessionsTable.tsx b/src/app/(main)/websites/[websiteId]/sessions/SessionsTable.tsxindex 1d40e4ac9..fa3be6c7b 100644--- a/src/app/(main)/websites/[websiteId]/sessions/SessionsTable.tsx+++ b/src/app/(main)/websites/[websiteId]/sessions/SessionsTable.tsx@@ -14,7 +14,7 @@ export function SessionsTable({ data = [] }: { data: any[]; showDomain?: boolean<DataColumn id="id" label={formatMessage(labels.session)} width="100px">{(row: any) => (<Link href={`sessions/${row.id}`}>- <Avatar seed={row.id} size={48} />+ <Avatar seed={row.id} size={32} /></Link>)}</DataColumn>diff --git a/src/app/(main)/websites/[websiteId]/sessions/[sessionId]/SessionActivity.tsx b/src/app/(main)/websites/[websiteId]/sessions/[sessionId]/SessionActivity.tsxindex a5fc93aa3..d88fff7ab 100644--- a/src/app/(main)/websites/[websiteId]/sessions/[sessionId]/SessionActivity.tsx+++ b/src/app/(main)/websites/[websiteId]/sessions/[sessionId]/SessionActivity.tsx@@ -13,7 +13,7 @@ import {} from '@umami/react-zen';import { LoadingPanel } from '@/components/common/LoadingPanel';import { Bolt, Eye, FileText } from '@/components/icons';-import { useSessionActivityQuery, useTimezone } from '@/components/hooks';+import { useMessages, useSessionActivityQuery, useTimezone } from '@/components/hooks';import { EventData } from '@/components/metrics/EventData';export function SessionActivity({@@ -27,6 +27,7 @@ export function SessionActivity({startDate: Date;endDate: Date;}) {+ const { formatMessage, labels } = useMessages();const { formatTimezoneDate } = useTimezone();const { data, isLoading, error } = useSessionActivityQuery(websiteId,@@ -50,9 +51,14 @@ export function SessionActivity({<StatusLight color={`#${visitId?.substring(0, 6)}`}>{formatTimezoneDate(createdAt, 'pp')}</StatusLight>- <Row alignItems="center" gap>+ <Row alignItems="center" gap="2"><Icon>{eventName ? <Bolt /> : <Eye />}</Icon>- <Text>{eventName || urlPath}</Text>+ <Text>+ {eventName+ ? formatMessage(labels.triggeredEvent)+ : formatMessage(labels.viewedPage)}+ </Text>+ <Text weight="bold">{eventName || urlPath}</Text>{hasData > 0 && <PropertiesButton websiteId={websiteId} eventId={eventId} />}</Row></Row>diff --git a/src/app/(main)/websites/[websiteId]/sessions/[sessionId]/SessionInfo.tsx b/src/app/(main)/websites/[websiteId]/sessions/[sessionId]/SessionInfo.tsxindex 3a1d6829e..629e1da66 100644--- a/src/app/(main)/websites/[websiteId]/sessions/[sessionId]/SessionInfo.tsx+++ b/src/app/(main)/websites/[websiteId]/sessions/[sessionId]/SessionInfo.tsx@@ -44,6 +44,13 @@ export function SessionInfo({ data }) {{data?.city}</Info>+ <Info+ label={formatMessage(labels.browser)}+ icon={<TypeIcon type="browser" value={data?.browser} />}+ >+ {formatValue(data?.browser, 'browser')}+ </Info>+<Infolabel={formatMessage(labels.os)}icon={<TypeIcon type="os" value={data?.os?.toLowerCase()?.replaceAll(/\W/g, '-')} />}@@ -57,13 +64,6 @@ export function SessionInfo({ data }) {>{formatValue(data?.device, 'device')}</Info>-- <Info- label={formatMessage(labels.browser)}- icon={<TypeIcon type="browser" value={data?.browser} />}- >- {formatValue(data?.browser, 'browser')}- </Info></Column>);}diff --git a/src/app/api/realtime/[websiteId]/route.ts b/src/app/api/realtime/[websiteId]/route.tsindex f86bfcccf..d06d460a8 100644--- a/src/app/api/realtime/[websiteId]/route.ts+++ b/src/app/api/realtime/[websiteId]/route.ts@@ -21,12 +21,14 @@ export async function GET(return unauthorized();}- const filters = await getQueryFilters({- ...query,+ const filters = await getQueryFilters(+ {+ ...query,+ startAt: subMinutes(startOfMinute(new Date()), REALTIME_RANGE).getTime(),+ endAt: Date.now(),+ },websiteId,- startAt: subMinutes(startOfMinute(new Date()), REALTIME_RANGE).getTime(),- endAt: Date.now(),- });+ );const data = await getRealtimeData(websiteId, filters);diff --git a/src/app/api/reports/attribution/route.ts b/src/app/api/reports/attribution/route.tsindex 5f14d6678..689c64008 100644--- a/src/app/api/reports/attribution/route.ts+++ b/src/app/api/reports/attribution/route.ts@@ -18,7 +18,7 @@ export async function POST(request: Request) {}const parameters = await setWebsiteDate(websiteId, body.parameters);- const filters = await getQueryFilters(body.filters);+ const filters = await getQueryFilters(body.filters, websiteId);const data = await getAttribution(websiteId, parameters as AttributionParameters, filters);diff --git a/src/app/api/reports/breakdown/route.ts b/src/app/api/reports/breakdown/route.tsindex 96a55f65a..f948051d7 100644--- a/src/app/api/reports/breakdown/route.ts+++ b/src/app/api/reports/breakdown/route.ts@@ -18,7 +18,7 @@ export async function POST(request: Request) {}const parameters = await setWebsiteDate(websiteId, body.parameters);- const filters = await getQueryFilters(body.filters);+ const filters = await getQueryFilters(body.filters, websiteId);const data = await getBreakdown(websiteId, parameters as BreakdownParameters, filters);diff --git a/src/app/api/reports/funnel/route.ts b/src/app/api/reports/funnel/route.tsindex 3df426a20..0acab5c90 100644--- a/src/app/api/reports/funnel/route.ts+++ b/src/app/api/reports/funnel/route.ts@@ -18,7 +18,7 @@ export async function POST(request: Request) {}const parameters = await setWebsiteDate(websiteId, body.parameters);- const filters = await getQueryFilters(body.filters);+ const filters = await getQueryFilters(body.filters, websiteId);const data = await getFunnel(websiteId, parameters as FunnelParameters, filters);diff --git a/src/app/api/reports/goal/route.ts b/src/app/api/reports/goal/route.tsindex 450e917c7..86c80a0e8 100644--- a/src/app/api/reports/goal/route.ts+++ b/src/app/api/reports/goal/route.ts@@ -18,7 +18,7 @@ export async function POST(request: Request) {}const parameters = await setWebsiteDate(websiteId, body.parameters);- const filters = await getQueryFilters(body.filters);+ const filters = await getQueryFilters(body.filters, websiteId);const data = await getGoal(websiteId, parameters as GoalParameters, filters);diff --git a/src/app/api/reports/journey/route.ts b/src/app/api/reports/journey/route.tsindex 9be1b936c..4b31216e8 100644--- a/src/app/api/reports/journey/route.ts+++ b/src/app/api/reports/journey/route.ts@@ -1,6 +1,6 @@import { canViewWebsite } from '@/lib/auth';import { unauthorized, json } from '@/lib/response';-import { getQueryFilters, parseRequest, setWebsiteDate } from '@/lib/request';+import { getQueryFilters, parseRequest } from '@/lib/request';import { getJourney } from '@/queries';import { reportResultSchema } from '@/lib/schema';@@ -17,7 +17,7 @@ export async function POST(request: Request) {return unauthorized();}- const queryFilters = await setWebsiteDate(websiteId, await getQueryFilters(filters));+ const queryFilters = await getQueryFilters(filters, websiteId);const data = await getJourney(websiteId, parameters, queryFilters);diff --git a/src/app/api/reports/retention/route.ts b/src/app/api/reports/retention/route.tsindex 50a489370..9367ab70f 100644--- a/src/app/api/reports/retention/route.ts+++ b/src/app/api/reports/retention/route.ts@@ -17,7 +17,7 @@ export async function POST(request: Request) {return unauthorized();}- const filters = await getQueryFilters(body.filters);+ const filters = await getQueryFilters(body.filters, websiteId);const parameters = await setWebsiteDate(websiteId, body.parameters);const data = await getRetention(websiteId, parameters as RetentionParameters, filters);diff --git a/src/app/api/reports/revenue/route.ts b/src/app/api/reports/revenue/route.tsindex 02fc69d6e..b8a6ae4cd 100644--- a/src/app/api/reports/revenue/route.ts+++ b/src/app/api/reports/revenue/route.ts@@ -18,7 +18,7 @@ export async function POST(request: Request) {}const parameters = await setWebsiteDate(websiteId, body.parameters);- const filters = await getQueryFilters(body.filters);+ const filters = await getQueryFilters(body.filters, websiteId);const data = await getRevenue(websiteId, parameters as RevenuParameters, filters);diff --git a/src/app/api/reports/utm/route.ts b/src/app/api/reports/utm/route.tsindex 2449c4924..17c5c1c67 100644--- a/src/app/api/reports/utm/route.ts+++ b/src/app/api/reports/utm/route.ts@@ -18,7 +18,7 @@ export async function POST(request: Request) {}const parameters = await setWebsiteDate(websiteId, body.parameters);- const filters = await getQueryFilters(body.filters);+ const filters = await getQueryFilters(body.filters, websiteId);const data = await getUTM(websiteId, parameters as UTMParameters, filters);diff --git a/src/app/api/websites/[websiteId]/event-data/events/route.ts b/src/app/api/websites/[websiteId]/event-data/events/route.tsindex eb9842072..2f1de5d32 100644--- a/src/app/api/websites/[websiteId]/event-data/events/route.ts+++ b/src/app/api/websites/[websiteId]/event-data/events/route.ts@@ -26,7 +26,7 @@ export async function GET(}const { event } = query;- const filters = await getQueryFilters(query);+ const filters = await getQueryFilters(query, websiteId);const data = await getEventDataEvents(websiteId, {...filters,diff --git a/src/app/api/websites/[websiteId]/event-data/fields/route.ts b/src/app/api/websites/[websiteId]/event-data/fields/route.tsindex 34aa61626..1d97a4bab 100644--- a/src/app/api/websites/[websiteId]/event-data/fields/route.ts+++ b/src/app/api/websites/[websiteId]/event-data/fields/route.ts@@ -25,7 +25,7 @@ export async function GET(return unauthorized();}- const filters = await getQueryFilters(query);+ const filters = await getQueryFilters(query, websiteId);const data = await getEventDataFields(websiteId, filters);diff --git a/src/app/api/websites/[websiteId]/event-data/properties/route.ts b/src/app/api/websites/[websiteId]/event-data/properties/route.tsindex ad39e37aa..5043e272d 100644--- a/src/app/api/websites/[websiteId]/event-data/properties/route.ts+++ b/src/app/api/websites/[websiteId]/event-data/properties/route.ts@@ -27,7 +27,7 @@ export async function GET(}const { propertyName } = query;- const filters = await getQueryFilters(query);+ const filters = await getQueryFilters(query, websiteId);const data = await getEventDataProperties(websiteId, { ...filters, propertyName });diff --git a/src/app/api/websites/[websiteId]/event-data/stats/route.ts b/src/app/api/websites/[websiteId]/event-data/stats/route.tsindex 79dd00594..9b7fe357b 100644--- a/src/app/api/websites/[websiteId]/event-data/stats/route.ts+++ b/src/app/api/websites/[websiteId]/event-data/stats/route.ts@@ -26,7 +26,7 @@ export async function GET(return unauthorized();}- const filters = await getQueryFilters(query);+ const filters = await getQueryFilters(query, websiteId);const data = await getEventDataStats(websiteId, filters);diff --git a/src/app/api/websites/[websiteId]/event-data/values/route.ts b/src/app/api/websites/[websiteId]/event-data/values/route.tsindex 1eab63b51..6210de849 100644--- a/src/app/api/websites/[websiteId]/event-data/values/route.ts+++ b/src/app/api/websites/[websiteId]/event-data/values/route.ts@@ -28,7 +28,7 @@ export async function GET(}const { eventName, propertyName } = query;- const filters = await getQueryFilters(query);+ const filters = await getQueryFilters(query, websiteId);const data = await getEventDataValues(websiteId, {...filters,diff --git a/src/app/api/websites/[websiteId]/session-data/properties/route.ts b/src/app/api/websites/[websiteId]/session-data/properties/route.tsindex bdc7c53c4..b51f1c2f9 100644--- a/src/app/api/websites/[websiteId]/session-data/properties/route.ts+++ b/src/app/api/websites/[websiteId]/session-data/properties/route.ts@@ -21,13 +21,14 @@ export async function GET(}const { websiteId } = await params;- const { propertyName } = query;- const filters = await getQueryFilters(query);if (!(await canViewWebsite(auth, websiteId))) {return unauthorized();}+ const { propertyName } = query;+ const filters = await getQueryFilters(query, websiteId);+const data = await getSessionDataProperties(websiteId, { ...filters, propertyName });return json(data);diff --git a/src/app/api/websites/[websiteId]/session-data/values/route.ts b/src/app/api/websites/[websiteId]/session-data/values/route.tsindex e236a9226..858aa5e31 100644--- a/src/app/api/websites/[websiteId]/session-data/values/route.ts+++ b/src/app/api/websites/[websiteId]/session-data/values/route.ts@@ -1,5 +1,5 @@import { canViewWebsite } from '@/lib/auth';-import { getQueryFilters, parseRequest, setWebsiteDate } from '@/lib/request';+import { getQueryFilters, parseRequest } from '@/lib/request';import { json, unauthorized } from '@/lib/response';import { getSessionDataValues } from '@/queries';import { z } from 'zod';@@ -20,14 +20,15 @@ export async function GET(return error();}- const { propertyName } = query;const { websiteId } = await params;- const filters = await setWebsiteDate(websiteId, await getQueryFilters(query));if (!(await canViewWebsite(auth, websiteId))) {return unauthorized();}+ const { propertyName } = query;+ const filters = await getQueryFilters(query, websiteId);+const data = await getSessionDataValues(websiteId, {...filters,propertyName,diff --git a/src/app/api/websites/[websiteId]/sessions/[sessionId]/activity/route.ts b/src/app/api/websites/[websiteId]/sessions/[sessionId]/activity/route.tsindex 5daf2dfbb..268e7bf8d 100644--- a/src/app/api/websites/[websiteId]/sessions/[sessionId]/activity/route.ts+++ b/src/app/api/websites/[websiteId]/sessions/[sessionId]/activity/route.ts@@ -25,7 +25,7 @@ export async function GET(return unauthorized();}- const filters = await getQueryFilters(query);+ const filters = await getQueryFilters(query, websiteId);const data = await getSessionActivity(websiteId, sessionId, filters);diff --git a/src/app/api/websites/[websiteId]/sessions/route.ts b/src/app/api/websites/[websiteId]/sessions/route.tsindex e5eaf6f03..bcc4b8bcc 100644--- a/src/app/api/websites/[websiteId]/sessions/route.ts+++ b/src/app/api/websites/[websiteId]/sessions/route.ts@@ -1,5 +1,5 @@import { z } from 'zod';-import { getQueryFilters, parseRequest, setWebsiteDate } from '@/lib/request';+import { getQueryFilters, parseRequest } from '@/lib/request';import { unauthorized, json } from '@/lib/response';import { canViewWebsite } from '@/lib/auth';import { dateRangeParams, filterParams, pagingParams } from '@/lib/schema';@@ -27,7 +27,7 @@ export async function GET(return unauthorized();}- const filters = await setWebsiteDate(websiteId, await getQueryFilters(query));+ const filters = await getQueryFilters(query, websiteId);const data = await getWebsiteSessions(websiteId, filters);diff --git a/src/app/api/websites/[websiteId]/sessions/stats/route.ts b/src/app/api/websites/[websiteId]/sessions/stats/route.tsindex 37289f52c..d78be8527 100644--- a/src/app/api/websites/[websiteId]/sessions/stats/route.ts+++ b/src/app/api/websites/[websiteId]/sessions/stats/route.ts@@ -1,5 +1,5 @@import { z } from 'zod';-import { parseRequest, getQueryFilters, setWebsiteDate } from '@/lib/request';+import { parseRequest, getQueryFilters } from '@/lib/request';import { unauthorized, json } from '@/lib/response';import { canViewWebsite } from '@/lib/auth';import { filterParams } from '@/lib/schema';@@ -27,7 +27,7 @@ export async function GET(return unauthorized();}- const filters = await setWebsiteDate(websiteId, await getQueryFilters(query));+ const filters = await getQueryFilters(query, websiteId);const metrics = await getWebsiteSessionStats(websiteId, filters);diff --git a/src/app/api/websites/[websiteId]/sessions/weekly/route.ts b/src/app/api/websites/[websiteId]/sessions/weekly/route.tsindex 757e9da3a..2c7b227f1 100644--- a/src/app/api/websites/[websiteId]/sessions/weekly/route.ts+++ b/src/app/api/websites/[websiteId]/sessions/weekly/route.ts@@ -28,7 +28,7 @@ export async function GET(return unauthorized();}- const filters = await getQueryFilters(query);+ const filters = await getQueryFilters(query, websiteId);const data = await getWebsiteSessionsWeekly(websiteId, filters);diff --git a/src/app/api/websites/[websiteId]/values/route.ts b/src/app/api/websites/[websiteId]/values/route.tsindex 937c847a9..e4140e14f 100644--- a/src/app/api/websites/[websiteId]/values/route.ts+++ b/src/app/api/websites/[websiteId]/values/route.ts@@ -39,7 +39,7 @@ export async function GET(if (FILTER_GROUPS[type]) {values = (await getWebsiteSegments(websiteId, type)).map(segment => ({ value: segment.name }));} else {- const filters = await getQueryFilters(query);+ const filters = await getQueryFilters(query, websiteId);values = await getValues(websiteId, FILTER_COLUMNS[type], filters);}diff --git a/src/components/hooks/queries/useWebsiteEventsQuery.ts b/src/components/hooks/queries/useWebsiteEventsQuery.tsindex 186cab074..3406285af 100644--- a/src/components/hooks/queries/useWebsiteEventsQuery.ts+++ b/src/components/hooks/queries/useWebsiteEventsQuery.ts@@ -4,15 +4,24 @@ import { useDateParameters } from '../useDateParameters';import { usePagedQuery } from '../usePagedQuery';import { ReactQueryOptions } from '@/lib/types';-export function useWebsiteEventsQuery(websiteId: string, options?: ReactQueryOptions<any>) {+export function useWebsiteEventsQuery(+ websiteId: string,+ params?: Record<string, any>,+ options?: ReactQueryOptions<any>,+) {const { get } = useApi();const date = useDateParameters(websiteId);const filters = useFilterParameters();return usePagedQuery({- queryKey: ['websites:events', { websiteId, ...date, ...filters }],+ queryKey: ['websites:events', { websiteId, ...date, ...filters, ...params }],queryFn: pageParams =>- get(`/websites/${websiteId}/events`, { ...date, ...filters, ...pageParams, pageSize: 20 }),+ get(`/websites/${websiteId}/events`, {+ ...date,+ ...filters,+ ...pageParams,+ ...params,+ }),enabled: !!websiteId,...options,});diff --git a/src/components/input/WebsiteSelect.tsx b/src/components/input/WebsiteSelect.tsxindex 6e32b0e14..11c50718a 100644--- a/src/components/input/WebsiteSelect.tsx+++ b/src/components/input/WebsiteSelect.tsx@@ -28,6 +28,7 @@ export function WebsiteSelect({return (<Select{...props}+ placeholder=""items={data?.['data'] || []}value={websiteId}isLoading={isLoading}diff --git a/src/components/messages.ts b/src/components/messages.tsindex c29820c19..c612bce34 100644--- a/src/components/messages.ts+++ b/src/components/messages.ts@@ -74,6 +74,7 @@ export const labels = defineMessages({language: { id: 'label.language', defaultMessage: 'Language' },theme: { id: 'label.theme', defaultMessage: 'Theme' },profile: { id: 'label.profile', defaultMessage: 'Profile' },+ profiles: { id: 'label.profiles', defaultMessage: 'Profiles' },dashboard: { id: 'label.dashboard', defaultMessage: 'Dashboard' },more: { id: 'label.more', defaultMessage: 'More' },realtime: { id: 'label.realtime', defaultMessage: 'Realtime' },@@ -335,6 +336,7 @@ export const labels = defineMessages({lastClick: { id: 'label.last-click', defaultMessage: 'Last click' },online: { id: 'label.online', defaultMessage: 'Online' },preferences: { id: 'label.preferences', defaultMessage: 'Preferences' },+ location: { id: 'label.location', defaultMessage: 'Location' },});export const messages = defineMessages({diff --git a/src/lib/request.ts b/src/lib/request.tsindex 8fd315290..3b16f3555 100644--- a/src/lib/request.ts+++ b/src/lib/request.ts@@ -105,16 +105,16 @@ export async function getQueryFilters(): Promise<QueryFilters> {const dateRange = getRequestDateRange(params);const filters = getRequestFilters(params);- const segments = websiteId ? await getRequestSegments(websiteId, params) : null;if (websiteId) {await setWebsiteDate(websiteId, dateRange);++ Object.assign(filters, await getRequestSegments(websiteId, params));}return {...dateRange,...filters,- ...segments,page: params?.page,pageSize: params?.page ? params?.pageSize || DEFAULT_PAGE_SIZE : undefined,orderBy: params?.orderBy,diff --git a/src/queries/sql/events/getEventDataProperties.ts b/src/queries/sql/events/getEventDataProperties.tsindex 90b17774d..708abebf9 100644--- a/src/queries/sql/events/getEventDataProperties.ts+++ b/src/queries/sql/events/getEventDataProperties.ts@@ -17,9 +17,12 @@ async function relationalQuery(filters: QueryFilters & { propertyName?: string },) {const { rawQuery, parseFilters } = prisma;- const { filterQuery, cohortQuery, queryParams } = parseFilters(filters, {- columns: { propertyName: 'data_key' },- });+ const { filterQuery, cohortQuery, queryParams } = parseFilters(+ { ...filters, websiteId },+ {+ columns: { propertyName: 'data_key' },+ },+ );return rawQuery(`@@ -48,9 +51,12 @@ async function clickhouseQuery(filters: QueryFilters & { propertyName?: string },): Promise<{ eventName: string; propertyName: string; total: number }[]> {const { rawQuery, parseFilters } = clickhouse;- const { filterQuery, cohortQuery, queryParams } = parseFilters(filters, {- columns: { propertyName: 'data_key' },- });+ const { filterQuery, cohortQuery, queryParams } = parseFilters(+ { ...filters, websiteId },+ {+ columns: { propertyName: 'data_key' },+ },+ );return rawQuery(`diff --git a/src/queries/sql/events/getWebsiteEvents.ts b/src/queries/sql/events/getWebsiteEvents.tsindex 31493ca2f..3b620018a 100644--- a/src/queries/sql/events/getWebsiteEvents.ts+++ b/src/queries/sql/events/getWebsiteEvents.ts@@ -36,6 +36,11 @@ async function relationalQuery(websiteId: string, filters: QueryFilters) {referrer_path as "referrerPath",referrer_query as "referrerQuery",referrer_domain as "referrerDomain",+ country as country,+ city as city,+ device as device,+ os as os,+ browser as browser,page_title as "pageTitle",event_type as "eventType",event_name as "eventName"@@ -77,12 +82,14 @@ async function clickhouseQuery(websiteId: string, filters: QueryFilters) {referrer_query as referrerQuery,referrer_domain as referrerDomain,country as country,+ city as city,device as device,os as os,browser as browser,page_title as pageTitle,event_type as eventType,- event_name as eventName+ event_name as eventName,+ event_id IN (SELECT event_id FROM event_data) AS hasDatafrom website_event${cohortQuery}where website_id = {websiteId:UUID}diff --git a/src/queries/sql/sessions/getSessionDataProperties.ts b/src/queries/sql/sessions/getSessionDataProperties.tsindex c0f1a0daf..ed2bc3e47 100644--- a/src/queries/sql/sessions/getSessionDataProperties.ts+++ b/src/queries/sql/sessions/getSessionDataProperties.ts@@ -17,9 +17,12 @@ async function relationalQuery(filters: QueryFilters & { propertyName?: string },) {const { rawQuery, parseFilters } = prisma;- const { filterQuery, cohortQuery, queryParams } = parseFilters(filters, {- columns: { propertyName: 'data_key' },- });+ const { filterQuery, cohortQuery, queryParams } = parseFilters(+ { ...filters, websiteId },+ {+ columns: { propertyName: 'data_key' },+ },+ );return rawQuery(`@@ -46,9 +49,12 @@ async function clickhouseQuery(filters: QueryFilters & { propertyName?: string },): Promise<{ propertyName: string; total: number }[]> {const { rawQuery, parseFilters } = clickhouse;- const { filterQuery, cohortQuery, queryParams } = parseFilters(filters, {- columns: { propertyName: 'data_key' },- });+ const { filterQuery, cohortQuery, queryParams } = parseFilters(+ { ...filters, websiteId },+ {+ columns: { propertyName: 'data_key' },+ },+ );return rawQuery(`