feat(ui): context panel 2.0 - surface rail, changes-first git view, live PR surface (#2418)
* feat(ui): add context surface registry and rail switcher * feat(ui): move git and project notes into context surfaces, embed editor file tree * feat(ui): replace right sidebar with context surfaces, per-surface panel widths * refactor(ui): retire legacy main-tab overlays and right-sidebar state * feat(ui): rail polish, right-docked file tree, terminal surface * feat(ui): move terminal into context surface, per-surface tab closing, editor empty state * feat(ui): tune default rail order and activity dot * fix(ui): keep context panel controls anchored during width animations * feat(ui): lazy-follow context panel resize with window-level drag tracking * feat(ui): panel dividers, right-dock tree icon, muted outline folder icons * feat(ui): restructure git view into changes-first surface with standalone PR surface - Remove commit/update/pr tabs; git view is always changes + commit - Promote pull request to its own rail surface with shared repo context - Move update-branch and re-integrate flows into separate dialogs - Add PR status chip and repo actions menu to the git header row - Seed new PR-status entries from resolved sibling remotes to avoid a false "checking status" state when the PR is already known - History/graph dialog refresh button, fingerprint global identity icon, muted outline folder icons follow-ups * feat(ui): progressive-disclosure PR surface with live checks and pinned chat context - Segment the PR surface into Overview / Checks / Comments pill tabs with live badges; merge controls move to the status row - Live checks segment: progress bar, per-run rows with workflow names, elapsed timers, expandable failures, auto-refresh while pending - PR comments and failed checks pin as chat-context drafts (like terminal selections) instead of sending an immediate message; works on new-session drafts too - Shared prContext cache client+server, ETag conditional requests in the octokit wrapper (304s bypass rate limits), extended checks aggregate (inProgress/queued/startedAt) - Resolve gh-CLI auth login for merge-permission checks - Full-width description editor with matched control heights * fix(ui): single source of truth for PR checks and status readers - Derive the checks aggregate from the visible run list and sync it into the PR-status store so bar, badges, header, and git-view chip agree - Route PR body hydration through the shared context cache - Git-view PR chip reads the freshest entry across remote keys * fix(github): freshness stamps prevent stale cache responses from regressing PR state - pr/status and pulls/context responses carry a server-side fetchedAt that survives cache serves - The status store rejects responses older than the held snapshot (only clearing the loading flag), and the checks sync adopts the context's stamp so stale status polls cannot flip fresher derived checks - Regression test for the stale-response guard * perf(github): repo-level pull-list cache collapses per-branch PR resolution - One pulls.list per repo per state per 45s answers every branch (10 worktrees = 1 call, not 10 query fans); in-flight fetches coalesce - A complete repo list makes a no-PR miss authoritative, skipping the per-owner head queries AND the Search API fallback (the 30/min killer) - force refresh bypasses the repo list cache; PR create/merge/ready invalidate it * perf(github): back off Search API misses per repo+branch A branch without a PR re-searched on every poll; with >100 closed PRs the list miss is never authoritative, so the search fallback still ran and burned the 30/min search quota. Remember misses for 10 minutes; PR creation clears remembered misses for the repo. * fix(github): dedupe re-run check runs to the latest per (app, name) listForRef returns the superseded completed run alongside its re-run; GitHub's UI shows only the latest per name. Mirror that in both pr/status and pulls/context so counts and run lists match github.com. * fix(ui): address review findings on registry test, surface docs, and PR-context keys - Rail-order test asserts against the registry itself (was stale after the 'pr' surface landed and failed) - surfaces DOCUMENTATION.md describes actual behavior: has-content surfaces hide until content exists; only multi-instance/terminal panes are keep-alive, singleton surfaces remount and restore from stores - PR-context cache keys are runtime-scoped JSON tuples; invalidation compares the directory exactly instead of by string prefix (+ test) * fix(ui): wrap long unbreakable tokens in check-run details Annotation messages with long SHAs/URLs overflowed the panel; break-words on annotation title/message/rawDetails and output summary/text, and the expanded run body clips instead of widening the panel. * fix(ui): busy state for context-attach buttons and honest attach labels - 'Attach failed checks' / 'Attach all to chat' show a spinner and disable while the context request runs (previously nothing happened for seconds) - Action labels/tooltips reworded from send-to-agent to attach-to-chat semantics across all locales * fix(i18n): Ukrainian attach wording uses 'прикріпити' with proper cases * fix(ui): runtime-scope PR-view remote caches, correct surfaces doc on preview - Remote/remote-url caches in PullRequestView are keyed by runtime + directory so a backend switch never serves another runtime's remotes - surfaces DOCUMENTATION.md: preview is not keep-alive; preview tabs remount on switch like singleton surfaces * fix(ui): rail active color, clearer collapse icon, remove dead bottom-terminal dock Design-review feedback on the context panel: - Context rail: icons enlarged 16px -> 18px; the active surface is now highlighted with the primary color only (no background, no scale animation), replacing the previous scale-up effect that read as a resize rather than a selected state. - Files tree: the icon-only 'collapse all folders' toolbar button now uses collapse-vertical instead of contract-up-down, which was easily mistaken for a close button. The labelled 'Collapse all' dropdown item in the session sidebar keeps its icon since text removes the ambiguity. - Terminal: removed the leftover bottom-dock expand/close buttons that rendered in the context-panel terminal but controlled a dock that no longer exists (nothing toggles it anymore), so the expand button appeared to do nothing and duplicated the panel-header fullscreen control. Cleaned up the entire inert layer with it: four useUIStore fields (isBottomTerminalOpen/Expanded, bottomTerminalHeight, hasManuallyResizedBottomTerminal), five actions, their persistence, the MainLayout resize listener that only served the dock height, the dock-driven refit effect in TerminalView, and the terminalView.bottomDock.* keys across all 10 locale dictionaries. Validated: ui type-check and lint clean; messages parity test (2 pass) and useUIStore contextPanel test (13 pass) green; icon sprite regenerated via icons:generate. * refactor: use PR visual state for git header icon Derives the pull request icon color from a single visual state Covers merged, closed, draft, blocked, and open PR states Removes conditional class handling from the git header icon
This commit is contained in:
committed by
GitHub
parent
005b2e61b0
commit
e2fa7dbad2
@@ -8,6 +8,10 @@ export const dict: Record<I18nKey, string> = {
|
||||
'chat.message.terminalContext': '{terminal}, рядки {start}-{end}',
|
||||
'chat.chatInput.terminalContext': '{terminal}, рядки {start}-{end}',
|
||||
'chat.chatInput.terminalContextRemove': 'Видалити контекст термінала',
|
||||
'chat.chatInput.prCommentContext': 'Коментарі PR',
|
||||
'chat.chatInput.prCommentContextRemove': 'Прибрати контекст коментарів PR',
|
||||
'chat.chatInput.prCheckContext': 'Зафейлені чеки PR',
|
||||
'chat.chatInput.prCheckContextRemove': 'Прибрати контекст чеків PR',
|
||||
"common.loading": "Завантаження...",
|
||||
"common.unavailable": "Недоступно",
|
||||
"common.language.english": "англійська",
|
||||
@@ -453,7 +457,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
"sessions.sidebar.session.rename.save": "Зберегти назву сесії",
|
||||
"sessions.sidebar.session.rename.cancel": "Скасувати перейменування сесії",
|
||||
"sessions.sidebar.session.menu.unpin": "Відкріпити сесія",
|
||||
"sessions.sidebar.session.menu.pin": "Закріпити сесія",
|
||||
"sessions.sidebar.session.menu.pin": "Прикріпити сесія",
|
||||
"sessions.sidebar.session.menu.share": "Поділитися",
|
||||
"sessions.sidebar.session.menu.copied": "Скопійовано",
|
||||
"sessions.sidebar.session.menu.copyLink": "Копіювати посилання",
|
||||
@@ -709,6 +713,8 @@ export const dict: Record<I18nKey, string> = {
|
||||
"gitView.header.noIdentity": "Ідентичність не вибрано",
|
||||
"gitView.header.noProfiles": "Немає доступних профілів для застосування.",
|
||||
"gitView.header.repositoryViews": "Перегляди репозиторію",
|
||||
"gitView.header.updateBranch": "Оновити гілку",
|
||||
"gitView.header.openPullRequest": "Відкрити pull request",
|
||||
"gitView.header.removeRemoteAria": "Видалити remote",
|
||||
"gitView.header.removeRemoteTitle": "Видалити remote",
|
||||
"gitView.header.upstreamSynced": "синхронізовано",
|
||||
@@ -760,6 +766,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
"gitView.history.renamedNoDiff": "Перейменований файл — diff не підтримується",
|
||||
"gitView.history.renderDiffAnyway": "Показати все одно",
|
||||
"gitView.history.title": "Історія",
|
||||
"gitView.history.refresh": "Оновити",
|
||||
"gitView.graph.title": "Граф",
|
||||
"gitView.integrate.checking": "Перевірка…",
|
||||
"gitView.integrate.cherryPickAbortedToast": "Cherry-pick перервано",
|
||||
@@ -894,15 +901,15 @@ export const dict: Record<I18nKey, string> = {
|
||||
"gitView.pr.actions.openOnGitHubAria": "Відкрити PR на GitHub",
|
||||
"gitView.pr.actions.openSettings": "Відкрити налаштування",
|
||||
"gitView.pr.actions.repo": "Репозиторій",
|
||||
"gitView.pr.actions.resolveFailedChecks": "Виправити невдалі перевірки",
|
||||
"gitView.pr.actions.resolveFailedChecksAria": "Надіслати невдалі перевірки агенту",
|
||||
"gitView.pr.actions.resolveFailedChecks": "Прикріпити зафейлені чеки",
|
||||
"gitView.pr.actions.resolveFailedChecksAria": "Прикріпити зафейлені чеки до контексту чату",
|
||||
"gitView.pr.actions.savePr": "Зберегти PR",
|
||||
"gitView.pr.actions.savePrAria": "Зберегти зміни PR",
|
||||
"gitView.pr.actions.sendCommentToAgent": "Надіслати коментар агенту",
|
||||
"gitView.pr.actions.sendCommentToAgentAria": "Надіслати цей коментар агенту",
|
||||
"gitView.pr.actions.sendToAgent": "Надіслати агенту",
|
||||
"gitView.pr.actions.shareComments": "Поділитися коментарями",
|
||||
"gitView.pr.actions.shareCommentsAria": "Надсилати агенту коментарі PR",
|
||||
"gitView.pr.actions.sendCommentToAgent": "Прикріпити коментар до контексту чату",
|
||||
"gitView.pr.actions.sendCommentToAgentAria": "Прикріпити цей коментар до контексту чату",
|
||||
"gitView.pr.actions.sendToAgent": "Прикріпити в чат",
|
||||
"gitView.pr.actions.shareComments": "Прикріпити коментарі",
|
||||
"gitView.pr.actions.shareCommentsAria": "Прикріпити коментарі pull request до контексту чату",
|
||||
"gitView.pr.actions.toggleDraftAria": "Перемкнути стан чернетки",
|
||||
"gitView.pr.actions.refresh": "Оновити статус PR",
|
||||
"gitView.pr.actions.refreshAria": "Оновити статус pull request",
|
||||
@@ -940,6 +947,10 @@ export const dict: Record<I18nKey, string> = {
|
||||
"gitView.pr.noMergePermission": "Ви не маєте дозволу на об’єднання цього запиту.",
|
||||
"gitView.pr.notMergeable": "Неможливо злити",
|
||||
"gitView.pr.numberLabel": "PR #{number}",
|
||||
"gitView.pr.segment.overview": "Огляд",
|
||||
"gitView.pr.segment.checks": "Перевірки",
|
||||
"gitView.pr.segment.comments": "Коментарі",
|
||||
"gitView.pr.comments.addAll": "Прикріпити все в чат",
|
||||
"gitView.pr.placeholder.additionalContext": "Будь-які обмеження, примітки щодо розгортання чи контекст рецензента...",
|
||||
"gitView.pr.placeholder.description": "Опишіть зміну...",
|
||||
"gitView.pr.placeholder.main": "Узагальніть свій PR",
|
||||
@@ -974,9 +985,6 @@ export const dict: Record<I18nKey, string> = {
|
||||
"gitView.pullRequest.createHint": "Створюйте PR з цієї гілки та керуйте ними.",
|
||||
"gitView.pullRequest.availableOnFeatureBranches": "Доступно, коли поточна гілка може відкрити PR.",
|
||||
"gitView.pullRequest.title": "PR",
|
||||
"gitView.tabs.commit": "Коміт",
|
||||
"gitView.tabs.pr": "PR",
|
||||
"gitView.tabs.update": "Оновлення",
|
||||
"gitView.tabs.worktree": "Worktree",
|
||||
"gitView.toast.abortOperationFailed": "Не вдалося перервати операцію",
|
||||
"gitView.toast.appliedIdentity": "Застосовано ідентичність: {name}",
|
||||
@@ -1043,9 +1051,26 @@ export const dict: Record<I18nKey, string> = {
|
||||
"contextPanel.mode.stagedDiff": "Staged Diff",
|
||||
"contextPanel.mode.workingDiff": "Working Diff",
|
||||
"contextPanel.mode.plan": "План",
|
||||
"contextPanel.mode.pr": "Pull Request",
|
||||
"contextPanel.mode.context": "Контекст",
|
||||
"contextPanel.mode.preview": "Перегляд",
|
||||
"contextPanel.mode.browser": "Браузер",
|
||||
"contextRail.aria.rail": "Поверхні панелі",
|
||||
"contextPanel.editorEmpty.title": "Файл не відкрито",
|
||||
"contextPanel.editorEmpty.description": "Виберіть файл у дереві, щоб почати редагування.",
|
||||
"contextRail.surface.editor.description": "Редагування файлів проєкту",
|
||||
"contextRail.surface.git.description": "Коміти, гілки та pull request-и",
|
||||
"contextRail.surface.terminal.description": "Вбудований термінал",
|
||||
"contextRail.surface.diff.description": "Перегляд поточних змін",
|
||||
"contextRail.surface.plan.description": "Перегляд поточного плану",
|
||||
"contextRail.surface.pr.description": "Створюйте, переглядайте та зливайте pull request поточної гілки",
|
||||
"contextRail.surface.notes.description": "Нотатки, задачі та плани проєкту",
|
||||
"contextRail.surface.context.description": "Контекст сесії та використання токенів",
|
||||
"contextRail.surface.browser.description": "Вбудований браузер",
|
||||
"contextRail.surface.preview.description": "Перегляд дев-сервера",
|
||||
"contextRail.surface.chat.description": "Сесія, відкрита поруч",
|
||||
"contextRail.surface.notes": "Нотатки проєкту",
|
||||
"contextRail.editorTree.toggle": "Перемкнути дерево файлів",
|
||||
"contextPanel.browser.open": "Відкрити панель браузера",
|
||||
"contextPanel.browser.addressAria": "Адреса браузера",
|
||||
"contextPanel.browser.empty": "Веб-браузер",
|
||||
@@ -1096,6 +1121,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
"sidebarFilesTree.actions.newFileTitle": "Новий файл",
|
||||
"sidebarFilesTree.actions.newFolderTitle": "Нова папка",
|
||||
"sidebarFilesTree.actions.refreshTitle": "Оновити",
|
||||
"sidebarFilesTree.actions.collapseAllTitle": "Згорнути всі папки",
|
||||
"sidebarFilesTree.actions.fileMenuTitle": "Меню файлу",
|
||||
"sidebarFilesTree.state.searching": "Пошук...",
|
||||
"sidebarFilesTree.state.loading": "Завантаження...",
|
||||
@@ -1470,13 +1496,6 @@ export const dict: Record<I18nKey, string> = {
|
||||
"terminalView.quickKeys.enterAria": "Enter",
|
||||
"terminalView.tabs.closeTabTitle": "Закрити вкладку",
|
||||
"terminalView.tabs.newTabTitle": "Нова вкладка",
|
||||
"terminalView.bottomDock.resizeAria": "Змінити розмір панелі терміналу",
|
||||
"terminalView.bottomDock.restoreTitle": "Відновити висоту панелі терміналу",
|
||||
"terminalView.bottomDock.restoreAria": "Відновити висоту панелі терміналу",
|
||||
"terminalView.bottomDock.expandTitle": "Розгорнути панель терміналу",
|
||||
"terminalView.bottomDock.expandAria": "Розгорнути панель терміналу",
|
||||
"terminalView.bottomDock.closeTitle": "Закрити панель терміналу",
|
||||
"terminalView.bottomDock.closeAria": "Закрити панель терміналу",
|
||||
"terminalView.viewport.inputAria": "Ввід терміналу",
|
||||
"directoryExplorerDialog.title": "Додати каталог проєкту",
|
||||
"directoryExplorerDialog.description": "Виберіть папку, щоб додати її як проєкт.",
|
||||
@@ -1513,7 +1532,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
"directoryExplorerDialog.toast.failedToSelectDirectory": "Не вдалося вибрати каталог",
|
||||
"directoryExplorerDialog.toast.unknownError": "Сталася невідома помилка.",
|
||||
"directoryTree.actions.createNewDirectory": "Створити новий каталог",
|
||||
"directoryTree.actions.pinDirectory": "Закріпити каталог",
|
||||
"directoryTree.actions.pinDirectory": "Прикріпити каталог",
|
||||
"directoryTree.actions.unpinDirectory": "Відкріпити каталог",
|
||||
"directoryTree.actions.createDirectory": "Створити каталог",
|
||||
"directoryTree.actions.cancel": "Скасувати",
|
||||
@@ -1554,10 +1573,9 @@ export const dict: Record<I18nKey, string> = {
|
||||
"helpDialog.item.focusChatInput": "Фокус на полі вводу чату",
|
||||
"helpDialog.item.togglePromptNavigator": "Показати або приховати навігатор промптів",
|
||||
"helpDialog.item.abortActiveRun": "Перервати активний запуск (подвійне натискання)",
|
||||
"helpDialog.item.toggleRightSidebar": "Перемкнути праву бічну панель",
|
||||
"helpDialog.item.openRightSidebarGitTab": "Відкрити вкладку Git у правій бічній панелі",
|
||||
"helpDialog.item.openRightSidebarFilesTab": "Відкрити вкладку «Файли» у правій бічній панелі",
|
||||
"helpDialog.item.cycleRightSidebarTab": "Перемкнути вкладку правої бічної панелі",
|
||||
"helpDialog.item.toggleRightSidebar": 'Перемкнути контекстну панель',
|
||||
"helpDialog.item.openRightSidebarGitTab": 'Відкрити поверхню Git',
|
||||
"helpDialog.item.openRightSidebarFilesTab": 'Відкрити поверхню файлів',
|
||||
"helpDialog.item.toggleTerminalDock": "Перемкнути панель терміналу",
|
||||
"helpDialog.item.toggleTerminalExpanded": "Розгорнути або згорнути термінал",
|
||||
"helpDialog.item.togglePlanContextPanel": "Перемкнути панель контексту плану",
|
||||
@@ -1720,7 +1738,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
"chat.fileAttachment.actions.removeNamed": "Видалити {name}",
|
||||
"chat.fileAttachment.actions.removeImage": "Видалити зображення",
|
||||
"chat.fileAttachment.activeEditor.addFile": "Додати файл:{name} до контексту",
|
||||
"chat.fileAttachment.activeEditor.pinSelection": "Закріпити вибір у контексті",
|
||||
"chat.fileAttachment.activeEditor.pinSelection": "Прикріпити вибір у контексті",
|
||||
"chat.fileAttachment.activeEditor.remove": "Видалити з контексту",
|
||||
"chat.fileAttachment.openInDiagram": "Відкрити в перегляді діаграми",
|
||||
"chat.pendingChanges.fileCountSingle": "Файл: {count}",
|
||||
@@ -1891,7 +1909,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
"chat.messageBody.actions.fork": "Відгалузити звідси",
|
||||
"chat.messageBody.actions.copyMessageAria": "Копіювати текст повідомлення",
|
||||
"chat.messageBody.actions.copyMessage": "Копіювати повідомлення",
|
||||
"chat.messageBody.actions.pinContext": "Закріпити в контексті (збережеться після стиснення)",
|
||||
"chat.messageBody.actions.pinContext": "Прикріпити в контексті (збережеться після стиснення)",
|
||||
"chat.messageBody.actions.unpinContext": "Відкріпити від контексту (не збережеться після стиснення)",
|
||||
"chat.messageBody.actions.contextPinFailed": "Не вдалося оновити закріплення в контексті",
|
||||
"chat.messageBody.actions.openPreviewAria": "Відкрити попередній перегляд",
|
||||
@@ -2162,7 +2180,6 @@ export const dict: Record<I18nKey, string> = {
|
||||
"commandPalette.item.addProject": "Додати проєкт",
|
||||
"commandPalette.item.showSessionSwitcher": "Показати перемикач сесій",
|
||||
"commandPalette.item.toggleSidebar": "Перемкнути бічну панель",
|
||||
"commandPalette.item.toggleRightSidebar": "Перемкнути праву бічну панель",
|
||||
"commandPalette.item.showContextUsage": "Показати використання контексту",
|
||||
"commandPalette.item.toggleTerminal": "Перемкнути термінал",
|
||||
"commandPalette.item.openSettings": "Відкрити налаштування...",
|
||||
@@ -2474,9 +2491,9 @@ export const dict: Record<I18nKey, string> = {
|
||||
"miniChat.status.busy": "Виконується",
|
||||
"miniChat.status.retry": "Повторна спроба",
|
||||
"miniChat.status.idle": "Очікує",
|
||||
"miniChat.actions.pin": "Закріпити над іншими вікнами",
|
||||
"miniChat.actions.pin": "Прикріпити над іншими вікнами",
|
||||
"miniChat.actions.unpin": "Відкріпити вікно",
|
||||
"miniChat.actions.pinAria": "Закріпити вікно Mini Chat",
|
||||
"miniChat.actions.pinAria": "Прикріпити вікно Mini Chat",
|
||||
"miniChat.actions.unpinAria": "Відкріпити вікно Mini Chat",
|
||||
"miniChat.actions.openMain": "Відкрити в головному вікні",
|
||||
"miniChat.actions.openMainAria": "Відкрити сесію в головному вікні",
|
||||
|
||||
Reference in New Issue
Block a user