NREL / NEB-Tool

A user friendly, graphical, open-source application (Web/Mac/Windows) of the multiple benefits framework for non-energy benefits, incorporating additional aspects to make the tool effective for use in the United States.
Other
1 stars 2 forks source link

Data validation company.team-details/contact #115

Open RLiNREL opened 3 months ago

RLiNREL commented 3 months ago

Feedback from 06/13 meeting:

rmroot commented 2 months ago

A couple quick updates I noticed since merging these changes into the my own work:

RLiNREL commented 2 months ago

Thanks, @rmroot for pointing it out. I pushed a couple of new commits.

  1. (blur) is replaced by (input)
  2. The comma is used to distinguish first and last names when the full name is extracted from idb, especially if the first name contains two words separated by spaces. It may be visually helpful for the user to see the first and last names separated in the upper left corner of the accordion. It is a temporary splitter for now.
  3. Thanks for spotting it! Fixed.

I agree that we should have separate first and last names properties for the contact later. A new issue was added #158

ghost commented 2 months ago

Before closing this, I think the comma should be rejected as an input for the name fields. You can produce weird bugs by entering commas. For example:

Using v0.0.1-alpha-3483233

Steps to reproduce:

Expected behavior:

Observed behavior:

RLiNREL commented 2 months ago

@jperrsau-at-nrel good points. The current implementation, splits the full name by comma, and take the first two entries as first and last names. That's why you see the behavior that the First and First are extracted as first and last names.

I think it may be better to implement #158 now instead of preventing commas from input, as we need some inputs around some discussion points from other team members to move forward. I will go ahead and move #158 to in progress. You could close this #115 issue or keep it open until #158 is done. Thanks