Improve error messages for the first-run provider test

Aperta Adatta ai principianti
#191 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à
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
82/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
tauri, typescript

Direzione di ricerca

Inizia da apps/desktop/ui/src/lib/humanError.ts, dalle voci errors.codes in entrambi i file di lingua e da lib/humanError.test.ts. Riproduci gli errori di chiave errata, URL irraggiungibile e modello sconosciuto con la modalità mock o uno stub locale, quindi controlla quali ricorrono a un messaggio generico. Il lavoro è completato quando vengono aggiunti titoli e testi di aiuto chiari in inglese e turco per questi casi e vengono coperti con test unitari.

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

Descrizione

area: desktop-ui enhancement good first issue

size: S · first-timer: yes

Context. During the first-run wizard a "Test connection" failure should tell the user what to do
(wrong key, wrong base URL, network, model name). Errors flow through the human-error layer
(apps/desktop/ui/src/lib/humanError.ts; texts in errors.codes of both locale files).

Done when

  • You reproduce the common failures with mock mode or a local stub (wrong key, unreachable URL,
    unknown model), see what the user gets, and add clear title and hint texts (English and Turkish)
    for any that fall back to a generic message.
  • A unit test in lib/humanError.test.ts covers the new cases.

New here? Read CONTRIBUTING.md and comment on this issue to claim it before you start. Questions are welcome in the comments.

Lingua principale
Rust
Stelle
0
Fork
1
Merge medio
6h 54m
PR unite (30g)
152

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 emreocell/Praxi-Bot

Tutte le issue di emreocell/Praxi-Bot

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.