Gives the PolyGerrit settings view a new section for Notifications which
replicates the "Watched Projects" screen in the GWT settings UI. Users
can add, remove and update which projects they receive email
notifications for.
Introduces the gr-watched-projects-editor element, which is given the
user's watched projects data and is able to display and modify the info.
In the same way that the GWT UI includes an autocomplete input for adding
new projects to watch, this implementation uses gr-autocomplete.
The gr-watched-projects-editor is added to the gr-settings-view, which
manages the loading, saving and deleting of the user's watched-project
data.
Other changes:
- Tidies the layout of gr-settings-view to permit larger tables such as
gr-watched-projects-editor without disrupting the look.
- Tweaks functionality of gr-autocomplete use in the watched projects
editor. Specifically, it does not take on a value until the user
"commits" to a suggestion, and it does not clear the input when
committed unless a flag is enabled. Also now supports placeholder
text.
- Fixes some gr-settings-view unit-test failures in Safari.
- Fixes the markup of some table headers and footers.
- Lots of new unit tests.
Bug: Issue 3911
Change-Id: I4667c29aa3addcd9b6676bc8763d8e3deb327539