Skip to content

Propagate Selected Branch to All Pages/Tabs within Repo view #2188

Closed
codecov/gazebo
#3181

Description

@calvin-codecov

Problem to solve

Ticket 2 of 2 out of investigation: https://www.notion.so/sentry/Branch-Selector-Mismatch-Experience-292469a7e517485b80eaf31f3f7d06d8

Should be done after #2187

Description

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

  1. added
    in discovery
    on Aug 1, 2024
  2. removed
    in discovery
    on Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions