hermes-agent/ui-tui/src/components
Brooklyn Nicholson 5b0741e986 refactor(tui): consolidate agents overlay — share duration/root helpers via lib
Pull duplicated rules into ui-tui/src/lib/subagentTree so the live overlay,
disk snapshot label, and diff pane all speak one dialect:

- export fmtDuration(seconds) — was a private helper in subagentTree;
  agentsOverlay's local secLabel/fmtDur/fmtElapsedLabel now wrap the same
  core (with UI-only empty-string policy).
- export topLevelSubagents(items) — matches buildSubagentTree's orphan
  semantics (no parent OR parent not in snapshot). Replaces three hand-
  rolled copies across createGatewayEventHandler (disk label), agentsOverlay
  DiffPane, and prior inline filters.

Also collapse agentsOverlay boilerplate:
- replace IIFE title + inner `delta` helper with straight expressions;
- introduce module-level diffMetricLine for replay-diff rows;
- tighten OverlayScrollbar (single thumbColor expression, vBar/thumbBody).

Adds unit coverage for the new exports (fmtDuration + topLevelSubagents).
No behaviour change; 221 tests pass.
2026-04-22 12:10:21 -05:00
..
agentsOverlay.tsx refactor(tui): consolidate agents overlay — share duration/root helpers via lib 2026-04-22 12:10:21 -05:00
appChrome.tsx fix(tui): address Copilot review on #14045 2026-04-22 10:56:32 -05:00
appLayout.tsx feat(tui): subagent spawn observability overlay 2026-04-22 10:38:17 -05:00
appOverlays.tsx Merge pull request #13591 from NousResearch/bb/tui-pager-scroll 2026-04-21 15:54:45 -05:00
branding.tsx fix(tui): route update-behind banner through theme + auto-detect light terminals (#11300) 2026-04-20 11:12:13 -05:00
markdown.tsx refactor(tui): clean markdown.tsx per KISS/DRY 2026-04-21 18:11:12 -05:00
maskedPrompt.tsx fix(tui): fix Linux Ctrl+C regression, remove double clipboard write 2026-04-20 07:14:33 -07:00
messageLine.tsx chore: uptick 2026-04-18 15:17:42 -05:00
modelPicker.tsx fix(tui): truncate long picker rows so the height stays stable 2026-04-21 14:43:18 -05:00
prompts.tsx fix(tui): pager supports scrolling (up/down/page/top/bottom) 2026-04-21 14:48:26 -05:00
queuedMessages.tsx refactor(tui): /clean pass across ui-tui — 49 files, −217 LOC 2026-04-16 22:32:53 -05:00
sessionPicker.tsx fix(tui): truncate long picker rows so the height stays stable 2026-04-21 14:43:18 -05:00
skillsHub.tsx fix(tui): truncate long picker rows so the height stays stable 2026-04-21 14:43:18 -05:00
textInput.tsx chore: uptick 2026-04-22 11:32:17 -05:00
themed.tsx refactor(tui): /clean pass across ui-tui — 49 files, −217 LOC 2026-04-16 22:32:53 -05:00
thinking.tsx feat(tui): subagent spawn observability overlay 2026-04-22 10:38:17 -05:00