Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Import/Export] Show import pending and completion states

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react, typescript
Ambito
frontend

Direzione di ricerca

Start in src/components/plans/ImportPlanDialog.tsx, which the prerequisite #848 wires to the import writer, and read src/hooks/data/useSavedPlans.ts for the existing save flow. Add a pending state that disables input and Confirm while the awaited callback runs, then show a saved-to-term message on success or keep the preview on failure without retrying. Done when the example in src/components/plans/ImportPlanDialog.test.tsx passes (two taps produce one callback call, failure keeps the preview), and pnpm test, pnpm lint and pnpm typecheck succeed. Confirm #848 is merged before starting.

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

Descrizione

import-export

What to build

Make import submission show whether saving is in progress, succeeded or failed. Prevent repeated clicks while saving and keep the preview available when a failure needs a retry.

Files

Steps

  1. Make confirm callback awaitable; set pending before calling it and disable input/Confirm while it runs.
  2. On success show Saved to . and allow close; on rejection clear pending and keep preview for retry.
  3. Do not automatically repeat a failed write.

Example

Two taps during pending → one callback; failure retains preview; success reports the imported term.

Check it works

In src/components/plans/ImportPlanDialog.test.tsx, check the example above and the failure or limit described in the steps. Run pnpm test -- src/components/plans/ImportPlanDialog.test.tsx, pnpm lint and pnpm typecheck.

Before starting

  • #848 — Bind confirm to the supplied import writer

References

Assign yourself before starting, or comment to claim the issue. Project setup.

Lingua principale
TypeScript
Stelle
19
Fork
94
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 DevDogsUGA/DogDays

Tutte le issue di DevDogsUGA/DogDays

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.