Commit Graph

392 Commits

Author SHA1 Message Date
Renovate Bot
de6eaea861 chore(deps): update python docker tag to v3.14 (from 3.13) 2025-12-15 01:47:16 +00:00
sassanix
7ead2f7aa7 Reverted
Reverted the changes, as performance and core usage was effected
2025-11-16 14:06:47 -04:00
sassanix
9990422f2e Edit modal fixed
Fixed edit modal not working properly
2025-11-13 15:00:17 -04:00
sassanix
295c42b691 House cleaning
Removing unused files
2025-11-13 10:59:51 -04:00
sassanix
23028fe696 Removed vite
Removed vite, and consolidated files to frontend folder
2025-11-13 09:22:59 -04:00
sassanix
62a04e2993 Fixed Dockerfile for frontend
Included vite
2025-11-08 12:37:17 -04:00
sassanix
058d61b0ec Removed unused references and files
House cleaning
2025-11-07 14:13:07 -04:00
sassanix
3e2390beef Removed redundencies
Duplicates removed
2025-11-07 13:54:06 -04:00
sassanix
d762cf006f Deleted unused build output and dependencies in frontend
Deleted unused build output and dependencies in frontend (dist, node_modules).
2025-11-07 12:56:57 -04:00
sassanix
aed0389e77 refactor(frontend): Decouple state and componentize UI rendering
This commit completes the "Improving Structure & Maintainability" phase by fundamentally refactoring the frontend architecture.

- Introduced a central state store (store.js) to act as a single source of truth, eliminating global variables and making data flow predictable through an event-based system.

- Replaced innerHTML with component-based rendering for all major UI elements, including warranty cards, tags, and all modals (Edit, Delete, Claims, Notes, Paperless). This improves security, performance, and maintainability.

- Created reusable UI component modules (warrantyCard.js, editModal.js, claims.js, etc.) and used an HTML <template> for the main warranty card to separate markup from logic.
2025-11-07 12:38:26 -04:00
sassanix
bf7476ecf7 Update README with CSV import requirements
Added instructions for CSV import and product information entry requirements.
2025-10-30 18:18:19 -03:00
sassanix
cad127078c changelog update 2025-10-30 15:23:51 -03:00
sassanix
6b3cbff7b0 Updated cache and version checker 1.0.2 2025-10-30 15:11:51 -03:00
sassanix
3df88032bb Add exact expiration date support and enhance CSV import behavior
* Added support for `ExpirationDate` in CSV import when duration fields are blank and `IsLifetime` is false. Updated documentation accordingly.
* Enhanced CSV import to allow partial commits with per-row errors and detailed feedback; returns 200 for partial success.
* Implemented automatic duplicate name suffixing (`Name (1)`, `Name (2)`, etc.) to prevent import failures on same-name entries.
2025-10-30 15:07:00 -03:00
sassanix
c4e2100944 Expiration dates import 2025-10-30 12:43:38 -03:00
sassanix
ede4860444 Merge pull request #180 from Erwan-loot/#177-permissions
Fix permissions for upload folder
2025-10-27 20:29:33 -03:00
Erwan Hervé
b63f7d2086 Enhance permissions fixing process for upload folder and database 2025-10-27 18:37:32 +01:00
sassanix
70bcfa0345 Enhance localization support to 20 languages
Updated localization support to include 20 languages and added Polish and Hebrew to the language selection.
2025-10-26 23:25:58 -03:00
sassanix
290897e81e Updated to version
Simple update to the version checker and version number.
1.0.1
2025-10-26 22:28:53 -03:00
sassanix
9f123776e8 Container startup loop fixed
- Container startup loop caused by insufficient PostgreSQL privileges in the startup permissions script.
  - Wrapped the `ALTER ROLE ... CREATEROLE` in a safe DO block with exception handling so missing privilege is logged as a NOTICE and startup continues.
  - No feature changes; service now starts normally without elevated DB privileges.
  - _Files: `backend/fix_permissions.sql`_
2025-10-26 22:22:26 -03:00
sassanix
ffa9598dd6 Updated the status 2025-10-25 11:31:49 -03:00
sassanix
14cbf75bed Model Number Field, i18n Expansion, Search & UI Enhancements
* Added Model Number field to warranties (backend + frontend integration)
* Expanded localization: added Polish and Hebrew (with RTL), completed warranty claim translations for all locales
* Enhanced search: Model Number now searchable on Home and Status pages
* Improved Status page with Archived warranties filtering and display
* Fixed Global view logic for archived warranties and Model Number visibility
* Corrected missing Model Number translations across all languages
* Improved Add Warranty modal responsiveness on small screens
* Fixed document URL visibility bug and Chrome horizontal scrollbar issue
* Updated major dependencies (Python 3.14, gevent 25.9.1, Flask 3.1.2, etc.)
* Added Reddit community link and localization on About page
* PWA and cache updates for faster rollout and consistent asset refresh
1.0.0
2025-10-25 11:01:35 -03:00
sassanix
d4dd4abfaf Update audit trail status to completed 2025-10-19 22:38:03 -03:00
sassanix
286aa2b88a Introduced a new Administrator Audit Trail system for enhanced accountability and visibility of administrative changes.
- Added new `audit_log` table with supporting migration (048)
- Implemented centralized `create_audit_log` helper to record key admin actions
- Logged events include:
  - Site setting changes (sensitive data masked)
  - User updates and deletions
- Added API endpoint `GET /api/admin/audit-trail` for viewing recent audit entries
- Created new frontend section in Settings for viewing the Audit Trail
  - Displays timestamp, user, action, and details with safe HTML escaping
- Updated backend structure for better modularity and security

Files:
`backend/migrations/048_create_audit_log_table.sql`,
`backend/audit_logger.py`,
`backend/admin_routes.py`,
`frontend/settings-new.html`,
`frontend/settings-new.js`
2025-10-19 22:28:16 -03:00
sassanix
16997f6142 Merge pull request #163 from sassanix/renovate/major-25-python-packages
Update dependency gevent to v25 (from 24.11.1)
2025-10-18 14:24:14 -03:00
sassanix
95931f34a6 Merge pull request #162 from sassanix/renovate/font-awesome-7.x
Update dependency font-awesome to v7 (from 6.7.2)
2025-10-18 14:23:59 -03:00
sassanix
986646821a Merge pull request #161 from sassanix/renovate/major-6-python-packages
Update dependency flask-cors to v6 (from 4.0.2)
2025-10-18 14:23:38 -03:00
sassanix
ab3104fba0 Merge pull request #158 from sassanix/renovate/python-3.x
Update python Docker tag to v3.14 (from 3.13)
2025-10-18 14:23:03 -03:00
Renovate Bot
c6fbdebe61 Update dependency gevent to v25 (from 24.11.1) 2025-10-18 17:21:28 +00:00
Renovate Bot
1623aa9060 Update dependency font-awesome to v7 (from 6.7.2) 2025-10-18 17:21:25 +00:00
Renovate Bot
16df9c4d3d Update dependency flask-cors to v6 (from 4.0.2) 2025-10-18 17:21:23 +00:00
Renovate Bot
0495764a08 Update python Docker tag to v3.14 (from 3.13) 2025-10-18 17:21:18 +00:00
sassanix
9ae8c35b60 Updated Dockerfile with corrected ARG 2025-10-18 14:04:47 -03:00
sassanix
52ded2c995 Merge pull request #164 from sassanix/renovate/major-17-debian-packages
Update dependency postgresql-client to v17 (from 15.10-0+deb13u1)
2025-10-18 13:47:45 -03:00
sassanix
6abea73985 Merge pull request #159 from sassanix/renovate/python-packages
Update Python packages
2025-10-18 13:46:40 -03:00
sassanix
efada03c2c Merge pull request #157 from sassanix/renovate/font-awesome-6.x
Update dependency font-awesome to v6.7.2 (from 6.4.0)
2025-10-18 13:44:07 -03:00
sassanix
cf8532a74e Merge pull request #156 from sassanix/renovate/renovatebot-github-action-43.x
Update renovatebot/github-action action to v43.0.17 (from v43.0.16)
2025-10-18 13:43:41 -03:00
sassanix
56e23b6a0e Merge pull request #155 from sassanix/renovate/python-3.13-slim-trixie
Update python:3.13-slim-trixie Docker digest to 0796012 (from 087a9f3)
2025-10-18 13:43:11 -03:00
Renovate Bot
ea387bf74a Update dependency postgresql-client to v17 (from 15.10-0+deb13u1) 2025-10-18 16:35:04 +00:00
Renovate Bot
62c98bd70b Update Python packages 2025-10-18 16:34:49 +00:00
Renovate Bot
f1b645e77e Update dependency font-awesome to v6.7.2 (from 6.4.0) 2025-10-18 16:34:43 +00:00
Renovate Bot
6611eca2de Update renovatebot/github-action action to v43.0.17 (from v43.0.16) 2025-10-18 16:34:40 +00:00
Renovate Bot
ba77a54aed Update python:3.13-slim-trixie Docker digest to 0796012 (from 087a9f3) 2025-10-18 16:34:38 +00:00
sassanix
46b290c2eb Merge pull request #154 from Erwan-loot/feature/renovate
Add Renovate configuration and update Dockerfile dependencies
2025-10-18 13:22:08 -03:00
sassanix
557ad8eee7 Add Model Number display to Global View warranty cards
* Updated backend global and archived warranty queries to include the `model_number` field so that it is available in API responses.
* Ensured the Global view now correctly displays the Model Number on warranty cards in both active and archived lists.
* Updated relevant backend routes for global queries.
* Files modified: `backend/warranties_routes.py`
2025-10-18 13:17:32 -03:00
Erwan Hervé
d5f077f42c Update Dockerfile to use specific versions for dependencies and enhance renovate.json with package rules 2025-10-09 21:11:51 +02:00
Erwan Hervé
a70883c153 Add Renovate workflow configuration 2025-10-09 21:10:51 +02:00
sassanix
96f2859975 Fix global warranties view, add Model Number field, and enhance modal tab responsiveness
* **Fixed:**

  * Global view on Index page now correctly shows warranties from all users, including archived ones.
  * Added `GET /api/warranties/global/archived` and unified global queries with correlated subqueries to avoid missing or collapsed rows.
  * Updated frontend logic to merge archived warranties from the new endpoint when Global scope and Status = “All.”
  * Bumped `script.js` and service worker cache to ensure clients receive updated logic.
  * Updated files: `backend/warranties_routes.py`, `frontend/script.js`, `frontend/sw.js`, `frontend/index.html`, `frontend/status.html`.

* **Added:**

  * Introduced **Model Number** field to warranties.
  * Backend: Added `model_number` column, integrated into GET/POST/PUT routes.
  * Frontend: Added Model Number input in New/Edit modals and display on warranty cards.
  * Updated files: `backend/migrations/047_add_model_number_to_warranties.sql`, `backend/warranties_routes.py`, `frontend/index.html`, `frontend/status.html`, `frontend/script.js`, `locales/en/translation.json`.

* **Enhanced:**

  * Improved **Add Warranty modal** tab alignment for responsive layouts (≤740px).
  * Adjusted tab label size and spacing to prevent wrapping while keeping icons and labels visible.
  * Ensured consistent five-step progress indicator across all breakpoints.
  * Updated file: `frontend/style.css`.
2025-10-09 15:04:13 -03:00
sassanix
9007c9c23a Merge pull request #153 from Erwan-loot/feature/optimize-dockerfile
Optimize Docker setup
2025-10-09 09:38:39 -03:00
Erwan Hervé
f086c4f016 Refactor Dockerfile to simplify copying Python dependencies from builder stage 2025-10-09 13:45:04 +02:00