diff --git a/apps/staged/src/lib/features/branches/BranchCard.svelte b/apps/staged/src/lib/features/branches/BranchCard.svelte index 3aab3563..e16fdffe 100644 --- a/apps/staged/src/lib/features/branches/BranchCard.svelte +++ b/apps/staged/src/lib/features/branches/BranchCard.svelte @@ -19,6 +19,7 @@ import type { Branch, BranchTimeline as BranchTimelineData, + ProjectRepo, SessionStatusPayload, WorkspaceStatus, } from '../../types'; @@ -43,7 +44,7 @@ interface Props { branch: Branch; - repoLabel?: { githubRepo: string; subpath: string | null; reason?: string | null } | null; + repoLabel?: ProjectRepo | null; projectName?: string; deleting?: boolean; worktreeError?: string; @@ -52,6 +53,7 @@ onRename?: (branchName: string) => void; onRetryWorktree?: () => void; onWorkspaceStatusChange?: (status: WorkspaceStatus, workstationId?: number | null) => void; + onDismissReason?: (projectRepoId: string) => void; } let { @@ -65,6 +67,7 @@ onRename, onRetryWorktree, onWorkspaceStatusChange, + onDismissReason, }: Props = $props(); // Determine if this is a local or remote branch @@ -521,6 +524,7 @@ if (branch.projectRepoId) { try { await commands.clearProjectRepoReason(branch.projectRepoId); + onDismissReason?.(branch.projectRepoId); } catch (e) { console.error('Failed to clear repo reason:', e); } diff --git a/apps/staged/src/lib/features/branches/BranchCardActionsBar.svelte b/apps/staged/src/lib/features/branches/BranchCardActionsBar.svelte index af00398f..ad1f6d44 100644 --- a/apps/staged/src/lib/features/branches/BranchCardActionsBar.svelte +++ b/apps/staged/src/lib/features/branches/BranchCardActionsBar.svelte @@ -30,7 +30,7 @@ import SineWave from '../../shared/SineWave.svelte'; import ActionOutputModal from '../actions/ActionOutputModal.svelte'; import { listen, type UnlistenFn } from '@tauri-apps/api/event'; - import type { Branch } from '../../types'; + import type { Branch, ProjectRepo } from '../../types'; import * as commands from '../../api/commands'; import type { ProjectAction } from '../../api/commands'; import { @@ -58,7 +58,7 @@ interface Props { branch: Branch; - repoLabel?: { githubRepo: string; subpath: string | null; reason?: string | null } | null; + repoLabel?: ProjectRepo | null; isLocal: boolean; isRemote: boolean; remoteWorkspaceStatus: string | null; diff --git a/apps/staged/src/lib/features/branches/BranchCardHeaderInfo.svelte b/apps/staged/src/lib/features/branches/BranchCardHeaderInfo.svelte index 2a766f0f..3f9a0f07 100644 --- a/apps/staged/src/lib/features/branches/BranchCardHeaderInfo.svelte +++ b/apps/staged/src/lib/features/branches/BranchCardHeaderInfo.svelte @@ -1,10 +1,11 @@