From f66a508892ef52fe3f68703f19b61f997b51c906 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Thu, 5 Feb 2026 22:04:59 -0800 Subject: [PATCH] Add website binding to boards with filter and date controls. Co-Authored-By: Claude Opus 4.6 --- src/app/(main)/boards/BoardAddForm.tsx | 11 +++++++-- .../(main)/boards/[boardId]/BoardHeader.tsx | 24 +++++++++++++++++-- src/app/(main)/boards/[boardId]/BoardPage.tsx | 14 +++++++++++ src/app/api/boards/route.ts | 3 ++- src/lib/types.ts | 1 + 5 files changed, 48 insertions(+), 5 deletions(-) diff --git a/src/app/(main)/boards/BoardAddForm.tsx b/src/app/(main)/boards/BoardAddForm.tsx index e1badf1d1..de42b7a14 100644 --- a/src/app/(main)/boards/BoardAddForm.tsx +++ b/src/app/(main)/boards/BoardAddForm.tsx @@ -1,5 +1,7 @@ -import { Button, Form, FormField, FormSubmitButton, Row, TextField } from '@umami/react-zen'; +import { Button, Form, FormField, FormSubmitButton, Row, Text, TextField } from '@umami/react-zen'; +import { useState } from 'react'; import { useMessages, useUpdateQuery } from '@/components/hooks'; +import { WebsiteSelect } from '@/components/input/WebsiteSelect'; export function BoardAddForm({ teamId, @@ -12,10 +14,11 @@ export function BoardAddForm({ }) { const { formatMessage, labels } = useMessages(); const { mutateAsync, error, isPending } = useUpdateQuery('/boards', { teamId }); + const [websiteId, setWebsiteId] = useState(); const handleSubmit = async (data: any) => { await mutateAsync( - { type: 'board', ...data }, + { type: 'board', ...data, parameters: { websiteId } }, { onSuccess: async () => { onSave?.(); @@ -43,6 +46,10 @@ export function BoardAddForm({ > + + {formatMessage(labels.website)} + + {onClose && (