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 session weekly rendering bug.
Mike Caoceacc2502173
diff --git a/src/app/(main)/websites/[websiteId]/sessions/SessionsWeekly.module.css b/src/app/(main)/websites/[websiteId]/sessions/SessionsWeekly.module.cssindex 59f0cca68..6f5bf6cb4 100644--- a/src/app/(main)/websites/[websiteId]/sessions/SessionsWeekly.module.css+++ b/src/app/(main)/websites/[websiteId]/sessions/SessionsWeekly.module.css@@ -13,16 +13,19 @@.day {display: flex;flex-direction: column;+ align-items: start;+ justify-content: start;gap: 1px;position: relative;}.cell {display: flex;- align-items: center;background-color: var(--base100);width: 20px;height: 20px;+ margin: auto;+ align-items: start;}.hour {diff --git a/src/app/(main)/websites/[websiteId]/sessions/SessionsWeekly.tsx b/src/app/(main)/websites/[websiteId]/sessions/SessionsWeekly.tsxindex 0ee4805dd..f9acaefc6 100644--- a/src/app/(main)/websites/[websiteId]/sessions/SessionsWeekly.tsx+++ b/src/app/(main)/websites/[websiteId]/sessions/SessionsWeekly.tsx@@ -34,7 +34,7 @@ export function SessionsWeekly({ websiteId }: { websiteId: string }) {return (<LoadingPanel {...(props as any)} data={data}>- <div className={styles.week}>+ <div key={data} className={styles.week}><div className={styles.day}><div className={styles.header}> </div>{Array(24)@@ -50,7 +50,7 @@ export function SessionsWeekly({ websiteId }: { websiteId: string }) {</div>{data?.map((day: number[], index: number) => {return (- <div className={styles.day} key={index}>+ <div key={index} className={styles.day}><div className={styles.header}>{format(getDayOfWeekAsDate(index), 'EEE', { locale: dateLocale })}</div>