Skip to content

Add config option for the default task instance tab in the UI - #71235

Open
dsuhinin wants to merge 2 commits into
apache:mainfrom
dsuhinin:dsuhinin/make-details-default-first-tab
Open

Add config option for the default task instance tab in the UI#71235
dsuhinin wants to merge 2 commits into
apache:mainfrom
dsuhinin:dsuhinin/make-details-default-first-tab

Conversation

@dsuhinin

@dsuhinin dsuhinin commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Task instances always open on the Logs tab, and users who prefer another tab have to click it every time — there is no way to change the default.

This adds a new [api] default_task_instance_tab config option that lets a deployment set which tab opens by default when a task instance is first opened (e.g. details). The index route reads the value from /ui/config and redirects to the configured tab, preserving the query string and hash; unknown or unset values fall back to logs, so existing behavior and deep links are unchanged. Explicit tab choices made while navigating task-to-task in the grid still take precedence.

@bbovenzi

bbovenzi commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

I thought about your PRs again.

First, if we do this, we should make these localStorage settings instead of deployment configs and they could go in Pierre's new settings page: #70687

Second, to preserve any links. Let's not mess with the Urls themselves but just redirect to a different page by default.

Finally, being powered by the config isn't great when loading a brand new page when the config hasn't been fetched yet. The screen will have to show one page, and then start loading a different one.

@dsuhinin

dsuhinin commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

I thought about your PRs again.

First, if we do this, we should make these localStorage settings instead of deployment configs and they could go in Pierre's new settings page: #70687

Second, to preserve any links. Let's not mess with the Urls themselves but just redirect to a different page by default.

Finally, being powered by the config isn't great when loading a brand new page when the config hasn't been fetched yet. The screen will have to show one page, and then start loading a different one.

thank you for your feedback. yep, in case of #70687 I can re use this PR and just add more options. Probably in that case I can move:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:ConfigTemplates area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants