fix: use Title Case for default "Untitled Collection" and "Untitled Workspace" (#7389)

This commit is contained in:
gopu-bruno
2026-03-06 18:12:10 +05:30
committed by GitHub
parent 5151d29aac
commit 1b8cee4706
2 changed files with 3 additions and 3 deletions

View File

@@ -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"

View File

@@ -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) {