Граф коммитов

962 Коммитов

Автор SHA1 Сообщение Дата
Jeffrey Yasskin adaf7b2d7c
Update the built CSS. (#3961) 2024-06-11 19:01:02 -07:00
Jeffrey Yasskin 6358a50bfa
Show feature links in the Consensus section (#3791)
Also denormalizes external reviewer positions into the FeatureEntries table.
2024-04-15 12:30:20 -07:00
Jason Robbins ab098e4ce8
Remove the query builder and add a query help dialog. (#3782)
* Remove the query builder and add a query help dialog.

* Update client-src/elements/chromedash-search-help-dialog.js

Co-authored-by: Kyle Ju <kyleju@google.com>

* Update client-src/elements/chromedash-search-help-dialog.js

Co-authored-by: Kyle Ju <kyleju@google.com>

* Clarified argument name

---------

Co-authored-by: Kyle Ju <kyleju@google.com>
2024-04-09 10:17:55 -07:00
Jeffrey Yasskin 6012e0ec83 Regenerate the base css. 2024-02-05 10:50:25 -08:00
Jason Robbins 8ecb3c92f6
Add back sans-serif for chromeos (#3571) 2024-01-07 10:19:49 -08:00
Jason Robbins b1faf89ba2
Switch from roboto to system-ui font. (#3561) 2023-12-27 13:40:09 -08:00
Jason Robbins 97c9be0484
Implement a menu to add xfn gates. (#3539)
* Implement a menu to add xfn gates.

* Added unit tests
2023-12-12 11:12:14 -08:00
Jason Robbins c7cc8f6ff2
Update BETA and DEV logos (#3435) 2023-10-20 11:11:21 -07:00
Jason Robbins bf295164f1
Update chrome logo and remove unused logos. (#3428)
* Update chrome logo and remove unused logos.

* Updated playwright expected screenshots
2023-10-19 08:51:58 -07:00
Jason Robbins 4c69a4b080
Fix base.css unix perms. (#3338) 2023-09-18 14:25:37 -04:00
Daniel LaLiberte 0baad0b731
Dlaliberte playwright 06 22 (#3184)
* Initial install of playwright visual tests

* Close to working.

* who knows...

* after updates

* Extend devcontainer docker compose file for playwright (#3192)

* Extend devcontainer docker compose file for playwright

Create another docker compose file for playwright.
That new one extends the existing docker compose

Should be able to run:

`npm run pwtests`

* adjust gh action

* adjust gh action

* remove volumes

* add timeout

* fix volumes

* Fix docker compose environment

* ignore stuff and volume mounting

* Attempting to login reliably

* Auto cleanups.

* Finally starting to work

* Thought it was getting better, but maybe not

* Seems reliable now

* Higher success rate

* Add test of entering feature name. Remove new feature page content test.

* Add playwright-report dir to Dockerfile.

* Comment out mkdir -p /work/playwright-report line.

* Update screenshots.

* Increasing timeout for entering feature name

* try running as user (#3248)

* try running as user

* again

* try

* change volume ownership

* tidy up

* Adjust login process to be more reliable.

* Add 5 second delay before first test runs.

* Wait longer for first login.

* Add auto-logout during login if already logged in

* Screenshot after login click

* Add testName to screenshots. Upload artifacts. Fix form method="POST".

* Add doc to README for Updating the test_html_rendering files.

* Maybe increase chance of login.

* Add a couple more delays.

* Repeat auto-logout during login until no longer logged in, before logging in again.

* Add some more delays.

* Use loginButton.click().  Add delay before after-click screenshot.

* Add console info an errors to login process.

* Capture console messages, relay to terminal.

* Capture console messages properly.

* Add some more console messages during login.

* Ignore error on jsonValue.

* Reduce most delays. Add more logs. Add top-level playwright call.

* More logging to figure out why login fails

* More logging to detect if ever logged in.

* Add more logging to each stage of testing

* Use history.replaceState before changing location.

* Use location.reload() after a timeout.

* After login, just load home page.

* Add playwright-report to artifacts.

* Turn off playwright-report during CI

* Log response after login

* Only log first response after request that should log in.

* Look for 'currentuser/permissions' request/response.

* Delay after mock_login and before reload of home page

* Comment out header and cookie logs.

* Act like logged when in DEV_MODE and login attempted.

* Fix mock mock login.

* Undo fake mock_login.

* rearrange docker (#3265)

* Updates after changes by James.

* Fix previous updates.

* Remove pwtests-shutdown from "stop" command.

* Remove pwtest from client-src/elements. (moved to packages/playwright/tests)

* update paths for run.sh

* Add pwtests-shutdown to top-level stop command.

* Remove "playwright" from ./wait-for-app.sh

* Add logging of user login status.

* add playwright_display for debugging

* add server debugging

* Remove extra "/__screenshots__" in path.

* Update the path for test-results artifacts in the playwright.yml

* add health checks

* fix action

* fix run.sh

* Add beforeAll method, disabled.

* add dsadmin

* Add top level pwtests command, not working yet.

* cleanup and undo changes

* use transactions

* always reuse server

* temp: limit the workers

* Partial cleanup.  Reduce timeouts and delays a bit.

* More cleanup.  Reduce timeout/delay.

* Update the correct README file.  Update html rendering tests.

* Remove unnecessary changes.

* set script-shell to fix source not found and call npm run setup (#3292)

* set script-shell to fix source not found and call npm run setup

There has always been `source: not found` in the previous CI jobs

The tests previously worked because
npm run deps installs the requirements into the default environment and not the virtual environment.
And since we actually did not call `source` correctly, it was okay because
the default environment had the packages installed.

The problem started to arise because we started to call `source`
correctly in some places but not all places. This fixes by setting the
shell consistently whenever we call `source`

More info:
https://morgan.cugerone.com/blog/troubleshooting-source-not-found-when-in-the-context-of-package-json-scripts/

* do each separately

* Revert "do each separately"

This reverts commit 4fc75f7407.

* do ci job

* consistent to the right datastore mode

* verbose

* kill the emulator

* remove verbose

* Reenable Google login

* Finish reenabling Google signin button. Add margin for Firefox.

* Only show Google signin if playwright is not active

* Preserve url on login.  Use default num of workers.  Retry tests in CI

* Some updates after comments

* optimize docker changes

* Rename account-indicator. Shorten some delays.

* revert the workers

* Make playwright.yml push and pull_request triggers be like others.

* Use getByTestId instead of locator with data-testid.

---------

Co-authored-by: James C Scott III <jcscottiii@users.noreply.github.com>
Co-authored-by: James Scott <jamescscott@google.com>
2023-09-06 15:35:06 -04:00
Jason Robbins f9d4699d7a
Change gate chip N/A color to green and INT to blue. (#3277) 2023-08-24 11:27:15 -07:00
Ping 10730ba467
Validate feature links http status code (#3143)
* Add _validate_url to save http_error_code

* Add real server http code to LinkHelperTest

* Fix type checking

* Display http_error_code

* Add link icon for feature link

* Show full markdown title in tooltip
2023-07-13 11:06:02 +08:00
Jason Robbins 265db666fe
Improve the visual style of the main menu drawer. (#3136)
* Improve the visual style of the main menu drawer.

* Make logo and title go to roadmap
2023-07-07 16:24:58 -07:00
Kyle Ju 6d49152057
Hamburger menu on desktop and Mobile (#3112)
* UI ready

* Address comments and add tests

* Add drawer to all features page

---------

Co-authored-by: Kyle Ju <kyleju@chromium.org>
2023-07-06 11:30:51 -07:00
Jason Robbins 2e6cbed91d
Display SLO status near the top of the gate column. (#3066) 2023-06-15 10:46:50 -07:00
Daniel LaLiberte 116a7f4d48
Stop using scss compiler, and use css files directly. (#2998)
* Stop using scss compiler, and use css files directly.

* Deleting unused static/css files.

* Update developer docs.
2023-05-10 12:24:24 -04:00
Jason Robbins 8f87da4c59
On detail page, show all fields with validation icons. (#2620) 2023-01-04 15:45:08 -08:00
Jason Robbins 9228fd259f
Show early stable release dates on roadmap. (#2559) 2022-12-08 13:23:28 -08:00
Jason Robbins b9a657b3f0
Implement chromedash-gate-chip. (#2421) 2022-11-02 13:23:03 -07:00
Jason Robbins 50073a5cb8
Add "Development stages" header and replace icon. (#2414) 2022-10-31 16:26:20 -07:00
Jason Robbins 3b00bc0bed
Use Material Design icons in the search bar. (#2398) 2022-10-26 10:51:37 -07:00
Jason Robbins e10ae0b47c
Implement new feature list pagination UI. (#2375)
* Implement new feature list pagination UI.

* Clarified variable names.

* Use material-design icons
2022-10-25 16:42:43 -07:00
Jason Robbins 5cac40a83e
Upgrade feature-table icons to shoelace. (#2371)
* Upgrade feature-table icons to shoelace.

* Update client-src/elements/chromedash-feature-table.js

Co-authored-by: Kyle Ju <kyleju@google.com>

* Use material icons instead of bootstrap icons.

Co-authored-by: Kyle Ju <kyleju@google.com>
2022-10-25 16:20:42 -07:00
Jason Robbins 1df2fc4e30
Replace big details section with stage sections (#2379)
* Replace big details section with stage sections

* Added icon instructions

* Fixed icon instructions
2022-10-25 16:19:14 -07:00
Jason Robbins 421f813b86
Upgrade filter widgets to shoelace. (#2360)
* Upgrade filter widgets to shoelace.

* Make menu reset more explicit
2022-10-21 17:14:52 -07:00
James C Scott III dd652c9cdb
Move source for generated frontend to client-src (#2351) 2022-10-17 17:01:12 -04:00
James C Scott III 969d016bd9
Remove inline_file. Use external links for js/css (#2348)
* Remove inline_file. Use external links for js/css

Refer to #2326 fo reasoning

Changes in this commit:

- Remove inline_file function
- For js: use script src=""
  - Due to this change, there were some minor tweaks:
    - change from VIEWS to global window.VIEWS in feature-page.js and features.html. This is so the external loaded feature-page.js can access the data loaded via templates. Before it was all inlined.
- For css: use link rel="stylesheet" href=""
- Add helper function "get_static_path" to get the path to the static folder

Part 1 of 2 to fix #2326

* Create helper function to avoid using global window

Create loadFeatureLegendViews to avoid having to change window.VIEWS

* Add version query parameter

* remove redundant get_static_path

* revert this change.

will fix this in the bigger testing PR when I will move the get_template_path function to the testing config.
It is not needed for the actual app. only needed for the unit tests
2022-10-17 16:09:18 -04:00
Kyle Ju b6b300e27f
Add Show all button (#2308)
Co-authored-by: Kyle Ju <kyleju@chromium.org>
2022-10-13 15:22:20 -07:00
Daniel Smith 93e57a44f3
Use new Activity entities to display comments (#2321)
* Use Activity entities to view comments

* Update review_models_test.py

* @jrobbins suggested changes
2022-10-12 13:02:35 +02:00
Daniel Smith bccb415791
Remove ability to update feature_type field (#2320)
* remove ability to update feature type

* fix webtest

* show feature_type as disabled
2022-10-12 09:16:54 +02:00
Jason Robbins c6982a460f
Omit cookies for metrics data requests because of Vary: Cookie (#2268)
* Omit cookies for metrics data requests because of Vary: Cookie

* Also omit cookies for timeline data.
2022-09-26 14:25:20 -07:00
James C Scott III 229cae9d31
Add cc field to features (#2252)
* Add cc field to features

Closes #2240. Similar implementation as editors.

Users who are cc'd on features can see unlisted features.

internals/core_models.py:
- Add new cc_recipients field. Defaults to empty list if field is not there.

internals/notifier.py
- Adds reason for being notified as a person in the cc_recipients field

internals/search.py
- Add the shorthand query for `cc:me`

internals/search_queries.py
- Add the ability to search the cc_recipients field by adding it to QUERIABLE_FIELDS

static/elements/chromedash-guide-metadata.js
- Add the ability to view the value on the metadata display
  - Maps cc_recipients to individual mailto links ccRecipient
    - Note: ccRecipient is camelCase

static/elements/form-field-specs.js
- Declare a new form field cc_recipients

static/elements/form-definition.js
- Add the cc_recipients field to the metadata form field

* cc_recipients changes to persist on create/update

These changes allow changes to cc_recipients to persist on feature
create or update

* Check if cc_recipients empty

cc_recipients can be missing from the object due to del_none
in core_models.py
Also fomat_for_template currently returns cc_recipients at a different level
and not inside the chrome object. As a result, need to change
the chromedash-guide-metadata file to look for the data at the right place.

* Use short hand CC instead of carbon copy
2022-09-21 13:15:22 -04:00
Jason Robbins bc218ef4ea
Avoid reload loop due to comparing str to int. (#2256)
* Avoid reload loop due to comparing str to int.

* Added regexes where we expect only digits
2022-09-20 09:17:06 -07:00
Jason Robbins dc93070868
Remove the same listener function object that was added. (#2254) 2022-09-20 08:32:30 -07:00
Jason Robbins 69070f30e3
Remove class="loading" from spa.html. (#2255)
* Remove class="loading" from spa.html.

* Also remove the CSS rule that hides the toast.
2022-09-20 08:32:12 -07:00
Jason Robbins ba8aee6bcd
Fix spelling error in help text. (#2248) 2022-09-16 16:38:24 -07:00
Kuan-Hsuan (Kevin) Shen 621ecbcc27
Fix stack rank page anchor link bug (#2245) 2022-09-15 12:15:32 -04:00
Kuan-Hsuan (Kevin) Shen 1dabcc4911
Share user data among multiple SPA pages (#2238)
* Remove "remove spinner" code for SPA pages

* Share user data among multiple SPA pages

* minor changes for some unit tests

* Remove more TODOs

* Don't pass user object to the edit page

* Add location.reload() if no permission
2022-09-14 12:09:12 -04:00
Kuan-Hsuan (Kevin) Shen 90980a584d
Remove "remove spinner" code for SPA pages (#2237) 2022-09-13 19:46:12 -04:00
Kuan-Hsuan (Kevin) Shen 5b7a34c7b4
Remove unused html files and change app title dynamically (#2236)
* Remove unused html files and change app title dynamically

* Remove featuredetail.py and its test
2022-09-13 16:19:55 -04:00
Kuan-Hsuan (Kevin) Shen a9844400b1
Launch the SPA (#2224)
* Launch the SPA

* Remove unused imports

* Address comments

* Avoid pushState when url has already matched
2022-09-13 14:54:32 -04:00
Kuan-Hsuan (Kevin) Shen 6573752d8f
Add stack rank and timeline page unit tests (#2227) 2022-09-12 14:01:50 -04:00
Jason Robbins e868f68d30
Use hoist to make all sl-select elements faster (#2226) 2022-09-09 18:09:01 -07:00
Kuan-Hsuan (Kevin) Shen bb286f6546
Remove old form submit handler (#2222) 2022-09-08 22:31:25 -04:00
Kuan-Hsuan (Kevin) Shen 34f38346b2
Move display field defs to JS and remove fielddefs API (#2219)
* Migrate guide/stage page forms to JS

* Complete migration of forms to JS

* Move display field defs to JS and remove fielddefs API

* Fix line separation bug

* Filter out `['']` values due to the anticipated spec change field change

* Fix typo

* Change anticipated_spec_changes to regular textarea
2022-09-08 18:28:30 -04:00
Kuan-Hsuan (Kevin) Shen affbe1a641
Complete migration of forms to JS (#2218)
* Migrate guide/stage page forms to JS

* Complete migration of forms to JS
2022-09-08 16:17:02 -04:00
Kuan-Hsuan (Kevin) Shen 7cb18a54a3
Migrate guide/stage page forms to JS (#2217) 2022-09-08 16:02:04 -04:00
Daniel Smith ec3d41a93f
Show relative time on Roadmap cards (#2208)
* show relative time on roadmap cards

* remove creation of new Date object
2022-09-07 11:18:53 -07:00
Kuan-Hsuan (Kevin) Shen 10f160dee7
Migrate flat forms to JS to render editall page form (#2210) 2022-09-07 12:45:56 -04:00