Files
buzz/desktop/src/features/projects/ui/projectGitErrorToast.ts
Thomas Petersen bdc8e5a480 feat(desktop): make project workspaces repository-aware
Unify project navigation, repository controls, contextual agent chat, and compact work-item views so repository state and access recovery stay visible in one workspace.

Signed-off-by: Thomas Petersen <thomasp@squareup.com>
2026-08-15 09:57:50 -04:00

18 lines
557 B
TypeScript

import { toast } from "sonner";
import { projectCloneErrorPresentation } from "@/features/projects/lib/projectGitError";
import type { ProjectRepoUnavailableReason } from "@/features/projects/lib/projectRepoAvailability";
export function showProjectCloneErrorToast(
error: unknown,
cloneUrl?: string | null,
unavailableReason?: ProjectRepoUnavailableReason,
) {
const presentation = projectCloneErrorPresentation(
error,
cloneUrl,
unavailableReason,
);
toast.error(presentation.title, { description: presentation.description });
}