feat(status-page): add step-wizard progress indicator to create flow

This commit is contained in:
Br0wnHammer committed 2026-06-02 20:31:01 +05:30
1 parent 7df3ee6ecd
commit 7617929700
2 files changed
+362 -305

No files matched your search

+1 -3
View File
@@ -66,9 +66,7 @@ const fieldSteps = (): [name: FieldPath<StatusPageFormData>, step: number][] =>
// The fields that belong to a given wizard step. Derived from the schema so it
// can't drift from the field definitions.
export const statusPageStepFieldsFor = (
step: number
): FieldPath<StatusPageFormData>[] =>
export const statusPageStepFieldsFor = (step: number): FieldPath<StatusPageFormData>[] =>
fieldSteps()
.filter(([, fieldStep]) => fieldStep === step)
.map(([name]) => name);