Calendar Event: Location URLs are not clickable
Categories
(Calendar :: Dialogs, enhancement, P1)
Tracking
(Not tracked)
People
(Reporter: dave, Assigned: khushil324)
Details
Attachments
(2 files, 7 obsolete files)
6.48 KB,
patch
|
khushil324
:
review+
|
Details | Diff | Splinter Review |
4.02 KB,
patch
|
pmorris
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0
Steps to reproduce:
Click on an event in the calendar that has a URL for the location (i.e anything that uses Zoom, Blue Jeans et. al. for video conferencing).
Actual results:
The URL displayed in the location field is not a hyperlink
Expected results:
I would like for it to behave like a hyperlink and open in a browser window when clicked.
Related to 1535018 - but that is more focussed on the notifications rather than the event dialog.
Comment 3•5 years ago
|
||
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Dave, are you able to finish off he patch?
Comment 6•5 years ago
|
||
Is it possible to identify URLs and linkify them in the description? Some software, like Microsoft Teams, add the link to the description and not to the location. This implementation solve the specific problem of not having links in the location but it doesn't address fully the need, that is to be able to quickly get to the meeting without too much hassle.
This is something that the email pane already does. Can we just reuse the same component?
Assignee | ||
Comment 8•5 years ago
|
||
Here, Location field is input. For some attendees it will be read only field and for some, it will be editable field. So, how do we want to tackle the editable field case? I will add Paul in the discussion to finalise the feature.
Here, we can do one thing, we can add the location URL(provided it's an URL) in the Attachments. In Attachments section, when you click on the URL, you will be redirected to the browser.
We can do another thing, take both Description and Location field, whatever URL we find in them, we add those to the Attachments. I find this very interesting. What do you suggest, Paul?
Comment 9•5 years ago
|
||
Right now, just a simple "make the link clickable in the reminder dialog that comes up for meetings" would be a HUGE improvement. Is there anything else in that dialog that is actually editable?
I get the desire to have it linked in the description/edit dialog, but right now, the worst aspect of this is that the reminder dialogs are not clickable so you have to do the annoying extra several steps to even get to where the location url is copyable.
Comment 10•5 years ago
|
||
The reminder dialog is one place, though maybe another bug. This would be for at least when you're looking at the summary dialog (all things readonly). The summary dialog we should really show by default when clicking open an event (bug 1575195).
Assignee | ||
Comment 11•5 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #10)
The reminder dialog is one place, though maybe another bug. This would be for at least when you're looking at the summary dialog (all things readonly). The summary dialog we should really show by default when clicking open an event (bug 1575195).
Okay, got it. We just want to do it for summary dialog right now.
Assignee | ||
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
Assignee | ||
Comment 14•5 years ago
•
|
||
(In reply to Magnus Melin [:mkmelin] from comment #13)
Can we just make it an <a:href> if we find the link, maybe the we don't need
the onclick/oncommand?
We will need onclick/oncommand just like this: https://searchfox.org/comm-central/source/mail/base/content/aboutDialog.js#135
We can use <label is="text-link"/> if we don't want to have onclick and oncommand.
Assignee | ||
Comment 15•5 years ago
|
||
(In reply to Khushil Mistry [:khushil324] from comment #14)
We can use <label is="text-link"/> if we don't want to have onclick and oncommand.
<label is="text-link"/> will be opened in the Thunderbird only. So we can't use that.
Comment 16•5 years ago
|
||
Ok.
Assignee | ||
Comment 17•5 years ago
|
||
Comment 18•5 years ago
|
||
Assignee | ||
Comment 19•5 years ago
|
||
Comment 20•5 years ago
|
||
Comment 21•5 years ago
|
||
(In reply to Paul Morris [:pmorris] from comment #20)
got a dialog saying: "Firefox is already running, but is not responding. To
open a new window, you must first close the existing Firefox process, or
restart your system."
This is because you're running a Thunderbird/Firefox with -no-remote
See bug 382477
Hm, I wonder if it would be better to use the same "item-location" as the
"id" for both linkified and non-linkified locations? That would make it
easier to get the element by id, regardless of its type.
I would keep them like in the patch. You rarely need to get this element. For css, could use a class, but... meh.
Comment 22•5 years ago
|
||
Assignee | ||
Comment 23•5 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #22)
For bonus points, we want to add also a context menu to copy the location
which is now a bit more tricky.
Like
https://searchfox.org/comm-central/search?q=taskview-link-context-menu&path=
Nice idea, I will update the patch with this.
Assignee | ||
Comment 24•5 years ago
|
||
Assignee | ||
Comment 25•5 years ago
|
||
I have used xul:label insted of html:a as a context property only works on XUL elements.
Comment 26•5 years ago
|
||
Comment 27•5 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #21)
This is because you're running a Thunderbird/Firefox with -no-remote
See bug 382477
Aha! Good to know, thanks.
I would keep them like in the patch. You rarely need to get this element. For css, could use a class, but... meh.
That works for me.
Assignee | ||
Comment 28•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 29•5 years ago
|
||
Review flag updated.
Comment 30•5 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #21)
Hm, I wonder if it would be better to use the same "item-location" as the
"id" for both linkified and non-linkified locations? That would make it
easier to get the element by id, regardless of its type.I would keep them like in the patch. You rarely need to get this element. For css, could use a class, but... meh.
I was thinking about this some more. Here are 10 places where the current id "item-location" is used (or at least that string).
https://searchfox.org/comm-central/search?q=%22item-location%22&path=
Two of them are tests. So we need to check all those places where it's used and make sure using a different id for a different element, when it's a link, won't cause trouble. Maybe they are all okay, and Khushil, maybe you've already checked these? At any rate we need a try run.
Assignee | ||
Comment 31•5 years ago
|
||
(In reply to Paul Morris [:pmorris] from comment #30)
Two of them are tests. So we need to check all those places where it's used and make sure using a different id for a different element, when it's a link, won't cause trouble. Maybe they are all okay, and Khushil, maybe you've already checked these? At any rate we need a try run.
The summary dialog related "item-location" is not used anywhere else. Elsewhere, we are using "item-location" element from lightning-item-iframe.xhtml.
But it's good to send it for a try run. I am not on the trunk right now, so anyone else can send it for a try run?
Comment 32•5 years ago
•
|
||
Okay, thanks Khushil. I can start a try run.
Edit: here it is: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=76c74910e3921936d627eaa5f279e186edd49cd0
Comment 33•5 years ago
|
||
Comment 34•5 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/fc5a341a3e9f
Fix Location URLs are not clickable in Calendar Summary Dialog. r=pmorris
Updated•5 years ago
|
Comment 35•4 years ago
|
||
As Paul noticed, if you have a text with a url, all we do now is show the URL. We should show all the text.
Updated•4 years ago
|
Comment 36•4 years ago
|
||
Assignee | ||
Comment 37•4 years ago
|
||
Are we taking care the case of multiple URLs now?
Comment 38•4 years ago
|
||
No, the whole location text is linked to the first URL we spot. It's quite a bit more complicated supporting many URLs, and that's basically bad data so I'm not sure we need to do that.
Comment 39•4 years ago
|
||
Comment 40•4 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/00e93f6c59c3
make event URLs clickable - make sure all the text from the location is visible, not only the location. r=pmorris
Updated•4 years ago
|
Description
•