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 | 72 | const statusDot = (status: ExecutionStatus): string => STATUS_STYLES[status].dot; |
| 73 | 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 | 76 | { value: "all", label: "All" }, |
| 77 | 77 | { value: "completed", label: "Completed" }, |
| 78 | 78 | { value: "failed", label: "Failed" }, |