mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-12-03 15:39:26 -05:00
refactor: share library record copies and MCP search page formatting
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
70ac1c7d6f
commit
fd3ee24082
4 files changed
+43
-47
No files matched your search
@@ -59,4 +59,25 @@ public sealed class DrawingLibraryRecord
|
||||
/// measured it; null until then. Server-computed and ignored on upload.
|
||||
/// </summary>
|
||||
public DrawingGeometrySummary? Geometry { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A copy of every field but the server-computed ones (package hash and size, saved time
|
||||
/// and geometry), which keep their defaults.
|
||||
/// </summary>
|
||||
internal DrawingLibraryRecord CopyWithoutServerFields() => new()
|
||||
{
|
||||
Id = Id,
|
||||
Revision = Revision,
|
||||
Name = Name,
|
||||
Customer = Customer,
|
||||
MaterialName = MaterialName,
|
||||
MaterialGrade = MaterialGrade,
|
||||
Thickness = Thickness,
|
||||
Units = Units,
|
||||
CutType = CutType,
|
||||
Notes = Notes,
|
||||
Settings = Settings,
|
||||
Archived = Archived,
|
||||
SavedBy = SavedBy,
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user