Here's the updated GitHub project task without the milestone timeline:
Task: Build a Configurable Input Field Validation Framework
Description
Our page-building and website-building configurable components now support data capture. This breakthrough enables components originally in HTML (converted to React) with input fields to:
- Accept JSON configurations to render components dynamically.
- Manage changes in input field data seamlessly.
- Handle click events on CTAs effectively.
This advancement is powered by the EventHandlerContext, which translates a component's input handlers config into executable functions. This is a significant milestone, and congratulations are in order for everyone involved. 👏
Next Challenge
We now need to take this to the next level: input data validation.
The goal is to build a Validation Framework that:
- Validates Data: Captures and validates user input in real-time or on form submission.
- Configurable Validation: Provides a configuration API that allows users (those creating JSON configs) to select and define validation types for each input field.
Acceptance Criteria
-
Core Validation Features
- Implement standard validations, such as:
- Required field.
- Email format.
- Number range.
- String length (min/max).
- Regex pattern matching.
- Ensure validations are extensible for future requirements.
-
Configurable API
- Create an intuitive API for developers to define validation rules in JSON format, e.g.:
{
"field": "email",
"type": "text",
"validations": [
{ "rule": "required", "message": "Email is required" },
{ "rule": "email", "message": "Enter a valid email address" }
]
}
- Support chaining multiple validation rules per field.
-
Real-Time Feedback
- Provide instant feedback to users on invalid input (e.g., inline error messages or field highlights).
-
Integration with Existing System
- Ensure the framework integrates smoothly with the EventHandlerContext.
- Validate input fields without disrupting current data capture and change handling.
-
Testing & Documentation
- Unit tests for each validation type.
- Comprehensive examples and documentation for using the validation framework in component configs.
Deliverables
- A fully functional, configurable validation framework for input fields.
- Integration with the current EventHandlerContext and component builder system.
- Documentation and sample configurations to showcase how the framework works.
Here's the updated GitHub project task without the milestone timeline:
Task: Build a Configurable Input Field Validation Framework
Description
Our page-building and website-building configurable components now support data capture. This breakthrough enables components originally in HTML (converted to React) with input fields to:
This advancement is powered by the EventHandlerContext, which translates a component's input handlers config into executable functions. This is a significant milestone, and congratulations are in order for everyone involved. 👏
Next Challenge
We now need to take this to the next level: input data validation.
The goal is to build a Validation Framework that:
Acceptance Criteria
Core Validation Features
Configurable API
{ "field": "email", "type": "text", "validations": [ { "rule": "required", "message": "Email is required" }, { "rule": "email", "message": "Enter a valid email address" } ] }Real-Time Feedback
Integration with Existing System
Testing & Documentation
Deliverables