diff --git a/app/utils/settings_service.py b/app/utils/settings_service.py index 80dfa0b3..9233712e 100644 --- a/app/utils/settings_service.py +++ b/app/utils/settings_service.py @@ -2223,6 +2223,47 @@ SETTING_METADATA = { "required": False, "restart_required": False, }, + # Support / Help Center – Zammad integration + "zammad_url": { + "category": "Support", + "description": "Base URL of your Zammad instance (e.g. https://zammad.example.com). Required for the chat widget and feedback form.", + "type": "string", + "sensitive": False, + "required": False, + "restart_required": False, + }, + "zammad_chat_enabled": { + "category": "Support", + "description": "Show a Zammad live-chat widget on the Help Center page.", + "type": "boolean", + "sensitive": False, + "required": False, + "restart_required": False, + }, + "zammad_chat_id": { + "category": "Support", + "description": "Zammad chat topic ID (see Channels → Chat → Topics in Zammad admin). Default: 1.", + "type": "integer", + "sensitive": False, + "required": False, + "restart_required": False, + }, + "zammad_form_enabled": { + "category": "Support", + "description": "Show a 'Submit a Ticket' feedback form on the Help Center page.", + "type": "boolean", + "sensitive": False, + "required": False, + "restart_required": False, + }, + "support_email": { + "category": "Support", + "description": "Support e-mail address displayed on the Help Center page.", + "type": "string", + "sensitive": False, + "required": False, + "restart_required": False, + }, } diff --git a/tests/test_api.py b/tests/test_api.py index 7f2c8f49..3440651f 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -46,7 +46,7 @@ class TestHealthEndpoints: def test_docs_endpoint(self, client: TestClient): """Test that API documentation is accessible.""" - response = client.get("/docs") + response = client.get("/admin/api-docs") assert response.status_code == 200 assert "swagger" in response.text.lower() or "openapi" in response.text.lower()