Skip to content

UI: Add a default preference for expanded task groups - #73429

Merged
bbovenzi merged 3 commits into
apache:mainfrom
ucaeon:task-group-default-state
Sep 23, 2026
Merged

bbovenzi merged 3 commits into
apache:mainfrom
ucaeon:task-group-default-state

Conversation

@ucaeon

@ucaeon ucaeon commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Add an Expand task groups by default preference under Settings → Graph, following the user-settings approach suggested in the issue.

This uses browser-local settings rather than introducing the Dag and TaskGroup constructor parameters originally proposed.

Behavior

  • The preference is disabled by default, preserving the current collapsed behavior.
  • When enabled, all task groups, including nested groups, expand in Dags without a saved group selection.
  • Existing per-Dag selections take precedence, including an explicitly saved collapse-all selection. Changing the preference does not overwrite these selections.
  • The preference is stored in the browser and applies to both Graph and Grid, which share group selection state.

closes: #55305

Testing

  • All 1,304 UI tests passed across 150 test files.
  • TypeScript, ESLint, pre-commit checks, and manual checks passed, including the production UI build.
  • Verified locally with example_task_group that the preference persists after reload, nested groups expand by default, and manual selections are preserved after reload.

Screenshots

Before — Settings

The Graph settings section has no option to choose whether task groups expand by default.

Settings before the change

After — Settings with the new preference enabled

The new “Expand task groups by default” toggle lets users choose the default expansion behavior for Dags without a saved group selection.

image

Nested task groups expanded by default

With the preference enabled and no saved selection for this Dag, both top-level and nested task groups expand automatically.

Nested task groups expanded by default

Manual group selection preserved after reload

After manually collapsing section_2 and reloading, section_2 remains collapsed while section_1 stays expanded. The saved selection takes precedence over the enabled default.

Manual group selection preserved after reload
Was generative AI tooling used to co-author this PR?
  • Yes — Codex (GPT-6)

Generated-by: Codex (GPT-6) following the guidelines

Comment thread airflow-core/newsfragments/73429.improvement.rst Outdated
@ucaeon
ucaeon force-pushed the task-group-default-state branch from 5209655 to 9c46e1f Compare September 23, 2026 02:42
@bbovenzi
bbovenzi merged commit a83394c into apache:main Sep 23, 2026
89 checks passed
@ucaeon
ucaeon deleted the task-group-default-state branch September 24, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:translations area:UI Related to UI/UX. For Frontend Developers. translation:default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to collapse TaskGroups by default in Graph View

2 participants