Skip to content

Commit 95c1703

Browse files
patjlmclaude
andauthored
feat(frontend): show workspace name in sidebar (#1150)
## Summary - Displays the current workspace name next to the "< Workspaces" back-link in the sidebar - Users can always see which workspace they are in without navigating away ## Test plan - [ ] Run `make kind-up LOCAL_IMAGES=true` - [ ] Run `make dev-env` to generate `.env.local` with token - [ ] Run `make dev COMPONENT=frontend` and navigate to a workspace - [ ] Verify workspace name appears on the Workspaces nav line - [ ] Verify long names are truncated with tooltip on hover - [ ] Verify clicking the link still navigates back to workspace list 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 32faa39 commit 95c1703

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

components/frontend/src/app/projects/[name]/sessions/[sessionName]/components/sessions-sidebar.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,15 @@ export function SessionsSidebar({
265265
<Button
266266
variant="ghost"
267267
size="sm"
268-
className="w-full justify-start text-muted-foreground hover:text-foreground"
268+
className="w-full justify-between text-muted-foreground hover:text-foreground"
269269
>
270-
<ChevronLeft className="w-4 h-4 mr-2" />
271-
Workspaces
270+
<span className="flex items-center">
271+
<ChevronLeft className="w-4 h-4 mr-2" />
272+
Workspaces
273+
</span>
274+
<span className="text-xs font-semibold text-foreground truncate max-w-[60%]" title={projectName}>
275+
{projectName}
276+
</span>
272277
</Button>
273278
</Link>
274279

0 commit comments

Comments
 (0)