fix(ui): show project names exactly as the folder is named

Auto-derived project labels were title-cased, turning .ssh into .Ssh and
opencode-claude into Opencode Claude. Show the folder name verbatim in the
sidebar, window title, settings selector and notification templates, and
migrate persisted legacy labels back to the folder name (manual renames
are preserved).
This commit is contained in:
Bohdan Triapitsyn
2026-08-15 10:16:31 +03:00
parent 8c91c82b62
commit 9032dfa5c0
5 changed files with 20 additions and 17 deletions
@@ -27,9 +27,8 @@ export const createNotificationTemplateRuntime = (deps) => {
const formatProjectLabel = (label) => {
if (!label || typeof label !== 'string') return '';
return label
.replace(/[-_]/g, ' ')
.replace(/\b\w/g, (char) => char.toUpperCase());
// Folder names are shown exactly as they are on disk — no title-casing.
return label.trim();
};
const resolveNotificationTemplate = (template, variables) => {