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:
ajandClaude Opus 5.5 committed 2026-11-29 12:06:37 -05:00
1 parent 70ac1c7d6f
commit fd3ee24082
4 files changed
+43 -47

No files matched your search

+21
View File
@@ -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,
};
}