Fix some Smart Linking quirks

Aperta
#2,930 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php, wordpress
Ambito
frontend

Direzione di ricerca

Inizia individuando la finestra di dialogo dei suggerimenti di Smart Linking e la gestione delle relative azioni Accept, Reject, Remove, Previous e Next. Riproduci i tre stati segnalati, quindi verifica che un elenco di suggerimenti vuoto non possa essere accettato, che i link rimossi non producano notifiche di successo errate e che i controlli di navigazione siano visibilmente disabilitati o nascosti quando c’è un solo suggerimento.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Bug Data Link Bugs Feature: PCI Maintenance & Fixes wp-parsely

Describe the bug

Smart Linking has some quirks. Specifically:

Quirk 1
  1. If we ask for Smart Link suggestions and press Reject for all of them, we finish with an empty left-hand list the dialog:
image
  1. In addition, if under that state we press Accept, the suggested Smart Link gets added to the content.
Quirk 2

Let's say that we generate 2 links for a Block. We accept the first link and we reject the second. Finally, we press Remove for the link we've just accepted. We'll get "Successfully added 1 smart links." notifications.

Quirk 3

Not really a quirk, but something which can look like one. When we've only got 1 suggestion, the Previous and Next buttons are still being displayed, and they aren't visibly disabled (although they don't work, styling remains the same).

image

If there is no way to have a visibly disabled state, I think we could hide them when only 1 item is in the list.

Lingua principale
PHP
Stelle
67
Fork
38
Merge medio
1g 5h
PR unite (30g)
79

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Parsely/wp-parsely

Tutte le issue di Parsely/wp-parsely

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.