MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / buildLogMetadata

Function buildLogMetadata

src/components/LogSelector.tsx:136–143  ·  view source on GitHub ↗
(log: LogOption, options?: { isChild?: boolean; showProjectPath?: boolean })

Source from the content-addressed store, hash-verified

134}
135
136function buildLogMetadata(log: LogOption, options?: { isChild?: boolean; showProjectPath?: boolean }): string {
137 const { isChild = false, showProjectPath = false } = options || {};
138 // Match the child prefix width for proper alignment
139 const childPadding = isChild ? ' ' : ''; // 4 spaces to match ' ▸ '
140 const baseMetadata = formatLogMetadata(log);
141 const projectSuffix = showProjectPath && log.projectPath ? ` · ${log.projectPath}` : '';
142 return childPadding + baseMetadata + projectSuffix;
143}
144
145export function LogSelector({
146 logs,

Callers 1

LogSelectorFunction · 0.85

Calls 1

formatLogMetadataFunction · 0.85

Tested by

no test coverage detected