refactor(config): consolidate commit types into CommitTypeRegistry

Replaces six scattered "chore" literals across TaskEntity, ListEntity,
WorkerHub, ListsIslandViewModel, ListNavItemViewModel and the inline
commit type list in ListSettingsModalViewModel.
This commit is contained in:
mika kuns
2026-05-19 09:00:00 +02:00
parent 5308ba3136
commit 5da69ee6aa
7 changed files with 20 additions and 11 deletions

View File

@@ -1,3 +1,4 @@
using ClaudeDo.Data.Models;
using CommunityToolkit.Mvvm.ComponentModel;
namespace ClaudeDo.Ui.ViewModels.Islands;
@@ -10,7 +11,7 @@ public sealed partial class ListNavItemViewModel : ViewModelBase
[ObservableProperty] private int _count;
[ObservableProperty] private bool _isActive;
[ObservableProperty] private string? _workingDir;
[ObservableProperty] private string _defaultCommitType = "chore";
[ObservableProperty] private string _defaultCommitType = CommitTypeRegistry.DefaultType;
public string? IconKey { get; init; }
public string? DotColorKey { get; init; }
}