[Import/Export] Select a plan file and display parser failures
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- react, typescript
- Ambito
- frontend
Direzione di ricerca
Create the new component src/components/plans/ImportPlanDialog.tsx, using src/app/plans/(list)/layout.tsx as the starting example for how plan UI is wired. Read the file with File.text, then parse and validate it with the knownTerms and resolver that issue #843 supplies, so confirm that work exists before starting. Done when src/components/plans/ImportPlanDialog.test.tsx covers a bad JSON file showing an error without calling onConfirm, and a valid file reaching the validated state, and pnpm test, pnpm lint and pnpm typecheck pass.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What to build
Let a student choose a DogDays file and show any file-reading errors in the import dialog. A valid file should continue to section checking rather than being saved immediately.
Files
src/components/plans/ImportPlanDialog.tsx(new file)- Starting example: src/app/plans/(list)/layout.tsx
Steps
- Create a dialog with file input accepting .json/.
dogdays.json. ReadFile.text, parse with supplied knownTerms, then validate with supplied resolver. - Keep parsed/validated/error state in the dialog and show error text near the input.
- Do not call a save mutation from file selection.
Example
Bad JSON → visible error and no onConfirm; a valid file produces validated dialog state.
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
- #843 — Connect verified catalog CRN resolution
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
-
Add: Yemen Education SDApertastreams:add
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
apache/rocketmq-dashboard#6872 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
interledger/publisher-tools#931 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
ARTPARK-SAHAI-ORG/calibrate-frontend#727 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
fab-geocommuns/RNB-site#539 ·
I maintainer di solito rispondono entro 2 giorni