refactor(web): drop team API calls (P1.1)

The local sidecar has no /api/team/* routes since P1.1.

- Remove searchTeamMemory, getTeamMembers, getTeamActivity and
  getTeamMessages from the adapter.
- Mission Control loses its Team and Activity tabs (both read the team
  server) and keeps the fleet view, with its own load-error state.
- Drop the stale adapter mocks from the web tests; the Mission Control
  test checks that no team tab is offered.
This commit is contained in:
shumeiko.it
2026-10-24 16:39:27 +02:00
parent 8ce2c42544
commit 7dac06706e
8 changed files with 74 additions and 213 deletions

View File

@@ -26,7 +26,6 @@ const mocks = vi.hoisted(() => ({
getWorkspaceContext: vi.fn(),
getWorkspaceState: vi.fn(),
getWorkspaceActivity: vi.fn(),
getTeamMembers: vi.fn(),
getWorkspaceFiles: vi.fn(),
getWorkspaceTasks: vi.fn().mockResolvedValue([]),
listMemories: vi.fn(),
@@ -219,7 +218,6 @@ describe('WorkspaceDesktopApp error states (P2)', () => {
function mockFeedsOk() {
mocks.adapter.getWorkspaceState.mockResolvedValue(null);
mocks.adapter.getWorkspaceActivity.mockResolvedValue({ events: [] });
mocks.adapter.getTeamMembers.mockResolvedValue([]);
mocks.adapter.getWorkspaceFiles.mockResolvedValue([]);
}