fix(ui): apply blue PLANNED badge for finalized planning, drop dead converter statics
Bind the planning-parent badge to IsPlanActive/IsPlanFinalized so a finalized plan shows the blue "planned" style instead of staying amber. Remove the unused Instance statics on BoolToItalicConverter and BoolToDraftOpacityConverter (registered via the App.axaml resource dictionary). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -56,6 +56,9 @@ public sealed partial class TaskRowViewModel : ViewModelBase
|
||||
_ => null,
|
||||
};
|
||||
|
||||
public bool IsPlanActive => PlanningPhase == PlanningPhase.Active;
|
||||
public bool IsPlanFinalized => PlanningPhase == PlanningPhase.Finalized;
|
||||
|
||||
public bool HasBranch => !string.IsNullOrWhiteSpace(Branch);
|
||||
public bool HasDiff => DiffAdditions > 0 || DiffDeletions > 0;
|
||||
public bool HasSteps => StepsCount > 0;
|
||||
@@ -121,6 +124,8 @@ public sealed partial class TaskRowViewModel : ViewModelBase
|
||||
{
|
||||
OnPropertyChanged(nameof(IsPlanningParent));
|
||||
OnPropertyChanged(nameof(PlanningBadge));
|
||||
OnPropertyChanged(nameof(IsPlanActive));
|
||||
OnPropertyChanged(nameof(IsPlanFinalized));
|
||||
OnPropertyChanged(nameof(CanOpenPlanningSession));
|
||||
OnPropertyChanged(nameof(CanResumeOrDiscardPlanning));
|
||||
OnPropertyChanged(nameof(CanQueuePlan));
|
||||
|
||||
Reference in New Issue
Block a user