Removed parentheses in autocompleter if suggested user does not have a first and last name

Review Request #3533 — Created Nov. 19, 2012 and submitted — Latest diff uploaded

Information

Review Board

Reviewers

Removed parentheses in autocompleter if suggested user does not have a first and last name. 

The suggestions show up as "Username (FirstName LastName). If the user does not provide a first/last name, it looks like "Username ()". 

This occurs in RB's main search functionality and in the reviewer's people input field. 

I also have noticed (and mentioned) about the problem with overlapping characters in the autocomplete suggestions with users that have long usernames. I am having a slight issue with finding an elegant solution to changing the size of the widget dynamically. I saw some suggestions in stackoverflow but I am looking for something more elegant.
Manual Testing. 

Tests include:
- Users with first and last name.
- Users with no first/last name
- Users with only first name
- Users with only last name
    Loading...