• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / codegate-ui / 13033214444

29 Jan 2025 02:13PM UTC coverage: 72.297% (+0.8%) from 71.513%
13033214444

Pull #217

github

web-flow
Merge 88588e749 into aebe05123
Pull Request #217: feat: add workspace preferred model

355 of 554 branches covered (64.08%)

Branch coverage included in aggregate %.

32 of 46 new or added lines in 7 files covered. (69.57%)

74 existing lines in 4 files now uncovered.

775 of 1009 relevant lines covered (76.81%)

89.09 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/src/features/workspace/hooks/use-active-workspaces.ts
1
import { ListActiveWorkspacesResponse } from "@/api/generated";
2
import { v1ListActiveWorkspacesOptions } from "@/api/generated/@tanstack/react-query.gen";
3
import { useQuery } from "@tanstack/react-query";
4

5
export function useActiveWorkspaces<T = ListActiveWorkspacesResponse>({
×
6
  select,
7
}: {
8
  select?: (data?: ListActiveWorkspacesResponse) => T;
9
} = {}) {
10
  return useQuery({
602✔
11
    ...v1ListActiveWorkspacesOptions(),
12
    refetchInterval: 5_000,
13
    refetchIntervalInBackground: true,
14
    refetchOnMount: true,
15
    refetchOnReconnect: true,
16
    refetchOnWindowFocus: true,
17
    retry: false,
18
    select,
19
  });
20
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc