feat: implement Component Audit UI with completeness scoring and inline editing #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Summary
Implement the Component Audit tool as designed in
docs/COMPONENT_AUDIT.md. The API scoring logic already exists ininternal/api/audit_handlers.go— this issue covers building the web UI and completing any remaining backend work.Background
The parts database has grown organically. Many items have only a part number, description, and category. The property schema defines dozens of fields per category but most items have few populated. There is no way to see which items are missing data or to prioritize what needs filling in.
Design Reference
Full design specification:
docs/COMPONENT_AUDIT.mdWhat Already Exists
Backend (
internal/api/audit_handlers.go)HandleAuditCompleteness()— query items, compute scores against schema, return paginated JSONHandleAuditItemDetail()— single item with field-by-field breakdownGET /api/audit/completeness,GET /api/audit/completeness/{partNumber}What Needs Building
Phase 1: Audit Page UI
New template:
internal/api/templates/audit.htmlPhase 2: Inline Edit Panel
PUT /api/items/{pn}and revision property update endpointsPhase 3: Tracking and Reporting
audit_snapshotstablePhase 4: Batch AI Assistance
Database Changes
Phase 1-2: None
Completeness computed at query time from existing data.
Phase 3: New table
Tasks
base.htmlnavigationaudit.htmltemplate with summary bar and tableHandleAuditPagehandler and registerGET /auditroute