Part-DB-server/templates
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
..
admin Add Update Manager for automated Part-DB updates 2026-01-30 21:36:33 +01:00
bundles/TwigBundle/Exception Allow to show what permissions a user is lacking in case of access denied message 2025-09-06 00:10:50 +02:00
components Properly disable the id search by default 2026-01-18 23:48:04 +01:00
form Fixed multi translation of env var tooltip to remove clutter in translation editor 2025-11-30 15:28:22 +01:00
info_providers Bring provider capabilities into a fixed order for better comparison 2026-01-04 17:36:53 +01:00
label_system Increase default height of the PDF preview container from 250px to 280px and so Chromium-based browsers display the PDF toolbar by default. Fixes #1165. (#1171) 2026-01-04 17:14:27 +01:00
log_system Include the query part of the request, when generating the url for the datatables via a custom twig function. 2024-10-16 23:57:02 +02:00
mail Use new settings system to configure the instance Name and homepage banner 2024-05-20 21:14:32 +02:00
maintenance Add Update Manager for automated Part-DB updates 2026-01-30 21:36:33 +01:00
parts Added feature for part IPN suggest with category prefixes (#1054) 2025-11-03 00:31:47 +01:00
projects Use yellow alert box for notifying of empty bom on build, show infinite correclty and added translations 2025-10-18 23:32:20 +02:00
security Fixed login CSFR token error 2025-08-04 23:50:25 +02:00
settings Implemented the ability to set user-defined synonyms/labels for internal element types 2025-11-12 21:35:02 +01:00
tools Merge branch 'master' into settings-bundle 2025-01-17 22:06:18 +01:00
users Use new settings system to configure the instance Name and homepage banner 2024-05-20 21:14:32 +02:00
_navbar.html.twig Add Update Manager for automated Part-DB updates 2026-01-30 21:36:33 +01:00
_sidebar.html.twig Allow to configure sidebar menu via the new settings system 2024-08-07 00:41:06 +02:00
_toast.html.twig Improved styling of a info level flash toast in darkmode 2023-07-03 22:01:39 +02:00
_toast_container.html.twig Fixed toast position on large screens 2023-02-06 22:47:41 +01:00
_turbo_control.html.twig Added an settings option to control what languages to show in the dropdown menu 2025-10-17 22:34:27 +02:00
attachment_list.html.twig Added additional filters to attachment datatable 2025-02-22 17:48:26 +01:00
base.html.twig Made sidebar toggle button smaller 2025-11-30 14:20:50 +01:00
helper.twig Better align the part parameter tables to each other 2025-10-19 15:56:18 +02:00
homepage.html.twig Allow to hide the version number on homepage 2025-09-07 19:43:23 +02:00
main_card.html.twig Added a very basic import dialog for Parts 2023-03-12 19:53:55 +01:00
vars.macro.twig Fixed old usages of base_currency 2024-08-03 23:19:09 +02:00