Skip to content

feat: ai chat drawer.#22

Merged
knightedcodemonkey merged 4 commits intomainfrom
bananas
Mar 21, 2026
Merged

feat: ai chat drawer.#22
knightedcodemonkey merged 4 commits intomainfrom
bananas

Conversation

@knightedcodemonkey
Copy link
Owner

Address #18 step two.

Copilot AI review requested due to automatic review settings March 21, 2026 20:11
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

Adds an AI chat drawer (behind the existing AI feature flag) that uses GitHub Models chat completions, including streaming-first responses with a non-streaming fallback, and updates the layout controls for better responsiveness.

Changes:

  • Introduces an AI chat drawer UI with prompt input, message log, repository/status metadata, and optional editor-context inclusion.
  • Adds GitHub Models API helpers for streaming (SSE) and non-streaming chat completions, including rate-limit metadata parsing.
  • Refactors responsive header/rail controls and adds Playwright coverage for chat drawer behavior (open/close, streaming, fallback, editor-context toggle).

Reviewed changes

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

Show a summary per file
File Description
src/styles/layout-shell.css Updates z-index and introduces responsive “View/Agent” rail control layout + popover styling.
src/styles/diagnostics.css Adds a stacked-rail breakpoint rule for diagnostics controls spacing.
src/styles/ai-controls.css Adds styles for chat toggle/drawer and compact AI controls presentation.
src/modules/github-chat-drawer.js New controller for AI chat drawer state, message rendering, and request orchestration.
src/modules/github-byot-controls.js Emits token-change events; plumbs repository htmlUrl into selected repo state.
src/modules/github-api.js Adds GitHub Models chat completion (streaming + JSON) helpers and rate-limit parsing.
src/index.html Adds AI chat drawer markup and reorganizes layout/theme controls into a responsive “View” drawer.
src/app.js Wires BYOT token/repo state into the chat drawer; adds responsive toggle behavior for drawers/controls.
playwright/app.spec.ts Adds E2E tests for chat drawer visibility, streaming, fallback, and editor-context inclusion toggle.
docs/next-steps.md Advances Issue #18 rollout status and defines Phase 3 mini-spec.
README.md Adds quick links for fine-grained PAT setup resources.

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

@knightedcodemonkey knightedcodemonkey merged commit 1c8bc89 into main Mar 21, 2026
1 check passed
@knightedcodemonkey knightedcodemonkey deleted the bananas branch March 21, 2026 20:27
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