Skip to content

feat: sync style-mode.#49

Merged
knightedcodemonkey merged 3 commits intomainfrom
bananas
Mar 29, 2026
Merged

feat: sync style-mode.#49
knightedcodemonkey merged 3 commits intomainfrom
bananas

Conversation

@knightedcodemonkey
Copy link
Copy Markdown
Owner

Copilot AI review requested due to automatic review settings March 29, 2026 19:21
Copy link
Copy Markdown
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

Implements restoration of style-mode from the saved active PR context (alongside existing render-mode) so editor/compiler settings remain consistent across reloads and token rehydration flows (closes #42).

Changes:

  • Persist styleMode into repository-scoped PR config (localStorage) and include it in active context normalization.
  • Add getStyleMode / onRestoreStyleMode wiring so the app restores style mode via the centralized applyStyleMode path.
  • Add Playwright coverage for restoring styleMode and falling back to css for unsupported persisted values.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/modules/github-pr-drawer.js Adds styleMode normalization/persistence and emits a restore callback when active context is applied.
src/app.js Wires PR drawer to read current style mode and restore it through applyStyleMode.
playwright/helpers/app-test-helpers.ts Removes a duplicate assertion in BYOT connection helper.
playwright/github-pr-drawer.spec.ts Extends reload/active-context tests to assert style-mode restoration and fallback behavior.

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

@knightedcodemonkey knightedcodemonkey merged commit 73d913c into main Mar 29, 2026
5 checks passed
@knightedcodemonkey knightedcodemonkey deleted the bananas branch March 29, 2026 19:33
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.

Restore style-mode from saved active PR context (same as render-mode)

2 participants