Skip to content

refactor: pr dependent dropdowns, toast position on mobile.#31

Merged
knightedcodemonkey merged 2 commits intomainfrom
bananas
Mar 24, 2026
Merged

refactor: pr dependent dropdowns, toast position on mobile.#31
knightedcodemonkey merged 2 commits intomainfrom
bananas

Conversation

@knightedcodemonkey
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings March 24, 2026 01:36
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the “Open Pull Request” drawer UX to make the base branch selection repository-dependent (loaded from GitHub), and adjusts mobile UI layering/positioning to improve overlay behavior.

Changes:

  • Replace the PR base branch text input with a disabled-by-default <select> that is populated from GitHub branches per selected repo.
  • Add GitHub API support for listing repository branches (with pagination + dedupe) and wire it into the PR drawer with caching/abort handling.
  • Tweak mobile UI: move toast to the bottom and adjust PR drawer form grid layout for small screens; add Playwright coverage for the new base-branch dropdown behavior.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/styles/dialogs-overlays.css Adjusts toast z-index and positions it at the bottom on mobile.
src/styles/ai-controls.css Updates PR drawer form grid layout for mobile (2-column with specific fields spanning full width).
src/modules/github-pr-drawer.js Adds branch loading/caching/abort logic and renders base branch options for the new dropdown.
src/modules/github-api.js Introduces listRepositoryBranches() and supporting normalization/pagination helpers.
src/index.html Switches base branch control from <input> to <select> with an initial main option.
playwright/app.spec.ts Mocks branches endpoint in BYOT helper and adds an E2E test for base dropdown updates by repo.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@knightedcodemonkey knightedcodemonkey merged commit 99284c1 into main Mar 24, 2026
5 checks passed
@knightedcodemonkey knightedcodemonkey deleted the bananas branch March 24, 2026 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants