hermes-agent/apps/desktop/src/components/ui
Brooklyn Nicholson 092a97ef75 fix(desktop): session-tab drag, focus sync, and pop-out isolation
Make every session tab speak the same drag language as a sidebar row, and
keep tab focus 1:1 across the sidebar, tiles, and main:

- Drag a session tile's OR the main workspace tab onto a composer to link the
  chat (@session chip), or onto a zone/edge to stack/split — tabDrag now
  returns whether it took the drag, so the workspace tab defers to the generic
  pane move on a fresh draft (nothing to link).
- A lone tool panel (terminal/logs) dragged to its own zone keeps its header,
  so it stays draggable/closable instead of stranding a dead, tab-less zone.
- The sidebar highlight follows the FOCUSED session (interacted tile, else the
  main selection) rather than only the main one.
- Clicking an already-open session jumps to its tab — an open tile, or the
  workspace tab when it's the main session and focus sits on a tile — instead
  of a dead no-op reload.
- Secondary (single-chat pop-out) windows boot to the default tree with no
  tiles and never persist their stripped-down layout back, so they can't
  inherit or clobber the primary window's tabs/splits.

The pointer drag ghost is extracted to a shared lib/drag-ghost and the drop
affordances drop their now-unused labels.
2026-07-15 03:13:33 -04:00
..
action-status.tsx feat(desktop): unified overlay design system, BrandMark & onboarding redesign (#40708) 2026-06-06 16:32:47 -05:00
alert.tsx
…
badge.tsx feat(desktop): shared UI — per-session prompt overlays, gateway overlays, tab primitives 2026-07-13 17:57:54 -04:00
button.tsx feat(desktop): soft gateway switch + gateway-settings polish 2026-07-10 02:57:02 -05:00
checkbox.tsx
…
codicon.tsx style(desktop,tui): fix all lint/type/formatting issues 2026-06-26 01:04:33 -05:00
color-swatches.tsx feat(desktop): add shared project UI primitives 2026-06-25 16:40:27 -05:00
command.tsx feat(desktop): floating pet, pop-out overlay + Cmd+K picker 2026-06-20 14:18:40 -05:00
confirm-dialog.tsx refactor(desktop): adopt shared utils + app-wide cleanups 2026-07-03 13:48:44 -05:00
context-menu.tsx feat(desktop): shared UI — per-session prompt overlays, gateway overlays, tab primitives 2026-07-13 17:57:54 -04:00
control.ts feat(desktop): dedicated Providers settings + polished Accounts/API-keys UX (#38551) 2026-06-04 03:03:42 -05:00
copy-button.test.tsx feat(desktop): localize desktop chrome 2026-06-06 07:51:44 -07:00
copy-button.tsx cleanup(desktop): `npm run fix` for fmtting 2026-07-08 16:24:16 -07:00
decode-text.tsx feat(desktop): shared UI — per-session prompt overlays, gateway overlays, tab primitives 2026-07-13 17:57:54 -04:00
dialog.tsx feat(desktop): add shared project UI primitives 2026-06-25 16:40:27 -05:00
diff-count.tsx feat(desktop): add shared project UI primitives 2026-06-25 16:40:27 -05:00
disclosure-caret.tsx
…
drop-affordance.tsx fix(desktop): session-tab drag, focus sync, and pop-out isolation 2026-07-15 03:13:33 -04:00
dropdown-menu.tsx refactor(desktop): DRY/elegance pass over PR-touched files 2026-06-04 00:28:57 -05:00
empty-state.tsx feat(desktop): Capabilities foundation — shared utils, master-detail, editors, primitives 2026-07-03 05:08:13 -05:00
error-state.tsx feat(desktop): Capabilities foundation — shared utils, master-detail, editors, primitives 2026-07-03 05:08:13 -05:00
fade-text.tsx perf(desktop): isolate streaming re-renders & cut layout thrash 2026-06-12 21:07:33 -05:00
file-type-icon.tsx feat(desktop): PR-style file diffs in chat 2026-06-22 05:04:13 -05:00
generate-button.tsx feat(pets): Pokédex generate UI — overlay, animated egg, hatch FX, manage 2026-06-24 13:51:34 -05:00
glyph-spinner.tsx feat(desktop): composer status stack, live subagent windows, editable prompts (#44630) 2026-06-12 08:30:06 -05:00
input.tsx feat(desktop): add shared project UI primitives 2026-06-25 16:40:27 -05:00
kbd.tsx feat(desktop): composer status stack, live subagent windows, editable prompts (#44630) 2026-06-12 08:30:06 -05:00
loader.tsx style(desktop): bring the install & update overlays onto the design system 2026-06-30 14:46:28 -05:00
log-view.tsx fix(desktop): make rendered logs selectable so they can be copied 2026-06-19 10:03:46 -05:00
pagination.tsx Refactor desktop i18n field copy into nested structures 2026-06-06 07:51:44 -07:00
pane-tab.test.tsx fix(desktop): session-tab drag, focus sync, and pop-out isolation 2026-07-15 03:13:33 -04:00
pane-tab.tsx fix(desktop): session-tab drag, focus sync, and pop-out isolation 2026-07-15 03:13:33 -04:00
popover.tsx feat(desktop): add shared project UI primitives 2026-06-25 16:40:27 -05:00
row-button.test.tsx refactor(desktop): formalize row-as-button primitive (RowButton) 2026-06-30 01:56:57 -05:00
row-button.tsx docs(desktop): tighten RowButton doc comment 2026-06-30 02:05:55 -05:00
sanitized-input.tsx feat(desktop): add shared project UI primitives 2026-06-25 16:40:27 -05:00
scroll-area.tsx
…
search-field.tsx feat(desktop): Capabilities foundation — shared utils, master-detail, editors, primitives 2026-07-03 05:08:13 -05:00
segmented-control.tsx feat(desktop): global Cmd+K palette + UI consistency overhaul 2026-06-03 23:45:45 -05:00
select.tsx feat(desktop): global Cmd+K palette + UI consistency overhaul 2026-06-03 23:45:45 -05:00
separator.tsx
…
sheet.tsx Refactor desktop i18n field copy into nested structures 2026-06-06 07:51:44 -07:00
sidebar.tsx feat(desktop): composer status stack, live subagent windows, editable prompts (#44630) 2026-06-12 08:30:06 -05:00
skeleton.tsx feat(desktop): Capabilities foundation — shared utils, master-detail, editors, primitives 2026-07-03 05:08:13 -05:00
split-button.tsx style(desktop,tui): fix all lint/type/formatting issues 2026-06-26 01:04:33 -05:00
switch.tsx refactor(desktop): DRY/elegance pass over PR-touched files 2026-06-04 00:28:57 -05:00
tab-dropdown.tsx refactor(desktop): adopt shared utils + app-wide cleanups 2026-07-03 13:48:44 -05:00
tabs.tsx
…
text-tab.tsx
…
textarea.tsx feat(desktop): add shared project UI primitives 2026-06-25 16:40:27 -05:00
title-menu-trigger.tsx feat(desktop): shared UI — per-session prompt overlays, gateway overlays, tab primitives 2026-07-13 17:57:54 -04:00
tool-icon.tsx style(desktop): filled SVG glyphs for in-thread tool icons 2026-06-10 03:41:55 -05:00
tooltip.test.tsx fix(desktop): stop empty mispositioned tooltip on terminal rail hover 2026-07-12 02:53:03 -04:00
tooltip.tsx fix(desktop): stop empty mispositioned tooltip on terminal rail hover 2026-07-12 02:53:03 -04:00
use-zoom-pan.ts feat(desktop): Memory Graph — playable radial timeline of memories + skills 2026-06-30 00:54:21 -05:00
zoomable.tsx feat(desktop): zoomable primitive — open full, pan/zoom, copy 2026-06-26 03:40:49 -05:00