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

944 Коммитов

Автор SHA1 Сообщение Дата
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
Kuan-Hsuan (Kevin) Shen cb67fd7883
Fix blink component form field (#2209)
* Fix blink component sl-select field

* Switch to datalist

* Empty the initial value of blink_components

* Fix unit test
2022-09-07 12:35:32 -04:00
Kuan-Hsuan (Kevin) Shen d0b954b880
Migrate more form definitions and render guide/verify_accuracy form without unsafeHTML (#2204)
* Refactor input form fields by specifying attributes

* Remove unsafeHTML and slots in chromedash-form-field

* Update the unit test and remove unused properties

* Fix hard-coded input field name for radios

* Render guide/edit form without unsafeHTML

* Update guide page unit tests

* no longer need to pass in overviewForm

* Refactor verify_accuracy page and migrate its form to js

* Remove unused code

* Resolve web test complaints

* Make changes based on changes from previous PR
2022-09-06 20:35:35 -04:00
Kuan-Hsuan (Kevin) Shen e57b38d072
Start migrating form definitions and render guide/edit form without unsafeHTML (#2201)
* Refactor input form fields by specifying attributes

* Remove unsafeHTML and slots in chromedash-form-field

* Update the unit test and remove unused properties

* Fix hard-coded input field name for radios

* Render guide/edit form without unsafeHTML

* Update guide page unit tests

* no longer need to pass in overviewForm

* Register form submit handler via ref

* Resolve web test complaints

* Format feature for edit in JS
2022-09-05 17:58:01 -04:00
Daniel Smith f237efcb12
Show relative timestamp on Safari and Firefox (#2193)
* show relative timestamp on safari and firefox

* show relative timestamp on safari and firefox

* update and add test

* Use local variable

* update tests
2022-09-05 10:16:57 -07:00
Kuan-Hsuan (Kevin) Shen 10ca294463
Remove field and error unsafeHTMLs and add radios field type in `<chromedash-form-field>` (#2200)
* Refactor input form fields by specifying attributes

* Remove unsafeHTML and slots in chromedash-form-field

* Update the unit test and remove unused properties

* Fix hard-coded input field name for radios

* renderField() -> renderWidgets()
2022-09-02 17:45:39 -04:00
Jason Robbins 70c24eac03
Refactor <chromedash-activity> out of activity log. (#2197)
* Refactor <chromedash-activity> out of activity log.

* auto-formatting
2022-09-01 15:34:32 -07:00
Jason Robbins 0e19c21139
Autolink comment content. (#2196) 2022-09-01 10:51:19 -07:00
Kuan-Hsuan (Kevin) Shen 2b82273dca
Refactor input form fields by specifying attributes (#2199) 2022-09-01 11:55:27 -04:00
Jason Robbins 5b6575af22
Hack the layout of the checkbox to set impl status (#2198)
* Hack the layout of the checkbox to set impl status

* update tests
2022-09-01 08:07:47 -07:00
Kuan-Hsuan (Kevin) Shen 1661f3b1ce
Migrate textarea form fields to JS (#2191)
* Migrate textarea form fields to JS

* Correct typos
2022-08-31 19:47:40 -04:00
Jason Robbins d6bf46bc68
Refactor comment display into a new element. (#2185)
* Refactor comment display into a new element.

* Shift over some relevant styles.

* Add tests.   Anon cannot edit.

* JS naming convention

* Fix lint errors
2022-08-31 13:59:49 -07:00
Kuan-Hsuan (Kevin) Shen 64988335ba
Migrate the rest of none-textarea form fields to js (#2188)
* Populate blink components form field options via an API

* remove console.log

* Migrate the rest of none-textarea form field to js
2022-08-31 14:32:00 -04:00
Kuan-Hsuan (Kevin) Shen 984455c18c
Populate blink components form field options via an API (#2187)
* Populate blink components form field options via an API

* remove console.log

* Add missing spaces
2022-08-31 13:42:50 -04:00
Daniel Smith 2300079b6a
fix emails to not autolink (#2183) 2022-08-30 09:55:11 -07:00
Jason Robbins 63fafb4745
Fix passing user object from features.html to chromedash-featurelist. (#2182) 2022-08-29 15:20:52 -07:00
Daniel Smith 0c88540ead
Only convert URLs to anchor tags (autolinking) (#2178)
* Only convert URLs to anchor tags

* fix tests

* no links test has single string

* syntax change

* comparing objects

* test with query strings

* fix strings
2022-08-29 13:13:02 -07:00
Jason Robbins 8b6d34e76e
Fix 404 featurelist.css (#2177) 2022-08-26 17:09:56 -07:00
Jason Robbins 3b8c78c376
Fix approval row author comparison. (#2173) 2022-08-26 08:31:38 -07:00