chore: prepare for v2.0 release
- Remove bin/obj/publish from git tracking - Update .gitignore for .NET project (source only) - Add release.ps1 local publish script (replaces Gitea workflow) - Remove .gitea/workflows/release.yml - Fix duplicate group names to show library names - Fix HTML export to show Name column in duplicates report - Fix consolidated permissions HTML to show folder/library names Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -36,11 +36,24 @@ public class DuplicatesService : IDuplicatesService
|
||||
var groups = allItems
|
||||
.GroupBy(item => MakeKey(item, options))
|
||||
.Where(g => g.Count() >= 2)
|
||||
.Select(g => new DuplicateGroup
|
||||
.Select(g =>
|
||||
{
|
||||
GroupKey = g.Key,
|
||||
Name = g.First().Name,
|
||||
Items = g.ToList()
|
||||
var items = g.ToList();
|
||||
var name = items[0].Name;
|
||||
var libraries = items
|
||||
.Select(i => i.Library)
|
||||
.Where(l => !string.IsNullOrEmpty(l))
|
||||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||
.OrderBy(l => l, StringComparer.OrdinalIgnoreCase)
|
||||
.ToList();
|
||||
return new DuplicateGroup
|
||||
{
|
||||
GroupKey = g.Key,
|
||||
Name = libraries.Count > 0
|
||||
? $"{name} ({string.Join(", ", libraries)})"
|
||||
: name,
|
||||
Items = items
|
||||
};
|
||||
})
|
||||
.OrderByDescending(g => g.Items.Count)
|
||||
.ThenBy(g => g.Name)
|
||||
|
||||
Reference in New Issue
Block a user