Tighten status filter option typing so each option's value is constrained to "all" or valid execution states, improving type safety in status filtering.
Unified · Split
| @@ -72,7 +72,7 @@ const STATUS_STYLES = { · 71 unmodified lines | |||
| 72 | const statusDot = (status: ExecutionStatus): string => STATUS_STYLES[status].dot; | 72 | const statusDot = (status: ExecutionStatus): string => STATUS_STYLES[status].dot; |
| 73 | const statusText = (status: ExecutionStatus): string => STATUS_STYLES[status].text; | 73 | const statusText = (status: ExecutionStatus): string => STATUS_STYLES[status].text; |
| 74 | 74 | ||
| 75 | const STATUS_OPTIONS: Array<{ value: string; label: string }> = [ | 75 | const STATUS_OPTIONS: Array<{ value: "all" | ExecutionStatus; label: string }> = [ |
| 76 | { value: "all", label: "All" }, | 76 | { value: "all", label: "All" }, |
| 77 | { value: "completed", label: "Completed" }, | 77 | { value: "completed", label: "Completed" }, |
| 78 | { value: "failed", label: "Failed" }, | 78 | { value: "failed", label: "Failed" }, |