|
1 | | -Please replace the following example with your own content. |
| 1 | +Fixes TODO |
2 | 2 |
|
3 | | -Fixes [#25](https://github.com/icefoganalytics/yhsi/issues/25) |
| 3 | +Relates to: |
4 | 4 |
|
5 | | -# User Story |
| 5 | +- TODO |
6 | 6 |
|
7 | | -See https://github.com/icefoganalytics/yhsi/issues/3 |
8 | | -As an edit level user I can edit the /sites Themes & Function form and it will create a site change request for admin approval. |
| 7 | +# Context |
9 | 8 |
|
10 | | -# Details |
| 9 | +TODO |
11 | 10 |
|
12 | | -Now that I have a working example in the form of the Summary, Location, and Dates & Conditions sections, this task is simply a port of the existing patterns to include an additional sub-form. |
| 11 | +# Implementation |
13 | 12 |
|
14 | | -# Implementation Details |
15 | | - |
16 | | -- Tweaked PlaceEdit saving and serialization to hopefully reduce developer errors. |
17 | | -- Dockerize the test suite and update the README. |
18 | | -- add a `dev ts-node` to get access to a local node repl that runs typescript. |
| 13 | +TODO |
19 | 14 |
|
20 | 15 | # Screenshots |
21 | 16 |
|
22 | | - |
| 17 | +TODO |
23 | 18 |
|
24 | 19 | # Testing Instructions |
25 | 20 |
|
26 | | -1. Update your user roles to include `Site Admin` via the database console. |
27 | | -2. Go to the /sites table and select a site. |
28 | | -3. In the Themes & Function form, make an edit and press save. |
29 | | -4. The site will refresh and your edits will be saved. |
30 | | -5. Update your user roles so that they _do not include_ `Site Admin` or `Administrator` via the database console. Something like `Site Viewer` would probably be best. |
31 | | -6. Go to the /sites table and select a site. |
32 | | -7. In the summary form, make and edit (or two) and press save. |
33 | | -8. The page will refresh and all Themes & Function fields will become readonly. The save button on the Themes & Function form will be disabled with an appropriate tooltip. |
34 | | -9. Make yourself an `Site Admin` again and go to the /sites-change-requests table. |
35 | | -10. The new change request will be at the top of the list. Click on it to review. |
36 | | -11. Note the various features: |
37 | | - |
38 | | -- "accept/reject" toggle buttons |
39 | | -- accept/reject all |
40 | | -- save button is locked until all changes are approved/rejected |
41 | | - |
42 | | -12. Reject and accept some changes and press Save. |
43 | | -13. Go back to the /sites table and check that you can now edit the site and that the changes have been applied or rejected correctly. |
| 21 | +1. Run the test suite via `dev test` (or `dev test_api`) |
| 22 | +2. Boot the app via `dev up` |
| 23 | +3. Log in to the app at http://localhost:8080 |
| 24 | +4. |
0 commit comments