| | 1 | == User opens dashboard == |
| | 2 | |
| | 3 | === Actors === |
| | 4 | Admin |
| | 5 | |
| | 6 | === Scenario === |
| | 7 | 1. The admin opens the admin dashboard |
| | 8 | 2. A table with all the component suggestions is displayed |
| | 9 | 3. The admin can choose whether to approve or reject the suggestions |
| | 10 | 4. Upon choosing, a popup asking for reasoning behind the choice is displayed |
| | 11 | 5. The admin gives their reasoning and the status of the suggestion is changed |
| | 12 | |
| | 13 | {{{ |
| | 14 | UPDATE suggestions |
| | 15 | SET |
| | 16 | admin_id = $adminId, |
| | 17 | status = $status, |
| | 18 | admin_comment = $adminComment |
| | 19 | WHERE id = $suggestionId |
| | 20 | }}} |
| | 21 | |