You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Propagate Selected Branch to All Pages/Tabs within Repo view #2188
To promote a more predictable user experience, we want the same branch to be selected across pages within the repo view. The Commits tab can have "All branches" selected as opposed to one specific branch and will need special treatment.
As of right now, pages/tabs do not remember what branch was previously selected when you switch away from them. Both coming back or reaching a page for a first time uses the default branch.
Possible solution
Extract the logic for selection of branches, possibly into a context, and have the selected branch shared across instances so that each page/tab. Each page/tab will need to know what primary branch is selected. If using a context, we can wrap the components in a provider.
Activity