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

Function buildLogMetadata

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

Source from the content-addressed store, hash-verified

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

Callers 1

LogSelectorFunction · 0.85

Calls 1

formatLogMetadataFunction · 0.85

Tested by

no test coverage detected