mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
- Enhanced CustomModesManager.ts with comprehensive validation for all fields - Added validation for required fields (name, roleDefinition, slug) and optional fields (description, whenToUse, customInstructions) - Implemented checks to prevent empty strings from being saved (should be undefined instead) - Extended local state management pattern from PR #5794 to ALL editable fields in ModesView.tsx - Added local state variables for all fields: localModeName, localModeDescription, localModeRoleDefinition, localModeWhenToUse, localModeCustomInstructions - Implemented onFocus/onChange/onBlur pattern for all editable fields to prevent empty field saves - Users can now visually clear fields during editing but empty values are prevented from being saved - This prevents custom modes from disappearing due to empty field validation issues Fixes custom modes disappearing and creation issues by extending validation pattern from PR #5794 |
||
|---|---|---|
| .. | ||
| audio | ||
| public | ||
| src | ||
| .gitignore | ||
| components.json | ||
| eslint.config.mjs | ||
| index.html | ||
| package.json | ||
| tsconfig.json | ||
| turbo.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||
| vitest.setup.ts | ||