Airflow UI Dev
Usage
/af-dev-ui <GitHub issue URL>
/af-dev-ui <text description>
Stack
React 19, Chakra UI v3, React Query, TypeScript, Vite, pnpm
Conventions
- Minimal changes — reuse, don't rebuild
- Reuse from existing
src/folders before creating new files:components/ui/— shared UI componentsconstants/— app-wide constantsutils/— utility functionshooks/— custom React hooksqueries/— React Query hookscontext/— React context providerslayouts/— page layouts
- Use types from
openapi-gen/(never hand-write API types) - Props with
readonly:type Props = { readonly x: T } - Return
undefinednotnull - Prevent duplication
- Keep comments simple and clear
Instructions
Understand the task:
- If given a GitHub issue URL, fetch it with
gh issue view <URL>to get requirements - If given text, use that as the requirement
- If given a GitHub issue URL, fetch it with
Read before writing: Study existing code and patterns in the area you're changing. Reuse what's there.
If backend endpoint code changed:
prek airflow-core:generate-openapi-spec cd airflow-core/src/airflow/ui && pnpm codegenThen run
prek airflow-core:ts-compile-lint-uiImplement the minimal change needed. Follow existing patterns.
Verify with Playwright: Use
browser_snapshot(accessibility snapshot) to inspect your changes in the browser. Do NOT usebrowser_take_screenshot. Navigate to the relevant page and verify the UI behaves correctly.Lint check: Run
prek airflow-core:ts-compile-lint-uibefore finishing.PR summary: Use
/dev-pr-summarizeto generate a changelog for the changes.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.