feat(data): store a nest's job number apart from the customer

Job numbers were going into Customer ("GM / 4980-88R"), which breaks
sorting, searching and grouping by customer. A nest now has its own
Job # field: one or several jobs separated by commas, normalized to
"a, b". It is saved in nest.json and the server (schema v21), edited
beside Customer in Edit Nest (WinForms and Avalonia), shown as a
sortable, searchable column in the Open list, and printed on the nest
report and in MCP output.

Deploy the server before the desktop: the open overlay takes the
server's job number, and an older server has none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ajandClaude Opus 5.5 committed 2026-12-03 10:21:04 -05:00
1 parent 857b88a2c7
commit bfdfefeb9e
40 files changed
+304 -44

No files matched your search

+6
View File
@@ -23,6 +23,12 @@ public sealed class NestRecord
public string Customer { get; set; } = "";
/// <summary>
/// The nest's job number or comma-separated job numbers (<see cref="Nest.JobNumber"/>);
/// blank when the nest has none or the server predates job numbers.
/// </summary>
public string JobNumber { get; set; } = "";
public DateTime DateCreated { get; set; }
public DateTime DateModified { get; set; }
+2
View File
@@ -16,6 +16,7 @@ public static class NestRecordFactory
ArgumentNullException.ThrowIfNull(record);
nest.Name = record.Name;
nest.Customer = record.Customer;
nest.JobNumber = record.JobNumber;
nest.Notes = record.Comments;
nest.Status = record.Status;
nest.MadeBy = record.MadeBy;
@@ -42,6 +43,7 @@ public static class NestRecordFactory
Id = id,
Name = nest.Name ?? "",
Customer = nest.Customer ?? "",
JobNumber = nest.JobNumber ?? "",
DateCreated = nest.DateCreated,
DateModified = nest.DateLastModified,
Material = nest.Material?.Name ?? "",
+1 -1
View File
@@ -126,7 +126,7 @@ public sealed class NestSaveSession
private static string Normalize(string? url) => (url ?? "").Trim().TrimEnd('/');
private static bool SameEditableMetadata(NestRecord a, NestRecord b) =>
a.Name == b.Name && a.Customer == b.Customer && a.DateCreated == b.DateCreated
a.Name == b.Name && a.Customer == b.Customer && a.JobNumber == b.JobNumber && a.DateCreated == b.DateCreated
&& a.DateModified == b.DateModified && a.Material == b.Material && a.MaterialGrade == b.MaterialGrade
&& a.Thickness == b.Thickness && a.ThicknessName == b.ThicknessName && a.Status == b.Status && a.PlateCount == b.PlateCount && a.PartCount == b.PartCount
&& a.Comments == b.Comments && a.MadeBy == b.MadeBy;
+1
View File
@@ -17,4 +17,5 @@ public enum NestSortField
Comments,
FileSize,
MaterialGrade,
JobNumber,
}