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}, líneas {start}-{end}',
|
||||
'chat.chatInput.terminalContext': '{terminal}, líneas {start}-{end}',
|
||||
'chat.chatInput.terminalContextRemove': 'Eliminar contexto del terminal',
|
||||
'chat.chatInput.prCommentContext': 'Comentarios del PR',
|
||||
'chat.chatInput.prCommentContextRemove': 'Quitar el contexto de comentarios del PR',
|
||||
'chat.chatInput.prCheckContext': 'Comprobaciones del PR fallidas',
|
||||
'chat.chatInput.prCheckContextRemove': 'Quitar el contexto de comprobaciones del PR',
|
||||
"common.loading": "Cargando...",
|
||||
"common.unavailable": "No disponible",
|
||||
"common.language.english": "Inglés",
|
||||
@@ -709,6 +713,8 @@ export const dict: Record<I18nKey, string> = {
|
||||
"gitView.header.noIdentity": "Sin identidad",
|
||||
"gitView.header.noProfiles": "No hay perfiles disponibles para aplicar.",
|
||||
"gitView.header.repositoryViews": "Vistas del repositorio",
|
||||
"gitView.header.updateBranch": "Actualizar rama",
|
||||
"gitView.header.openPullRequest": "Abrir pull request",
|
||||
"gitView.header.removeRemoteAria": "Eliminar remoto",
|
||||
"gitView.header.removeRemoteTitle": "Eliminar remoto",
|
||||
"gitView.header.upstreamSynced": "sincronizado",
|
||||
@@ -760,6 +766,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
"gitView.history.renamedNoDiff": "Archivo renombrado — diff no soportado",
|
||||
"gitView.history.renderDiffAnyway": "Renderizar igualmente",
|
||||
"gitView.history.title": "Historial",
|
||||
"gitView.history.refresh": "Actualizar",
|
||||
"gitView.graph.title": "Grafo",
|
||||
"gitView.integrate.checking": "Verificando…",
|
||||
"gitView.integrate.cherryPickAbortedToast": "Cherry-pick abortado",
|
||||
@@ -894,15 +901,15 @@ export const dict: Record<I18nKey, string> = {
|
||||
"gitView.pr.actions.openOnGitHubAria": "Abrir PR en GitHub",
|
||||
"gitView.pr.actions.openSettings": "Abrir configuración",
|
||||
"gitView.pr.actions.repo": "Repositorio",
|
||||
"gitView.pr.actions.resolveFailedChecks": "Resolver checks fallidos",
|
||||
"gitView.pr.actions.resolveFailedChecksAria": "Enviar checks fallidos al agente",
|
||||
"gitView.pr.actions.resolveFailedChecks": "Adjuntar comprobaciones fallidas",
|
||||
"gitView.pr.actions.resolveFailedChecksAria": "Adjuntar comprobaciones fallidas al contexto del chat",
|
||||
"gitView.pr.actions.savePr": "Guardar PR",
|
||||
"gitView.pr.actions.savePrAria": "Guardar cambios de la PR",
|
||||
"gitView.pr.actions.sendCommentToAgent": "Enviar comentario al agente",
|
||||
"gitView.pr.actions.sendCommentToAgentAria": "Enviar este comentario al agente",
|
||||
"gitView.pr.actions.sendToAgent": "Enviar al agente",
|
||||
"gitView.pr.actions.shareComments": "Compartir comentarios",
|
||||
"gitView.pr.actions.shareCommentsAria": "Enviar comentarios de la PR al agente",
|
||||
"gitView.pr.actions.sendCommentToAgent": "Adjuntar comentario al contexto del chat",
|
||||
"gitView.pr.actions.sendCommentToAgentAria": "Adjuntar este comentario al contexto del chat",
|
||||
"gitView.pr.actions.sendToAgent": "Adjuntar al chat",
|
||||
"gitView.pr.actions.shareComments": "Adjuntar comentarios",
|
||||
"gitView.pr.actions.shareCommentsAria": "Adjuntar los comentarios del pull request al contexto del chat",
|
||||
"gitView.pr.actions.toggleDraftAria": "Alternar estado de borrador",
|
||||
"gitView.pr.actions.refresh": "Actualizar estado de la PR",
|
||||
"gitView.pr.actions.refreshAria": "Actualizar estado del pull request",
|
||||
@@ -940,6 +947,10 @@ export const dict: Record<I18nKey, string> = {
|
||||
"gitView.pr.noMergePermission": "No tienes permiso para hacer merge de esta PR.",
|
||||
"gitView.pr.notMergeable": "No se puede hacer merge",
|
||||
"gitView.pr.numberLabel": "PR # {number}",
|
||||
"gitView.pr.segment.overview": "Resumen",
|
||||
"gitView.pr.segment.checks": "Comprobaciones",
|
||||
"gitView.pr.segment.comments": "Comentarios",
|
||||
"gitView.pr.comments.addAll": "Adjuntar todo al chat",
|
||||
"gitView.pr.placeholder.additionalContext": "Cualquier restricción, nota de lanzamiento o contexto para revisor...",
|
||||
"gitView.pr.placeholder.description": "Describe el cambio...",
|
||||
"gitView.pr.placeholder.main": "Resume tu PR",
|
||||
@@ -974,9 +985,6 @@ export const dict: Record<I18nKey, string> = {
|
||||
"gitView.pullRequest.createHint": "Crea y gestiona PR desde esta rama.",
|
||||
"gitView.pullRequest.availableOnFeatureBranches": "Disponible cuando la rama actual puede abrir un PR.",
|
||||
"gitView.pullRequest.title": "PR",
|
||||
"gitView.tabs.commit": "Commit",
|
||||
"gitView.tabs.pr": "PR",
|
||||
"gitView.tabs.update": "Actualizar",
|
||||
"gitView.tabs.worktree": "Árbol de trabajo",
|
||||
"gitView.toast.abortOperationFailed": "No se pudo abortar la operación",
|
||||
"gitView.toast.appliedIdentity": "Identidad aplicada: {name}",
|
||||
@@ -1043,9 +1051,26 @@ export const dict: Record<I18nKey, string> = {
|
||||
"contextPanel.mode.stagedDiff": "Staged Diff",
|
||||
"contextPanel.mode.workingDiff": "Working Diff",
|
||||
"contextPanel.mode.plan": "Plan",
|
||||
"contextPanel.mode.pr": "Pull Request",
|
||||
"contextPanel.mode.context": "Contexto",
|
||||
"contextPanel.mode.preview": "Vista previa",
|
||||
"contextPanel.mode.browser": "Navegador",
|
||||
"contextRail.aria.rail": "Superficies del panel",
|
||||
"contextPanel.editorEmpty.title": "Ningún archivo abierto",
|
||||
"contextPanel.editorEmpty.description": "Elige un archivo del árbol para empezar a editar.",
|
||||
"contextRail.surface.editor.description": "Editar archivos del proyecto",
|
||||
"contextRail.surface.git.description": "Commits, ramas y pull requests",
|
||||
"contextRail.surface.terminal.description": "Terminal integrada",
|
||||
"contextRail.surface.diff.description": "Revisar cambios en curso",
|
||||
"contextRail.surface.plan.description": "Ver el plan actual",
|
||||
"contextRail.surface.pr.description": "Crea, revisa y fusiona el pull request de la rama actual",
|
||||
"contextRail.surface.notes.description": "Notas, tareas y planes del proyecto",
|
||||
"contextRail.surface.context.description": "Contexto de la sesión y uso de tokens",
|
||||
"contextRail.surface.browser.description": "Navegador web integrado",
|
||||
"contextRail.surface.preview.description": "Vista previa del servidor de desarrollo",
|
||||
"contextRail.surface.chat.description": "Sesión abierta en paralelo",
|
||||
"contextRail.surface.notes": "Notas del proyecto",
|
||||
"contextRail.editorTree.toggle": "Alternar árbol de archivos",
|
||||
"contextPanel.browser.open": "Abrir panel del navegador",
|
||||
"contextPanel.browser.addressAria": "Dirección del navegador",
|
||||
"contextPanel.browser.empty": "Navegador web",
|
||||
@@ -1096,6 +1121,7 @@ export const dict: Record<I18nKey, string> = {
|
||||
"sidebarFilesTree.actions.newFileTitle": "Nuevo archivo",
|
||||
"sidebarFilesTree.actions.newFolderTitle": "Nueva carpeta",
|
||||
"sidebarFilesTree.actions.refreshTitle": "Actualizar",
|
||||
"sidebarFilesTree.actions.collapseAllTitle": "Contraer todas las carpetas",
|
||||
"sidebarFilesTree.actions.fileMenuTitle": "Menú de archivo",
|
||||
"sidebarFilesTree.state.searching": "Buscando...",
|
||||
"sidebarFilesTree.state.loading": "Cargando...",
|
||||
@@ -1470,13 +1496,6 @@ export const dict: Record<I18nKey, string> = {
|
||||
"terminalView.quickKeys.enterAria": "Enter",
|
||||
"terminalView.tabs.closeTabTitle": "Cerrar pestaña",
|
||||
"terminalView.tabs.newTabTitle": "Nueva pestaña",
|
||||
"terminalView.bottomDock.resizeAria": "Ajustar tamaño del panel de terminal",
|
||||
"terminalView.bottomDock.restoreTitle": "Restaurar altura del panel de terminal",
|
||||
"terminalView.bottomDock.restoreAria": "Restaurar altura del panel de terminal",
|
||||
"terminalView.bottomDock.expandTitle": "Expandir panel de terminal",
|
||||
"terminalView.bottomDock.expandAria": "Expandir panel de terminal",
|
||||
"terminalView.bottomDock.closeTitle": "Cerrar panel de terminal",
|
||||
"terminalView.bottomDock.closeAria": "Cerrar panel de terminal",
|
||||
"terminalView.viewport.inputAria": "Entrada de terminal",
|
||||
"directoryExplorerDialog.title": "Añadir directorio de proyecto",
|
||||
"directoryExplorerDialog.description": "Elige una carpeta para añadir como proyecto.",
|
||||
@@ -1554,10 +1573,9 @@ export const dict: Record<I18nKey, string> = {
|
||||
"helpDialog.item.focusChatInput": "Enfocar entrada de chat",
|
||||
"helpDialog.item.togglePromptNavigator": "Mostrar u ocultar navegador de prompts",
|
||||
"helpDialog.item.abortActiveRun": "Detener ejecución activa (doble presionar)",
|
||||
"helpDialog.item.toggleRightSidebar": "Mostrar u ocultar barra lateral derecha",
|
||||
"helpDialog.item.openRightSidebarGitTab": "Abrir pestaña de Git en barra lateral derecha",
|
||||
"helpDialog.item.openRightSidebarFilesTab": "Abrir pestaña de archivos en barra lateral derecha",
|
||||
"helpDialog.item.cycleRightSidebarTab": "Cambiar pestaña de la barra lateral derecha",
|
||||
"helpDialog.item.toggleRightSidebar": 'Alternar panel de contexto',
|
||||
"helpDialog.item.openRightSidebarGitTab": 'Abrir superficie de Git',
|
||||
"helpDialog.item.openRightSidebarFilesTab": 'Abrir superficie de archivos',
|
||||
"helpDialog.item.toggleTerminalDock": "Mostrar u ocultar dock de terminal",
|
||||
"helpDialog.item.toggleTerminalExpanded": "Expandir o contraer terminal",
|
||||
"helpDialog.item.togglePlanContextPanel": "Alternar panel de contexto del plan",
|
||||
@@ -2162,7 +2180,6 @@ export const dict: Record<I18nKey, string> = {
|
||||
"commandPalette.item.addProject": "Añadir proyecto",
|
||||
"commandPalette.item.showSessionSwitcher": "Mostrar cambiador de sesiones",
|
||||
"commandPalette.item.toggleSidebar": "Mostrar u ocultar barra lateral",
|
||||
"commandPalette.item.toggleRightSidebar": "Mostrar u ocultar barra lateral derecha",
|
||||
"commandPalette.item.showContextUsage": "Mostrar uso del contexto",
|
||||
"commandPalette.item.toggleTerminal": "Mostrar u ocultar terminal",
|
||||
"commandPalette.item.openSettings": "Abrir configuración...",
|
||||
|
||||
Reference in New Issue
Block a user