Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
feat(issues): add inline property editing on kanban cards and calendar date picker
Jiayuanf050ab1ae29a
diff --git a/apps/web/features/issues/components/board-card.tsx b/apps/web/features/issues/components/board-card.tsxindex b47a3aeb98..8c0537caef 100644--- a/apps/web/features/issues/components/board-card.tsx+++ b/apps/web/features/issues/components/board-card.tsx@@ -1,12 +1,17 @@"use client";+import { useCallback } from "react";import Link from "next/link";import { useSortable } from "@dnd-kit/sortable";import { CSS } from "@dnd-kit/utilities";-import type { Issue } from "@/shared/types";+import { toast } from "sonner";+import type { Issue, UpdateIssueRequest } from "@/shared/types";import { CalendarDays } from "lucide-react";import { ActorAvatar } from "@/components/common/actor-avatar";+import { api } from "@/shared/api";+import { useIssueStore } from "@/features/issues/store";import { PriorityIcon } from "./priority-icon";+import { PriorityPicker, AssigneePicker, DueDatePicker } from "./pickers";import { PRIORITY_CONFIG } from "@/features/issues/config";import { useIssueViewStore, type CardProperties } from "@/features/issues/stores/view-store";@@ -17,37 +22,77 @@ function formatDate(date: string): string {});}+/** Stops event from bubbling to Link/drag handlers */+function PickerWrapper({ children }: { children: React.ReactNode }) {+ const stop = (e: React.SyntheticEvent) => {+ e.stopPropagation();+ e.preventDefault();+ };+ return (+ <div onClick={stop} onMouseDown={stop} onPointerDown={stop}>+ {children}+ </div>+ );+}+export function BoardCardContent({issue,- cardProperties,+ editable = false,}: {issue: Issue;- cardProperties?: CardProperties;+ editable?: boolean;}) {const storeProperties = useIssueViewStore((s) => s.cardProperties);- const props = cardProperties ?? storeProperties;const priorityCfg = PRIORITY_CONFIG[issue.priority];- const showPriority = props.priority;- const showDescription = props.description && issue.description;- const showAssignee = props.assignee && issue.assignee_type && issue.assignee_id;- const showDueDate = props.dueDate && issue.due_date;+ const handleUpdate = useCallback(+ (updates: Partial<UpdateIssueRequest>) => {+ useIssueStore.getState().updateIssue(issue.id, updates);+ api.updateIssue(issue.id, updates).catch(() => {+ toast.error("Failed to update issue");+ });+ },+ [issue.id]+ );++ const showPriority = storeProperties.priority;+ const showDescription = storeProperties.description && issue.description;+ const showAssignee = storeProperties.assignee && issue.assignee_type && issue.assignee_id;+ const showDueDate = storeProperties.dueDate && issue.due_date;const showBottom = showAssignee || showDueDate;return (<div className="rounded-lg border bg-card p-3.5 shadow-[0_1px_2px_0_rgba(0,0,0,0.03)]">- {/* Priority + label */}- {showPriority && (- <div className="flex items-center gap-1.5">- <PriorityIcon priority={issue.priority} />- <span className={`text-xs font-medium ${priorityCfg.color}`}>- {priorityCfg.label}- </span>- </div>- )}+ {/* Priority */}+ {showPriority &&+ (editable ? (+ <PickerWrapper>+ <PriorityPicker+ priority={issue.priority}+ onUpdate={handleUpdate}+ trigger={+ <>+ <PriorityIcon priority={issue.priority} />+ <span className={`text-xs font-medium ${priorityCfg.color}`}>+ {priorityCfg.label}+ </span>+ </>+ }+ />+ </PickerWrapper>+ ) : (+ <div className="flex items-center gap-1.5">+ <PriorityIcon priority={issue.priority} />+ <span className={`text-xs font-medium ${priorityCfg.color}`}>+ {priorityCfg.label}+ </span>+ </div>+ ))}{/* Title */}- <p className={`text-sm font-medium leading-snug line-clamp-2 ${showPriority ? "mt-2" : ""}`}>+ <p+ className={`text-sm font-medium leading-snug line-clamp-2 ${showPriority ? "mt-2" : ""}`}+ >{issue.title}</p>@@ -58,30 +103,66 @@ export function BoardCardContent({</p>)}- {/* Bottom: avatar + date */}+ {/* Bottom: assignee + due date */}{showBottom && (<div className="mt-3 flex items-center justify-between"><div className="flex items-center">- {showAssignee && (- <ActorAvatar- actorType={issue.assignee_type!}- actorId={issue.assignee_id!}- size={22}- />- )}+ {showAssignee &&+ (editable ? (+ <PickerWrapper>+ <AssigneePicker+ assigneeType={issue.assignee_type}+ assigneeId={issue.assignee_id}+ onUpdate={handleUpdate}+ trigger={+ <ActorAvatar+ actorType={issue.assignee_type!}+ actorId={issue.assignee_id!}+ size={22}+ />+ }+ />+ </PickerWrapper>+ ) : (+ <ActorAvatar+ actorType={issue.assignee_type!}+ actorId={issue.assignee_id!}+ size={22}+ />+ ))}</div>- {showDueDate && (- <span- className={`flex items-center gap-1 text-xs ${- new Date(issue.due_date!) < new Date()- ? "text-destructive"- : "text-muted-foreground"- }`}- >- <CalendarDays className="size-3" />- {formatDate(issue.due_date!)}- </span>- )}+ {showDueDate &&+ (editable ? (+ <PickerWrapper>+ <DueDatePicker+ dueDate={issue.due_date}+ onUpdate={handleUpdate}+ trigger={+ <span+ className={`flex items-center gap-1 text-xs ${+ new Date(issue.due_date!) < new Date()+ ? "text-destructive"+ : "text-muted-foreground"+ }`}+ >+ <CalendarDays className="size-3" />+ {formatDate(issue.due_date!)}+ </span>+ }+ />+ </PickerWrapper>+ ) : (+ <span+ className={`flex items-center gap-1 text-xs ${+ new Date(issue.due_date!) < new Date()+ ? "text-destructive"+ : "text-muted-foreground"+ }`}+ >+ <CalendarDays className="size-3" />+ {formatDate(issue.due_date!)}+ </span>+ ))}</div>)}</div>@@ -118,7 +199,7 @@ export function DraggableBoardCard({ issue }: { issue: Issue }) {href={`/issues/${issue.id}`}className={`block transition-colors hover:opacity-80 ${isDragging ? "pointer-events-none" : ""}`}>- <BoardCardContent issue={issue} />+ <BoardCardContent issue={issue} editable /></Link></div>);diff --git a/apps/web/features/issues/components/issue-detail.tsx b/apps/web/features/issues/components/issue-detail.tsxindex edd525e295..a205d5c0e2 100644--- a/apps/web/features/issues/components/issue-detail.tsx+++ b/apps/web/features/issues/components/issue-detail.tsx@@ -8,6 +8,8 @@ import {ArrowUp,Bot,Calendar,+ ChevronDown,+ ChevronLeft,ChevronRight,Link2,MoreHorizontal,@@ -55,7 +57,7 @@ import {import { ActorAvatar } from "@/components/common/actor-avatar";import type { Issue, Comment, UpdateIssueRequest, IssueStatus, IssuePriority } from "@/shared/types";import { ALL_STATUSES, STATUS_CONFIG, PRIORITY_ORDER, PRIORITY_CONFIG } from "@/features/issues/config";-import { StatusIcon, PriorityIcon } from "@/features/issues/components";+import { StatusIcon, PriorityIcon, DueDatePicker } from "@/features/issues/components";import { api } from "@/shared/api";import { useAuthStore } from "@/features/auth";import { useWorkspaceStore, useActorName } from "@/features/workspace";@@ -125,8 +127,15 @@ export function IssueDetail({ issueId, onDelete }: IssueDetailProps) {const id = issueId;const router = useRouter();const user = useAuthStore((s) => s.user);+ const workspace = useWorkspaceStore((s) => s.workspace);const members = useWorkspaceStore((s) => s.members);const agents = useWorkspaceStore((s) => s.agents);++ // Issue navigation+ const allIssues = useIssueStore((s) => s.issues);+ const currentIndex = allIssues.findIndex((i) => i.id === id);+ const prevIssue = currentIndex > 0 ? allIssues[currentIndex - 1] : null;+ const nextIssue = currentIndex < allIssues.length - 1 ? allIssues[currentIndex + 1] : null;const { getActorName, getActorInitials } = useActorName();const { defaultLayout, onLayoutChanged } = useDefaultLayout({id: "multica_issue_detail_layout",@@ -306,17 +315,65 @@ export function IssueDetail({ issueId, onDelete }: IssueDetailProps) {<div className="flex h-full flex-col">{/* Header bar */}<div className="flex h-12 shrink-0 items-center justify-between border-b bg-background px-4 text-sm">- <div className="flex items-center gap-1.5">- <Link- href="/issues"- className="text-muted-foreground hover:text-foreground transition-colors"- >- Issues- </Link>- <ChevronRight className="h-3 w-3 text-muted-foreground/50" />- <span className="truncate text-muted-foreground">{issue.id.slice(0, 8)}</span>+ <div className="flex items-center gap-1.5 min-w-0">+ {workspace && (+ <>+ <Link+ href="/issues"+ className="text-muted-foreground hover:text-foreground transition-colors truncate shrink-0"+ >+ {workspace.name}+ </Link>+ <ChevronRight className="h-3 w-3 text-muted-foreground/50 shrink-0" />+ </>+ )}+ <span className="truncate text-muted-foreground">+ {issue.id.slice(0, 8)}+ </span>+ <ChevronRight className="h-3 w-3 text-muted-foreground/50 shrink-0" />+ <span className="truncate">{issue.title}</span></div>- <div className="flex items-center gap-1">+ <div className="flex items-center gap-1 shrink-0">+ {/* Issue navigation */}+ {allIssues.length > 1 && (+ <div className="flex items-center gap-0.5 mr-1">+ <Tooltip>+ <TooltipTrigger+ render={+ <Button+ variant="ghost"+ size="icon-xs"+ className="text-muted-foreground"+ disabled={!prevIssue}+ onClick={() => prevIssue && router.push(`/issues/${prevIssue.id}`)}+ >+ <ChevronLeft className="h-4 w-4" />+ </Button>+ }+ />+ <TooltipContent side="bottom">Previous issue</TooltipContent>+ </Tooltip>+ <span className="text-xs text-muted-foreground tabular-nums px-0.5">+ {currentIndex >= 0 ? currentIndex + 1 : "?"} / {allIssues.length}+ </span>+ <Tooltip>+ <TooltipTrigger+ render={+ <Button+ variant="ghost"+ size="icon-xs"+ className="text-muted-foreground"+ disabled={!nextIssue}+ onClick={() => nextIssue && router.push(`/issues/${nextIssue.id}`)}+ >+ <ChevronRight className="h-4 w-4" />+ </Button>+ }+ />+ <TooltipContent side="bottom">Next issue</TooltipContent>+ </Tooltip>+ </div>+ )}<DropdownMenu><DropdownMenuTriggerrender={@@ -511,8 +568,6 @@ export function IssueDetail({ issueId, onDelete }: IssueDetailProps) {{/* Content — scrollable */}<div className="flex-1 overflow-y-auto"><div className="mx-auto w-full max-w-3xl px-8 py-8">- <div className="mb-1 text-sm text-muted-foreground">{issue.id.slice(0, 8)}</div>-{editingTitle ? (<InputautoFocus@@ -530,11 +585,11 @@ export function IssueDetail({ issueId, onDelete }: IssueDetailProps) {setEditingTitle(false);}}}- className="text-xl font-semibold leading-snug tracking-tight"+ className="text-2xl font-bold leading-snug tracking-tight"/>) : (<h1- className="text-xl font-semibold leading-snug tracking-tight cursor-pointer hover:bg-accent/50 rounded px-1 -mx-1"+ className="text-2xl font-bold leading-snug tracking-tight cursor-pointer hover:bg-accent/50 rounded px-1 -mx-1"onClick={() => { setTitleDraft(issue.title); setEditingTitle(true); }}>{issue.title}@@ -553,7 +608,7 @@ export function IssueDetail({ issueId, onDelete }: IssueDetailProps) {{/* Activity / Comments */}<div>- <h2 className="text-sm font-medium">Activity</h2>+ <h2 className="text-base font-semibold">Activity</h2><div className="mt-4">{comments.map((comment) => {@@ -683,169 +738,152 @@ export function IssueDetail({ issueId, onDelete }: IssueDetailProps) {>{/* RIGHT: Properties sidebar */}<div className="overflow-y-auto border-l h-full">- <div className="p-4">- <div className="mb-2 text-xs font-medium text-muted-foreground">- Properties- </div>-- <div className="space-y-0.5">- {/* Status */}- <PropRow label="Status">- <DropdownMenu>- <DropdownMenuTrigger className="flex items-center gap-1.5 cursor-pointer rounded px-1 -mx-1 hover:bg-accent/30 transition-colors overflow-hidden">- <StatusIcon status={issue.status} className="h-3.5 w-3.5 shrink-0" />- <span className="truncate">{STATUS_CONFIG[issue.status].label}</span>- </DropdownMenuTrigger>- <DropdownMenuContent align="start" className="w-44">- <DropdownMenuRadioGroup value={issue.status} onValueChange={(v) => handleUpdateField({ status: v as IssueStatus })}>- {ALL_STATUSES.map((s) => (- <DropdownMenuRadioItem key={s} value={s}>- <StatusIcon status={s} className="h-3.5 w-3.5" />- {STATUS_CONFIG[s].label}- </DropdownMenuRadioItem>- ))}- </DropdownMenuRadioGroup>- </DropdownMenuContent>- </DropdownMenu>- </PropRow>-- {/* Priority */}- <PropRow label="Priority">- <DropdownMenu>- <DropdownMenuTrigger className="flex items-center gap-1.5 cursor-pointer rounded px-1 -mx-1 hover:bg-accent/30 transition-colors overflow-hidden">- <PriorityIcon priority={issue.priority} className="shrink-0" />- <span className="truncate">{PRIORITY_CONFIG[issue.priority].label}</span>- </DropdownMenuTrigger>- <DropdownMenuContent align="start" className="w-44">- <DropdownMenuRadioGroup value={issue.priority} onValueChange={(v) => handleUpdateField({ priority: v as IssuePriority })}>- {PRIORITY_ORDER.map((p) => (- <DropdownMenuRadioItem key={p} value={p}>- <PriorityIcon priority={p} />- {PRIORITY_CONFIG[p].label}- </DropdownMenuRadioItem>- ))}- </DropdownMenuRadioGroup>- </DropdownMenuContent>- </DropdownMenu>- </PropRow>-- {/* Assignee */}- <PropRow label="Assignee">- <DropdownMenu>- <DropdownMenuTrigger className="flex items-center gap-1.5 cursor-pointer rounded px-1 -mx-1 hover:bg-accent/30 transition-colors overflow-hidden">- {issue.assignee_type && issue.assignee_id ? (- <>- <div className={`inline-flex shrink-0 items-center justify-center rounded-full font-medium text-[8px] size-4 ${- issue.assignee_type === "agent" ? "bg-info/10 text-info" : "bg-muted text-muted-foreground"- }`}>- {issue.assignee_type === "agent" ? <Bot className="size-2.5" /> : getActorInitials(issue.assignee_type, issue.assignee_id)}- </div>- <span className="truncate">{getActorName(issue.assignee_type, issue.assignee_id)}</span>- </>- ) : (- <span className="text-muted-foreground">Unassigned</span>- )}- </DropdownMenuTrigger>- <DropdownMenuContent align="start" className="w-52">- <DropdownMenuItem onClick={() => handleUpdateField({ assignee_type: null, assignee_id: null })}>- <UserMinus className="h-3.5 w-3.5 text-muted-foreground" />- Unassigned- </DropdownMenuItem>- {members.length > 0 && (- <>- <DropdownMenuSeparator />- <DropdownMenuGroup>- <DropdownMenuLabel>Members</DropdownMenuLabel>- {members.map((m) => (- <DropdownMenuItem key={m.user_id} onClick={() => handleUpdateField({ assignee_type: "member", assignee_id: m.user_id })}>- <div className="inline-flex size-4 shrink-0 items-center justify-center rounded-full bg-muted text-[8px] font-medium text-muted-foreground">- {getActorInitials("member", m.user_id)}- </div>- {m.name}- </DropdownMenuItem>- ))}- </DropdownMenuGroup>- </>- )}- {agents.length > 0 && (- <>- <DropdownMenuSeparator />- <DropdownMenuGroup>- <DropdownMenuLabel>Agents</DropdownMenuLabel>- {agents.map((a) => (- <DropdownMenuItem key={a.id} onClick={() => handleUpdateField({ assignee_type: "agent", assignee_id: a.id })}>- <div className="inline-flex size-4 shrink-0 items-center justify-center rounded-full bg-info/10 text-info">- <Bot className="size-2.5" />- </div>- {a.name}- </DropdownMenuItem>- ))}- </DropdownMenuGroup>- </>- )}- </DropdownMenuContent>- </DropdownMenu>- </PropRow>-- {/* Due date */}- <PropRow label="Due date">- <DropdownMenu>- <DropdownMenuTrigger className="flex items-center gap-1.5 cursor-pointer rounded px-1 -mx-1 hover:bg-accent/30 transition-colors overflow-hidden">- <Calendar className="h-3.5 w-3.5 shrink-0 text-muted-foreground" />- {issue.due_date ? (- <span className={new Date(issue.due_date) < new Date() ? "text-destructive" : ""}>- {shortDate(issue.due_date)}- </span>- ) : (- <span className="text-muted-foreground">None</span>- )}- </DropdownMenuTrigger>- <DropdownMenuContent align="start" className="w-auto">- <DropdownMenuItem onClick={() => handleUpdateField({ due_date: new Date().toISOString() })}>- Today- </DropdownMenuItem>- <DropdownMenuItem onClick={() => {- const d = new Date(); d.setDate(d.getDate() + 1);- handleUpdateField({ due_date: d.toISOString() });- }}>- Tomorrow- </DropdownMenuItem>- <DropdownMenuItem onClick={() => {- const d = new Date(); d.setDate(d.getDate() + 7);- handleUpdateField({ due_date: d.toISOString() });- }}>- Next week- </DropdownMenuItem>- {issue.due_date && (- <>- <DropdownMenuSeparator />- <DropdownMenuItem onClick={() => handleUpdateField({ due_date: null })}>- Clear date- </DropdownMenuItem>- </>- )}- </DropdownMenuContent>- </DropdownMenu>- </PropRow>-- {/* Created by */}- <PropRow label="Created by">- <ActorAvatar- actorType={issue.creator_type}- actorId={issue.creator_id}- size={18}- />- <span className="truncate">{getActorName(issue.creator_type, issue.creator_id)}</span>- </PropRow>+ <div className="p-4 space-y-5">+ {/* Properties section */}+ <div>+ <button+ className="flex w-full items-center gap-1 text-xs font-medium text-muted-foreground hover:text-foreground transition-colors mb-2"+ onClick={() => {/* placeholder for future collapse */}}+ >+ Properties+ <ChevronDown className="h-3 w-3" />+ </button>++ <div className="space-y-0.5">+ {/* Status */}+ <PropRow label="Status">+ <DropdownMenu>+ <DropdownMenuTrigger className="flex items-center gap-1.5 cursor-pointer rounded px-1 -mx-1 hover:bg-accent/30 transition-colors overflow-hidden">+ <StatusIcon status={issue.status} className="h-3.5 w-3.5 shrink-0" />+ <span className="truncate">{STATUS_CONFIG[issue.status].label}</span>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start" className="w-44">+ <DropdownMenuRadioGroup value={issue.status} onValueChange={(v) => handleUpdateField({ status: v as IssueStatus })}>+ {ALL_STATUSES.map((s) => (+ <DropdownMenuRadioItem key={s} value={s}>+ <StatusIcon status={s} className="h-3.5 w-3.5" />+ {STATUS_CONFIG[s].label}+ </DropdownMenuRadioItem>+ ))}+ </DropdownMenuRadioGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ </PropRow>++ {/* Priority */}+ <PropRow label="Priority">+ <DropdownMenu>+ <DropdownMenuTrigger className="flex items-center gap-1.5 cursor-pointer rounded px-1 -mx-1 hover:bg-accent/30 transition-colors overflow-hidden">+ <PriorityIcon priority={issue.priority} className="shrink-0" />+ <span className="truncate">{PRIORITY_CONFIG[issue.priority].label}</span>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start" className="w-44">+ <DropdownMenuRadioGroup value={issue.priority} onValueChange={(v) => handleUpdateField({ priority: v as IssuePriority })}>+ {PRIORITY_ORDER.map((p) => (+ <DropdownMenuRadioItem key={p} value={p}>+ <PriorityIcon priority={p} />+ {PRIORITY_CONFIG[p].label}+ </DropdownMenuRadioItem>+ ))}+ </DropdownMenuRadioGroup>+ </DropdownMenuContent>+ </DropdownMenu>+ </PropRow>++ {/* Assignee */}+ <PropRow label="Assignee">+ <DropdownMenu>+ <DropdownMenuTrigger className="flex items-center gap-1.5 cursor-pointer rounded px-1 -mx-1 hover:bg-accent/30 transition-colors overflow-hidden">+ {issue.assignee_type && issue.assignee_id ? (+ <>+ <ActorAvatar+ actorType={issue.assignee_type}+ actorId={issue.assignee_id}+ size={18}+ />+ <span className="truncate">{getActorName(issue.assignee_type, issue.assignee_id)}</span>+ </>+ ) : (+ <span className="text-muted-foreground">Unassigned</span>+ )}+ </DropdownMenuTrigger>+ <DropdownMenuContent align="start" className="w-52">+ <DropdownMenuItem onClick={() => handleUpdateField({ assignee_type: null, assignee_id: null })}>+ <UserMinus className="h-3.5 w-3.5 text-muted-foreground" />+ Unassigned+ </DropdownMenuItem>+ {members.length > 0 && (+ <>+ <DropdownMenuSeparator />+ <DropdownMenuGroup>+ <DropdownMenuLabel>Members</DropdownMenuLabel>+ {members.map((m) => (+ <DropdownMenuItem key={m.user_id} onClick={() => handleUpdateField({ assignee_type: "member", assignee_id: m.user_id })}>+ <div className="inline-flex size-4 shrink-0 items-center justify-center rounded-full bg-muted text-[8px] font-medium text-muted-foreground">+ {getActorInitials("member", m.user_id)}+ </div>+ {m.name}+ </DropdownMenuItem>+ ))}+ </DropdownMenuGroup>+ </>+ )}+ {agents.length > 0 && (+ <>+ <DropdownMenuSeparator />+ <DropdownMenuGroup>+ <DropdownMenuLabel>Agents</DropdownMenuLabel>+ {agents.map((a) => (+ <DropdownMenuItem key={a.id} onClick={() => handleUpdateField({ assignee_type: "agent", assignee_id: a.id })}>+ <div className="inline-flex size-4 shrink-0 items-center justify-center rounded-full bg-info/10 text-info">+ <Bot className="size-2.5" />+ </div>+ {a.name}+ </DropdownMenuItem>+ ))}+ </DropdownMenuGroup>+ </>+ )}+ </DropdownMenuContent>+ </DropdownMenu>+ </PropRow>++ {/* Due date */}+ <PropRow label="Due date">+ <DueDatePicker+ dueDate={issue.due_date}+ onUpdate={handleUpdateField}+ />+ </PropRow>+ </div></div>- <div className="mt-4 border-t pt-3 space-y-0.5">- <PropRow label="Created">- <span className="text-muted-foreground">{shortDate(issue.created_at)}</span>- </PropRow>- <PropRow label="Updated">- <span className="text-muted-foreground">{shortDate(issue.updated_at)}</span>- </PropRow>+ {/* Details section */}+ <div>+ <button+ className="flex w-full items-center gap-1 text-xs font-medium text-muted-foreground hover:text-foreground transition-colors mb-2"+ onClick={() => {/* placeholder for future collapse */}}+ >+ Details+ <ChevronDown className="h-3 w-3" />+ </button>++ <div className="space-y-0.5">+ <PropRow label="Created by">+ <ActorAvatar+ actorType={issue.creator_type}+ actorId={issue.creator_id}+ size={18}+ />+ <span className="truncate">{getActorName(issue.creator_type, issue.creator_id)}</span>+ </PropRow>+ <PropRow label="Created">+ <span className="text-muted-foreground">{shortDate(issue.created_at)}</span>+ </PropRow>+ <PropRow label="Updated">+ <span className="text-muted-foreground">{shortDate(issue.updated_at)}</span>+ </PropRow>+ </div></div></div></div>diff --git a/apps/web/features/issues/components/pickers/assignee-picker.tsx b/apps/web/features/issues/components/pickers/assignee-picker.tsxindex 711554c91a..a41ba9cc91 100644--- a/apps/web/features/issues/components/pickers/assignee-picker.tsx+++ b/apps/web/features/issues/components/pickers/assignee-picker.tsx@@ -15,10 +15,12 @@ export function AssigneePicker({assigneeType,assigneeId,onUpdate,+ trigger: customTrigger,}: {assigneeType: IssueAssigneeType | null;assigneeId: string | null;onUpdate: (updates: Partial<UpdateIssueRequest>) => void;+ trigger?: React.ReactNode;}) {const [open, setOpen] = useState(false);const [filter, setFilter] = useState("");@@ -54,7 +56,7 @@ export function AssigneePicker({searchPlaceholder="Assign to..."onSearchChange={setFilter}trigger={- assigneeType && assigneeId ? (+ customTrigger ? customTrigger : assigneeType && assigneeId ? (<><divclassName={`inline-flex shrink-0 items-center justify-center rounded-full font-medium text-[8px] size-4.5 ${diff --git a/apps/web/features/issues/components/pickers/due-date-picker.tsx b/apps/web/features/issues/components/pickers/due-date-picker.tsxindex d87dfb51dc..a0ff761c6e 100644--- a/apps/web/features/issues/components/pickers/due-date-picker.tsx+++ b/apps/web/features/issues/components/pickers/due-date-picker.tsx@@ -14,9 +14,11 @@ import { Button } from "@/components/ui/button";export function DueDatePicker({dueDate,onUpdate,+ trigger: customTrigger,}: {dueDate: string | null;onUpdate: (updates: Partial<UpdateIssueRequest>) => void;+ trigger?: React.ReactNode;}) {const [open, setOpen] = useState(false);const date = dueDate ? new Date(dueDate) : undefined;@@ -25,13 +27,17 @@ export function DueDatePicker({return (<Popover open={open} onOpenChange={setOpen}><PopoverTrigger className="flex items-center gap-1.5 cursor-pointer rounded px-1 -mx-1 hover:bg-accent/30 transition-colors">- <CalendarDays className="h-3.5 w-3.5 text-muted-foreground" />- {date ? (- <span className={isOverdue ? "text-destructive" : ""}>- {date.toLocaleDateString("en-US", { month: "short", day: "numeric" })}- </span>- ) : (- <span className="text-muted-foreground">Due date</span>+ {customTrigger ?? (+ <>+ <CalendarDays className="h-3.5 w-3.5 text-muted-foreground" />+ {date ? (+ <span className={isOverdue ? "text-destructive" : ""}>+ {date.toLocaleDateString("en-US", { month: "short", day: "numeric" })}+ </span>+ ) : (+ <span className="text-muted-foreground">Due date</span>+ )}+ </>)}</PopoverTrigger><PopoverContent className="w-auto p-0" align="start">diff --git a/apps/web/features/issues/components/pickers/priority-picker.tsx b/apps/web/features/issues/components/pickers/priority-picker.tsxindex d1a1482699..0880322212 100644--- a/apps/web/features/issues/components/pickers/priority-picker.tsx+++ b/apps/web/features/issues/components/pickers/priority-picker.tsx@@ -9,9 +9,11 @@ import { PropertyPicker, PickerItem } from "./property-picker";export function PriorityPicker({priority,onUpdate,+ trigger: customTrigger,}: {priority: IssuePriority;onUpdate: (updates: Partial<UpdateIssueRequest>) => void;+ trigger?: React.ReactNode;}) {const [open, setOpen] = useState(false);const cfg = PRIORITY_CONFIG[priority];@@ -22,10 +24,12 @@ export function PriorityPicker({onOpenChange={setOpen}width="w-44"trigger={- <>- <PriorityIcon priority={priority} className="shrink-0" />- <span className="truncate">{cfg.label}</span>- </>+ customTrigger ?? (+ <>+ <PriorityIcon priority={priority} className="shrink-0" />+ <span className="truncate">{cfg.label}</span>+ </>+ )}>{PRIORITY_ORDER.map((p) => {