Sarai-WMDE added a comment.
Sharing an early version of the current design exploration. All feedback will be welcome and appreciated 🙏🏻 The current suggested solution consists in **toggling the primary button in the Query Service to allow users to "run" and "stop" their queries**. The flow would go as follows: 1. Immediately (100ms) after the “Run” button is pressed, it’s replaced by a “Stop” button. 2. If a user presses the “Stop” button while a query is running, the processing of the query stops and the button toggles back to "Run". The "stopping" of the query is also indicated by a message in the results area for clarity (I propose displaying the message for a couple of seconds, even if the "stopping" is immediate). 3. Once the "Stop" button toggles back to "Run", the (new) query can be immediately ran again (going back to 1) 4. The "Stop" button displayed while the query is running automatically becomes "Run" again once the query results are ready/displayed. Here's a gif showcasing the proposed manual toggling flow: F41601627: opt1.gif <https://phabricator.wikimedia.org/F41601627> Please note that the "Stopping query" message displayed in the results area would be colored red (I used screenshots to save time). Open questions and comments: - Accidental double clicks are still a possibility in the suggested flow, but I think this is an acceptable trade-off inherent to all toggle buttons. Any ideas to prevent potential issues are welcome. - As a runner-up, we considered re-enabling the "run" button when users modified the contents of a running query, but this option was discarded because it doesn't communicate explicitly that re-running the query is a possibility (one has to first make a change to realize). In the suggested flow, applying changes to the content of the query doesn't have any impact on the UI (toggling the button indirectly doesn't sound like a good idea). TASK DETAIL https://phabricator.wikimedia.org/T245643 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Sarai-WMDE Cc: Michael, Ainali, Lydia_Pintscher, jhsoby, agray, Nikki, Sarai-WMDE, Arian_Bozorg, edwardbetts, Aklapper, Bugreporter, Danny_Benjafield_WMDE, Astuthiodit_1, AWesterinen, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Namenlos314, Lahi, Gq86, Lucas_Werkmeister_WMDE, GoranSMilovanovic, Mahir256, QZanden, EBjune, merbst, LawExplorer, Salgo60, _jensen, rosalieper, Scott_WUaS, Jonas, Xmlizer, jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org