Skip to content

armgit / umami

Public Imported from GitHub
0

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.

Fix board edit size restoration and remove compare selector

Mike Cao029814f81f32
diff --git a/src/app/(main)/boards/[boardId]/BoardControls.tsx b/src/app/(main)/boards/[boardId]/BoardControls.tsx
index aed80020b..4e4185bbb 100644
--- a/src/app/(main)/boards/[boardId]/BoardControls.tsx
+++ b/src/app/(main)/boards/[boardId]/BoardControls.tsx
@@ -12,7 +12,7 @@ export function BoardControls() {
return (
<Box marginBottom="4">
- <WebsiteControls websiteId={websiteId} allowCompare={true} />
+ <WebsiteControls websiteId={websiteId} />
</Box>
);
}
diff --git a/src/app/(main)/boards/[boardId]/BoardEditBody.tsx b/src/app/(main)/boards/[boardId]/BoardEditBody.tsx
index 9e660e69b..6b7c2ecfd 100644
--- a/src/app/(main)/boards/[boardId]/BoardEditBody.tsx
+++ b/src/app/(main)/boards/[boardId]/BoardEditBody.tsx
@@ -110,12 +110,12 @@ export function BoardEditBody() {
return (
<Group groupRef={rowGroupRef} orientation="vertical" style={{ minHeight }}>
{rows.map((row, index) => (
- <Fragment key={row.id}>
+ <Fragment key={`${row.id}:${row.size ?? 'auto'}`}>
<Panel
id={row.id}
minSize={MIN_ROW_HEIGHT}
maxSize={MAX_ROW_HEIGHT}
- defaultSize={row.size}
+ defaultSize={row.size != null ? `${row.size}%` : undefined}
>
<BoardEditRow
{...row}
diff --git a/src/app/(main)/boards/[boardId]/BoardEditRow.tsx b/src/app/(main)/boards/[boardId]/BoardEditRow.tsx
index 012eaa80f..2a9dca753 100644
--- a/src/app/(main)/boards/[boardId]/BoardEditRow.tsx
+++ b/src/app/(main)/boards/[boardId]/BoardEditRow.tsx
@@ -84,8 +84,12 @@ export function BoardEditRow({
return (
<Group groupRef={handleGroupRef} className={styles.rowGroup}>
{columns?.map((column, index) => (
- <Fragment key={column.id}>
- <ResizablePanel id={column.id} minSize={MIN_COLUMN_WIDTH} defaultSize={column.size}>
+ <Fragment key={`${column.id}:${column.size ?? 'auto'}`}>
+ <ResizablePanel
+ id={column.id}
+ minSize={MIN_COLUMN_WIDTH}
+ defaultSize={column.size != null ? `${column.size}%` : undefined}
+ >
<BoardEditColumn
{...column}
canEdit={canEdit}