agent-ecosystem/test/renderer/components/team
Mike d4f518e8c5 refactor(team): viewport contract + observer root for ActivityTimeline
Second step of the virtualization plan. No virtualization yet. This PR
makes IntersectionObserver-based visibility tracking correct inside
scroll containers (sidebar, bottom-sheet), which is a prerequisite for
virtualizing the timeline.

- Introduces `TimelineViewport` — a grouped contract passed as a single
  `viewport` prop on `ActivityTimeline`. Holds `scrollElementRef`,
  `observerRoot`, `scrollMargin`, and `virtualizationEnabled`.
- `MessageRowWithObserver` and `LeadThoughtsGroupRow` now create their
  `IntersectionObserver` with `root = observerRoot?.current ?? null`
  instead of defaulting to the document viewport. Unread marking now
  fires when rows enter their real scroll parent.
- `MessagesPanel` resolves the active scroll owner from `position`
  (inline from parent ref, sidebar from `sidebarScrollRef`, bottom-sheet
  from `bottomSheetScrollRef`) and passes it into ActivityTimeline.
- Tests: stubs `IntersectionObserver` to capture `options.root` and
  asserts null when no viewport is passed, and the provided element when
  `viewport.observerRoot` is set.

`scrollMargin` and `virtualizationEnabled` are included in the contract
but not consumed yet — they land in follow-up PRs (#4/#5).
2026-04-20 00:17:04 +05:00
..
activity refactor(team): viewport contract + observer root for ActivityTimeline 2026-04-20 00:17:04 +05:00
dialogs feat(team): add relaunch flow and stabilize edit member colors 2026-04-19 16:46:56 +03:00
editor feat: enhance file icon handling and keyboard shortcuts 2026-03-01 14:24:24 +02:00
members feat(team): add relaunch flow and stabilize edit member colors 2026-04-19 16:46:56 +03:00
messages feat(team): enhance team messaging functionality and UI 2026-04-19 20:57:13 +03:00
sidebar feat(graph): enhance GraphControls with settings toggle and improved zoom functionality 2026-03-29 00:05:29 +02:00
taskLogs fix(team): harden retained log cleanup fallback 2026-04-19 09:00:45 +03:00
ClaudeLogsPanel.test.ts feat(team): enhance Claude logs handling and improve retrieval logic 2026-04-19 01:38:58 +03:00
TeamModelSelector.test.ts fix(team): support anthropic opus 4.7 team models 2026-04-18 12:09:26 +03:00
TeamModelSelectorDisabledState.test.ts feat(cliInstaller): add model verification for providers 2026-04-16 19:41:23 +03:00
teamProjectSelection.test.ts feat(agent-graph): integrate stable slot layout for improved node positioning and interaction 2026-04-15 16:18:11 +03:00
TeamProvisioningBanner.test.ts refactor(team): split team detail snapshot from messages activity 2026-04-15 21:54:38 +03:00
teamSessionFetchGuards.test.ts fix(team-runtime): harden refresh flows and reduce ui churn 2026-04-09 16:34:55 +03:00