Show manual sync-conflict fix instructions in-app instead of deep-linking to Help
NSWorkspace.shared.open() silently drops #fragment anchors on file:// URLs, so "Fix It Myself" always landed on the Help Book index instead of the relevant section. Replaced with GitSyncManualFixSheet, an in-app sheet showing the real conflicting filenames and sync path. Also indent conversation rows one level deeper than their containing folder in the sidebar and conversation list, so nesting is visible on the conversations themselves and not just the folder headers.
This commit is contained in:
@@ -131,6 +131,27 @@ struct ChatView: View {
|
||||
onDeny: { MCPService.shared.denyPendingPersonalDataAction() }
|
||||
)
|
||||
}
|
||||
.sheet(item: Binding(
|
||||
get: { GitSyncService.shared.pendingGitConflict },
|
||||
set: { _ in }
|
||||
)) { pending in
|
||||
GitSyncConflictSheet(
|
||||
pending: pending,
|
||||
onFixForMe: { await GitSyncService.shared.autoResolveUntrackedConflict(pending) },
|
||||
onFixMyself: { GitSyncService.shared.showManualFixInstructions(for: pending) },
|
||||
onDismiss: { GitSyncService.shared.dismissPendingGitConflict() }
|
||||
)
|
||||
}
|
||||
.sheet(item: Binding(
|
||||
get: { GitSyncService.shared.pendingManualFixInstructions },
|
||||
set: { _ in }
|
||||
)) { pending in
|
||||
GitSyncManualFixSheet(
|
||||
files: pending.files,
|
||||
syncPath: SettingsService.shared.syncLocalPath,
|
||||
onDone: { GitSyncService.shared.dismissManualFixInstructions() }
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user