Fine-Grained Warranty Durations, File Uploads, and Config Improvements
This release introduces more precise warranty tracking, improved file support, and enhanced environment-based configurability, along with key fixes and code cleanup.
Added
-
Granular Warranty Duration Input
Replaced the old single "Warranty Period (Years)" field with separate fields for Years, Months, and Days.- Enhanced input flexibility and clearer warranty displays (e.g., “2 years, 6 months”).
- Updated forms, frontend logic, backend APIs, validation, database schema, and CSV support.
-
Additional File Upload Support
Users can now upload an extra ZIP/RAR document (e.g., photos, receipts, or extended warranties) per warranty. -
Environment-Based Configurations
SECRET_KEY
: JWT/session secrets can now be set via env vars (e.g.,SECRET_KEY=your_secure_key
).MAX_UPLOAD_MB
&NGINX_MAX_BODY_SIZE_VALUE
: Configure max file upload limits for Flask and Nginx via env vars.
Fixed
- Backend Crash (IndentationError) during CSV import.
- Migration Bug referencing the wrong column in
021_change_warranty_duration_to_components.sql
. - Removed duplicate
smtplib
import causing conflicts. Thanks, @clmcavaney!
House Cleaning
- Removed outdated settings files:
settings.html
,settings.script.js
, andsettings_redirect.html
.