MCPcopy Create free account
hub / github.com/arctic-cli/interface / buildLeftColumn

Function buildLeftColumn

packages/arctic/src/cli/cmd/tui/component/logo.tsx:148–162  ·  view source on GitHub ↗
(theme: Theme, directory: string, width: number)

Source from the content-addressed store, hash-verified

146}
147
148function buildLeftColumn(theme: Theme, directory: string, width: number): ColumnLine[] {
149 const lines: ColumnLine[] = []
150 lines.push({ text: "", color: theme.secondary })
151 lines.push({ text: "Welcome back!", color: theme.primary, bold: true })
152 lines.push({ text: "", color: theme.secondary })
153 lines.push({ text: "", color: theme.secondary })
154 lines.push({ text: `Arctic v${Installation.VERSION}`, color: theme.secondary })
155 lines.push({ text: `${Installation.CHANNEL} channel`, color: theme.info })
156 lines.push({ text: "", color: theme.secondary })
157 lines.push({ text: "Workspace", color: theme.primary, bold: true })
158 for (const line of wrapPlainText(directory, width)) {
159 lines.push({ text: line, color: theme.secondary })
160 }
161 return lines
162}
163
164function buildRightColumn(theme: Theme, width: number, recents: RecentSessionSummary[]): ColumnLine[] {
165 const lines: ColumnLine[] = []

Callers 1

buildContentRowsFunction · 0.85

Calls 2

wrapPlainTextFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected