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:
@@ -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([]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user