Skip to content

Add repository-scoped assisted commit UX foundation [1/7] - #22971

Merged
sergiou87 merged 6 commits into
developmentfrom
sergiou87-assisted-commit-ux
Nov 3, 2026
Merged

sergiou87 merged 6 commits into
developmentfrom
sergiou87-assisted-commit-ux

Conversation

@sergiou87

@sergiou87 sergiou87 commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Description

  • UX includes split commit-mode control and animated Copilot panel/sprites.
  • Store commit mode by repository ID through repository state, AppStore, and Dispatcher. Choices survive repository switches, cached alias identities, and restarted state; unknown values fall back to Manual without migrating the unreleased global preference.
  • Preserve manual drafts, make inactive fields inert and inaccessible to assistive technology, and keep co-authors, sign-off, bypass-hooks, and allow-empty controls reachable in assisted mode. Harden busy autocomplete, pending author lookups, focus-trap cleanup, modified commit shortcuts, and shared merge-menu keyboard selection. Surface author-rule blockers in the active assisted UI.
  • Remove the prototype's log-only execution callback. Assisted UI requires a genuine optional executor, preview/development eligibility, and an eligible authenticated Copilot account. The real app deliberately does not provide that executor yet. ICopilotAssistedCommitRequest documents the selected descriptors, user trailers, and per-commit options for later integration; dispatch does not claim success or clear the manual draft.

Snapshot capture/whole-plan validation, constrained Copilot planning/custom instructions, commit execution/progress/cancellation/hook recovery, and optional push/retry remain separate later layers. No new Git execution or working-tree editing backend is introduced here.

Stack

Merge in order, starting with 1. Each PR builds on the preceding PR.

  1. #22971 - Repository-scoped assisted commit UX (this PR)
  2. #22976 - Selected snapshots and validated Git transactions
  3. #22977 - Constrained Copilot-assisted commit planning
  4. #22986 - Awaited local runs and recovery
  5. #22991 - Optional push and push-only retry
  6. #23079 - Shared Copilot lifecycle helpers
  7. #23081 - Assisted commit architecture documentation

Validation

Validated after rebasing onto development at bebc062caafcf818993b9f53397b976d33484231.

Command Result
Focused command below 95 passed, 0 failed
corepack yarn test app/test/unit/git/push-test.ts app/test/unit/git/rev-parse-test.ts Four bare-fixture failures under the environment's injected safe.bareRepository=explicit setting; these tests and Git implementations are unchanged from the base
GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=safe.bareRepository GIT_CONFIG_VALUE_0=all corepack yarn test 2,325 passed, 0 failed, 2 skipped; override scoped only to test processes, no global/repository config edits
corepack yarn lint:fix Passed
corepack yarn lint Passed
corepack yarn tsc --noEmit --pretty false Passed strict application/test and dependency declaration checks with the updated upstream toolchain
corepack yarn test:e2e:build:unpackaged Passed production compilation/assets on final persistent source
GITHUB_DESKTOP_PREVIEW_FEATURES=1 DESKTOP_E2E_APP_MODE=unpackaged corepack yarn playwright test --config app/test/e2e/playwright.config.ts app/test/e2e/assisted-commit-layer1-preview.e2e.ts Earlier temporary isolated UI fixture passed browser inert/tab-navigation/draft-restoration checks; recording-only executor, no commits created; spec and injected state removed afterward
Exact focused test command
corepack yarn test app/test/unit/ui/commit-message-test.tsx app/test/unit/ui/copilot-animation-test.tsx app/test/unit/ui/focus-container-test.tsx app/test/unit/commit-mode-storage-test.ts app/test/unit/repository-state-cache-test.ts app/test/unit/ui/commit-message-warning-dialogs-test.tsx app/test/unit/ui/issues-autocompletion-provider-test.tsx app/test/unit/ui/dropdown-select-button-test.tsx

Screenshots

N/A since this PR doesn't have a visual effect: the new stuff introduced here is not tied to the UI yet

Release notes

Notes: no-notes

Copilot AI balanced review requested due to automatic review settings October 5, 2026 16:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Its cross-cutting persistence, asynchronous UI, accessibility, and shared-control changes warrant final human validation.

Review effort: Balanced
Findings: None

What changed in this PR

Adds the repository-scoped foundation for a future Copilot-assisted commit workflow without enabling commit execution.

Changes:

  • Persists commit mode per repository and propagates it through application state.
  • Adds assisted-mode UI, animations, accessibility behavior, and execution contracts.
  • Hardens focus, autocomplete, author lookup, dropdown behavior, and regression coverage.
File Description
app/​src/​lib/​app-state.ts Adds repository commit-mode state.
app/​src/​lib/​feature-flag.ts Gates assisted commits behind preview features.
app/​src/​lib/​stores/​app-store.ts Updates and persists commit mode.
app/​src/​lib/​stores/​helpers/​commit-mode-storage.ts Implements repository-scoped persistence.
app/​src/​lib/​stores/​repository-state-cache.ts Reconciles commit modes across repository aliases.
app/​src/​models/​commit-mode.ts Defines supported commit modes.
app/​src/​models/​copilot-assisted-commit.ts Defines the future executor request contract.
app/​src/​ui/​autocompletion/​autocompleting-text-input.tsx Prevents stale autocomplete updates.
app/​src/​ui/​changes/​commit-message-avatar.tsx Hardens asynchronous author configuration handling.
app/​src/​ui/​changes/​commit-message.tsx Integrates assisted mode, rules, options, focus, and shortcuts.
app/​src/​ui/​changes/​copilot-commit-panel.tsx Adds the assisted commit panel.
app/​src/​ui/​changes/​filter-changes-list.tsx Propagates assisted-commit properties.
app/​src/​ui/​changes/​sidebar.tsx Supplies repository commit-mode state.
app/​src/​ui/​copilot-animation/​copilot-animation.tsx Implements the mascot animation state machine.
app/​src/​ui/​copilot-animation/​sprites/​celebrate.ts Adds celebration sprite data.
app/​src/​ui/​copilot-animation/​sprites/​copilot-sprite.ts Defines the sprite contract.
app/​src/​ui/​copilot-animation/​sprites/​idle.ts Adds idle sprite data.
app/​src/​ui/​copilot-animation/​sprites/​jump-wiggle.ts Adds jump animation data.
app/​src/​ui/​copilot-animation/​sprites/​static.ts Adds the static sprite.
app/​src/​ui/​copilot-animation/​sprites/​thinking.ts Adds thinking sprite data.
app/​src/​ui/​copilot-animation/​sprites/​tickle.ts Adds hover-reaction sprite data.
app/​src/​ui/​dispatcher/​dispatcher.ts Exposes commit-mode updates.
app/​src/​ui/​dropdown-select-button.tsx Separates primary and dropdown availability.
app/​src/​ui/​lib/​author-input/​author-input.tsx Hardens concurrent author resolution.
app/​src/​ui/​lib/​focus-container.tsx Cancels deferred focus callbacks on cleanup.
app/​styles/​_ui.scss Includes the animation stylesheet.
app/​styles/​_variables.scss Adds assisted-panel theme variables.
app/​styles/​themes/​_dark.scss Adds dark-theme assisted-panel colors.
app/​styles/​ui/​_changes.scss Includes assisted-panel styles.
app/​styles/​ui/​_copilot-animation.scss Defines sprite animations and reduced-motion behavior.
app/​styles/​ui/​changes/​_commit-message.scss Styles commit modes and transitions.
app/​styles/​ui/​changes/​_copilot-commit-panel.scss Styles the assisted panel and reactions.
app/​test/​helpers/​app-store-test-harness.ts Exposes stores needed by tests.
app/​test/​helpers/​changes-state-helper.ts Supplies the default commit mode.
app/​test/​unit/​commit-mode-storage-test.ts Tests persistence, aliases, and fallback behavior.
app/​test/​unit/​ui/​commit-message-test.tsx Covers assisted-mode integration and accessibility.
app/​test/​unit/​ui/​copilot-animation-test.tsx Tests animation and panel states.
app/​test/​unit/​ui/​dropdown-select-button-test.tsx Tests controlled dropdown selection.
app/​test/​unit/​ui/​focus-container-test.tsx Tests deferred-focus cleanup.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sergiou87
sergiou87 added this pull request to stack #22992 October 9, 2026 08:14
@sergiou87 sergiou87 changed the title Add repository-scoped assisted commit UX foundation Add repository-scoped assisted commit UX foundation [1/5] Oct 15, 2026
@sergiou87
sergiou87 force-pushed the sergiou87-assisted-commit-ux branch from 80d8966 to b79922c Compare October 19, 2026 16:20
@sergiou87
sergiou87 marked this pull request as ready for review October 19, 2026 16:24
@sergiou87
sergiou87 requested a review from a team as a code owner October 19, 2026 16:24
@sergiou87
sergiou87 requested a review from niik October 19, 2026 16:24
@sergiou87 sergiou87 changed the title Add repository-scoped assisted commit UX foundation [1/5] Add repository-scoped assisted commit UX foundation [1/7] Oct 28, 2026
@sergiou87
sergiou87 force-pushed the sergiou87-assisted-commit-ux branch from b79922c to 27b4273 Compare October 29, 2026 13:13
tidy-dev
tidy-dev previously approved these changes Oct 29, 2026
niik
niik previously approved these changes Nov 3, 2026
@sergiou87
sergiou87 dismissed stale reviews from niik and tidy-dev via 66fcf23 November 3, 2026 10:23
@sergiou87
sergiou87 force-pushed the sergiou87-assisted-commit-ux branch from 27b4273 to 66fcf23 Compare November 3, 2026 10:23
@sergiou87
sergiou87 merged commit 4f843bc into development Nov 3, 2026
9 checks passed
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.

4 participants