2185 Commits

Author SHA1 Message Date
Wyatt Allen
ba258bcd74 Merge "Move table content styling into separate element from list view" 2017-06-13 23:18:25 +00:00
Becky Siegel
0dedeaddf5 Move table content styling into separate element from list view
Some admin tables (for example plugins) don't have APIs that support
filtering and pagination. It is still advantageous to share styles,
so pull that out into a separate element.

Change-Id: Iad2b40d9af3cc53351973c7c456f1110424a14df
2017-06-13 23:13:33 +00:00
Wyatt Allen
146cbf59ad Merge "Add ability to not pass in the server config to the gr-change-view" 2017-06-13 22:53:34 +00:00
Thomas Shafer
08407e32a2 Add ability to not pass in the server config to the gr-change-view
This allows gr-change-view to be included with minimal config.

Change-Id: I5f538208dd0d7ca3fb0b23a699143c36964795c1
2017-06-13 14:10:33 -07:00
Kasper Nilsson
aa4e317675 Merge "Implement list-view-behavior" 2017-06-13 19:13:49 +00:00
Becky Siegel
e00d1eeede Implement list-view-behavior
Even though a gr-list-view element has been established for many of the
common list view functions, The tables themselves are still
generated by the parent element and passed as <content>.  There were
many common functions used in the table generation itself.

Break out those common functions into a behavior, and implement in
gr-admin-group-list and gr-admin-project list. This will be used in
further admin pages as well.

Change-Id: I60227b8c30ac18176bbf923ee1fb02bdd985e5c3
2017-06-13 11:10:18 -07:00
Wyatt Allen
6b9ffd5190 Merge "gr-change-view: A "patch set" is not a "patch"" 2017-06-13 00:13:55 +00:00
Thomas Shafer
f37887e21d Reorder failing dependency test output
NPM is required for wct, so put it first. Add links for install
instructions.

Change-Id: I7a75980f986124ebf25cf692eb742f13a5f795ef
2017-06-12 16:25:13 -07:00
Dave Borowitz
5aab74ded6 gr-change-view: A "patch set" is not a "patch"
Change-Id: I3502763af37d18059f1a141f9e647879b11e13f1
2017-06-12 17:34:48 -04:00
Kasper Nilsson
3fce43cd9d Merge "Add topic to branch column in dashboard" 2017-06-12 17:18:26 +00:00
Alice Kober-Sotzek
d1a2e07e4f Merge changes from topic 'improve-diff-for-rebase'
* changes:
  Highlight hunks which are due to rebase on PolyGerrit
  Copy due_to_rebase to subgroups in gr-diff-processor
  Move diff tests from RevisionIT to RevisionDiffIT
  Mark hunks which are present due to a rebase when diffing patch sets
2017-06-12 13:20:22 +00:00
Kasper Nilsson
e1b391b1f5 Merge "Add console.error for server errors" 2017-06-10 03:08:50 +00:00
Kasper Nilsson
bddf036887 Merge "Implement gr-download-commands in gr-download-dialog" 2017-06-10 00:48:56 +00:00
Kasper Nilsson
af02261128 Merge "Fix loading in gr-admin list pages" 2017-06-10 00:46:42 +00:00
Kasper Nilsson
9109ea1968 Add console.error for server errors
Bug: Issue 6454
Change-Id: Ic4e673dac4dec5c48e0cf3e8ed164b9f93245ff1
2017-06-09 17:36:43 -07:00
Kasper Nilsson
dee79f7dec Add topic to branch column in dashboard
For feature parity with GWTUI. Also adds the topic to the branch href.

Bug: Issue 6195
Change-Id: Ica4412311bc15de6715b24dc69d4645481d987f7
2017-06-09 17:09:01 -07:00
Viktar Donich
73deebb9ef Merge "Add download commands to project pages" 2017-06-09 21:52:03 +00:00
Viktar Donich
8aea9f2d9c Merge "Add gr-download-commands element" 2017-06-09 21:50:11 +00:00
Becky Siegel
0f3ef15b8c Merge "Fix line numbers in shadow-dom" 2017-06-09 21:41:07 +00:00
Becky Siegel
5cc5a45919 Fix loading in gr-admin list pages
Previously, in the projects page, when a new page was loaded, the old
content stuck around. Make sure it dissapears when the loading text
is visible.

Similarly, in the gr-admin-group page, show the loading text and also
remove results when a new page is requested.

In both cases, uses css to display: none rather than the hidden
attribute.

Bug: Issue 6433
Change-Id: I3f8166532d39efc318a2daf1d5f5110c17fffdf6
2017-06-09 13:57:01 -07:00
Kasper Nilsson
e15ddb2ba6 Merge "Add a11ySuite call to gr-diff_test" 2017-06-09 20:43:39 +00:00
Becky Siegel
3ed4104eb5 Fix out of bounds textarea in gr-reply-dialog
This fixes the issue by adding diplay: flex to  a series of elements.

Bug: Issue 6430
Change-Id: I72323068018e4d021510b7dcd34e0e574cc6f35d
2017-06-09 20:06:09 +00:00
Becky Siegel
b7caf2a3e2 Implement gr-download-commands in gr-download-dialog
Change-Id: I37e34ba8920975056eae704e3e80e8ccf39292e4
2017-06-09 10:32:38 -07:00
Becky Siegel
77fb031327 Add download commands to project pages
Change-Id: I8306094d98c0f4766d341585fab277c9014ab08b
2017-06-09 17:30:23 +00:00
Becky Siegel
0d2139c4f3 Add gr-download-commands element
This will be used in the gr-downlod-dialog and also in
gr-admin-project.

Change-Id: Ia821992c5d19068bd90e32daad9f68dc7e442d28
2017-06-09 09:40:09 -07:00
Wyatt Allen
7f77305d4f Merge "Bazel plumbing to add bazel_components/polymer-resin" 2017-06-09 16:26:17 +00:00
Alice Kober-Sotzek
ec44e83877 Highlight hunks which are due to rebase on PolyGerrit
Change-Id: Ifd31c8b2d31d71ff19060da56d81b64954f4fdb7
2017-06-09 13:38:50 +02:00
Alice Kober-Sotzek
1afa2cb52e Copy due_to_rebase to subgroups in gr-diff-processor
We need to preserve the "due_to_rebase" sections to correctly
process the subgroups.

Change-Id: I3d5f8fbd70d50a92e305960cbcecf0d811b4c980
2017-06-09 13:38:50 +02:00
Kasper Nilsson
3861f9fdb8 Merge "a11y improvements for gr-file-list" 2017-06-09 03:36:05 +00:00
Becky Siegel
cb9afdc18b Fix line numbers in shadow-dom
Another border-box issue, this time with .lineNum:before.

Bug: Issue 6372
Change-Id: Ic6521090775f2a990b4fa7b7f36c5989151ce2ac
2017-06-09 00:12:43 +00:00
Viktar Donich
6c72687011 Merge "Add gr-copy-clipboard element" 2017-06-08 23:23:07 +00:00
Becky Siegel
e362e291b8 Fix styling in various overlays
Add box-sizing: border-box to css reset. In a variety of places, there
was content overlap, coming from where padding was set with a width of
100%. Setting box-sizing: border-box in the css reset allows for
padding to be set with a 100% width.

Bug: Issue 6372
Change-Id: Id177a5c7b000b7bfb2cce456e4834104e8c7e912
2017-06-08 15:57:46 -07:00
Becky Siegel
fc487eadb6 Add gr-copy-clipboard element
This will be consumed by the download dialog.

Change-Id: Iaec13b73f4a36f9805e2b2f22bb36fdcc7c7b1f2
2017-06-08 15:29:52 -07:00
Kasper Nilsson
eda221c25d Merge "Fix related changes height calculations" 2017-06-08 21:51:58 +00:00
Becky Siegel
b9f149452a Fix related changes height calculations
There were a few issues with the height calculations:
- In the case of a large screen (not small or medium), the height used
  to calculate existing height was the mainChangeInfo. When logged out,
  this worked fine (in testing with run_server), but when logged in,
  there is additional height from buttons. Instead use commitAndRelated.
- Add a little extra height as it seemed to be a bit under, perhaps
  after some of the CSS changes.
- Add the line height calculation to small and medium sized screens too,
  so that text is not cut off mid-line there either.

Bug: Issue 6458

Change-Id: Ibf1c1583b5288ea7f200686e287a48a419464104
2017-06-08 13:25:00 -07:00
Wyatt Allen
397ba31875 Encode file path in gr-comment-list links
Bug: Issue 6457
Change-Id: I178667729bc5181a4d905a5bcfade08f718043c2
2017-06-08 11:48:55 -07:00
Viktar Donich
805545aa14 Bundle change and diff views together for embedding
Change-Id: Ida0e1db1e0e6ab12f8117467b571f2e972692d6c
2017-06-07 18:34:25 -07:00
Kasper Nilsson
f3ce4f7c33 a11y improvements for gr-file-list
- Made file list rows focusable for screen reader
- Removed enter as a file list keyboard shortcut
- Added a11ySuite to gr-file-list_test

Bug: Issue 6435
Change-Id: I4885370ffcf0e430c776cc83493e32f7fc6d2cf5
2017-06-07 17:10:14 -07:00
Kasper Nilsson
3e3c79646a Add a11ySuite call to gr-diff_test
a11ySuite is a wct function that tests for basic a11y features. For
more, see https://goo.gl/P15eE6

Bug: Issue 6435
Change-Id: I6bb3852de43838b9d3009578cb42dfdfb02e9bff
2017-06-07 11:07:36 -07:00
Kasper Nilsson
c4693f1e3f Merge "Improve a11y for diff viewing" 2017-06-07 17:59:29 +00:00
Becky Siegel
ae16ad5a4b Fix list-view styles
The main.css styles took precedence over some of the ::content styles.
Add the table class to make these styles take precedence.

Change-Id: Idcc282be2cc299d82629c47fc2189cd9f4b01eb5
2017-06-07 10:25:50 -07:00
Mike Samuel
1a49df26b4 Bazel plumbing to add bazel_components/polymer-resin
This is a partial roll-forward of c/106190.

It adds a dependency on the latest version of polymer-resin.
Later CLs will actually use this dependency.

Change-Id: I3cf5f9c823d74da58a8b1326153a672959fa3f13
2017-06-07 10:57:56 -04:00
Kasper Nilsson
40ea3ade99 Improve a11y for diff viewing
Adds an aria-label to added and removed rows marking the row as "added"
or "removed" for screen readers. As part of this change, the <tr>
elements that make up the diff are now focusable.

Test plan:
- Somewhat included as a part of testing this functionality is the use
of WCT's a11ySuite function[1]. This will be introduced in a later
change.

[1] https://goo.gl/P15eE6

Bug: Issue 6435
Change-Id: I676fc171d404ca6e8e9276965192b1452595fa61
2017-06-06 17:25:32 -07:00
Wyatt Allen
38161a85cc Add list style type to change status LIs
Change-Id: I16c0f5cf6c5656fe6d712b8cad6315d63c051386
2017-06-06 17:03:43 -07:00
Wyatt Allen
c064824606 Merge "Prevent debounced call to page.show in tests" 2017-06-06 21:18:25 +00:00
Wyatt Allen
1125a23bb3 Prevent debounced call to page.show in tests
Change-Id: I058f025f69183da0ec7dfa7a92bfc2b9e7488ae7
2017-06-06 13:43:28 -07:00
Viktar Donich
fc1f316d21 Fix gr-reply-dialog-it_test
Change-Id: I033b5f4396b45a34d43a63143a09970f6f585125
2017-06-06 13:01:34 -07:00
Viktar Donich
6378d4b682 Merge "Revert gr-change-reply-js-api to non-ES6 class" 2017-06-06 18:09:00 +00:00
Kasper Nilsson
a5f94c85db Revert gr-change-reply-js-api to non-ES6 class
Bug: Issue 6413
Change-Id: I315f66120ed9e0e7599c63af89ded3ead32b7acb
2017-06-06 09:12:36 -07:00
Viktar Donich
5bbf192fc8 Integration test for LGTM plugin
Change-Id: Ic57e518df1acbabac476846865ee05ba42a62721
2017-06-05 18:54:17 -07:00