Updated session profile page. Added TypeIcon component. Added useRegionNames hook.

This commit is contained in:
Mike Cao 2024-07-29 01:38:36 -07:00
parent ac60d08ee5
commit c3c3b46ef6
313 changed files with 197 additions and 94 deletions

View file

@ -25,8 +25,6 @@ async function clickhouseQuery(websiteId: string, sessionId: string) {
select
session_id as id,
website_id as websiteId,
min(created_at) as firstAt,
max(created_at) as lastAt,
hostname,
browser,
os,
@ -35,7 +33,9 @@ async function clickhouseQuery(websiteId: string, sessionId: string) {
language,
country,
subdivision1,
city
city,
min(created_at) as firstAt,
max(created_at) as lastAt
from website_event
where website_id = {websiteId:UUID}
and session_id = {sessionId:UUID}

View file

@ -32,7 +32,6 @@ async function clickhouseQuery(websiteId: string, filters: QueryFilters, pagePar
select
session_id as id,
website_id as websiteId,
min(created_at) as createdAt,
hostname,
browser,
os,
@ -41,13 +40,15 @@ async function clickhouseQuery(websiteId: string, filters: QueryFilters, pagePar
language,
country,
subdivision1,
city
city,
min(created_at) as firstAt,
max(created_at) as lastAt
from website_event
where website_id = {websiteId:UUID}
${dateQuery}
${filterQuery}
group by session_id, website_id, hostname, browser, os, device, screen, language, country, subdivision1, city
order by createdAt desc
order by lastAt desc
`,
params,
pageParams,