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

Convert `Modal`s with forms in them to `ModalForm`

Aperta
#3,202 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
68/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Inizia leggendo l’uso esistente di ModalForm nei moduli side-modal, quindi esamina i sette file candidati elencati nelle posizioni indicate. Converti solo i modal di invio dei moduli, mantenendo le esclusioni elencate; il lavoro è completato quando i candidati usano ModalForm con errori inline e feedback di caricamento durante l’invio, e la checklist è aggiornata.

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

Descrizione

Follow-up to #3192 and #3197. These modals use raw Modal + Modal.Footer + useApiMutation with onErroraddToast. Converting to ModalForm gives them inline submit errors and a loading spinner on the submit button, matching the side-modal forms.

Candidates for ModalForm
  • ResizeInstanceModalapp/pages/project/instances/InstancePage.tsx:274. Has an inline <p className="text-error"> at :389 that the shell replaces.
  • SiloSubnetPoolsTab Link pool — app/pages/system/silos/SiloSubnetPoolsTab.tsx:297
  • SiloIpPoolsTab Link pool — app/pages/system/silos/SiloIpPoolsTab.tsx:311
  • IpPoolPage Link silo — app/pages/system/networking/IpPoolPage.tsx:493
  • SubnetPoolPage Link silo — app/pages/system/networking/SubnetPoolPage.tsx:475
  • AntiAffinityCard Add member — app/pages/project/instances/AntiAffinityCard.tsx:241
  • anti-affinity-group-member-add Add instance — app/forms/anti-affinity-group-member-add.tsx:67

ModalForm hardcodes <Message title="Error"> inline — simplest to drop the custom titles, matching #3197. Or we could add the ability to pass a custom error title.

Doesn't fit — not form submissions

These have no inputs and would need a throwaway useForm just to satisfy ModalForm's signature:

  • SiloScimTab Create token — app/pages/system/silos/SiloScimTab.tsx:220. Informational body; Create fires the mutation and onSuccess hands the token to a second modal.
  • ImagesPage Promote image — app/pages/project/images/ImagesPage.tsx:189. "Are you sure you want to promote X?"

Leave as-is or refactor toward confirmAction.

Lingua principale
TypeScript
Stelle
228
Fork
22
Merge medio
19h 42m
PR unite (30g)
32

Guida per i contributori

Apri la 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 oxidecomputer/console

Tutte le issue di oxidecomputer/console

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.