Flatten the work list into the ordered loading-plan keys consumed by the webview grid.
(work: WorkspaceWorkItem[])
| 337 | |
| 338 | /** Flatten the work list into the ordered loading-plan keys consumed by the webview grid. */ |
| 339 | function buildWorkspacePlan(work: WorkspaceWorkItem[]): string[] { |
| 340 | const planItems: string[] = []; |
| 341 | let planOrder = 0; |
| 342 | for (const item of work) { |
| 343 | for (const tile of item.sessionTiles) { |
| 344 | planItems.push(makeWorkspaceProgressKey(item.workspaceKey, item.wsId, planOrder++, tile.date, tile.size)); |
| 345 | } |
| 346 | } |
| 347 | return planItems; |
| 348 | } |
| 349 | |
| 350 | async function processWorkspaces( |
| 351 | entries: { logsDir: string; dirEntries: fs.Dirent[] }[], |
no test coverage detected