Context
As a community member or admin
I want to set the communities nominated page collection
so it receives proper emphasis on the Content Translation dashboard
Communities can only nominate 1 collection at a time.
Solution
Community Configuration
Since local customization is not available when current wiki != target language. We'll could expose the featured collections through a MW API. CC doesn't have an API.
See example: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ContentTranslation/+/1193885
Other considerations
It is possible that communities will want to include text and or metadata with their featured collections.
Derived Requirement
Allow a community to nominate exactly one featured collection for a target language so it can be emphasized on the Content Translation dashboard.
The nominated collection must be configurable via Community Configuration and exposed through a MediaWiki API so it can be consumed cross-wiki when the current wiki differs from the target language.
The system must enforce a single active nomination at any time and support future extensibility for optional descriptive text or metadata associated with the nominated collection.
Test Steps
Test Case 1: Verify a community can nominate a single featured collection
Preconditions:
- User has appropriate permissions to edit Community Configuration for the target language.
- Navigate to the Community Configuration interface for featured collections.
- Select a collection to nominate as the featured collection.
- Save the configuration.
- ✅❓❌⬜ AC1: Confirm exactly one collection is marked as nominated and saved successfully.
Test Case 2: Verify only one featured collection can be nominated at a time
- In Community Configuration, attempt to nominate a second collection while one is already nominated.
- Save the configuration.
- ✅❓❌⬜ AC2: Confirm the system enforces a single nomination (either by replacing the existing nomination or preventing multiple selections).
Test Case 3: Verify nominated collection is exposed via MediaWiki API
- Make an API request that retrieves the featured collection for a given target language.
- Inspect the API response.
- ✅❓❌⬜ AC3: Confirm the response includes the nominated collection and accurately reflects the Community Configuration setting.
Test Case 4: Verify cross-wiki access to nominated collection
- Open the Content Translation dashboard on a wiki that is not the target language wiki.
- Set a translation pair whose target language has a nominated featured collection.
- Observe the featured collection data used by the dashboard.
- ✅❓❌⬜ AC4: Confirm the nominated collection is retrieved via the API and used correctly despite being on a different wiki.
QA Results - TestWiki
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T408625#11470695 |
| 2 | ✅ | T408625#11470695 |
| 3 | ✅ | T408625#11470695 |
| 4 | ✅ | T408625#11470695 |

