From 0b38a6be4d1b42b0bc07ccfd5ed2ab9e2dbb5968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Kr=C3=BCger?= Date: Mon, 17 Aug 2026 11:13:21 +0200 Subject: [PATCH] Fix casing of Cosmos DB Shell command bar button label (#2552) * Fix casing of Cosmos DB Shell command bar button label * Capitalize Shell in all terminal button labels for consistency --- .../CommandBarComponentButtonFactory.test.ts | 12 ++++++------ .../CommandBar/CommandBarComponentButtonFactory.tsx | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.test.ts b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.test.ts index 12831e3d7..c0d97bb02 100644 --- a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.test.ts +++ b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.test.ts @@ -74,8 +74,8 @@ describe("CommandBarComponentButtonFactory tests", () => { }); }); - describe("Open Cassandra shell button", () => { - const openCassandraShellBtnLabel = "Open Cassandra shell"; + describe("Open Cassandra Shell button", () => { + const openCassandraShellBtnLabel = "Open Cassandra Shell"; const selectedNodeState = useSelectedNode.getState(); beforeAll(() => { @@ -135,14 +135,14 @@ describe("CommandBarComponentButtonFactory tests", () => { }); describe("Open Postgres and vCore Mongo buttons", () => { - const openPostgresShellButtonLabel = "Open PSQL shell"; - const openVCoreMongoShellButtonLabel = "Open MongoDB (DocumentDB) shell"; + const openPostgresShellButtonLabel = "Open PSQL Shell"; + const openVCoreMongoShellButtonLabel = "Open MongoDB (DocumentDB) Shell"; beforeAll(() => { mockExplorer = {} as Explorer; }); - it("creates Postgres shell button", () => { + it("creates Postgres Shell button", () => { const buttons = CommandBarComponentButtonFactory.createPostgreButtons(mockExplorer); const openPostgresShellButton = buttons.find( (button) => button.commandButtonLabel === openPostgresShellButtonLabel, @@ -150,7 +150,7 @@ describe("CommandBarComponentButtonFactory tests", () => { expect(openPostgresShellButton).toBeDefined(); }); - it("creates vCore Mongo shell button", () => { + it("creates vCore Mongo Shell button", () => { const buttons = CommandBarComponentButtonFactory.createVCoreMongoButtons(mockExplorer); const openVCoreMongoShellButton = buttons.find( (button) => button.commandButtonLabel === openVCoreMongoShellButtonLabel, diff --git a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx index 911191e0d..ada89d807 100644 --- a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx +++ b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx @@ -513,7 +513,7 @@ function createOpenTerminalButtonByKind( return ""; } }; - const label = `Open ${terminalFriendlyName()} shell`; + const label = `Open ${terminalFriendlyName()} Shell`; const tooltip = "This feature is not yet available in your account's region. View supported regions here: https://aka.ms/cosmos-enable-notebooks."; const isNativeAuthDisabled = terminalKind === ViewModels.TerminalKind.VCoreMongo && isVCoreMongoNativeAuthDisabled();