With T387958: Parser tag <wish> to save wish data to db and T388207: Add <focus-area> parser function to save focus area data out of the way, it's time to fit the pieces together. Currently the codebase has TODO comments or uses empty values where the focus area should go.
Technical notes
- There needs to be a hidden input outside the "is wishlist manager" check, so that the focus area value gets submitted even for non-staff.
Acceptance criteria
- Add a "Focus area" input to Special:WishlistIntake, visible only to users with the manage-wishlist right (such as admins on CommTechWiki)
- The Lookup component should do fine here
- The wikitext value for the focus area in the source of the wish page should be the autogenerated subtitle, i.e. FA123
- When viewing a wish, you should see a link to the focus area with the localized title, i.e. "My first focus area!"
Derived Requirement
Integrate wish and focus area data by allowing users with the manage-wishlist right to assign a focus area (via subtitle, e.g., FA123) to a wish when using Special:WishlistIntake. Ensure the assigned focus area is stored and rendered as wikitext in the wish page source, and that the localized focus area title appears as a link when viewing the wish.
Test Steps
Test Case 1: Ensure 'Focus area' input is visible only to users with manage-wishlist rights
- Log in as a user with the manage-wishlist right.
- Navigate to Special:WishlistIntake.
- ✅❓❌⬜ AC1: Confirm that a "Focus area" input field is visible.
- Log in as a user without the manage-wishlist right.
- ✅❓❌⬜ AC2: Confirm that the "Focus area" field is not visible, but that its value is still submitted in the form (hidden input present in markup).
Test Case 2: Ensure Lookup component allows selecting a valid focus area
- While logged in as a wishlist manager, click into the "Focus area" input field.
- Use the Lookup field to select an existing focus area (e.g., "My first focus area!").
- ✅❓❌⬜ AC3: Confirm the focus area is selected and assigned to the wish prior to submission.
Test Case 3: Ensure correct subtitle (e.g., FA123) is saved in wikitext
- Submit a wish using Special:WishlistIntake with a selected focus area.
- Navigate to the newly created wish page (e.g., Community Wishlist/Wishes/W456).
- View the page source.
- ✅❓❌⬜ AC4: Confirm that the focus-area wikitext parameter is set to the subtitle (e.g., FA123), not the localized name.
Test Case 4: Ensure localized focus area title is shown as link on wish view
- Open a wish page that has a focus area assigned.
- ✅❓❌⬜ AC5: Confirm that the focus area is rendered as a clickable link showing its localized title (e.g., "My first focus area!") and linking to the correct focus area page.
QA Results - commtech.toolforge
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T397975#11002701 |
| 2 | ✅ | T397975#11002701 |
| 3 | ✅ | T397975#11002701 |
| 4 | ✅ | T397975#11002701 |
| 5 | ✅ | T397975#11002701 |
| FA Translation | ✅ | T397975#11062530 |















