From a7f0c66e30a96651cc216a4de8a07b467458f3b4 Mon Sep 17 00:00:00 2001 From: Ricardo Espinoza Date: Mon, 3 Mar 2025 10:49:48 +0100 Subject: [PATCH] fix(core): Add documentation hints for API keys to `SettingApiView.vue` (no-changelog) (#13617) --- .../ApiKeyCreateOrEditModal.test.ts | 12 -- .../components/ApiKeyCreateOrEditModal.vue | 53 +-------- .../src/views/SettingsApiView.test.ts | 103 +++++++++++++++++- .../editor-ui/src/views/SettingsApiView.vue | 78 ++++++++++++- 4 files changed, 178 insertions(+), 68 deletions(-) diff --git a/packages/frontend/editor-ui/src/components/ApiKeyCreateOrEditModal.test.ts b/packages/frontend/editor-ui/src/components/ApiKeyCreateOrEditModal.test.ts index 3aac4e2434..06df8d9596 100644 --- a/packages/frontend/editor-ui/src/components/ApiKeyCreateOrEditModal.test.ts +++ b/packages/frontend/editor-ui/src/components/ApiKeyCreateOrEditModal.test.ts @@ -73,10 +73,6 @@ describe('ApiKeyCreateOrEditModal', () => { getByText('Make sure to copy your API key now as you will not be able to see this again.'), ).toBeInTheDocument(); - expect(getByText('You can find more details in')).toBeInTheDocument(); - - expect(getByText('the API documentation')).toBeInTheDocument(); - expect(getByText('Click to copy')).toBeInTheDocument(); expect(getByText('new api key')).toBeInTheDocument(); @@ -138,10 +134,6 @@ describe('ApiKeyCreateOrEditModal', () => { getByText('Make sure to copy your API key now as you will not be able to see this again.'), ).toBeInTheDocument(); - expect(getByText('You can find more details in')).toBeInTheDocument(); - - expect(getByText('the API documentation')).toBeInTheDocument(); - expect(getByText('Click to copy')).toBeInTheDocument(); expect(getByText('new api key')).toBeInTheDocument(); @@ -187,10 +179,6 @@ describe('ApiKeyCreateOrEditModal', () => { getByText('Make sure to copy your API key now as you will not be able to see this again.'), ).toBeInTheDocument(); - expect(getByText('You can find more details in')).toBeInTheDocument(); - - expect(getByText('the API documentation')).toBeInTheDocument(); - expect(getByText('Click to copy')).toBeInTheDocument(); expect(getByText('new api key')).toBeInTheDocument(); diff --git a/packages/frontend/editor-ui/src/components/ApiKeyCreateOrEditModal.vue b/packages/frontend/editor-ui/src/components/ApiKeyCreateOrEditModal.vue index c0531bacae..83820e756b 100644 --- a/packages/frontend/editor-ui/src/components/ApiKeyCreateOrEditModal.vue +++ b/packages/frontend/editor-ui/src/components/ApiKeyCreateOrEditModal.vue @@ -1,11 +1,10 @@