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

Function LogoV2

src/components/LogoV2/LogoV2.tsx:47–527  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45import { renderModelSetting } from '../../utils/model/model.js';
46const LEFT_PANEL_MAX_WIDTH = 50;
47export function LogoV2() {
48 const $ = _c(94);
49 const activities = getRecentActivitySync();
50 const username = getGlobalConfig().oauthAccount?.displayName ?? "";
51 const {
52 columns
53 } = useTerminalSize();
54 let t0;
55 if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
56 t0 = shouldShowProjectOnboarding();
57 $[0] = t0;
58 } else {
59 t0 = $[0];
60 }
61 const showOnboarding = t0;
62 let t1;
63 if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
64 t1 = SandboxManager.isSandboxingEnabled();
65 $[1] = t1;
66 } else {
67 t1 = $[1];
68 }
69 const showSandboxStatus = t1;
70 const showGuestPassesUpsell = useShowGuestPassesUpsell();
71 const showOverageCreditUpsell = useShowOverageCreditUpsell();
72 const agent = useAppState(_temp);
73 const effortValue = useAppState(_temp2);
74 const config = getGlobalConfig();
75 let changelog;
76 try {
77 changelog = getRecentReleaseNotesSync(3);
78 } catch {
79 changelog = [];
80 }
81 const [announcement] = useState(() => {
82 const announcements = getInitialSettings().companyAnnouncements;
83 if (!announcements || announcements.length === 0) {
84 return;
85 }
86 return config.numStartups === 1 ? announcements[0] : announcements[Math.floor(Math.random() * announcements.length)];
87 });
88 const {
89 hasReleaseNotes
90 } = checkForReleaseNotesSync(config.lastReleaseNotesSeen);
91 let t2;
92 if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
93 t2 = () => {
94 const currentConfig = getGlobalConfig();
95 if (currentConfig.lastReleaseNotesSeen === MACRO.VERSION) {
96 return;
97 }
98 saveGlobalConfig(_temp3);
99 if (showOnboarding) {
100 incrementProjectOnboardingSeenCount();
101 }
102 };
103 $[2] = t2;
104 } else {

Callers

nothing calls this directly

Calls 15

getRecentActivitySyncFunction · 0.85
getGlobalConfigFunction · 0.85
useTerminalSizeFunction · 0.85
useShowGuestPassesUpsellFunction · 0.85
useAppStateFunction · 0.85
getInitialSettingsFunction · 0.85
checkForReleaseNotesSyncFunction · 0.85
saveGlobalConfigFunction · 0.85
isEnvTruthyFunction · 0.85

Tested by

no test coverage detected