diff --git a/airflow/settings.py b/airflow/settings.py index 8b50bde0a179e..374960ab3e0c4 100644 --- a/airflow/settings.py +++ b/airflow/settings.py @@ -88,16 +88,16 @@ # Dictionary containing State and colors associated to each state to # display on the Webserver STATE_COLORS = { + "deferred": "mediumpurple", + "failed": "red", "queued": "gray", "running": "lime", + "scheduled": "tan", + "skipped": "hotpink", "success": "green", - "failed": "red", - "up_for_retry": "gold", "up_for_reschedule": "turquoise", + "up_for_retry": "gold", "upstream_failed": "orange", - "skipped": "hotpink", - "scheduled": "tan", - "deferred": "mediumpurple", } diff --git a/airflow/www/static/js/grid/FilterBar.jsx b/airflow/www/static/js/grid/FilterBar.jsx index 26d99f1d2e812..8776be4c7fdc4 100644 --- a/airflow/www/static/js/grid/FilterBar.jsx +++ b/airflow/www/static/js/grid/FilterBar.jsx @@ -39,7 +39,6 @@ const FilterBar = () => { onNumRunsChange, onRunTypeChange, onRunStateChange, - onTaskStateChange, clearFilters, } = useFilters(); @@ -50,13 +49,13 @@ const FilterBar = () => { const inputStyles = { backgroundColor: 'white', size: 'lg' }; return ( - + onBaseDateChange(e.target.value)} /> @@ -64,7 +63,7 @@ const FilterBar = () => { {...inputStyles} placeholder="Runs" value={filters.numRuns || ''} - onChange={onNumRunsChange} + onChange={(e) => onNumRunsChange(e.target.value)} > {filtersOptions.numRuns.map((value) => ( @@ -75,7 +74,7 @@ const FilterBar = () => { onRunStateChange(e.target.value)} > {filtersOptions.dagStates.map((value) => ( @@ -96,18 +95,6 @@ const FilterBar = () => { ))} - - -