Pular para o conteúdo
Kitbay
SkillOficial

generate-frontend-forms

NOASSERTIONAtualizado em 11 de nov. de 202645.751Estrelas no GitHub

A maintainer skill in Sentry's own repository for building forms in Sentry's frontend with its newer form system, built on TanStack Form and Zod and imported only from Sentry's internal scraps form package.

O que a skill ensina

A maintainer skill in Sentry's own repository for building forms in Sentry's frontend with its newer form system, built on TanStack Form and Zod and imported only from Sentry's internal scraps form package. It covers the form hook and its field components, stacked and row layouts, read-only display fields and custom fields, and sets rules: every form has a schema, default options come first, disabled fields give a reason, nullable required fields follow one pattern, server errors are mapped to fields before display, and submissions go through TanStack Query mutations. Auto-save settings pages show inline status instead of toasts and must update the cache. Older form systems must not be used for new forms.

O que faz

  • Build forms with Sentry's scraps form system
  • Validate fields with Zod schemas
  • Map server errors to form fields
  • Set up auto-save settings forms