Part-DB-server/templates/admin
Sebastian Almberg 42fe781ef8 Add Update Manager for automated Part-DB updates
This feature adds a comprehensive Update Manager similar to Mainsail's
update system, allowing administrators to update Part-DB directly from
the web interface.

Features:
- Web UI at /admin/update-manager showing current and available versions
- Support for Git-based installations with automatic update execution
- Maintenance mode during updates to prevent user access
- Automatic database backup before updates
- Git rollback points for recovery (tags created before each update)
- Progress tracking with real-time status updates
- Update history and log viewing
- Downgrade support with appropriate UI messaging
- CLI command `php bin/console partdb:update` for server-side updates

New files:
- UpdateManagerController: Handles all web UI routes
- UpdateCommand: CLI command for running updates
- UpdateExecutor: Core update execution logic with safety mechanisms
- UpdateChecker: GitHub API integration for version checking
- InstallationTypeDetector: Detects installation type (Git/Docker/ZIP)
- MaintenanceModeSubscriber: Blocks user access during maintenance
- UpdateExtension: Twig functions for update notifications

UI improvements:
- Update notification in navbar for admins when update available
- Confirmation dialogs for update/downgrade actions
- Downgrade-specific text throughout the interface
- Progress page with auto-refresh
2026-01-30 21:36:33 +01:00
..
update_manager Add Update Manager for automated Part-DB updates 2026-01-30 21:36:33 +01:00
_attachments.html.twig Renamed AdminPages/ templates folder to recommended snake_case style 2023-02-04 23:34:39 +01:00
_delete_form.html.twig Forbid a user to delete himself on the admin page 2023-10-24 13:32:44 +02:00
_duplicate.html.twig Renamed AdminPages/ templates folder to recommended snake_case style 2023-02-04 23:34:39 +01:00
_export_form.html.twig Renamed AdminPages/ templates folder to recommended snake_case style 2023-02-04 23:34:39 +01:00
_info.html.twig Renamed AdminPages/ templates folder to recommended snake_case style 2023-02-04 23:34:39 +01:00
_parameters.html.twig Renamed AdminPages/ templates folder to recommended snake_case style 2023-02-04 23:34:39 +01:00
attachment_type_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
base_admin.html.twig Added custom part status (#1053) 2025-10-27 21:58:16 +01:00
base_company_admin.html.twig Added possibility to define alternative names on data structures 2023-07-16 22:59:46 +02:00
category_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
currency_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
footprint_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
group_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
label_profile_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
manufacturer_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
measurement_unit_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
part_custom_state_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
project_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
storelocation_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
supplier_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
user_admin.html.twig Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00