Skip to content

Feature: Allow switching between multiple open PR contexts in UI with branch/PR dropdown #52

@knightedcodemonkey

Description

@knightedcodemonkey

Problem

Currently, when a repository has multiple open PRs, there is no way to switch the app's active PR context to a different open PR for the same repo. This limits advanced workflows where a user is working across more than one feature branch/PR at a time.

Proposed Enhancement

  • While in an active PR context (Push mode), display an additional dropdown (select) that is populated with branches that have open PRs for the selected repository.
  • Selecting a different PR from the dropdown should:
    • Update the active PR context (and localStorage config) for the repository
    • Sync the editor content from the selected PR/branch
    • Update any UI references to the PR title/number/branch as appropriate

Expected UX

  • The dropdown appears inline with existing controls, e.g., near the Push/Close buttons (see attached screenshot for visual reference).
  • Each dropdown option should include the PR number, title, and branch name (e.g. #41: Active PR context ... (bananas)).
  • Switches context and editor content immediately on change.

Notes

  • Will require fetching the list of open PRs for the selected repository via the GitHub API.
  • If only 1 open PR for the repo, the dropdown can remain hidden.

Active PR context header UI showing candidate place for PR switcher

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestvNextArbitrary Dynamic Editor Tabs: Named Multi-File Workspace Model for @knighted/develop

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions