feat(ui): repo-import modal — remember folders, search, compact rows, no auto-select
This commit is contained in:
@@ -6,7 +6,7 @@ namespace ClaudeDo.Ui.Tests;
|
||||
public sealed class RepoImportCandidatesTests
|
||||
{
|
||||
[Fact]
|
||||
public void BuildCandidates_NewRepo_IsCheckedAndNotAlreadyAdded()
|
||||
public void BuildCandidates_NewRepo_IsUncheckedAndNotAlreadyAdded()
|
||||
{
|
||||
var found = new[] { new RepoCandidate("repo-a", @"C:\src\repo-a") };
|
||||
var current = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
|
||||
@@ -15,7 +15,7 @@ public sealed class RepoImportCandidatesTests
|
||||
var items = RepoImportModalViewModel.BuildCandidates(found, current, existing);
|
||||
|
||||
Assert.Single(items);
|
||||
Assert.True(items[0].IsChecked);
|
||||
Assert.False(items[0].IsChecked); // new repos are not auto-selected
|
||||
Assert.False(items[0].AlreadyAdded);
|
||||
Assert.Equal("repo-a", items[0].Name);
|
||||
Assert.Equal(@"C:\src\repo-a", items[0].FullPath);
|
||||
|
||||
Reference in New Issue
Block a user