Page MenuHomePhabricator

Special:ContentTranslation#suggestions - automatically refresh when all suggestions are discarded
Open, MediumPublic

Description

User story:

  • As someone who wants to translate content
  • When I don't want to translate any of the suggested articles, and discard them
  • Then the "refresh suggestions" function should be called automatically, rather than needing to manually refresh

The refresh button internally calls the function refreshPublicLists
The discard button internally calls the function discardSuggestion

New logic should be added to the discardSuggestion function to check if there are any remaining suggestions. If there are none, the refresh function should be called

To check if there are no remaining suggestions

$('.cx-slitem').length === 0

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@DannyS712: Do you plan to mentor this in Google-Code-in-2019, or why was the tag added?

Pginer-WMF triaged this task as Medium priority.Jan 20 2020, 9:07 AM
Pginer-WMF moved this task from Check & Move to Bugs on the ContentTranslation board.

@DannyS712: Do you plan to mentor this in Google-Code-in-2019, or why was the tag added?

I was hoping someone else could mentor it