(log: LogOption, options?: { isChild?: boolean; showProjectPath?: boolean })
| 134 | } |
| 135 | |
| 136 | function 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 | |
| 145 | export function LogSelector({ |
| 146 | logs, |
no test coverage detected