Arian_Bozorg created this task.
Arian_Bozorg added projects: Wikidata Query UI, Wikidata, Wikidata Dev Team.

TASK DESCRIPTION
  As a Query Service user I want to have decoded URLs displayed in my query 
results in order to easily read them.
  
  **Problem:**
  Currently when running a query on the Query Service (example 
<https://query.wikidata.org/#select%20%2a%20%7B%20%3Fsl%20schema%3Aabout%20%3Fitem%20%7D%20limit%20200>)
 some of the URLs displayed are very long and difficult for humans to read.
  
  This ticket is to reduce the length of those URLs and make them more legible 
to humans by decoding them.
  
  **Example:**
  
  Decoding the displayed URL, so that a URL like:
  
    
<https://bg.wikiquote.org/wiki/%D0%92%D1%81%D0%B5%D0%BB%D0%B5%D0%BD%D0%B0_%E2%80%94_%D0%9A%D0%BE%D1%81%D0%BC%D0%BE%D1%81_%E2%80%94_%D0%A1%D0%B2%D0%B5%D1%82%D0%BE%D0%B2%D0%B5>
  
  turns into
  
    <https://bg.wikiquote.org/wiki/Вселена_—_Космос_—_Светове>
  
  **Screenshots/mockups:**
  
  Current display of URLs:
  F36354901: image.png <https://phabricator.wikimedia.org/F36354901>
  
  **BDD**
  GIVEN 
  AND 
  WHEN
  AND
  THEN
  AND
  
  **Acceptance criteria:**
  
  [ ] URL results on the Query Service are decoded
  
  **Open questions:**
  Are there some special characters we don’t want to decode, e.g. RTL override?
  Could an automatic <wbr> insertion cause issues?
  
  **Original ticket**
  
  In T325075#8523739 <https://phabricator.wikimedia.org/T325075#8523739>, 
@Nikki wrote:
  
  > In T325075#8519658 <https://phabricator.wikimedia.org/T325075#8519658>, 
@Sarai-WMDE wrote:
  >
  >> 1. URLs are fixed sets of characters that won't wrap on their own. We 
should apply `word-break: break-word;` to the QS table in order to allow these 
long values to break into subsequent lines based on the available column space. 
This will prevent the list display to be triggered by the lack of horizontal 
space in this case.
  >
  > I would suggest decoding the displayed URL, so that a URL like
  >
  >   
<https://bg.wikiquote.org/wiki/%D0%92%D1%81%D0%B5%D0%BB%D0%B5%D0%BD%D0%B0_%E2%80%94_%D0%9A%D0%BE%D1%81%D0%BC%D0%BE%D1%81_%E2%80%94_%D0%A1%D0%B2%D0%B5%D1%82%D0%BE%D0%B2%D0%B5>
  >
  > turns into
  >
  >   <https://bg.wikiquote.org/wiki/Вселена_—_Космос_—_Светове>
  >
  > (a third of the original length and actually legible to humans) and then 
use `<wbr>` at appropriate points in the URL (see 
https://css-tricks.com/better-line-breaks-for-long-urls/), e.g.
  >
  >   
<https:<wbr>//<wbr>bg<wbr>.<wbr>wikiquote<wbr>.<wbr>org<wbr>/<wbr>wiki/<wbr>Вселена<wbr>_<wbr>—<wbr>_<wbr>Космос<wbr>_<wbr>—<wbr>_<wbr>Светове>
  >
  > Here's some HTML comparing the original, the original with `word-break: 
break-word`, the decoded URL, the decoded URL with `word-break: break-word` and 
the decoded URL with `<wbr>` that you can use to compare the behaviour (zooming 
in will make it easier): F36190008: wbr.html 
<https://phabricator.wikimedia.org/F36190008>

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

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

To: Arian_Bozorg
Cc: Aklapper, Arian_Bozorg, Nikki, Sarai-WMDE, Astuthiodit_1, AWesterinen, 
karapayneWMDE, Invadibot, MPhamWMF, maantietaja, CBogen, 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, Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to