From a6a4615ad50a67c5664c399c3820d8a6d1c82ad4 Mon Sep 17 00:00:00 2001 From: Twyco Date: Mon, 20 Apr 2026 13:44:42 +0200 Subject: [PATCH] Hide Scalar API client button --- config/scalar.php | 5 +++++ tests/Feature/Api/PublicApiDocumentationTest.php | 1 + 2 files changed, 6 insertions(+) diff --git a/config/scalar.php b/config/scalar.php index ff5c8d4..e750dee 100644 --- a/config/scalar.php +++ b/config/scalar.php @@ -112,6 +112,11 @@ return [ */ 'hideTestRequestButton' => true, + /** + * Whether to show the API client button in the sidebar and modal. + */ + 'hideClientButton' => true, + /** * MCP will be introduced as a first-party KanbanGit feature later. */ diff --git a/tests/Feature/Api/PublicApiDocumentationTest.php b/tests/Feature/Api/PublicApiDocumentationTest.php index 2c50d43..d06a961 100644 --- a/tests/Feature/Api/PublicApiDocumentationTest.php +++ b/tests/Feature/Api/PublicApiDocumentationTest.php @@ -10,6 +10,7 @@ class PublicApiDocumentationTest extends TestCase { $this->get('/api/docs') ->assertOk() + ->assertSee('"hideClientButton":true', false) ->assertSee('"mcp":{"disabled":true}', false); }