Review Airflow UI
Usage
code
/review-airflow-ui # local branch vs main /review-airflow-ui <PR_URL> # checkout and review PR
Stack
React 19, Chakra UI v3, React Query, TypeScript, Vite, pnpm
Review Checklist
- •Consistency with existing patterns
- •Reuse components from
src/components/ui/ - •Use types from
openapi-gen/(never hand-write API types) - •Props with
readonly:type Props = { readonly x: T } - •Return
undefinednotnull
Instructions
- •
Get changed files:
- •PR:
gh pr checkout <URL>thengh pr diff --name-only - •Local:
git diff main --name-only
- •PR:
- •
If backend API changed, remind to run:
bashprek airflow-core:generate-openapi-spec cd airflow-core/src/airflow/ui && pnpm codegen
- •
Run
prek airflow-core:ts-compile-lint-ui - •
Only focus on the changes made in this PR. Do not review unchanged code.
- •
List issues as polite GitHub comment suggestions (do NOT post). Only report real issues — if there are fewer than 5, that's fine. Do not pad the list.
code1. `src/Foo.tsx:42` - Consider using existing `ErrorAlert` component. 2. `src/Bar.tsx:15` - Type should come from `openapi-gen/`.
- •
Start the verdict with a one-sentence summary of whether this PR's change is valuable or unnecessary.
- •
End with a verdict:
- •Approved — no issues found, good to merge.
- •Approved with comments — minor suggestions, but OK to merge as-is.
- •Request changes — blocking issues that should be fixed before merge.