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': '英語',
|
||||
@@ -706,6 +710,8 @@ export const dict: Record<I18nKey, string> = {
|
||||
'gitView.header.noIdentity': 'IDがありません',
|
||||
'gitView.header.noProfiles': '適用できるプロファイルがありません。',
|
||||
'gitView.header.repositoryViews': 'リポジトリビュー',
|
||||
'gitView.header.updateBranch': 'ブランチを更新',
|
||||
'gitView.header.openPullRequest': 'プルリクエストを開く',
|
||||
'gitView.header.removeRemoteAria': 'リモート{name}を削除',
|
||||
'gitView.header.removeRemoteTitle': 'リモート{name}を削除',
|
||||
'gitView.header.upstreamSynced': '同期済み',
|
||||
@@ -756,6 +762,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
'gitView.history.renamedNoDiff': '名前変更されたファイル — 差分はサポートされていません',
|
||||
'gitView.history.renderDiffAnyway': 'とにかくレンダリング',
|
||||
'gitView.history.title': '履歴',
|
||||
'gitView.history.refresh': '更新',
|
||||
'gitView.graph.title': 'グラフ',
|
||||
'gitView.integrate.checking': '確認中…',
|
||||
'gitView.integrate.cherryPickAbortedToast': 'チェリーピックを中止しました',
|
||||
@@ -890,15 +897,15 @@ export const dict: Record<I18nKey, string> = {
|
||||
'gitView.pr.actions.openOnGitHubAria': 'プルリクエストを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': 'プルリクエストの変更を保存',
|
||||
'gitView.pr.actions.sendCommentToAgent': 'コメントをエージェントに送信',
|
||||
'gitView.pr.actions.sendCommentToAgentAria': 'このコメントをエージェントに送信',
|
||||
'gitView.pr.actions.sendToAgent': 'エージェントに送信',
|
||||
'gitView.pr.actions.shareComments': 'コメントを共有',
|
||||
'gitView.pr.actions.shareCommentsAria': 'プルリクエストのコメントをエージェントに送信',
|
||||
'gitView.pr.actions.sendCommentToAgent': 'コメントをチャットのコンテキストに添付',
|
||||
'gitView.pr.actions.sendCommentToAgentAria': 'このコメントをチャットのコンテキストに添付',
|
||||
'gitView.pr.actions.sendToAgent': 'チャットに添付',
|
||||
'gitView.pr.actions.shareComments': 'コメントを添付',
|
||||
'gitView.pr.actions.shareCommentsAria': 'プルリクエストのコメントをチャットのコンテキストに添付',
|
||||
'gitView.pr.actions.toggleDraftAria': '下書き状態を切り替え',
|
||||
'gitView.pr.actions.refresh': 'PRステータスを更新',
|
||||
'gitView.pr.actions.refreshAria': 'プルリクエストのステータスを更新',
|
||||
@@ -936,6 +943,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': 'プルリクエストを要約',
|
||||
@@ -970,9 +981,6 @@ export const dict: Record<I18nKey, string> = {
|
||||
'gitView.pullRequest.createHint': 'このブランチからプルリクエストを作成・管理します。',
|
||||
'gitView.pullRequest.availableOnFeatureBranches': '現在のブランチがプルリクエストを開ける場合に利用可能です。',
|
||||
'gitView.pullRequest.title': 'プルリクエスト',
|
||||
'gitView.tabs.commit': 'コミット',
|
||||
'gitView.tabs.pr': 'PR',
|
||||
'gitView.tabs.update': '更新',
|
||||
'gitView.tabs.worktree': 'ワークツリー',
|
||||
'gitView.toast.abortOperationFailed': '操作の中止に失敗しました',
|
||||
'gitView.toast.appliedIdentity': 'IDを適用しました: {name}',
|
||||
@@ -1039,9 +1047,26 @@ export const dict: Record<I18nKey, string> = {
|
||||
'contextPanel.mode.stagedDiff': 'ステージ済み差分',
|
||||
'contextPanel.mode.workingDiff': '作業中差分',
|
||||
'contextPanel.mode.plan': '計画',
|
||||
'contextPanel.mode.pr': 'プルリクエスト',
|
||||
'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': 'コミット・ブランチ・プルリクエスト',
|
||||
'contextRail.surface.terminal.description': '内蔵ターミナル',
|
||||
'contextRail.surface.diff.description': '作業中の変更をレビュー',
|
||||
'contextRail.surface.plan.description': '現在のプランを表示',
|
||||
'contextRail.surface.pr.description': '現在のブランチのプルリクエストを作成・確認・マージ',
|
||||
'contextRail.surface.notes.description': 'プロジェクトのノート・ToDo・プラン',
|
||||
'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': 'ウェブブラウザ',
|
||||
@@ -1126,6 +1151,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': '読み込み中...',
|
||||
@@ -1488,13 +1514,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': 'プロジェクトとして追加するフォルダを選択してください。',
|
||||
@@ -1572,10 +1591,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': '計画コンテキストパネルの切り替え',
|
||||
@@ -2195,7 +2213,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': '設定を開く...',
|
||||
|
||||
Reference in New Issue
Block a user