Part-DB-server/templates
Sebastian Almberg d346708150
Add Docker update support via Watchtower integration (#1330)
* Add Docker update support via Watchtower integration

Add web-based Docker container updates using Watchtower HTTP API.
When configured with WATCHTOWER_API_URL and WATCHTOWER_API_TOKEN
environment variables, administrators can trigger container updates
from the Update Manager page.

Features:
- WatchtowerClient service for Watchtower HTTP API communication
- Docker update progress page with animated Docker whale logo
- Real-time step tracking: Trigger, Pull, Stop, Restart, Health Check, Verify
- CSP-compatible progress bar using CSS classes
- Translated UI strings via Stimulus values
- Health endpoint polling to detect container restart
- Watchtower setup documentation for Docker installations
- WatchtowerClient made nullable for non-Docker installations
- Unit tests for WatchtowerClient

* Fixed translation message IDs

* Switch Watchtower docs to maintained nicholas-fedor fork

The original containrrr/watchtower is no longer maintained (last release
Nov 2023). Point users to the drop-in compatible active fork and add an
info note explaining why. No code changes — the HTTP API is identical,
so WatchtowerClient works against either image.

* Fixed exception when github is not reachable

* Only show version string in health endpoint, when user has permissions

* Do not expose watchtower API port in example docker-compose file

* Show if updates, backup restore and backup download are allowed in update manager page

* Report 'not authorized' for version in health endpoint if user lacks permission

---------

Co-authored-by: Jan Böhmer <mail@jan-boehmer.de>
2026-05-03 23:00:31 +02:00
..
admin Add Docker update support via Watchtower integration (#1330) 2026-05-03 23:00:31 +02:00
attachments Allow file downloads and modals in HTML sandbox 2026-02-24 22:57:48 +01:00
bundles/TwigBundle/Exception Add Docker update support via Watchtower integration (#1330) 2026-05-03 23:00:31 +02:00
components Enhance KiCad integration: API v2, batch EDA editing, field export control (#1241) 2026-03-01 22:10:13 +01:00
form Make form layout better at wide screens & Make horizontal form column layout configurable via global Twig variables (#1293) 2026-03-07 16:14:58 +01:00
info_providers Added URL delegation feature to AI provider and added option to skip that delegation 2026-05-02 23:42:26 +02:00
label_system Make form layout better at wide screens & Make horizontal form column layout configurable via global Twig variables (#1293) 2026-03-07 16:14:58 +01:00
log_system Make form layout better at wide screens & Make horizontal form column layout configurable via global Twig variables (#1293) 2026-03-07 16:14:58 +01:00
mail Use new settings system to configure the instance Name and homepage banner 2024-05-20 21:14:32 +02:00
parts Fixed 500 error with displaying part prices, when a user has a currency preference different of base currency, and there is no conversion rate known for it 2026-03-15 22:02:10 +01:00
projects Add price columns to project BOM table and build price summary (#1345) 2026-04-15 22:13:07 +02:00
security add data-tube=false to SAML auth button (#1308) 2026-03-11 11:28:09 +01:00
settings Add custom KiCad autocomplete list settings (#1342) 2026-04-15 00:01:00 +02:00
tools Merge branch 'master' into settings-bundle 2025-01-17 22:06:18 +01:00
users Make form layout better at wide screens & Make horizontal form column layout configurable via global Twig variables (#1293) 2026-03-07 16:14:58 +01:00
_navbar.html.twig Allow to select which method should be used to in "Create from URL feature" 2026-05-02 23:23:20 +02: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 Fixed flash messages in admin pages 2026-03-04 23:24:29 +01:00
attachment_list.html.twig Make form layout better at wide screens & Make horizontal form column layout configurable via global Twig variables (#1293) 2026-03-07 16:14:58 +01:00
base.html.twig Navigate only the content frame when submitting the global barcode scan label 2026-03-01 16:56:47 +01:00
helper.twig Add manual backup creation and delete buttons to Update Manager (#1255) 2026-03-07 19:31:00 +01: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