Reuse inbox issue column controls in issues lists

This commit is contained in:
dotta 2026-04-07 16:45:57 -05:00
parent 1cbb0a5e34
commit ee82a4f243
5 changed files with 680 additions and 449 deletions

View file

@ -173,6 +173,11 @@ function ProjectIssuesList({ projectId, companyId }: { projectId: string; compan
enabled: !!companyId,
refetchInterval: 5000,
});
const { data: projects } = useQuery({
queryKey: queryKeys.projects.list(companyId),
queryFn: () => projectsApi.list(companyId),
enabled: !!companyId,
});
const liveIssueIds = useMemo(() => {
const ids = new Set<string>();
@ -203,6 +208,7 @@ function ProjectIssuesList({ projectId, companyId }: { projectId: string; compan
isLoading={isLoading}
error={error as Error | null}
agents={agents}
projects={projects}
liveIssueIds={liveIssueIds}
projectId={projectId}
viewStateKey={`paperclip:project-view:${projectId}`}