Open rmroot opened 7 months ago
I started the groundwork for converting the contacts form from a template driven form to a reactive form. I've added the service that can be re-used for contact validation. Going to handoff to @RLiNREL for him to run with as a first issue. Work was done on branch: issue-65
We will probably want to convert this issue to an epic and create separate issues for each form that needs to be done. We can discuss.
Some additional notes on the changes I made:
Copy over the updates and comments from #113 (which will be closed)
For the input field:
For the required option (two -tier):
For display results:
- The underlying code base should support Latin1, Double-Byte and any other character sets that will make it possible to be translated in other languages than English.
- Support UTF-8 (Latin1, Double-Byte, other languages)
The NEB tool shall have fields for each KPI in which qualitative and/or historical information, e.g., past energy audits and results, can be entered. Each field should have enough character space to accommodate up to 500 words.
- No limit for qualitative and/or historical information. "Google says that text contains on average 5 characters per word, so we’re talking 2500 characters minimum. Let’s be safe and go with ~10,000 characters. I would advocate to not impose any arbitrary limit other than those necessary for UI or performance reasons."
To add validation for ROI calculations and other inputs to quantify NEBs later
Each of the data input forms should have validation hooked up to it. That would most likely entail converting the forms from template driven forms to reactive forms using Angular's form builder. Using services to build the forms will allow validation checks throughout the application and better messaging for the user on missing or invalid data.
Best approach will probably be to break down the PR's work by type:
A table created for clarification about input field validations. This will be shared through email and individual meetings to ensure agreements across the team. NEB-tool_Input_Form_Validation_Clarification_Table_06-07.xlsx