MCPcopy
hub / github.com/codeaashu/claude-code / LogSelector

Function LogSelector

src/components/LogSelector.tsx:143–1448  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

141 return childPadding + baseMetadata + projectSuffix;
142}
143export function LogSelector(t0) {
144 const $ = _c(247);
145 const {
146 logs,
147 maxHeight: t1,
148 forceWidth,
149 onCancel,
150 onSelect,
151 onLogsChanged,
152 onLoadMore,
153 initialSearchQuery,
154 showAllProjects: t2,
155 onToggleAllProjects,
156 onAgenticSearch
157 } = t0;
158 const maxHeight = t1 === undefined ? Infinity : t1;
159 const showAllProjects = t2 === undefined ? false : t2;
160 const terminalSize = useTerminalSize();
161 const columns = forceWidth === undefined ? terminalSize.columns : forceWidth;
162 const exitState = useExitOnCtrlCDWithKeybindings(onCancel);
163 const isTerminalFocused = useTerminalFocus();
164 let t3;
165 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
166 t3 = isCustomTitleEnabled();
167 $[0] = t3;
168 } else {
169 t3 = $[0];
170 }
171 const isResumeWithRenameEnabled = t3;
172 const isDeepSearchEnabled = false;
173 const [themeName] = useTheme();
174 let t4;
175 if ($[1] !== themeName) {
176 t4 = getTheme(themeName);
177 $[1] = themeName;
178 $[2] = t4;
179 } else {
180 t4 = $[2];
181 }
182 const theme = t4;
183 let t5;
184 if ($[3] !== theme.warning) {
185 t5 = text => applyColor(text, theme.warning as Color);
186 $[3] = theme.warning;
187 $[4] = t5;
188 } else {
189 t5 = $[4];
190 }
191 const highlightColor = t5;
192 const isAgenticSearchEnabled = false;
193 const [currentBranch, setCurrentBranch] = React.useState(null);
194 const [branchFilterEnabled, setBranchFilterEnabled] = React.useState(false);
195 const [showAllWorktrees, setShowAllWorktrees] = React.useState(false);
196 const [hasMultipleWorktrees, setHasMultipleWorktrees] = React.useState(false);
197 let t6;
198 if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
199 t6 = getOriginalCwd();
200 $[5] = t6;

Callers

nothing calls this directly

Calls 15

getThemeFunction · 0.90
useTerminalSizeFunction · 0.85
useTerminalFocusFunction · 0.85
isCustomTitleEnabledFunction · 0.85
applyColorFunction · 0.85
getOriginalCwdFunction · 0.85
logEventFunction · 0.85
useSearchInputFunction · 0.85
getBranchFunction · 0.85
getWorktreePathsFunction · 0.85
getUniqueTagsFunction · 0.85

Tested by

no test coverage detected