User story:
A user should be able to support a wish or a focus area.
Acceptance criteria:
- There should be a support button on wish and focus area pages.
- When a user is logged out, the button should say "Please log in to support this wish/focus area" that when clicked, redirects the user to login, after which they should be redirected back to the wish/FA detail page.
- When a user is logged in, the user should see the support button that, when clicked, opens a modal with text field and a button to support.
- Pressing Escape or clicking outside the modal should close the modal
- Pressing Enter or clicking support should record the “support”
- After submission, the user should see a confirmation message that their support has been submitted
- Votes should take the usual form of comments in MediaWiki, i.e. "Support My optional comment. Username (talk) 18:56, 14 December 2024 (UTC)"
- The updated vote count should be displayed (T400972)
Same as T400956: Check if user is logged when showing voting button
QA Results - Commtech.toolforge
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T399496#11066976 |
| 2 | ✅ | T399496#11066976 |
| 3 | ✅ | T399496#11066976 |
| 4 | ✅ | T399496#11066976 |
| 5 | ✅ | T399496#11066976 |
| 6 | ✅ | T399496#11066976 |

