refactor: normalize branch name handling and enhance auto mode settings merging

- Updated branch name normalization to align with UI conventions, treating "main" as null for consistency.
- Implemented deep merging of `autoModeByWorktree` settings to preserve existing entries during updates.
- Enhanced the BoardView component to persist max concurrency settings to the server, ensuring accurate capacity checks.
- Added error handling for feature rollback persistence in useBoardActions.

These changes improve the reliability and consistency of auto mode settings across the application.
This commit is contained in:
webdevcody
2026-01-22 09:43:28 -05:00
parent 0155da0be5
commit 0fdda11b09
5 changed files with 50 additions and 4 deletions

View File

@@ -1326,13 +1326,21 @@ export function getLogTypeColors(type: LogEntryType): {
icon: 'text-primary',
badge: 'bg-primary/20 text-primary',
};
case 'info':
return {
bg: 'bg-zinc-500/10',
border: 'border-zinc-500/30',
text: 'text-primary',
icon: 'text-zinc-400',
badge: 'bg-zinc-500/20 text-primary',
};
default:
return {
bg: 'bg-zinc-500/10',
border: 'border-zinc-500/30',
text: 'text-zinc-300',
text: 'text-black',
icon: 'text-zinc-400',
badge: 'bg-zinc-500/20 text-zinc-300',
badge: 'bg-zinc-500/20 text-black',
};
}
}