Redesign "Remember my choice" checkbox in WAYF

Aperta
#2,066 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
58/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
php

Direzione di ricerca

Individua l’implementazione della schermata WAYF e la gestione esistente di wayf.remember_choice e wayf.remember_choice_per_idp. Verifica come le etichette tradotte e i tooltip usano wayf.remember_choice_per_idp_lifetime, inclusi i valori inferiori a un giorno, quindi verifica sia il layout per-SP sia quello globale. Il lavoro è completato quando sono coperti la spaziatura, l’ordine, lo stile, le traduzioni, il comportamento del tooltip e la durata dipendente dall’impostazione richiesti.

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

Descrizione

discovery UI

To support the new "Remember my choice per SP" feature of #1956, we want ot make adjustment to the UI of the WAYF screen.

For reference the current layout when wayf.remember_choice is enabled:

Image

We would like to make small adjustments.

in the case that we use a per-sp "remember my choice" (both wayf.remember_choice and wayf.remember_choice_per_idp enabled):

Image

The following changes have been made:

  • Adjust the margins, switch the order of the checkbox and the text, adjust the text colour and weight, and add a tooltip ⓘ.

  • The mockup above uses this html (but tooltip hover doesn't work):

    <form method="post" action="https://engine.test2.surfconext.nl/authentication/idp/process-wayf" class="wayf__rememberChoice">
        <input type="checkbox" name="rememberChoice" id="rememberChoice">
        <label for="rememberChoice">Remember my choice for this service for 90 days</label>
        <label class="tooltip" for="rememberChoice" style="margin-left: .5em;alignment-baseline: ideographic;">
            <span class="visually-hidden">Tooltip text here</span>
        </label>
    </form>
    
  • Tooltip should show this text:

    • NL: "Als je deze optie aanzet, hoef je de komende 90 dagen voor deze dienst niet meer te kiezen hoe je wilt inloggen. Het inlogscherm wordt dan overgeslagen. Let op: gebruik je soms een ander account om in te loggen? Zet de optie dan uit. Je kunt de keuze later weer terugdraaien op profile.surfconext.nl."
    • EN: "If you enable this option, you won’t need to choose how you want to log into this service for the next 90 days. The login screen will then be skipped. Please note: do you sometimes use a different account to log in? If so, please disable this option. You can reverse this setting later at profile.surfconext.nl."
    • PT: "Se ativar esta opção, não terá de escolher como pretende iniciar sessão nos próximos 90 dias. O ecrã de início de sessão será então ignorado. Atenção: por vezes utiliza uma conta diferente para iniciar sessão? Nesse caso, desative esta opção. Pode reverter esta opção mais tarde em profile.surfconext.nl."
  • the "90 days" phrase should be based on what it set in the wayf.remember_choice_per_idp_lifetime application setting. There is no need to do full date parsing here. A simple check that converts to minutes if wayf.remember_choice_per_idp_lifetime<24h and to days otherwise is fine.

For a global "remember my choice" setting (i.e. wayf.remember_choice true and wayf.remember_choice_per_idp false), the WAYF should look similar, but with adjusted text and without tooltip:

Image
Lingua principale
PHP
Stelle
17
Fork
26
Merge medio
3g 2h
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 OpenConext/OpenConext-engineblock

Tutte le issue di OpenConext/OpenConext-engineblock

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.