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

264 Коммитов

Автор SHA1 Сообщение Дата
Yann Dago 16de638280
Enterprise flow updates and fixes (#3067)
* Add screenshot links to the enterprise feature creation page
* Make enterprise pages that require sign in use an intermediate component when not signed in and redirect to the initial page when signed in
* Move Rollout steps help text to the edit all page
* Rename "Start feature rollout" to "Rollout Step"
* Rename "Rollout stages" to "Rollout steps"
* Fix editors not showing on the feature details page for all features
* Fix enterprise categories only using the first category chosen after creating a new feature
2023-06-09 13:38:57 -04:00
Jason Robbins 40960d9714
Relabel "ready for trial" emails to "ready for developer testing" (#3064) 2023-06-08 10:15:07 -07:00
Jason Robbins 7c1bf8d2f3
Migrate ff_views values. (#3020) 2023-05-19 17:34:42 -07:00
Yann Dago bca4d66a90
Add screenshot links to enterprise features (#2989)
Allow users to add/edit/remove multiple screenshots per feature.

Show the screenshots on the enterprise release notes page
2023-05-08 15:18:58 -04:00
Jason Robbins 6796e3b3fa
After creating WP feature, redirect to feature detail page. (#2978) 2023-05-04 17:21:06 -07:00
Daniel Smith b0d5de41c3
POST request functionality for Features API (#2923)
* Post request functionality for Features API

* Create feature only accepts mutable fields

* Docstring and type hints
2023-05-04 13:15:02 -07:00
Yann Dago 54c62e8637
Update enterprise feature visible metadata fields and summary text (#2976)
* Update summary enterprise help text

* Hide breaking change for enterprise features

* Show only enterprise metadata fields on  metadata edit page for enterprise features

* Remove launch_bug_url and breaking change from enterprise features

* Refactor rendering in enterprise and non enterprise functions
2023-05-04 15:56:45 -04:00
Daniel Smith ad9386cdb9
Remove the rest of old schema references (#2910)
* Remove the rest of old schema references

* Keep maintenance scripts

* move script Route
2023-04-12 22:46:41 -07:00
Daniel Smith 5ca7c0ba29
Rename "ready_for_trial_url" to "announcement_url" (#2891) 2023-03-31 15:18:40 -07:00
Daniel Smith 0d9f45fd49
Remove old/duplicated fields from FeatureEntry and Stage entities (#2880)
* Stop using old field names where it is not needed

* remove unused import

* Add comment about old ship fields
2023-03-31 12:59:10 -07:00
Daniel Smith 888ed87aa0
Add a display name to trial and ship stages (#2871)
* Add a display name to trial and ship stages

* Update trial extension name format

* changes suggested by @jrobbins
2023-03-31 10:14:15 -07:00
Daniel Smith 195b722104
Remove Feature double-writes from guide.py (#2869)
* Remove Feature from tests (except guide_tests.py)

* Remove double-writes from guide.py

* remove additional Feature imports

* use key variable in possible locations
2023-03-29 14:48:47 -07:00
Daniel Smith 5beeeeda53
Add type definitions for Stage and FeatureEntry JSON representation (#2844)
* Add type definitions for stage and feature JSON

* remove extra whitespace

* Move TypedDicts to separate file

* Fix rollout merge changes

* TODO comment

* remove unused import

* display "None" for empty intent field values
2023-03-27 17:52:37 -07:00
Daniel Smith dc4aae7529
Remove Feature from tests (except guide_tests.py) (#2867) 2023-03-27 15:44:53 -07:00
Jason Robbins 52328f8d90
Update werkzeug and stopusing routes with the same path. (#2861) 2023-03-27 13:54:05 -07:00
James C Scott III f33576a5f3
Migrate admin/blink.html to SPA [5/5] (#2743)
* Migrate admin/blink.html to SPA

Add implementations of the three new API routes
Remove old code for templated admin/blink.html

* Remove old handler and template

* start of tests

* fix tests

* temp

* separate into smaller elements

* add more python tests

* fix lint for optional values

* add tests

* fix lint error

* update model names

* use global

* fix test

* fix jsdoc from renaming

* address feedback
2023-03-24 18:25:18 -04:00
Daniel Smith 2d5bb78f0f
Update email templates to use new schema (#2837)
* Escalate accuracy verification notifications

* small comment change

* Remove unrelated change

* update templates to use new schema

* better type hinting

* update escalation check approach

* update intentpreview imports

* merge fix
2023-03-23 11:47:15 -07:00
Yann Dago 4548b9790d
Add rollout impact field to rollout stages (#2813) 2023-03-22 14:25:04 -04:00
Daniel Smith 772746640c
Escalate accuracy verification notifications after 3 weeks (#2832)
* Escalate accuracy verification notifications

* small comment change

* Remove unrelated change

* update escalation check approach

* remove unused import
2023-03-16 18:01:16 -07:00
Daniel Smith 4ddb5bc7af
Feature accuracy verification handles multiple stages of the same type (#2827)
* update accuracy verification for multiple stages

* Update guide.py to only change fields in form

* fix touched tests

* changes suggested by @jrobbins
2023-03-16 12:32:42 -07:00
Jason Robbins 21f6ab692f
Comment out privacy and security gates until we get questionnaires. (#2830) 2023-03-15 11:40:28 -07:00
Daniel Smith 8b6b888f71
Move legacy Feature helpers and converters to separate file (#2819)
* move legacy helpers and converters

* Move legacy tests to separate file
2023-03-13 15:07:55 -07:00
Jason Robbins e4555b8056
Enable all gates and add reviewers. (#2806)
* Enable all gates and add reviewers.

* Update approval_defs.py

Add type annotation

* Update core_enums.py

There's no need for all the reviews when shipping something that is just a code change.
2023-03-09 14:07:55 -08:00
Yann Dago 61e6885473
Add Enterprise feature flow UI/UX changes (#2802)
* Hide edit button on feature page for enterprises
* After creating an enterprise feature go to the edit all page at the first rollout section
* Open all section on the feature page for enterprise by default
* Adding stage for enterprise features only adds rollout feature
* Remove the action of setting a stage in enterprise features
* Update scrolling behavior to scroll to the element from the hash if no form field is found
* Remove the edit icon from the feature page that navigates to the edit page
* Add an id to the "edit all" section headers to serve as an anchor for navigations
2023-03-09 16:18:20 -05:00
Jason Robbins ff2ab3ab77
Add adoption fields to intent template. (#2805) 2023-03-08 17:08:49 -08:00
Jason Robbins faf3499262
Convert Adoption gate questionnaire into fields. (#2803) 2023-03-08 16:13:26 -08:00
Daniel Smith b7ffb7a501
Move Feature to legacy models file (#2798) 2023-03-07 10:30:17 -08:00
Jason Robbins ed6d599f08
Comment out debuggability for now. (#2788) 2023-03-02 16:38:02 -08:00
Yann Dago ae90f406c5
Create new flow for creating enterprise features (#2775)
Remove the enterprise feature choice when creating a new feature.

Make enterprise feature creation accessible via url only.

Ensure only the enterprise fields are shown on the feature, edit and edit all pages for enterprise features.
2023-03-01 11:12:45 -05:00
Kyle Ju 74df7bea35
Add default mailing list for devrel (#2773)
* Add default mailing list for devrel

* Move email address to guide.py

---------

Co-authored-by: Kyle Ju <kyleju@chromium.org>
2023-02-24 11:23:39 -08:00
Jason Robbins b3da149951
Do not add gates for new teams until we know approvers. (#2722) 2023-02-03 11:13:20 -08:00
Jason Robbins 8e147a4e21
Add gates for enterprise, debuggability, testing, and adoption. (#2701) 2023-01-30 12:32:39 -08:00
Daniel Smith 820bb801dc
Add trial extensions (#2656)
* trial extensions displayed and edited with trials

* edit extension info on editall

Also, display trial info on detail page

* thorough commenting

* concat stageIds

* Add corner case cover

Display only extension info if it exists but the original trial extension information does not.

* Allow users to create trial extension stages

* fix test

* fix gates in test

* remove extension fields from dep trial stage
2023-01-12 12:35:10 -08:00
Daniel Smith 034eec4825
Support for multiple trial extension stages (#2655)
* trial extensions displayed and edited with trials

* edit extension info on editall

Also, display trial info on detail page

* thorough commenting

* concat stageIds

* Add corner case cover

Display only extension info if it exists but the original trial extension information does not.
2023-01-11 13:27:44 -08:00
Daniel Smith 3d18ef0020
prototype stage editing (#2629) 2023-01-06 12:59:33 -08:00
Daniel Smith 7ee39ccf88
make trial extension fields editable (#2624) 2023-01-05 16:02:13 -08:00
Daniel Smith 8470308481
View and edit stage-specific data on edit_all page (#2562)
* display and edit stages based on stage ID

* fix test

* defensive coding with intent stages

* new routes

* save active_stage_id in guide.py

This change is set to land in a separate PR.

* display active stage on detail page correctly

* Save to specific stage IDs when using edit_all

* remove log

* remove "SHIPPED" stage types

* fix processes and tests

* add shipped form field to shipping form field

* Show matching process stages on process overview

* fix tests

* remove active_stage_id reference

* remove active_stage_id from test

* typo

* update url

* fix web test

* Consolidate "prepare to ship" and "ship"

* add small comment

* organize guide.py

* one process stage per stage entity

* style fix

* form_fields value given as a string

* remove duplicated function

* clear up logic for writing to stages

* backwards-compatible urls and api

* Update tests

* fix merge conflict block removal

* changes suggested by @jrobbins
2022-12-22 11:02:45 -08:00
Daniel Smith cc3a46fa92
Use specific stage data for viewing and editing feature data (#2561)
* display and edit stages based on stage ID

* fix test

* defensive coding with intent stages

* new routes

* save active_stage_id in guide.py

This change is set to land in a separate PR.

* display active stage on detail page correctly

* remove "SHIPPED" stage types

* fix processes and tests

* add shipped form field to shipping form field

* Show matching process stages on process overview

* fix tests

* remove active_stage_id reference

* remove active_stage_id from test

* typo

* update url

* fix web test

* Consolidate "prepare to ship" and "ship"

* add small comment

* remove duplicated function

* clear up logic for writing to stages

* backwards-compatible urls and api

* Update tests
2022-12-20 10:07:18 -08:00
Daniel Smith 79d397eefc
Use active_stage_id to display active on detail page (#2557)
* Use active_stage_id to display active on detail pg

* match stage ID only to determine active stage
2022-12-19 13:48:32 -08:00
Daniel Smith cb99420597
remove "SHIPPED" stage types (#2569)
* remove "SHIPPED" stage types

* fix processes and tests

* add shipped form field to shipping form field

* Show matching process stages on process overview

* fix tests

* remove active_stage_id reference

* remove active_stage_id from test

* typo

* Use utils method for finding process stage

* Add function argument
2022-12-19 13:48:12 -08:00
Kyle Ju 9001b06bdf
Add /newfeatures page rollout banner (#2580)
* Add rollout banner

* test template

Co-authored-by: Kyle Ju <kyleju@chromium.org>
2022-12-14 11:31:36 -08:00
Daniel Smith aedf07f6e6
Add new enums to help support multiple stages (#2543)
* Add new enums to help support multiple stages

* fix test

* remove revised enum
2022-12-05 16:46:26 -08:00
Daniel Smith fd941f1ded
blink_components guide update bug fix (#2534) 2022-12-01 15:37:15 -08:00
Daniel Smith b5d8839036
Remove bad input from rollout_platforms (#2526)
* remove bad input from rollout_platforms

* clearer comparison
2022-12-01 13:30:11 -08:00
Jason Robbins 5edf02f4ab
Make pending review and recent review queries use Gate.state (#2515)
* Progress

* partly fixed tests

* Updated unit tests

* Put back old search specs for open SPA tabs.

* Added some more indexes that NDB says are needed

* Add indexes needed by NDB
2022-11-29 15:06:38 -08:00
Jason Robbins b0ac9d8339
Allow the user to clear out a multi-select field. (#2500) 2022-11-23 13:12:04 -08:00
Yann Dago b465758c63
Add enterprise feature and breaking change support (#2482)
* Add enterprise feature and breaking change support

* jcsotti review comments

* jrobbins review comments

* Fix tests

* jcsotti comments: Add tests

* Add enterprise feature and breaking change support

* jcsotti review comments

* jrobbins review comments

* Fix tests

* jcsotti comments: Add tests

* jcsotti comments: Add tests

* Fix CI

* Fix CI

* Add type checking
2022-11-22 14:09:59 -08:00
Jason Robbins 5519378017
Add edit buttons to the feature detail page (#2488)
* Half done

* More like the mocks

* Add contextual navigation to next page, and edit-all button

* Only show edit-all if canEdit
2022-11-18 16:52:39 -08:00
Daniel Smith 671b23a704
Use FeatureEntry entities for "All Features" page (#2469)
* Use FeatureEntry for displaying all features list

* remove TODO

* update testing for new function

* Update comments
2022-11-16 15:28:17 -08:00
Daniel Smith d5ba6dc59a
Reference feature stages as possibly plural (#2478)
* Reference feature stages as possibly plural

* update tests

* Check that milestones is not null first

* extra line
2022-11-15 15:34:09 -08:00
Jason Robbins 429f4c3214
Fix editing of unlisted checkbox on metadata form. (#2479) 2022-11-15 13:23:07 -08:00
Daniel Smith 2bb1b3ba23
typo fix (#2465) 2022-11-10 12:03:56 -08:00
Daniel Smith 3141ef5005
FeatureEntry edit bug fix (#2461)
* handle emails and use new field names

* rearrange if statement fields
2022-11-09 14:06:42 -08:00
Daniel Smith 87655651e9
Use FeatureEntry and Stage for stars and notifiers (#2447)
* Use FeatureEntry and Stage for stars and notifiers

* Comments and handle special fields

* changes suggested by @jrobbins
2022-11-09 10:34:51 -08:00
Daniel Smith e2ce1d405e
Use FeatureEntry for most client-side use cases (#2433)
* Use FeatureEntry entity for most client-side uses

* leave notify and amendments to Feature for now

* handle redis keys
2022-11-06 12:57:40 -08:00
Jason Robbins 7069f4e4f9
Fix double-write for ready_for_trial_url. (#2427)
* Fix double-write for ready_for_trial.

* Store ready_for_trial in announcement_url

* Simplify double-write of dev trail announcement_url
2022-11-02 16:17:01 -07:00
Daniel Smith 87a7a23d1f
Move Feature methods to helper files (#2407)
* type hints

* Revert "type hints"

This reverts commit 9ffab5aabd.

* Move feature functions to separate helpers file

* remove import

* more import removal

* end of file newline

* mypy ignore ndb

* @jrobbins review changes

- Removed older standardization field logic
- Added TODO for migration script for values in migrate_views()
2022-10-27 10:17:54 -07:00
Jason Robbins 8586ace822
Implement simple full-text search using NDB (#2392)
* Progress

* Code complete

* Started writing tests

* local mypy

* Finished tests for now and fixed some defects
2022-10-26 12:09:01 -07:00
Jason Robbins c3ecc06b9d
Remove unused feature json version=1 (#2394)
* Phase out feature JSON version 1.

* Delete unused DictModel.format_for_template()
2022-10-25 16:16:54 -07:00
James C Scott III dad9bcceb6
Remove RSS functionality and dependencies (#2393)
Fixes #2366
2022-10-25 12:17:23 -04:00
Daniel Smith b833192a13
Write Stage, Gate, and Vote entities (#2330)
* Write Stage, Gate, and Vote entities

* More tests for Stage and Gate

* Remove old imports from review_models.py

* revert approval_def constants references

* remove unused imports

* revert cache prefix change

* remove whitespace at end of line

* mypy fix

* fix ndb import
2022-10-24 07:10:36 -07:00
Daniel Smith 49fb21595d
Run mypy in Github continuous integration checks (#2324)
* run mypy in CI

* more type hint fixing

* Update requirements.txt

* google.cloud import workaround

https://github.com/python/mypy/issues/10360

* Revert "google.cloud import workaround"

This reverts commit e03dbc7bbeb67acc81f57b9c5d905b9141952dbc.

* mypy google.cloud workaround

https://github.com/python/mypy/issues/12985

* fix regular tests

* remove --install-types flag

* last mypy fix

* type fixes for address_reasons

* move email lists creation

* update for newly merged changes

* Fix regular tests

* Changes suggested by @jrobbins

* Catch invalid requests

* small type hint

* Change methods to properly override

* revert to previous implementation

* revert test

* add back original validate request type method

* remove unused import and rearrange methods

* remove comment string casting; add test back

* add ndb ignore

* Update test_html_rendering.html

* mypy fix

* remove merge addition
2022-10-24 06:40:21 -07:00
Kyle Ju 582a594aa8
Use get_int_arg for integer arg parsing (#2359)
* Replace with get_int_arg usage

* Address comments

Co-authored-by: Kyle Ju <kyleju@chromium.org>
2022-10-19 14:08:42 -07:00
James C Scott III ad9ee9ae31
Remove all references to django (#2358)
* Remove all references to django

Replace any functionality with flask

* more cleanup

* fix template test after removing empty comment

* remove unused test_app
2022-10-19 13:51:39 -04:00
James C Scott III 385d62374b
Add assertions for the templates in #2355 (Part 2 of 2) (#2356)
* Add assertions for the templates in #2355

- Move the TESTDATA functionality to a testing_config to be a test helper.
In this new helper, users can still retreive from it like a dictionary.
In addition, there's a helper function to help make goldens that can be
used to regenerate the golden templates. Add commented out
code to use it.
- Add some clean ups to individual tests or test cases. This was needed
because some of the existing rendering tests would pull from the database.
But since they only asserted for the existence of some values, it did
not matter. In the future, we can add mocks for all of those.
  - These cleanups also help for more than the rendering tests. Before these fixes, there were ~15 non-rendering tests that would fail if a developer ran the full suite with a clean db, then re-ran a test indivdually without resetting the database. There are still 2 non-rendering tests that fail without clearing the database first. But this first iteartion got a lot of them.
- Add a missing test for the PrepublicationHandler to increase coverage

* address comments

* more cleanup
2022-10-19 10:14:52 -04:00
James C Scott III ea1e4a325d
Add templates for tests (#2355)
This is a split of #2323. In order to make that PR readable, I split that up.
This commit only contains the testdata.
2022-10-18 15:29:42 -04:00
Daniel Smith 9ed293d7a2
Change existing handler classes to properly override request methods (#2342)
* Change methods to properly override

* Update comments_api.py

* Update comments_api.py
2022-10-16 08:39: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
Daniel Smith 3d511e4553
Some introductory type hinting and refactoring (#2319)
* some introductory type hinting and refactoring

* Update user_models.py
2022-10-12 09:16:36 +02:00
Daniel Smith b4fa4daf5a
Migrate and write additional fields for FeatureEntry and Stage (#2318)
* Handle final fields

Add `announcement_url` to the Stage kind, and populate entities in the migration using the `ready_for_trial_url` field. Additionally, migrate the `experiment_timeline` field for FeatureEntry.

* Update guide.py
2022-10-11 18:56:48 +02:00
Daniel Smith d8b9c00927
Write to Stages when editing a feature (#2311)
* write to stages upon editing

* docstring

* simplify test

* Update core_models.py
2022-10-11 08:58:06 +02:00
Jason Robbins 7f76c029f3
Remove unused references to opera milestones (#2314) 2022-10-10 13:41:14 -07:00
Daniel Smith 75b7c85953
default values for some required fields (#2310) 2022-10-10 19:43:40 +02:00
Daniel Smith e4dfbca7db
Rename FeatureEntry fields with clear email names (#2297)
* rename email fields

* renamed comment

* comment typo
2022-10-05 09:59:54 -07:00
Daniel Smith b7247f30d6
Fix FeatureEntry editing (#2288)
* Update guide.py

* Update guide.py
2022-10-03 14:05:46 -07:00
Daniel Smith 7b08f2a6b8
Write and edit FeatureEntry entities when creating Features (#2278)
* Double write Feature and FeatureEntity entries

* Update tests

* tuples as needed
2022-10-03 10:11:05 -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
Kyle Ju fe65355d6a
Completely migrate feature-related cache off ramcache (#2234)
* Implement scan

* Migrate feature cache

* Address comments

* Fix

* Add cache_key argument

Co-authored-by: Kyle Ju <kyleju@chromium.org>
2022-09-14 10:07:32 -07:00
Jason Robbins 0fc62d05ff
Clarify where we load features directly from the DB, not cache. (#2239) 2022-09-13 16:30:34 -07: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
Kyle Ju e5f9a7b642
Create Redis staging setup (#2211)
* Redis staging setup

* Add an if for staging

* Implement Redis caching APIs (#2212)

* Redis APIs

* Nit

* Partially migrate Ramcache usage to Redis (#2214)

* Migrate all fields except feature-related cache

* Fix

* Address comments

Co-authored-by: Kyle Ju <kyleju@chromium.org>

Co-authored-by: Kyle Ju <kyleju@chromium.org>

Co-authored-by: Kyle Ju <kyleju@chromium.org>
2022-09-12 13:56:50 -07:00
Kuan-Hsuan (Kevin) Shen 139689bc73
Farewell to `guideforms.py` and all the Django form widgets 🎉 (#2221)
* 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

* Farewell to `guideforms.py`

* Remove Django widgets
2022-09-08 20:45:57 -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
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
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 9970ec3d7a
Enable new permissions system (#2174)
* enable new permissions

* review changes
2022-08-26 15:30:55 -07:00
Kuan-Hsuan (Kevin) Shen bd92897383
Convert guide/stage page into a component (#2163)
* Convert guide/stage page into a component

* Fix python unit test
2022-08-23 19:24:02 -04:00
Jason Robbins 697cf9b38d
Refactor remaining models.py code into core_models.py (#2160)
* Refactor remaining models.py to core_models.py.

* Move tests to the right _test file.
2022-08-23 16:00:02 -07:00
Kuan-Hsuan (Kevin) Shen 0a9d05d368
Convert guide/verify_accuracy page into a component (#2147)
* Convert guide/verify_accuracy page into a component

* Add form_fields hidden input to verify and editall pages

* Correct form_field values and check them in tests

* fix `getFormFields()`
2022-08-22 20:41:12 -04:00
Jason Robbins 86561da513
Replace RSS with notice that it is not offered. (#2151) 2022-08-22 10:34:33 -07:00
Kuan-Hsuan (Kevin) Shen af6d164208
Generate text, url, multi-email, and number inputs through JS (#2145)
* Migrate text input and url input

* Migrate multiemail and number inputs

* Make requested changes and fix missing initial value
2022-08-19 14:15:19 -04:00
Jason Robbins fa68319bd5
Fix feature creation page category and feature_type fields. (#2143)
* Fix feature creation page category and feature_type fields.

* Addressed Kevins comments.
2022-08-17 19:48:34 -07:00
Jason Robbins 689483c0f3
Refactor user-related models into a separate file. (#2141) 2022-08-17 18:14:19 -07:00
Kuan-Hsuan (Kevin) Shen 2058da81ed
Convert guide/editall page into a component (#2131)
* Convert guide/editall page into a component

* wrap up the unit test
2022-08-16 20:54:24 -04:00