-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Indexing field validation #5483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…X improvements - Add comprehensive form validation with Zod schema for all providers - Implement real-time validation feedback with error messages - Add unsaved changes detection with confirmation dialog - Internationalize all validation messages using i18n framework - Add visual error indicators (red borders) for invalid fields - Improve popover close handling with unsaved changes check - Add form state management and error clearing on user input - Create validation test suite for all provider configurations - Enhance user experience with proper error messaging and confirmations
- Changed OpenAI Compatible provider to use generic codebaseIndexEmbedderModelDimension field - Removed provider-specific codebaseIndexOpenAiCompatibleModelDimension field - This ensures consistency with other providers and proper persistence of the dimension value - All validation tests pass
- Update Zod schema to validate codebaseIndexEmbedderModelDimension instead of provider-specific field - Fix manual validation logic to check the correct field name - Update test to use the generic field name - Ensures validation works consistently with UI field usage
… across multiple languages
- Replace hardcoded 'Invalid Ollama URL' and 'Invalid base URL' strings with i18n keys - Add missing invalidOllamaUrl and invalidBaseUrl keys to all locale files - Update tests to expect i18n keys instead of hardcoded strings - Ensures consistent localization across all validation messages
- Remove redundant manual validation checks (lines 375-425) - Simplify validateSettings() to rely solely on Zod schema - Handle SECRET_PLACEHOLDER values as valid (backend secrets exist) - Reduce code by ~80 lines while maintaining same functionality - Single source of truth for validation rules
This reverts commit a7c78b80751d4125e70c3be87d4c0b7ba6206795.
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
cb47183 to
a80e1e6
Compare
daniel-lxs
approved these changes
Jul 9, 2025
Member
daniel-lxs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
mrubens
approved these changes
Jul 9, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
lgtm
This PR has been approved by a maintainer
PR - Needs Review
size:XXL
This PR changes 1000+ lines, ignoring generated files.
UI/UX
UI/UX related or focused
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related GitHub Issue
This PR addresses user experience improvements for the CodeIndexPopover component (no specific issue linked - internal enhancement)
Roo Code Task Context (Optional)
N/A - Internal development task
Description
This PR transforms the CodeIndexPopover component from a basic settings form into a robust, user-friendly configuration interface with comprehensive validation and state management.
Key Implementation Details:
Design Choices:
Areas for Review Focus:
Test Procedure
Unit Tests:
CodeIndexPopover.validation.spec.tsxManual Testing Steps:
Testing Environment:
cd webview-ui && npx vitest src/components/chat/__tests__/CodeIndexPopover.validation.spec.tsxPre-Submission Checklist
Screenshots / Videos
Before: Basic form with no validation feedback
After: Enhanced form with:
Screenshots would be helpful here to show the visual improvements, but are not included in this text-based response.
Documentation Updates
Additional Notes
Translation Support:
webview-ui/src/i18n/locales/en/settings.jsonPerformance Considerations:
Future Enhancements:
Get in Touch
@MuriloFP
Important
Enhances
CodeIndexPopoverwith validation, state management, and i18n support, adding Zod schemas, real-time error feedback, and unsaved changes protection.CodeIndexPopoverinto a user-friendly interface with validation and state management.CodeIndexPopover.validation.spec.tsxfor unit tests covering all embedding providers.settings.json) across multiple locales to include new validation messages.This description was created by
for dcc9b89f24a407d2572bd094cd584d6099282213. You can customize this summary. It will automatically update as commits are pushed.