Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/dashboard/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,29 @@ export function getDashboardHTML(): string {
}

.header-left {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 4px;
}

.header-left h1 {
display: flex;
align-items: center;
gap: 12px;
}

.project-name {
font-size: 14px;
color: var(--text-secondary);
font-weight: 500;
padding-left: 52px; /* Align with text after logo */
}

.project-name:empty {
display: none;
}

.header-right {
display: flex;
align-items: center;
Expand Down Expand Up @@ -772,6 +790,7 @@ export function getDashboardHTML(): string {
lance-context
<span class="version-badge" id="versionBadge"></span>
</h1>
<div class="project-name" id="projectName"></div>
</div>
<div class="header-right">
<button class="theme-toggle" id="themeToggle" title="Toggle theme">
Expand Down Expand Up @@ -1041,6 +1060,7 @@ export function getDashboardHTML(): string {
const connectionDot = document.getElementById('connectionDot');
const connectionText = document.getElementById('connectionText');
const versionBadge = document.getElementById('versionBadge');
const projectNameHeader = document.getElementById('projectName');
const indexBadge = document.getElementById('indexBadge');
const fileCount = document.getElementById('fileCount');
const chunkCount = document.getElementById('chunkCount');
Expand Down Expand Up @@ -1314,6 +1334,12 @@ export function getDashboardHTML(): string {
function updateConfig(config) {
projectPath.textContent = config.projectPath || '-';

// Update project name in header (extract directory name from path)
if (config.projectPath) {
const projectName = config.projectPath.split('/').pop() || config.projectPath;
projectNameHeader.textContent = projectName;
}

if (config.chunking) {
chunkSize.textContent = config.chunking.maxLines + ' lines (overlap: ' + config.chunking.overlap + ')';
}
Expand Down
Loading