The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
feat: show parent task and sub-tasks at bottom of issue properties panel
Darren Davisonb380d6000f35
diff --git a/ui/src/components/IssueProperties.tsx b/ui/src/components/IssueProperties.tsxindex ced81b2362..8b5fdfcbba 100644--- a/ui/src/components/IssueProperties.tsx+++ b/ui/src/components/IssueProperties.tsx@@ -44,6 +44,7 @@ interface IssuePropertiesProps {issue: Issue;onUpdate: (data: Record<string, unknown>) => void;inline?: boolean;+ childIssues?: Issue[];}function PropertyRow({ label, children }: { label: string; children: React.ReactNode }) {@@ -117,7 +118,7 @@ function PropertyPicker({);}-export function IssueProperties({ issue, onUpdate, inline }: IssuePropertiesProps) {+export function IssueProperties({ issue, onUpdate, inline, childIssues }: IssuePropertiesProps) {const { selectedCompanyId } = useCompany();const queryClient = useQueryClient();const companyId = issue.companyId ?? selectedCompanyId;@@ -560,17 +561,6 @@ export function IssueProperties({ issue, onUpdate, inline }: IssuePropertiesProp{projectContent}</PropertyPicker>- {issue.parentId && (- <PropertyRow label="Parent">- <Link- to={`/issues/${issue.ancestors?.[0]?.identifier ?? issue.parentId}`}- className="text-sm hover:underline"- >- {issue.ancestors?.[0]?.title ?? issue.parentId.slice(0, 8)}- </Link>- </PropertyRow>- )}-{issue.requestDepth > 0 && (<PropertyRow label="Depth"><span className="text-sm font-mono">{issue.requestDepth}</span>@@ -615,6 +605,52 @@ export function IssueProperties({ issue, onUpdate, inline }: IssuePropertiesProp<span className="text-sm">{timeAgo(issue.updatedAt)}</span></PropertyRow></div>++ {(issue.parentId || (childIssues && childIssues.length > 0)) && (+ <>+ <Separator />+ <div className="space-y-3">+ {issue.parentId && (+ <div>+ <p className="text-xs text-muted-foreground mb-1">Parent task</p>+ <div className="flex items-start gap-1.5">+ {issue.ancestors?.[0] != null && (+ <div className="shrink-0 mt-0.5">+ <StatusIcon status={issue.ancestors[0].status} />+ </div>+ )}+ <Link+ to={`/issues/${issue.ancestors?.[0]?.identifier ?? issue.parentId}`}+ className="text-sm hover:underline"+ >+ {issue.ancestors?.[0]?.title ?? issue.parentId.slice(0, 8)}+ </Link>+ </div>+ </div>+ )}+ {childIssues && childIssues.length > 0 && (+ <div>+ <p className="text-xs text-muted-foreground mb-1">Sub-tasks</p>+ <div className="space-y-0.5">+ {childIssues.map((child) => (+ <div key={child.id} className="flex items-start gap-1.5">+ <div className="shrink-0 mt-0.5">+ <StatusIcon status={child.status} />+ </div>+ <Link+ to={`/issues/${child.identifier ?? child.id}`}+ className="text-sm hover:underline"+ >+ {child.title}+ </Link>+ </div>+ ))}+ </div>+ </div>+ )}+ </div>+ </>+ )}</div>);}diff --git a/ui/src/pages/IssueDetail.tsx b/ui/src/pages/IssueDetail.tsxindex d16a31031a..3181092175 100644--- a/ui/src/pages/IssueDetail.tsx+++ b/ui/src/pages/IssueDetail.tsx@@ -985,7 +985,7 @@ export function IssueDetail() {useEffect(() => {if (issue) {openPanel(- <IssueProperties issue={issue} onUpdate={(data) => updateIssue.mutate(data)} />+ <IssueProperties issue={issue} onUpdate={(data) => updateIssue.mutate(data)} childIssues={childIssues} />);}return () => closePanel();@@ -1699,7 +1699,7 @@ export function IssueDetail() {</SheetHeader><ScrollArea className="flex-1 overflow-y-auto"><div className="px-4 pb-4">- <IssueProperties issue={issue} onUpdate={(data) => updateIssue.mutate(data)} inline />+ <IssueProperties issue={issue} onUpdate={(data) => updateIssue.mutate(data)} inline childIssues={childIssues} /></div></ScrollArea></SheetContent>