Skip to content

Commit 82e351a

Browse files
mohnjilesclaude
andcommitted
Simplify Organize Models dialog layout
Consolidate the busy header into a single column flow: drop the side-by-side Preview card, merge the count pills + filter checkboxes into one row of clickable filter chips with an accent-bordered selected state, inline the metadata warning as a slim banner, and swap the Variables expander for a teaching tip with a toggle button on the pattern textbox. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5b41e8c commit 82e351a

2 files changed

Lines changed: 249 additions & 207 deletions

File tree

StabilityMatrix.Avalonia/ViewModels/Dialogs/OrganizeModelsDialogViewModel.cs

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,17 @@ ModelOrganizationService modelOrganizationService
5454

5555
[ObservableProperty]
5656
[NotifyPropertyChangedFor(nameof(ShowMissingMetadataWarning))]
57+
[NotifyPropertyChangedFor(nameof(ShowMetadataActions))]
5758
public partial int MissingMetadataCount { get; set; }
5859

5960
[ObservableProperty]
6061
[NotifyPropertyChangedFor(nameof(ShowIncompleteMetadataWarning))]
62+
[NotifyPropertyChangedFor(nameof(ShowMetadataActions))]
6163
public partial int IncompleteMetadataCount { get; set; }
6264

65+
[ObservableProperty]
66+
public partial bool IsVariablesTipOpen { get; set; }
67+
6368
[ObservableProperty]
6469
public partial bool ShowReadyItems { get; set; } = true;
6570

@@ -83,6 +88,8 @@ ModelOrganizationService modelOrganizationService
8388

8489
public bool ShowIncompleteMetadataWarning => IncompleteMetadataCount > 0;
8590

91+
public bool ShowMetadataActions => ShowMissingMetadataWarning || ShowIncompleteMetadataWarning;
92+
8693
public string ReadySummary =>
8794
Plan == null
8895
? string.Empty
@@ -205,14 +212,20 @@ private void UpdatePreviewSample()
205212
public override BetterContentDialog GetDialog()
206213
{
207214
var dialog = base.GetDialog();
208-
dialog.MinDialogWidth = 900;
209-
dialog.MaxDialogHeight = 800;
215+
dialog.MinDialogWidth = 1120;
216+
dialog.MaxDialogHeight = 900;
210217
dialog.IsFooterVisible = false;
211218
dialog.CloseOnClickOutside = true;
212219
dialog.ContentVerticalScrollBarVisibility = ScrollBarVisibility.Disabled;
213220
return dialog;
214221
}
215222

223+
[RelayCommand]
224+
private void OpenVariablesTip() => IsVariablesTipOpen = true;
225+
226+
[RelayCommand]
227+
private void ToggleVariablesTip() => IsVariablesTipOpen = !IsVariablesTipOpen;
228+
216229
[RelayCommand(CanExecute = nameof(CanOrganize))]
217230
private void ConfirmOrganize()
218231
{

0 commit comments

Comments
 (0)