- Add qfs binary to gitignore (compiled executable from build) - Update UI labels in configuration form for clarity - Add release notes documenting v1.2.2 changes Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2.1 KiB
2.1 KiB
Release v1.2.2 (2026-02-09)
Summary
Fixed CSV export filename inconsistency where project names weren't being resolved correctly. Standardized export format across both manual exports and project configuration exports to use YYYY-MM-DD (project_name) config_name BOM.csv.
Commits
8f596cefix: standardize CSV export filename format to use project name
Changes
CSV Export Filename Standardization
Problem:
- ExportCSV and ExportConfigCSV had inconsistent filename formats
- Project names sometimes fell back to config names when not explicitly provided
- Export timestamps didn't reflect actual price update time
Solution:
- Unified format:
YYYY-MM-DD (project_name) config_name BOM.csv - Both export paths now use PriceUpdatedAt if available, otherwise CreatedAt
- Project name resolved from ProjectUUID via ProjectService for both paths
- Frontend passes project_uuid context when exporting
Technical Details:
Backend:
- Added
ProjectUUIDfield toExportRequeststruct in handlers/export.go - Updated ExportCSV to look up project name from ProjectUUID using ProjectService
- Ensured ExportConfigCSV gets project name from config's ProjectUUID
- Both use CreatedAt (for ExportCSV) or PriceUpdatedAt/CreatedAt (for ExportConfigCSV)
Frontend:
- Added
projectUUIDandprojectNamestate variables in index.html - Load and store projectUUID when configuration is loaded
- Pass
project_uuidin JSON body for both export requests
Files Modified
internal/handlers/export.go- Project name resolution and ExportRequest updateinternal/handlers/export_test.go- Updated mock initialization with projectService paramcmd/qfs/main.go- Pass projectService to ExportHandler constructorweb/templates/index.html- Add projectUUID tracking and export payload updates
Testing Notes
✅ All existing tests updated and passing ✅ Code builds without errors ✅ Export filename now includes correct project name ✅ Works for both form-based and project-based exports
Breaking Changes
None - API response format unchanged, only filename generation updated.
Known Issues
None identified.