feat: show revision column in file browser

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-20 08:54:13 -05:00
parent 4707e96359
commit 3554bb6110
2 changed files with 8 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ namespace FabWorks.Api.Controllers
c.DxfFilePath,
c.ContentHash,
c.Thickness,
c.Revision,
DrawingNumber = c.BomItem.ExportRecord.DrawingNumber,
CreatedAt = c.BomItem.ExportRecord.ExportedAt
});
@@ -70,6 +71,7 @@ namespace FabWorks.Api.Controllers
FileType = "dxf",
DrawingNumber = c.DrawingNumber,
Thickness = c.Thickness,
Revision = c.Revision,
CreatedAt = c.CreatedAt
});
}
@@ -85,7 +87,8 @@ namespace FabWorks.Api.Controllers
r.Id,
r.DrawingNumber,
r.PdfContentHash,
r.ExportedAt
r.ExportedAt,
DrawingRevision = r.Drawing != null ? (int?)r.Drawing.Revision : null
});
if (!string.IsNullOrWhiteSpace(search))
@@ -113,6 +116,7 @@ namespace FabWorks.Api.Controllers
ContentHash = r.PdfContentHash,
FileType = "pdf",
DrawingNumber = r.DrawingNumber,
Revision = r.DrawingRevision,
CreatedAt = r.ExportedAt
});
}
@@ -179,6 +183,7 @@ namespace FabWorks.Api.Controllers
public string FileType { get; set; }
public string DrawingNumber { get; set; }
public double? Thickness { get; set; }
public int? Revision { get; set; }
public DateTime CreatedAt { get; set; }
}
}