From 1b8cee47065bb88d37fe70c45132b79c579d2007 Mon Sep 17 00:00:00 2001 From: gopu-bruno Date: Fri, 6 Mar 2026 18:12:10 +0530 Subject: [PATCH] fix: use Title Case for default "Untitled Collection" and "Untitled Workspace" (#7389) --- .../Sidebar/Collections/InlineCollectionCreator/index.js | 4 ++-- .../src/providers/ReduxStore/slices/workspaces/actions.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/bruno-app/src/components/Sidebar/Collections/InlineCollectionCreator/index.js b/packages/bruno-app/src/components/Sidebar/Collections/InlineCollectionCreator/index.js index 58a5da28e..9eb448a78 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/InlineCollectionCreator/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/InlineCollectionCreator/index.js @@ -41,7 +41,7 @@ const InlineCollectionCreator = ({ onComplete, onCancel, onOpenAdvanced }) => { }; if (defaultLocation) { - window.ipcRenderer?.invoke('renderer:find-unique-folder-name', 'untitled collection', defaultLocation) + window.ipcRenderer?.invoke('renderer:find-unique-folder-name', 'Untitled Collection', defaultLocation) ?.then((name) => focusAndSelect(name)) ?.catch(() => focusAndSelect()); } else { @@ -126,7 +126,7 @@ const InlineCollectionCreator = ({ onComplete, onCancel, onOpenAdvanced }) => { ref={inputRef} type="text" className="inline-collection-input" - defaultValue="untitled collection" + defaultValue="Untitled Collection" onKeyDown={handleKeyDown} autoComplete="off" autoCorrect="off" diff --git a/packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js b/packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js index 4d92a523a..9a31c5015 100644 --- a/packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js +++ b/packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js @@ -57,7 +57,7 @@ const transformCollection = async (collection, type) => { */ export const createWorkspaceWithUniqueName = (location) => { return async (dispatch) => { - const name = await ipcRenderer?.invoke('renderer:find-unique-folder-name', 'untitled workspace', location) || 'untitled workspace'; + const name = await ipcRenderer?.invoke('renderer:find-unique-folder-name', 'Untitled Workspace', location) || 'Untitled Workspace'; const folderName = sanitizeName(name); const result = await dispatch(createWorkspaceAction(name, folderName, location)); if (result?.workspaceUid) {