This task uses the same functionality and design crated for the user-feedback panel described in T128937, adapting it for a message about signing up for the notifications beta feature.
When cross-wiki notifications are exposed as a beta feature (T114237), users need to enable it on each of the sites they use independently. We may want to facilitate/encourage that process in order to achieve one or more of the following goals:
- Avoid confusing users about why the feature is not available when they navigate to a different site (which may not be obvious especially when the navigation happens because of a cross-notification).
- Save users time from manually enable the feature in many different places.
- Make users aware that the beta feature exists. This is not the main goal, but it would be great to have a solution that can be also used to invite users that don't know the feature at all (not only fixing the issues of those who enabled the feature already in one wiki).
**Design principles**
Some aspects we want for a solution in this context:
- **Non-disruptive.** Users are using notifications to do their work, we don't want to distract them.
- **Quick to act on.** Given the lack of global settings, users of multiple wikis will get exposed to this several times and we don't want it to get annoying. It needs to be a quick process.
- **Make an informed decision.** Most of the time users may decide to give a try, but some may be interested in learning more first. It is important to highlight the scope of the change (it affects only the current wiki).
# Proposed design
After exploring several options (T128746), we want to provide an invite inside the notification panel. We augment the notification panel to include an invitation to enable the feature:
{F3514991}
- The invite is shown when a user has notifications in other wikis. In this way, the results of enabling it are much more visible immediately.
-- Main copy: "Do you want to view notifications from other wikis?"
-- Secondary copy: "Enable “Enhanced notifications” beta on English Wikipedia" shown in blue to emphasise the actionable
- The invite sticks to the bottom of the panel. In this way it remains visible all the time but does not compete with the most recent notifications.
- In terms of styling it follows the style of unread notifications (icon, white background, hover state, etc.).
- The main action (i.e., clicking the invite) enables the beta feature for the current wiki and makes the invite disappear.
- Discarding the invite (clicking the "X") removes the invite and it is never shown again for the user in the current wiki.
- An additional help icon ("?") provides access to the information page (the same used for the beta feature "information" link).
Once the user clicks on the invite, the beta feature is automatically enabled and a transient feedback is provided to confirm the feature has been enabled (and hint on how to undo the action). A time-based bubble-style notification should be enough for this:
{F3515306}