feat(ui): show project title in pane headers - #238
Conversation
| const projectName = | ||
| session.projectId === UNFILED_GROUP_ID | ||
| ? null | ||
| : (projects.find((p) => p.id === session.projectId)?.name ?? null) |
There was a problem hiding this comment.
🟡 Closed projects remain in pane titles
When a project is closed, titleOf still prefixes its sessions with that project's name. Closed projects remain in projects, although their sessions are Unfiled.
Learn more
A closed project stays in the project registry with open: false. Its sessions are grouped under Unfiled by sidebarGroups, but this lookup matches every registry entry. The pane therefore retains a project prefix after the user closes that project.
Example: Closing the “Docs” project moves “Draft notes” beneath Unfiled. Its pane still reads “Docs - Draft notes” instead of “Draft notes”.
Recommended fix: Restrict the name lookup to open projects, matching the sidebar's filing rule.
| const projectName = | |
| session.projectId === UNFILED_GROUP_ID | |
| ? null | |
| : (projects.find((p) => p.id === session.projectId)?.name ?? null) | |
| const projectName = | |
| session.projectId === UNFILED_GROUP_ID | |
| ? null | |
| : (projects.find((p) => p.open && p.id === session.projectId)?.name ?? | |
| null) |
Was this helpful? React with 👍 or 👎 to provide feedback.
Split pane headers currently show only the session title. When two panes from different projects are open, that is not enough to tell them apart.
What changed
Project title - Session title(e.g.Ari - New session).Why
A split layout with more than one project needs the project name in the pane head so the session is identifiable at a glance.
How verified
VITEST_MAX_WORKERS=2 pnpm verifygreen (typecheck + lint + tests).Desktop: 155 passed, 3 skipped (1411 tests).