From 19809c61d09c63c59f8fe584d637eb420c89099f Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Wed, 21 Oct 2026 08:40:05 -0400 Subject: [PATCH] feat(sets): browse the library inside the set editor Adding drawings to a set meant opening the library dialog, then the set editor, then a second copy of the library in pick mode, then backing out again. The set editor now has the library as its left pane (unfiltered, searchable, sortable, paged): select drawings and Add to Set, double-click or press Enter. Members already in the set are greyed. The library dialog's pick mode had no other caller and is removed. Co-Authored-By: Claude Opus 5.5 --- .../Forms/DrawingSetFormsTests.cs | 64 +++- OpenNest/Forms/DrawingLibraryForm.cs | 74 +--- OpenNest/Forms/EditDrawingSetForm.Designer.cs | 346 ++++++++++++++++-- OpenNest/Forms/EditDrawingSetForm.cs | 202 ++++++++-- docs/nest-storage.md | 9 +- 5 files changed, 547 insertions(+), 148 deletions(-) diff --git a/OpenNest.WinForms.Tests/Forms/DrawingSetFormsTests.cs b/OpenNest.WinForms.Tests/Forms/DrawingSetFormsTests.cs index 691ebb62..ccf36d1b 100644 --- a/OpenNest.WinForms.Tests/Forms/DrawingSetFormsTests.cs +++ b/OpenNest.WinForms.Tests/Forms/DrawingSetFormsTests.cs @@ -1,3 +1,4 @@ +using System.Drawing; using System.Reflection; using System.Windows.Forms; using OpenNest.Data; @@ -31,14 +32,17 @@ public class DrawingSetFormsTests { using var editor = new EditDrawingSetForm(edit, library, Server); editor.ShowMessage = (text, _, _) => throw new Xunit.Sdk.XunitException(text); - editor.PickDrawings = () => (new[] { bracket, gusset }, 3); editor.Show(); var save = Field