feat(agent): Unselect session when archiving currently selected session

When a session is archived and it was the currently selected session,
it is now automatically deselected and the empty state placeholder is
shown in the right panel.

- Updated SessionManagerProps to allow null for onSelectSession callback
- Added logic to deselect session on archive if it was selected
- Added data-testid attributes for testing
This commit is contained in:
Cody Seibert
2025-12-09 01:48:51 -05:00
parent 0af7938798
commit 010e6e139f
3 changed files with 10 additions and 5 deletions

View File

@@ -16,7 +16,7 @@
"3. archive it",
"4. expect empty state placeholder in right panel"
],
"status": "in_progress"
"status": "verified"
},
{
"id": "feature-1765260557163-86b3tby5d",
@@ -37,7 +37,7 @@
"category": "Kanban",
"description": "show a error toast when concurrency limit is hit and someone tries to drag a card into in progress to give them feedback why it won't work.",
"steps": [],
"status": "in_progress"
"status": "backlog"
},
{
"id": "feature-1765260791341-iaxxt172n",
@@ -58,7 +58,7 @@
"category": "Kanban",
"description": "add a count up timer for showing how long the card has been in progress",
"steps": [],
"status": "in_progress"
"status": "verified"
},
{
"id": "feature-1765261027396-b78maajg7",