Repository navigation
Use Desktop blue for Copilot commit panel animations - #23132
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the Copilot commit panel’s blue-palette update.
No open issues 🎉
What changed in this PR
Updates the Copilot-assisted commit panel to use GitHub Desktop’s existing blue palette instead of purple, keeping its visual accents consistent.
Changes:
- Uses
$bluefor light-theme glow and accent colors. - Uses
$blue-300for dark-theme glow and accent colors. - Preserves glow opacity, animation timing, reduced-motion rules, and forced-colors behavior.
| File | Description |
|---|---|
app/styles/themes/_dark.scss |
Changes dark-theme Copilot glow and accent tokens to light blue. |
app/styles/_variables.scss |
Changes default light-theme Copilot glow and accent tokens to Desktop blue. |
Review effort: Balanced
tidy-dev
approved these changes
Nov 5, 2026
bahooo22
added a commit
to bahooo22/github_desktop
that referenced
this pull request
Nov 14, 2026
RU: Мерж апстрима a95e13a — переход на npm, версия 3.6.11-beta1 Апстрим влил 84 коммита, главный из которых — PR desktop#22983, миграция с yarn на npm: удалён вендоренный yarn и все yarn.lock, добавлены package-lock.json, .npmrc и обёртки script/npm.ts. Заодно пришли Copilot assisted commit (PR desktop#23132, desktop#23125, desktop#23059) и dependabot ansi-regex. Наш готовый мерж PR desktop#23044 (1527ef6) принят первым родителем. Что изменено? - `package.json` (+35/-27): апстримный блок scripts в npm-форме, `engines` node >=22.12.0 и npm >=11.17.0, `overrides` вместо `resolutions`; форковые `l10n:parity`, `l10n:audit`, `l10n:upstream`, `l10n:bundles` и `release-build-info` сохранены внутри нового блока, ссылок на yarn в scripts нет. - `package-lock.json` (+17484/-0) и `app/package-lock.json` (+4163/-0): локи апстрима приняты без правок — иначе `npm ci` не пройдёт; `yarn.lock` (-7272), `app/yarn.lock` (-2304) и `vendor/yarn-1.21.1.js` (-147315) удалены апстримом. - `.github/workflows/ci.yml` (+29/-24): приняты `cache: npm` и `cache-dependency-path` по четырём локам, `npm ci` и `npm run …`; поверх возвращён форковый кеш встроенного Git (dugite) с ключом по `hashFiles('app/package-lock.json')` и три попытки установки вокруг `npm ci`. - `.github/actions/setup-ci-environment/action.yml` (+11/-18): апстримный `npm ci` с `npm_config_arch`, форковый повтор установки сохранён; шаг `yarn add --optional` для cross-arch Copilot SDK удалён — npm ставит нужный runtime сам через `--cpu`. - `app/src/lib/stores/app-store.ts` (+1487/-380): принят апстримный `performPush`; блоки, где жили `t('appStore.pushingTo')` и подписи fast-forward, апстрим вынес из этого места, поэтому конфликт снят удалением наших блоков, импорт `t` из `../l10n/core` и остальные 10 вызовов на месте. - `app/src/ui/changes/commit-message.tsx` (+845/-291): файл переписан апстримом (режимы коммита, `DropdownSelectButton`, `CopilotCommitPanel`); из нашей версии возвращены 42 вызова `t()` — заголовок кнопки и «последний коммит», тексты хуков, подсказки длины summary, статус «Committed Just now», бейдж New, выбранные файлы и требование summary; импорт `t` добавлен заново. - `app/src/ui/clone-repository/clone-repository.tsx` (+42/-0) и `app/src/ui/add-repository/create-repository.tsx` (+129/-40): объединены импорты — наш `t`/`Trans` плюс апстримные `canonicalMutationPath`, `isRepositoryAffectedByAssistedCommit`, `withoutRepositoryGitAccess`. - `app/src/ui/lib/author-input/author-handle.tsx` (+19/-3): апстримная подпись с `instruction`; фраза «press backspace…» вынесена в новый ключ `authorHandle.removeInstruction`, «Remove {author}» — в `authorHandle.removeAriaLabel`. - `app/src/ui/lib/author-input/author-input.tsx` (+157/-40): принята апстримная логика `pendingAuthorResolutions`; импорты `t` и `arrayEquals` объединены. - `app/src/ui/worktrees/worktree-list-item-context-menu.ts` (+5/-2): объединены импорты `t` и `isRepositoryAffectedByAssistedCommit`. - Остальные 237 файлов — правки апстрима без форкового пересечения. Зачем? Апстрим сменил пакетный менеджер: yarn в репозитории больше нет, установка идёт через `npm ci`, а скрипты — через `npm run`. Без резолва форк остался бы с yarn-вызовами в CI и релизных workflow, которые этот мерж ломает. Одновременно появилась новая механика коммита через Copilot, и её строки надо было вернуть в слой перевода, иначе эти экраны остались бы на английском. Замеры? Сняты на хосте, контейнер ещё не переведён на npm. `git merge --no-ff` дал 9 контентных конфликтов против 9 предсказанных `git merge-tree`; маркеров конфликта в `app/src`, `app/locales`, `script`, `docs`, `.github` и `package.json` — 0; `git diff --check` чист. Форковые скрипты в `package.json` проверены разбором JSON: `l10n:parity/audit/upstream/bundles` и `release-build-info` присутствуют, ни один script не содержит `yarn`. Точных `t()`-вызовов: 10 в `app-store.ts`, 42 в `commit-message.tsx`; импорт `t` добавлен там, где апстримная версия его не содержала. Локи не правились: `git diff --cached --numstat 1527ef6 -- package-lock.json app/package-lock.json` показывает только добавления апстрима. Итог мержа — 246 файлов, +81 728/-160 879. Принятый остаток? Гейты не сняты: `tsc --noEmit`, `npm test`, `l10n:parity/audit/upstream/bundles`, `lint`, `markdownlint` и `test:script` требуют контейнера на npm — его перевод и пересборка идут следующим коммитом. Форматирование Prettier не прогонялось. Восемь новых строк Copilot-панели и ещё около десяти краевых (`commitMessage.*`, `authorHandle.*`) пока литералы: они переводятся отдельными коммитами, поэтому `l10n:audit` временно покажет рост. `tlh` и `qya` для этих строк получат перевод, а не заглушки. Пуш — за пользователем. Итог Дерево догнало апстрим по структуре: npm-миграция принята, форковые скрипты и dugite-кеш сохранены, все локализованные экраны удержали перевод после переписывания `commit-message.tsx` и выбора аккаунта. Проверка типов и тестов — следующий шаг, до неё коммит считается непринятым. --- EN: Merge upstream a95e13a - npm migration, version 3.6.11-beta1 Upstream brought 84 commits; the main one is PR desktop#22983, the yarn-to-npm migration: the vendored yarn and every yarn.lock are gone, package-lock.json, .npmrc and the script/npm.ts wrappers are in. Copilot assisted commit (PR desktop#23132, desktop#23125, desktop#23059) and the ansi-regex bump came along. Our finished PR desktop#23044 merge (1527ef6) is the first parent. What changed? - `package.json` (+35/-27): upstream's scripts block in npm form, `engines` node >=22.12.0 and npm >=11.17.0, `overrides` instead of `resolutions`; the fork's `l10n:parity`, `l10n:audit`, `l10n:upstream`, `l10n:bundles` and `release-build-info` survive inside the new block, and no script mentions yarn. - `package-lock.json` (+17484/-0) and `app/package-lock.json` (+4163/-0): upstream locks taken untouched - editing them would break `npm ci`; `yarn.lock` (-7272), `app/yarn.lock` (-2304) and `vendor/yarn-1.21.1.js` (-147315) are deleted upstream. - `.github/workflows/ci.yml` (+29/-24): `cache: npm` and `cache-dependency-path` for the four locks, `npm ci` and `npm run …` accepted; the fork's embedded Git (dugite) cache is restored on top with a key from `hashFiles('app/package-lock.json')` and three install attempts around `npm ci`. - `.github/actions/setup-ci-environment/action.yml` (+11/-18): upstream `npm ci` with `npm_config_arch`, the fork's retry kept; the `yarn add --optional` cross-arch Copilot SDK step is gone because npm now picks the runtime via `--cpu`. - `app/src/lib/stores/app-store.ts` (+1487/-380): upstream `performPush` accepted; the blocks that held `t('appStore.pushingTo')` and the fast-forward labels moved elsewhere upstream, so the conflict was resolved by dropping our blocks while the `t` import from `../l10n/core` and the other 10 calls stay. - `app/src/ui/changes/commit-message.tsx` (+845/-291): the file was rewritten by upstream (commit modes, `DropdownSelectButton`, `CopilotCommitPanel`); 42 `t()` calls are back from our version - button title and "last commit", hook texts, summary-length hints, "Committed Just now", the New badge, file selection and the required-summary error; the `t` import was re-added. - `app/src/ui/clone-repository/clone-repository.tsx` (+42/-0) and `app/src/ui/add-repository/create-repository.tsx` (+129/-40): imports merged - our `t`/`Trans` plus upstream's `canonicalMutationPath`, `isRepositoryAffectedByAssistedCommit`, `withoutRepositoryGitAccess`. - `app/src/ui/lib/author-input/author-handle.tsx` (+19/-3): upstream's label with an `instruction`; the "press backspace…" phrase moved to the new `authorHandle.removeInstruction` key and "Remove {author}" to `authorHandle.removeAriaLabel`. - `app/src/ui/lib/author-input/author-input.tsx` (+157/-40): upstream's `pendingAuthorResolutions` logic accepted; `t` and `arrayEquals` imports merged. - `app/src/ui/worktrees/worktree-list-item-context-menu.ts` (+5/-2): `t` and `isRepositoryAffectedByAssistedCommit` imports merged. - The remaining 237 files are upstream edits with no fork overlap. Why? Upstream switched package managers: yarn no longer exists in the repository, installs go through `npm ci` and scripts through `npm run`. Without this resolution the fork would keep yarn calls in CI and release workflows that this merge breaks. At the same time Copilot gained a new commit flow whose strings had to be returned to the translation layer, or those screens would stay English. Verified Measured on the host; the container is not on npm yet. `git merge --no-ff` produced 9 content conflicts against 9 predicted by `git merge-tree`; conflict markers in `app/src`, `app/locales`, `script`, `docs`, `.github` and `package.json`: 0; `git diff --check` is clean. Fork scripts in `package.json` were checked by parsing the JSON: `l10n:parity/audit/upstream/bundles` and `release-build-info` are present and no script contains `yarn`. Strict `t()` calls: 10 in `app-store.ts`, 42 in `commit-message.tsx`; the `t` import was re-added wherever upstream's version lacked it. Locks were not edited: `git diff --cached --numstat 1527ef6 -- package-lock.json app/package-lock.json` shows upstream additions only. The merge itself is 246 files, +81 728/-160 879. Accepted remainder Gates are not taken: `tsc --noEmit`, `npm test`, `l10n:parity/audit/upstream/bundles`, `lint`, `markdownlint` and `test:script` need an npm-based container, whose conversion and rebuild are the next commit. Prettier was not run. Eight new Copilot-panel strings and about ten edge ones (`commitMessage.*`, `authorHandle.*`) are still literals: they get their own translation commits, so `l10n:audit` will temporarily show growth. `tlh` and `qya` will receive real translations, not stubs. Pushing stays with the author. Result The tree caught up structurally: the npm migration is in, fork scripts and the dugite cache survive, and every localized screen kept its translation after `commit-message.tsx` and the account picker were rewritten. Type-checking and tests are the next step; until then this commit is not accepted.
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 linked issue; no matching issue found in a targeted search.
Description
Replace the Copilot mascot's purple hover glow and assisted-commit working gradient with Desktop's existing blue palette. The shared accent tokens also keep sparkles, the working border, and pulse consistent.
Only four token declarations in two theme files change: light uses
$blue(#0366d6, glow alpha0.14); dark uses$blue-300(#79b8ff, glow alpha0.16). Animation timing, opacity, reduced-motion rules, and forced-colors behavior remain unchanged.Validation
Evidence covers commit
5c6b20f0f3aca98a1682a76536044d3eb2159ca5.npm run lint:fix— passed; no unrelated changes.npm run lint— passed.npm test— initially 3,594 passed, 4 failed, 2 skipped because inheritedsafe.bareRepository=explicitprevented bare-repository assertions.GIT_CONFIG_COUNT=4 GIT_CONFIG_KEY_3=safe.bareRepository GIT_CONFIG_VALUE_3=all npm test -- app/test/unit/git/push-test.ts app/test/unit/git/rev-parse-test.ts— 28 passed.GIT_CONFIG_COUNT=4 GIT_CONFIG_KEY_3=safe.bareRepository GIT_CONFIG_VALUE_3=all npm test— 3,598 passed, 0 failed, 2 skipped (3,600 total). Override applied only to the test process; host Git configuration was not changed.app/styles/desktop.scsscompilation using the installed Sass 1.27.0renderSyncAPI — passed (454,035 bytes of CSS).Screenshots
Screen.Recording.2026-11-05.at.15.47.02.mov
Team-authored review
Evidence: See Validation and Screenshots.
Review path: Light review.
Release notes
Notes: no-notes