Time Input Display (12h vs 24h)

Aperta
#670 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
typescript

Direzione di ricerca

Inizia esaminando le issue correlate 590 e 393, quindi stabilisci se il formato debba essere controllato da un attributo appearance oppure dalle impostazioni locali del browser e del sistema operativo. L’issue richiede inoltre di analizzare l’uso regionale e monitorare il feedback; il lavoro è completato quando è stata concordata una direzione di implementazione che preservi i dati salvati standardizzati modificando solo la visualizzazione dell’ora.

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

Descrizione

front-end quick win
Description

Currently, Web Forms defaults to a 12h format for the time question type, whereas Enketo and Collect derive the format from the container's locale (Browser or Android OS).

There is often a disconnect between official standards and societal reality. Many countries officially use the 24h system, but daily society (e.g., parts of Latin America and Asia) operates almost exclusively in 12h. Depending on the data collector and the specific collection context, an unfamiliar format can create extra cognitive load due to "mental math" (e.g., converting 17:00 to 5:00 PM), lowering the user experience and potentially increasing entry errors.

Implementation Options:
  • Use an "appearance" attribute in the form definition to allow form designers to manually set the format. This is a "quick win" that provides immediate flexibility and bypasses the complexities of locale-detection logic.
  • Rely strictly on browser/OS locales to align more closely with existing Enketo and Collect behavior.
Next Steps:
  • Conduct a quick survey across different industries and regions to determine which format minimizes cognitive load in specific field environments.
  • Monitor the forum and other channels to catch feedback related to this topic.

Checklist
  • Does it need UI/UX design?
    • Yes. Describe the UI/UX requirements or attach a Figma link in the "Design" section.
    • No
  • Does it need API design?
    • Yes. Specify the endpoints, methods, or data structures needed.
    • No
  • Does it need design around state flow?
    • Yes. Outline the state flow requirements.
    • No
  • Does it need a test plan?
    • Yes. Add the test plan as a comment in this task or attach the document.
    • No

User Stories
  • As a data collector,
    I want to see the time picker in a format I'm familiar,
    so that I can quickly pick the time without errors.

Additional Notes
  • This strictly affects the display format; the underlying saved data remains standardized and unaffected.

Related Issues
Lingua principale
TypeScript
Stelle
38
Fork
24
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

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 getodk/web-forms

Tutte le issue di getodk/web-forms

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.