MCPcopy Index your code
hub / github.com/codeaashu/claude-code / ErrorsTabContent

Function ErrorsTabContent

src/commands/plugin/PluginSettings.tsx:357–599  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

355 }
356}
357function ErrorsTabContent(t0) {
358 const $ = _c(26);
359 const {
360 setViewState,
361 setActiveTab,
362 markPluginsChanged
363 } = t0;
364 const errors = useAppState(_temp2);
365 const installationStatus = useAppState(_temp3);
366 const setAppState = useSetAppState();
367 const [selectedIndex, setSelectedIndex] = useState(0);
368 const [actionMessage, setActionMessage] = useState(null);
369 let t1;
370 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
371 t1 = [];
372 $[0] = t1;
373 } else {
374 t1 = $[0];
375 }
376 const [marketplaceLoadFailures, setMarketplaceLoadFailures] = useState(t1);
377 let t2;
378 let t3;
379 if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
380 t2 = () => {
381 (async () => {
382 try {
383 const config = await loadKnownMarketplacesConfig();
384 const {
385 failures
386 } = await loadMarketplacesWithGracefulDegradation(config);
387 setMarketplaceLoadFailures(failures);
388 } catch {}
389 })();
390 };
391 t3 = [];
392 $[1] = t2;
393 $[2] = t3;
394 } else {
395 t2 = $[1];
396 t3 = $[2];
397 }
398 useEffect(t2, t3);
399 const failedMarketplaces = installationStatus.marketplaces.filter(_temp4);
400 const failedMarketplaceNames = new Set(failedMarketplaces.map(_temp5));
401 const transientErrors = errors.filter(isTransientError);
402 const extraMarketplaceErrors = errors.filter(e => (e.type === "marketplace-not-found" || e.type === "marketplace-load-failed" || e.type === "marketplace-blocked-by-policy") && !failedMarketplaceNames.has(e.marketplace));
403 const pluginLoadingErrors = errors.filter(_temp6);
404 const otherErrors = errors.filter(_temp7);
405 const pluginScopes = getPluginEditableScopes();
406 const rows = buildErrorRows(failedMarketplaces, extraMarketplaceErrors, pluginLoadingErrors, otherErrors, marketplaceLoadFailures, transientErrors, pluginScopes);
407 let t4;
408 if ($[3] !== setViewState) {
409 t4 = () => {
410 setViewState({
411 type: "menu"
412 });
413 };
414 $[3] = setViewState;

Callers

nothing calls this directly

Calls 10

useAppStateFunction · 0.85
useSetAppStateFunction · 0.85
getPluginEditableScopesFunction · 0.85
buildErrorRowsFunction · 0.85
useKeybindingFunction · 0.85
useKeybindingsFunction · 0.85
maxMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected