Sarai-WMDE created this task.
Sarai-WMDE added projects: Wikidata Dev Team, Wikidata, Wikidata Query Builder.

TASK DESCRIPTION
  Problem
  -------
  
  In the Query Builder, users have the option to copy a short version of their 
QB query using an icon-only button in the run query section:
  
  F43434393: Screenshot 2024-03-26 at 12.25.31.png 
<https://phabricator.wikimedia.org/F43434393>
  
  The current solution is not fully optimal for the following reasons:
  
  - The action is expressed by a text positioned outside the button that 
performs said action
  - Screen reader users navigating the page using modifier keys get potentially 
confusing information: the copy "get shareable link" communicates an action, 
but it's not presented as an interactive element
  - Screen reader users navigating the page using modifier keys get duplicated 
information (first the external text, then the button text).
  
  Solution
  --------
  
  We'll use a normal progressive button to communicate the "Copy link to query" 
action.
  
  The behavior will be the same: on click, the new "Copy link to query" button 
will get the shorter query URL copied and trigger the display of a confirmation 
popover.
  
  F43435040: Screenshot 2024-03-26 at 12.37.03.png 
<https://phabricator.wikimedia.org/F43435040>
  
  Considerations:
  ---------------
  
  - We'll use `cdx-button` to replace the current "Get a shareable link" 
functionality
  - We'll use a ported version of the WiKit tooltip/popover (this component is 
not available yet in Codex) to confirm that the URL has been copied to the 
user's clipboard
  
  Acceptance criteria:
  --------------------
  
  [ ] The "Get shareable link" functionality is provided using a Codex 
icon+text button with the label "Copy link to query"
  [ ] The behavior remains the same: on click, the shorter version of the 
query's URL is copied to the user's clipboard
  [ ] A ported version of the WiKit tooltip (TASK TBC) is used to communicate 
that the URL has been copied

TASK DETAIL
  https://phabricator.wikimedia.org/T360997

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Sarai-WMDE
Cc: Arian_Bozorg, Aklapper, Sarai-WMDE, Danny_Benjafield_WMDE, S8321414, 
Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, 
Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, KimKelting, LawExplorer, 
_jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to