feat: expose file attachment stats as item properties #54
Reference in New Issue
Block a user
Delete Branch "issue-37-file-stats"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #37
Surfaces file attachment statistics in item API responses and the item table UI.
Changes
Backend (3 files):
BatchGetFileStats()inaudit_queries.go— batch query onitem_filestable (same pattern asBatchCheckBOM)file_countandfiles_total_sizeadded toItemResponseinhandlers.goHandleListItems,HandleGetItem, andHandleGetItemByUUIDhas_filescomputed field added to audit completeness scoring (weight 1 for manufactured items)Frontend (2 files):
file_countandfiles_total_sizeadded toIteminterface intypes.tsItemTable— shows count (or —), hover tooltip shows total sizeNo migration needed — stats are computed from existing
item_filestable.