Skip to content

feat: workspaces without pat.#129

Merged
knightedcodemonkey merged 2 commits intomainfrom
bananas
May 3, 2026
Merged

feat: workspaces without pat.#129
knightedcodemonkey merged 2 commits intomainfrom
bananas

Conversation

@knightedcodemonkey
Copy link
Copy Markdown
Owner

Copilot AI review requested due to automatic review settings May 3, 2026 16:16
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

This PR decouples the Workspaces drawer from GitHub PAT gating so local-only workspace workflows remain available offline, while also tightening CSS module support in preview/type diagnostics. It fits into the app’s workspace/state-restoration flow by making no-PAT mode explicitly local-only instead of hiding the Workspaces entry point.

Changes:

  • Makes the Workspaces toggle always available and forces the drawer into Local-only mode when no GitHub token is present.
  • Restricts startup workspace restore to local candidates in no-PAT mode and wires token availability into workspace context restore logic.
  • Fixes CSS module type declarations and removes preview CSS alias rewriting, with updated Playwright coverage.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/styles/layout-shell.css Reorganizes top-control layout to group Workspaces with Diagnostics.
src/styles/ai-controls.css Adjusts Workspaces toggle/drawer responsive styling for the new placement.
src/modules/workspace/workspaces-drawer/drawer.js Forces repository filter into disabled Local-only mode when no writable repos exist.
src/modules/preview/render-runtime.js Removes CSS-module selector alias rewriting from preview style compilation.
src/modules/diagnostics/type-diagnostics.js Adds *.module.css ambient typing as a class-map export.
src/modules/app-core/workspace-controllers-setup.js Threads token-availability dependency into workspace context restore setup.
src/modules/app-core/workspace-context-controller.js Filters restore candidates to local workspaces when no PAT is available.
src/modules/app-core/github-pr-context-ui.js Stops PAT visibility logic from hiding/disabling the Workspaces control.
src/index.html Moves the Workspaces button into the always-visible top controls area.
src/app.js Adds a shared hasCurrentGitHubToken helper and passes it into workspace setup.
playwright/rendering-modes/core.spec.ts Expands CSS module preview assertions and tidies an existing null check.
playwright/github-byot-ai.spec.ts Adds no-PAT Workspaces behavior coverage and PAT-connect preservation coverage.
playwright/diagnostics.spec.ts Adds typecheck coverage for CSS module class-map imports.

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

Comment thread src/modules/app-core/github-pr-context-ui.js
Comment thread src/index.html Outdated
@knightedcodemonkey knightedcodemonkey merged commit baf708e into main May 3, 2026
6 checks passed
@knightedcodemonkey knightedcodemonkey deleted the bananas branch May 3, 2026 20:11
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.

Enable Workspaces drawer without GitHub PAT for Local-only workflow

2 participants