As a Watchlist Expiry user, I want to be able to select a temporary watch period via drop-down in the pop-up, so that I can successfully watch a page for a predetermined set of time.
Background: This is a sub-task of T248496. Please refer to this ticket for details.
Resources:
- Watchlist Expiry project page
- Interactive mockup: Watch a page temporarily (via star)
- Interactive mockup: Unwatch a page (via star)
Acceptance Criteria:
- Implement a drop-down for user to select a temporary time period
- Label has the name "Watchlist time period:" above drop-down
- The drop-down has the following options:
- Permanently (set as default)
- 1 week
- 1 month
- 3 months
- 6 months
- Implement functionality and behavior after selection chosen
- If the user keeps default selection ("permanently"), the popup should disappear after X seconds
- If a temporary span was chosen, the following behavior should occur:
- The full star rotates and becomes half star (see half star details in T248495)
- Display a success message: [page name] and its talk page have been added to your watchlist [time period, such as "one week"]
- The word "watchlist" in the pop-up should always link to the user's watchlist
- Adjust the watch state of the page to have an expiry
- Watching temporarily via the star dropdown should sync with the watchlist fields in a page edit page.
Visual Examples:
Temporarily watch a page via star, before selection made
Temporarily watch a page via star, as selection is being made
Temporarily watch a page via star, after selection made
Unwatch a page