feat(ui): repo-import modal — remember folders, search, compact rows, no auto-select

This commit is contained in:
mika kuns
2026-05-29 16:29:22 +02:00
parent bb8b3e235a
commit 6d0973c67c
10 changed files with 181 additions and 26 deletions

View File

@@ -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);