Add config option for the default task instance tab in the UI - #71235
Add config option for the default task instance tab in the UI#71235dsuhinin wants to merge 2 commits into
Conversation
|
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:
|
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_tabconfig 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/configand redirects to the configured tab, preserving the query string and hash; unknown or unset values fall back tologs, so existing behavior and deep links are unchanged. Explicit tab choices made while navigating task-to-task in the grid still take precedence.