Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(projects): show URL tooltip on already-attached repos in Add Resource list (#2111)
Bohan Jiang8b0eeb061598
diff --git a/packages/views/projects/components/project-resources-section.tsx b/packages/views/projects/components/project-resources-section.tsxindex 3d895976ca..58c100320b 100644--- a/packages/views/projects/components/project-resources-section.tsx+++ b/packages/views/projects/components/project-resources-section.tsx@@ -118,16 +118,21 @@ export function ProjectResourcesSection({ projectId }: { projectId: string }) {<div className="space-y-1">{workspace.repos.map((repo) => {const isAttached = attachedUrls.has(repo.url);+ const isDisabled = isAttached || createResource.isPending;return (+ // Use aria-disabled instead of the native `disabled` attribute so+ // hover events still reach the tooltip trigger on attached rows+ // (browsers suppress pointer events on disabled form controls).<buttonkey={repo.url}type="button"- disabled={isAttached || createResource.isPending}+ aria-disabled={isDisabled}onClick={async () => {+ if (isDisabled) return;await handleAttach(repo.url);setAddOpen(false);}}- className="flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-xs text-left hover:bg-accent transition-colors disabled:opacity-50 disabled:cursor-not-allowed"+ className="flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-xs text-left hover:bg-accent transition-colors aria-disabled:opacity-50 aria-disabled:cursor-not-allowed aria-disabled:hover:bg-transparent"><FolderGit className="size-3.5" /><Tooltip>