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 BarChart rendering in boards.
Mike Caob816e951a5ec
diff --git a/next-env.d.ts b/next-env.d.tsindex 20e7bcfb0..c4b7818fb 100644--- a/next-env.d.ts+++ b/next-env.d.ts@@ -1,6 +1,6 @@/// <reference types="next" />/// <reference types="next/image-types/global" />-import './.next/dev/types/routes.d.ts';+import "./.next/dev/types/routes.d.ts";// NOTE: This file should not be edited// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.diff --git a/next.config.ts b/next.config.tsindex b2eeb2a70..024024388 100644--- a/next.config.ts+++ b/next.config.ts@@ -179,9 +179,6 @@ export default withNextIntl({},basePath,output: 'standalone',- eslint: {- ignoreDuringBuilds: true,- },typescript: {ignoreBuildErrors: true,},diff --git a/package.json b/package.jsonindex 9416b9601..c86a0107b 100644--- a/package.json+++ b/package.json@@ -11,7 +11,7 @@},"type": "module","scripts": {- "dev": "next dev -p 3009 --turbo",+ "dev": "dotenv next dev --turbo","build": "npm-run-all check-env build-db check-db build-tracker build-geo build-app","start": "next start","build-docker": "npm-run-all build-db build-tracker build-geo build-app",@@ -66,7 +66,7 @@"@react-spring/web": "^10.0.3","@svgr/cli": "^8.1.0","@tanstack/react-query": "^5.90.20",- "@umami/react-zen": "^0.243.0",+ "@umami/react-zen": "^0.244.0","@umami/redis-client": "^0.30.0","bcryptjs": "^3.0.2","chalk": "^5.6.2",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 778b7f0f3..dbd7654a6 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -42,8 +42,8 @@ importers:specifier: ^5.90.20version: 5.90.20([email protected])'@umami/react-zen':- specifier: ^0.243.0- version: 0.243.0(@types/[email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))+ specifier: ^0.244.0+ version: 0.244.0(@types/[email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))'@umami/redis-client':specifier: ^0.30.0version: 0.30.0@@ -328,6 +328,45 @@ importers:specifier: ^5.9.3version: 5.9.3+ dist:+ dependencies:+ chart.js:+ specifier: ^4.5.0+ version: 4.5.1+ chartjs-adapter-date-fns:+ specifier: ^3.0.0+ version: 3.0.0([email protected])([email protected])+ colord:+ specifier: ^2.9.2+ version: 2.9.3+ jsonwebtoken:+ specifier: ^9.0.2+ version: 9.0.3+ lucide-react:+ specifier: ^0.542.0+ version: 0.542.0([email protected])+ pure-rand:+ specifier: ^7.0.1+ version: 7.0.1+ react-simple-maps:+ specifier: ^2.3.0+ react-use-measure:+ specifier: ^2.0.4+ react-window:+ specifier: ^1.8.6+ serialize-error:+ specifier: ^12.0.0+ version: 12.0.0+ thenby:+ specifier: ^1.3.4+ version: 1.3.4+ uuid:+ specifier: ^11.1.0+ version: 11.1.0+packages:'@ampproject/[email protected]':@@ -2959,8 +2998,8 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==}- '@umami/[email protected]':- resolution: {integrity: sha512-DDtumoIHqNSPIeqO0asfqurZwYsncbG2viVzj9YQJVd8TPMlwPOkef9hd18W9WlmQDU0KXQ6Ii89MXmNjrkvYg==}+ '@umami/[email protected]':+ resolution: {integrity: sha512-9swMip81Wlgp7PBOyJTt2pTFS6qN6v4qEuwZ3KMnv99IMB5pIwWllBAxK2GzCK7G3vyl9OO4BoPY44KVZOsDSg==}peerDependencies:react: ^18.0.0 || ^19.0.0react-aria-components: ^1.0.0@@ -4157,16 +4196,17 @@ packages:resolution: {integrity: sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==}+ deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]hasBin: trueresolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}- deprecated: Glob versions prior to v9 are no longer supported+ deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==}engines: {node: '>=12'}- deprecated: Glob versions prior to v9 are no longer supported+ deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]resolution: {integrity: sha512-NBcGGFbBA9s1VzD41QXDG+3++t9Mn5t1FpLdhESY6oKY4gYTFpX4wO3sqGUa0Srjtbfj3szX0RnemmrVRUdULA==}@@ -4996,6 +5036,11 @@ packages:resolution: {integrity: sha512-Lkk/vx6ak3rYkRR0Nhu4lFUT2VDnQSxBe8Hbl7f36358p6ow8Bnvr8lrLt98H8J1aGxfhbX4Fs5tYg2+FTwr5Q==}engines: {bun: '>=1.0.0', deno: '>=1.30.0', node: '>=8.0.0'}+ resolution: {integrity: sha512-w3hD8/SQB7+lzU2r4VdFyzzOzKnUjTZIF/MQJGSSvni7Llewni4vuViRppfRAa2guOsY5k4jZyxw/i9DQHv+dw==}+ peerDependencies:+ react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0+resolution: {integrity: sha512-fpVfuOQO0V3HBaOA1stIiP/A2fPCXHIleRZL16Mx3HmjTYwNSbimhnFBygs2CAfU1geexMX5ItUcWBGUaqw5CA==}peerDependencies:@@ -6943,6 +6988,10 @@ packages:resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}+ resolution: {integrity: sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==}+ hasBin: true+resolution: {integrity: sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==}hasBin: true@@ -10042,7 +10091,7 @@ snapshots:'@types/node': 24.10.11optional: true- '@umami/[email protected](@types/[email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))':+ '@umami/[email protected](@types/[email protected])([email protected])([email protected]([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])([email protected])([email protected]([email protected]))':dependencies:'@internationalized/date': 3.11.0@@ -12476,6 +12525,10 @@ snapshots:+ dependencies:+ react: 19.2.4+dependencies:react: 19.2.4@@ -14620,6 +14673,8 @@ snapshots:+ [email protected]: {}+diff --git a/src/app/(main)/boards/[boardId]/BoardColumn.tsx b/src/app/(main)/boards/[boardId]/BoardColumn.tsxindex 0db07b2cc..dc140a60d 100644--- a/src/app/(main)/boards/[boardId]/BoardColumn.tsx+++ b/src/app/(main)/boards/[boardId]/BoardColumn.tsx@@ -50,8 +50,6 @@ export function BoardColumn({return (<Column- marginTop="3"- marginLeft="3"width="100%"height="100%"alignItems="center"diff --git a/src/app/(main)/boards/[boardId]/BoardRow.tsx b/src/app/(main)/boards/[boardId]/BoardRow.tsxindex 49e04bca7..f938e6db9 100644--- a/src/app/(main)/boards/[boardId]/BoardRow.tsx+++ b/src/app/(main)/boards/[boardId]/BoardRow.tsx@@ -1,7 +1,12 @@import { Button, Column, Icon, Tooltip, TooltipTrigger } from '@umami/react-zen';import { produce } from 'immer';import { Fragment } from 'react';-import { Group, type GroupImperativeHandle, Panel, Separator } from 'react-resizable-panels';+import {+ Group,+ type GroupImperativeHandle,+ Panel as ResizeablePanel,+ Separator,+} from 'react-resizable-panels';import { v4 as uuid } from 'uuid';import { useBoard } from '@/components/hooks';import { ChevronDown, Minus, Plus } from '@/components/icons';@@ -79,7 +84,7 @@ export function BoardRow({<Group groupRef={handleGroupRef} style={{ height: '100%' }}>{columns?.map((column, index) => (<Fragment key={column.id}>- <Panel id={column.id} minSize={MIN_COLUMN_WIDTH} defaultSize={column.size}>+ <ResizeablePanel id={column.id} minSize={MIN_COLUMN_WIDTH} defaultSize={column.size}><BoardColumn{...column}editing={editing}@@ -87,7 +92,7 @@ export function BoardRow({onSetComponent={handleSetComponent}canRemove={columns?.length > 1}/>- </Panel>+ </ResizeablePanel>{index < columns?.length - 1 && <Separator />}</Fragment>))}diff --git a/src/components/svg/BarChart.tsx b/src/components/svg/BarChart.tsxindex 96ebe0001..85f12452c 100644--- a/src/components/svg/BarChart.tsx+++ b/src/components/svg/BarChart.tsx@@ -1,8 +1,8 @@-import type { SVGProps } from 'react';+import { memo, type SVGProps } from 'react';-const SvgBarChart = (props: SVGProps<SVGSVGElement>) => (+const SvgBarChart = memo((props: SVGProps<SVGSVGElement>) => (<svg xmlns="http://www.w3.org/2000/svg" width={512} height={512} viewBox="0 0 24 24" {...props}><path d="M7 13v9a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1m7-12h-4a1 1 0 0 0-1 1v20a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1m8 5h-4a1 1 0 0 0-1 1v15a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1" /></svg>-);+));export default SvgBarChart;