[Import/Export] Show import pending and completion states
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
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
src/components/plans/ImportPlanDialog.tsx(extend the prerequisite’s file)- Starting example: src/hooks/data/useSavedPlans.ts
Steps
- Make confirm callback awaitable; set pending before calling it and disable input/Confirm while it runs.
- On success show Saved to . and allow close; on rejection clear pending and keep preview for retry.
- 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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DevDogsUGA/DogDays
-
map
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
DevDogsUGA/DogDays#868 ·
-
map
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
DevDogsUGA/DogDays#865 ·
-
sharing
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
DevDogsUGA/DogDays#854 ·
-
import-export
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
DevDogsUGA/DogDays#850 ·
-
import-export
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
DevDogsUGA/DogDays#842 ·
Tutte le issue di DevDogsUGA/DogDays
Issue simili
-
documentation good first issue
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
sujithputta02/Esapay#13 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
ehmpathy/rhachet-roles-bhuild#468 ·
I maintainer di solito rispondono entro 1 giorno
-
Share dialog: the address book's contact count reads "1 contacts" (no singular form in any language)Forse già presa @chibenwa l’ha presa oggi. Apertaai-driven-qa bug claude Cosmetic
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
linagora/twake-contacts-frontend#271 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
vercel/ai#23435 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Koenkk/zigbee2mqtt#33402 ·
I maintainer di solito rispondono entro 1 giorno