diff --git a/src/renderer/src/components/task-page-cache-selectors.ts b/src/renderer/src/components/task-page-cache-selectors.ts index 5256701003f..525fa51a336 100644 --- a/src/renderer/src/components/task-page-cache-selectors.ts +++ b/src/renderer/src/components/task-page-cache-selectors.ts @@ -43,7 +43,7 @@ export type TaskPageWorkItemsFetchOptions = { noCache: boolean } -type WorkItemsCache = Record> +type WorkItemsCache = Record> export type TaskPageWorkItemPages = readonly (GitHubWorkItem[] | null)[] export function deriveTaskPageGitHubWorkItemsFetchOptions( @@ -61,7 +61,7 @@ export function selectTaskPageWorkItemsCacheEntries( repos: readonly TaskPageRepoCacheInput[], limit: number, query: string -): (CacheEntry | undefined)[] { +): (CacheEntry | undefined)[] { return repos.map( (repo) => workItemsCache[ @@ -72,7 +72,7 @@ export function selectTaskPageWorkItemsCacheEntries( export function buildTaskPageRepoSourceState( repos: readonly TaskPageRepoCacheInput[], - entries: readonly (CacheEntry | undefined)[] + entries: readonly (CacheEntry | undefined)[] ): TaskPageRepoSourceState[] { return repos.map((repo, index) => { const entry = entries[index] @@ -126,7 +126,7 @@ function taskPageWorkItemCacheKey(item: GitHubWorkItem): string { export function reconcileTaskPagePagesWithWorkItemsCache( pages: TaskPageWorkItemPages, - entries: readonly (CacheEntry | undefined)[] + entries: readonly (CacheEntry | undefined)[] ): (GitHubWorkItem[] | null)[] { const cachedItems = new Map() for (const entry of entries) { diff --git a/src/renderer/src/store/slices/github.ts b/src/renderer/src/store/slices/github.ts index 58bae1aed07..e7d92b2f239 100644 --- a/src/renderer/src/store/slices/github.ts +++ b/src/renderer/src/store/slices/github.ts @@ -685,7 +685,7 @@ type InflightChecks = { const inflightChecksRequests = new Map() const inflightCommentsRequests = new Map>() type InflightWorkItems = { - promise: Promise + promise: Promise force: boolean noCache: boolean requireComplete: boolean @@ -1974,7 +1974,7 @@ export type GitHubSlice = { limit: number, query: string, options?: FetchOptions - ) => Promise + ) => Promise /** * Fan out one work-item query across repos; partial failures don't reject — a repo with no cached fallback increments `failedCount`, but one served stale cache on rejection isn't counted. * `githubUnavailable`: every selected GitHub source refresh failed because GitHub was unreachable (5xx/network/rate-limit), even if stale cache remains — lets the caller attribute the stale/empty list. @@ -2658,7 +2658,13 @@ export const createGitHubSlice: StateCreator = (s return null }, - fetchWorkItems: async (repoId, repoPath, limit, query, options): Promise => { + fetchWorkItems: async ( + repoId, + repoPath, + limit, + query, + options + ): Promise => { if (isGitHubWorkItemsQueryTooLarge(query)) { return [] }