Skip to content

refactor: improvements with styles and gh syncs.#82

Merged
knightedcodemonkey merged 5 commits intonextfrom
bananas
Apr 18, 2026
Merged

refactor: improvements with styles and gh syncs.#82
knightedcodemonkey merged 5 commits intonextfrom
bananas

Conversation

@knightedcodemonkey
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings April 18, 2026 18:38
@knightedcodemonkey knightedcodemonkey changed the title Bananas refactor: improvements with styles and gh syncs. Apr 18, 2026
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 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.

Comment thread src/modules/app-core/publish-trailing-newline-normalizer.js
Comment thread src/modules/app-core/workspace-tabs-renderer.js
@knightedcodemonkey knightedcodemonkey merged commit 73436ac into next Apr 18, 2026
6 checks passed
@knightedcodemonkey knightedcodemonkey deleted the bananas branch April 18, 2026 19:37
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