-
Notifications
You must be signed in to change notification settings - Fork 0
Feature: Allow switching between multiple open PR contexts in UI with branch/PR dropdown #52
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestvNextArbitrary Dynamic Editor Tabs: Named Multi-File Workspace Model for @knighted/developArbitrary Dynamic Editor Tabs: Named Multi-File Workspace Model for @knighted/develop
Description
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.

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestvNextArbitrary Dynamic Editor Tabs: Named Multi-File Workspace Model for @knighted/developArbitrary Dynamic Editor Tabs: Named Multi-File Workspace Model for @knighted/develop