Page MenuHomePhabricator

When a link is added, the card should be updated and the added link should be selected
Closed, ResolvedPublic

Description

The link card should be updated when adding links of any color: redlinks, regular blue links, or turning missing grey links into red.

This is especially problematic when marking a link as red link: the card remains visible but it is not updated, providing still the option to mark as redlink despite being already a red link. You need to select the link again for the options to be updated.

For regular links, it seems that after a link is added the caret position is reset, and the link card disappears. It would be better if it got updated and remained visible.

Event Timeline

Amire80 raised the priority of this task from to Needs Triage.Feb 20 2015, 4:26 PM
Amire80 subscribed.
Arrbee set Security to None.
Amire80 triaged this task as Medium priority.Feb 26 2015, 8:28 AM
Amire80 claimed this task.
Amire80 added a subscriber: Pginer-WMF.

This is not exactly what is happening now, but the current behavior with adaptable links seems OK to me. @Pginer-WMF, please reopen if there's anything else to address.

This is specially problematic when when marking a link as red link: the card remains visible but it is not updated, providing still the option to mark as redlink despite being already a red link. You need to select the link again for the options to be updated.

For regular links, it seems that after a link is added the caret position is reseted, and the link card disappears. It would be better if it got updated and remain visible.

Dupe T104339?

Sounds like it, and T104339 has a clear description (and a picture). @Pginer-WMF should confirm.

This card is more general. The link card should be updated when adding links of any color: redlinks, regular blue links, or turning missing grey links into red. I don't mind which card is merged into which one, but let's make sure the issue is fixed for all kinds of links (and reflect that into the card).

This card is more general. The link card should be updated when adding links of any color: redlinks, regular blue links, or turning missing grey links into red.

That's how currently links are working in cx1. I checked T104339: "Mark as missing" lacks feedback - the issue seems to be gone, so @Nikerabbit may check and marked the task as Resolved.
The following example (en:Schläfli to català) illustrates how the links are handled in cx1 which in my opinion is correct.

  • two types of links - blue and grey - are present in the translated text:

Screen Shot 2018-08-07 at 4.15.08 PM.png (108×899 px, 34 KB)

  • clicking on word for which an article exists will display:
    Screen Shot 2018-08-07 at 4.18.17 PM.png (299×930 px, 56 KB)
  • click on 'Mark as missing' - and the link becomes red and the link card link also becomes red:

Screen Shot 2018-08-07 at 4.18.28 PM.png (322×928 px, 57 KB)

  • clicking on a grey link displays the same behavior:

Screen Shot 2018-08-07 at 4.20.40 PM.png (283×908 px, 50 KB)

Screen Shot 2018-08-07 at 4.21.00 PM.png (288×912 px, 52 KB)

@Pginer-WMF Please review how cx2 handles the links:

  • the same translation - the same set of links:

Screen Shot 2018-08-07 at 4.28.54 PM.png (138×901 px, 40 KB)

  • selecting a word and double-clicking on it display suggestions only to the first letter(there was a bug filed about it). It seems that the link can be inserted only with 'Insert link' button:

Screen Shot 2018-08-07 at 4.31.14 PM.png (227×875 px, 37 KB)

  • I selected from drop-down suggestions and clicked on 'Add link' - the word becomes blue indicating that the existing link was created:

Screen Shot 2018-08-07 at 4.32.53 PM.png (230×865 px, 37 KB)

  • a grey link:

Screen Shot 2018-08-07 at 4.36.09 PM.png (205×877 px, 42 KB)

  • clicked on 'Mark as missing':

Screen Shot 2018-08-07 at 4.36.28 PM.png (185×872 px, 43 KB)

Etonkovidova claimed this task.

The issue(s) reported in the ticket are resolved in cx2. I filed another task T201570: CX2: Click on 'Edit' for links - page jumps to the top - it was found when I was verifying this ticket.