MCPcopy Create free account
hub / github.com/codeaashu/claude-code / TeammateTaskGroups

Function TeammateTaskGroups

src/components/tasks/BackgroundTasksDialog.tsx:612–645  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

610 return t8;
611}
612function TeammateTaskGroups(t0) {
613 const $ = _c(3);
614 const {
615 teammateTasks,
616 currentSelectionId
617 } = t0;
618 let t1;
619 if ($[0] !== currentSelectionId || $[1] !== teammateTasks) {
620 const leaderItems = teammateTasks.filter(_temp);
621 const teammateItems = teammateTasks.filter(_temp2);
622 const teams = new Map();
623 for (const item of teammateItems) {
624 const teamName = item.task.identity.teamName;
625 const group = teams.get(teamName);
626 if (group) {
627 group.push(item);
628 } else {
629 teams.set(teamName, [item]);
630 }
631 }
632 const teamEntries = [...teams.entries()];
633 t1 = <>{teamEntries.map(t2 => {
634 const [teamName_0, items] = t2;
635 const memberCount = items.length + leaderItems.length;
636 return <Box key={teamName_0} flexDirection="column"><Text dimColor={true}>{" "}Team: {teamName_0} ({memberCount})</Text>{leaderItems.map(item_0 => <Item key={`${item_0.id}-${teamName_0}`} item={item_0} isSelected={item_0.id === currentSelectionId} />)}{items.map(item_1 => <Item key={item_1.id} item={item_1} isSelected={item_1.id === currentSelectionId} />)}</Box>;
637 })}</>;
638 $[0] = currentSelectionId;
639 $[1] = teammateTasks;
640 $[2] = t1;
641 } else {
642 t1 = $[2];
643 }
644 return t1;
645}
646function _temp2(i_0) {
647 return i_0.type === "in_process_teammate";
648}

Callers

nothing calls this directly

Calls 4

entriesMethod · 0.80
getMethod · 0.65
pushMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected