fix: Address project sorting feedback

- Sort by user-defined displayName instead of path/folder name
- Move project sorting under Appearance section
- Replace large toggle buttons with compact dropdown
- Use clearer labels: "Alphabetical" and "Recent Activity"
- Projects now sort by custom names when available
This commit is contained in:
Valics Lehel
2025-07-12 14:17:56 +03:00
parent 122b757fa2
commit 02a296739d
3 changed files with 112 additions and 53 deletions

View File

@@ -353,8 +353,10 @@ function Sidebar({
// Sort by most recent activity (descending)
return getProjectLastActivity(b) - getProjectLastActivity(a);
} else {
// Sort by name (ascending)
return a.name.localeCompare(b.name);
// Sort by display name (user-defined) or fallback to name (ascending)
const nameA = a.displayName || a.name;
const nameB = b.displayName || b.name;
return nameA.localeCompare(nameB);
}
});