Page MenuHomePhabricator

Supporting wishes and focus areas
Closed, ResolvedPublic

Description

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

Event Timeline

KSiebert updated the task description. (Show Details)
MusikAnimal renamed this task from Clean up support button in wish and focus area pages to Supporting wishes and focus areas.Jul 23 2025, 2:17 AM
HMonroy changed the task status from Open to In Progress.Jul 23 2025, 7:18 PM
HMonroy claimed this task.
HMonroy edited projects, added Community-Tech (Sea Lion Squad); removed Community-Tech.

Change #1173499 had a related patch set uploaded (by HMonroy; author: HMonroy):

[mediawiki/extensions/CommunityRequests@master] Clean up supporting wishes and focus areas

https://gerrit.wikimedia.org/r/1173499

Change #1173499 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Clean up supporting wishes and focus areas

https://gerrit.wikimedia.org/r/1173499

HMonroy updated the task description. (Show Details)
HMonroy updated the task description. (Show Details)

@HMonroy Same results as T400956: Check if user is logged when showing voting button.

See Focus results on T400956: Check if user is logged when showing voting button

UPDATE: AC1 has now been updated. I will now mark this as Resolved. Thanks for all your work!

Test Result - Commtech.toolforge

Status: ✅ PASS
Environment: Commtech.toolforge
OS: macOS Sequoia 15.6
Browser: Chrome 138
Device: MBA
Emulated Device: NA

Test Artifact(s):
(Screenshot of logged-out and logged-in voting button states, modal interaction)

Test Steps

Test Case 1: Verify voting button behavior when user is logged out

  1. Open a private/incognito window to ensure the user is logged out.
  2. Navigate to a wish or focus area view page (ex. https://commtech.toolforge.org/index.php?title=Community_Wishlist/Wishes/W1).
  3. AC1: Confirm that the voting button displays the message: *"Please log in to support this wish/focus area."*
✅Wish✅Focus
2025-08-12_11-09-59.png (1×1 px, 179 KB)
2025-08-12_11-14-15.png (1×1 px, 207 KB)
  1. Click the button.
  2. AC2: Verify that the user is redirected to the login page.

See AC1

  1. Log in with valid credentials.
  2. AC3: Confirm that after login, the user is redirected back to the same wish area page they came from.

See AC1

Test Case 2: Verify voting modal when user is logged in

  1. Log in to the commtech.toolforge with a user account.
  2. Navigate to a wish view page.
  3. AC4: Confirm that a support button is visible.

  1. Click the support button.
  2. AC5: Verify that a modal appears with:
    • A text field for entering an optional comment
    • A submit button to cast support

See AC4

  1. Enter a comment and click submit.
  2. ✅⬜ AC6: Confirm that the support is recorded and reflected in the UI.
  3. Optionally, reload the page to verify the vote persists.

See AC4

GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.
GMikesell-WMF updated the task description. (Show Details)