refactor: improvements with styles and gh syncs.#82
Merged
knightedcodemonkey merged 5 commits intonextfrom Apr 18, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the GitHub PR workflow and “edited/dirty” UX by conditionally showing “Edited” indicators only in an active PR context, adjusting commit defaults/selection for open vs push-commit flows, and normalizing trailing newlines after publish to keep local/editor state aligned with what gets committed.
Changes:
- Add “Edited” indicators (panel header label + tab dot) gated by token + active PR context.
- Change PR drawer behavior: default “Include entry tab” on, and only include dirty/uncommitted files for push-commit mode.
- Normalize/persist PR context metadata in workspace snapshots and normalize trailing newlines after publish/commit.
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/styles/panels-editor.css | Styles for header “Edited” status and tab dirty dot indicator. |
| src/modules/workspace/workspace-storage.js | Normalizes persisted prContextState in workspace records. |
| src/modules/github/github-pr-drawer.js | Push/open PR commit selection changes; default include-entry on; ensure trailing newline in committed blobs; updated empty-commit status. |
| src/modules/app-core/workspace-tabs-renderer.js | Renders dirty dot indicator (now conditional via getShouldShowEditedDesign). |
| src/modules/app-core/workspace-tab-mutations-controller.js | Marks newly created tabs dirty in active PR context (for Edited indicator). |
| src/modules/app-core/workspace-sync-controller.js | Adds options to include all files vs only dirty/uncommitted; persists PR number/state in workspace snapshot. |
| src/modules/app-core/workspace-local-helpers.js | Includes PR number and prContextState in workspace context snapshots. |
| src/modules/app-core/workspace-editor-helpers.js | Syncs header “Edited” status element visibility based on dirty state + gating. |
| src/modules/app-core/workspace-controllers-setup.js | Wires getShouldShowEditedDesign through controllers. |
| src/modules/app-core/publish-trailing-newline-normalizer.js | New helper to normalize trailing newlines in editors/tabs after publish. |
| src/modules/app-core/github-workflows.js | Adds PR context lifecycle callbacks (state change/closed/disconnected). |
| src/modules/app-core/github-workflows-setup.js | Wires new PR context callbacks from runtime. |
| src/modules/app-core/edited-indicator-visibility-controller.js | New controller to decide whether to show Edited indicators and trigger UI refresh. |
| src/index.html | Adds header “Edited” status nodes; updates include-entry checkbox label + default checked. |
| src/app.js | Integrates edited-indicator visibility + trailing-newline normalizer; persists PR context state; updates workspace commit getter signature. |
| playwright/workspace-tabs.spec.ts | Updates expectations around dirty state being local without Edited indicators. |
| playwright/github-pr-drawer.spec.ts | Adds coverage for trailing newline normalization and push-commit “no changes” status; updates include-entry default behavior. |
| AGENTS.md | Adds guidance to prefer modular/co-located architecture. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.