Skip to content
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

Standardize Names and Encourage the Use of the Organization's Naming Standard #201

Closed
dspCarlson opened this issue Oct 8, 2017 · 10 comments
Assignees

Comments

@dspCarlson
Copy link

dspCarlson commented Oct 8, 2017

Standardize the way names are stored by validating names when saving:

  1. Surname: All letters capitalized
  2. Given name(s): First letter capitalized; following letters are lower case
  3. Name order: Surname followed by given name(s)
  4. Name separation: Surname and given names separated by a comma and a space
  5. Single names have all letters capitalized

Reference item 101

@VassilIordanov
Copy link
Contributor

Discussed with @dspCarlson, the main goal here is to avoid the mess of all different ways of writing names by either suggesting or enforcing a naming convention.

  • As first pass we think the first step should be to have help text in the name field (as @maradragan suggested) "LASTNAME Firstname", defined in the dictionary
  • As second pass, we think we should do more research about the nature of names, as suggested by @gjvoosten

@gjvoosten
Copy link
Collaborator

@gjvoosten
Copy link
Collaborator

gjvoosten commented Oct 10, 2017

Some examples of different names around the world are given in https://www.w3.org/International/questions/qa-personal-names , followed by some advice on what (not) to do.

@evdhoudt
Copy link
Contributor

evdhoudt commented Oct 12, 2017

Basically, what W3 says, the only sensible way to store names is to use two fields:
Full name and (What should we call you?)

@VassilIordanov
Copy link
Contributor

Preferred approach updated to the following:

  • continue to store the name as a single string in the database. The new convention to adopt is that if the string contains one or more commas, the string to the left of the first comma is the last name, and the remaining on the right are the first name(s).
  • when displaying the name string, capitalize all letters to the left of the first coma (or all letter if no comma).
  • when editing the name string:
    • present the user with 2 text boxes
    • first text box shows the last name. When empty, it displays a "LAST NAME" hint
    • last name text box is always capitalized
    • move focus from last name to first name when a tab or a coma is pressed
    • second text box shows the first name in its native case
    • when empty second text box displays a "First name(s)" hint
    • there is a "," label between the 2 boxes

@evdhoudt evdhoudt self-assigned this Oct 23, 2017
evdhoudt added a commit that referenced this issue Oct 26, 2017
new person

Changes to be committed:
	modified:   src/components/FormField.js
	new file:   src/components/NameInput.css
	modified:   src/pages/people/Form.js
gjvoosten added a commit that referenced this issue Oct 27, 2017
gjvoosten added a commit that referenced this issue Oct 27, 2017
@VassilIordanov VassilIordanov changed the title Validate Names Stansdardize Names and encourage the use the NATO convention Nov 7, 2017
@dspCarlson dspCarlson changed the title Stansdardize Names and encourage the use the NATO convention Standardize Names and Encourage the Use the Organization's Naming Standard Nov 10, 2017
@dspCarlson dspCarlson changed the title Standardize Names and Encourage the Use the Organization's Naming Standard Standardize Names and Encourage the Use of the Organization's Naming Standard Nov 10, 2017
@dspCarlson dspCarlson reopened this Nov 14, 2017
@dspCarlson
Copy link
Author

Test failed: Verify the focus/cursor moves from the last name field to the first name field when a comma is entered and the focus is in the last name field.

Two distinct bugs:

  1. Comma being displayed in the first name field when the focus moves from the last name to the first name
  2. The first letter typed in the first name field cannot be removed

Condition:

  1. A profile (advisor or principal) is in edit mode
  2. The focus is in the last name field

Action:

  1. The user presses the comma key

Actual Result:

  1. The focus moves from the last name to the first name
    2. The comma is displayed in the first name field
    3. The comma cannot be removed using the delete key or the backspace key

@dspCarlson
Copy link
Author

Test failed: The last name field displays a hint when the field is blank

Bug: The first letter in the last name field cannot be removed

Condtion:

  1. A profile is in edit mode
  2. The last name field has a name displayed

Action:

  1. The user presses the delete key until the name displayed in the last name field is removed

Actual Result:
1. The first letter in the last name field cannot be removed by the delete key (or the backspace key)
2. The hint is not displayed in the last name field

@VassilIordanov
Copy link
Contributor

Thanks @dspCarlson great finds

@dspCarlson
Copy link
Author

Test failed: When saving a principal, the principal profile cannot be saved when the principal only has one name

Many principals only have one name. The principal's signle name should be saved in the last name field and the first name field should be blank.

@evdhoudt
Copy link
Contributor

@dspCarlson thanks for the feedback! The bug was introduced by #194

Have tested both the original issue 201 and 194 and the bug should be fixed in the next pull request :)

evdhoudt added a commit that referenced this issue Nov 16, 2017
VassilIordanov added a commit that referenced this issue Nov 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants