open-swe/ui/src/components/agents
Johannes du Plessis 75e594c861
fix: reviewer reviews full diff; fix review UI scroll + dark-mode composer (#1575)
* fix: reviewer reviews full diff; fix review UI scroll + dark-mode composer

- Drop the 200K-char PR diff truncation. The head/tail slice silently dropped
  whole files out of the middle; the reviewer's large context window reviews
  the complete diff. The grouping pass uses the full diff too. Other #1567 caps
  (fetch_url, Slack, pagination, message queue) are kept.
- Sidebar file/group click now lands flush at the top under virtualization:
  re-assert alignment after the Virtualizer's mid-scroll height reconciliation
  settles, instead of trusting scrollIntoView's estimate-based target.
- Review chat composer textarea no longer shows a lighter square in dark mode
  (override the Textarea's dark:bg-input default with dark:bg-transparent).

* fix: anchored finding card sits flush in the diff gutter, no side-panel overlap

The card was positioned next to the anchor and clamped to window.innerWidth, so
when the anchor sat near the diff/side-panel boundary the 412px card spilled
across into the side panel. Pin it flush to the diff column's right edge and
clamp its width to the column so it never overlaps the side panel and shrinks to
fit a narrow column.

* fix: anchored finding card sits over the side panel, not the diff

Flip the horizontal anchor: place the card flush against the diff column's right
edge and extend it rightward over the side panel, instead of leftward over the
diff. Width still caps at the preferred size and shrinks to fit a narrow panel.

* fix: anchor finding card to diff content edge + small-screen fallback

- Anchor to the centered diff content's right edge instead of the full-width
  scroller, removing the centering-whitespace gap so the card sits closer to the
  diff.
- Below xl the side panel is hidden and the diff fills the viewport, leaving no
  gutter; positioning against the content edge would collapse the card to ~0px.
  Fall back to overlaying the diff flush-right when there's no usable gutter
  (addresses Open SWE review finding f_f6ea77527c).

* fix: anchor finding card next to the annotation, close to the hunk

Anchor the card's left to the finding's annotation (anchorRect.right) instead of
the diff content's right edge, so it sits right by the hunk and overlaps the diff
edge rather than parking out in the gutter. Extends right over the side panel,
clamped to stay on-screen (also keeps it readable below xl with no side panel).

* fix: finding card width shrinks to fit a small side panel

Size the card to the room to the right of the annotation (capped at the
preferred width) so it narrows as the side panel shrinks instead of overflowing.
Below a readable minimum, hold that width and shift left over the diff.
2026-06-18 19:24:52 -07:00
..
messages Normalize frontend typography + enable font smoothing (#1546) 2026-06-16 14:56:11 -07:00
ported feat: handle images sent to non-vision models in Slack, Linear, and web UI (#1560) 2026-06-17 09:12:52 -07:00
subagents fix(ui): resolve eslint errors in dashboard components (#1538) 2026-06-15 17:29:38 -07:00
utils feat: split view, add-to-chat, virtualization + scroll/grouping perf (#1574) 2026-06-18 16:54:07 -07:00
AgentGitPanel.tsx feat: split view, add-to-chat, virtualization + scroll/grouping perf (#1574) 2026-06-18 16:54:07 -07:00
AgentPromptBar.tsx feat: add Agents chat UI for cloud threads (#1323) 2026-05-22 18:15:59 +00:00
AgentRunCard.tsx feat: track PR lifecycle state per thread for sidebar (#1492) 2026-06-11 12:21:59 -07:00
AgentsHome.tsx fix: optimize agent thread lists (#1570) 2026-06-18 10:09:22 -07:00
AgentsSidebar.tsx feat: split view, add-to-chat, virtualization + scroll/grouping perf (#1574) 2026-06-18 16:54:07 -07:00
AgentsThreadsPage.tsx fix: optimize agent thread lists (#1570) 2026-06-18 10:09:22 -07:00
AgentThreadView.tsx fix: allow read-only cross-user access to agent threads via Open in Web links (#1568) 2026-06-18 09:10:09 -07:00
AutomationEditor.tsx Normalize frontend typography + enable font smoothing (#1546) 2026-06-16 14:56:11 -07:00
AutomationsList.tsx Normalize frontend typography + enable font smoothing (#1546) 2026-06-16 14:56:11 -07:00
OnboardingDialog.tsx Normalize frontend typography + enable font smoothing (#1546) 2026-06-16 14:56:11 -07:00
RepoSelector.tsx fix: stabilize agent selector defaults (#1414) 2026-06-04 21:06:25 +00:00
ReviewChat.tsx fix: reviewer reviews full diff; fix review UI scroll + dark-mode composer (#1575) 2026-06-18 19:24:52 -07:00
ReviewSidebar.tsx feat: split view, add-to-chat, virtualization + scroll/grouping perf (#1574) 2026-06-18 16:54:07 -07:00
ScheduleTriggerPicker.tsx Normalize frontend typography + enable font smoothing (#1546) 2026-06-16 14:56:11 -07:00
z-index.ts feat: add Agents chat UI for cloud threads (#1323) 2026-05-22 18:15:59 +00:00