fix: tree navigation root ID + session closure popover z-index

- TreeNavigationPage: initialize currentNodeId from tree_structure.id
  instead of hardcoded 'root' — fixes "Invalid tree structure" for trees
  with non-'root' root IDs (KB Accelerator, AI Flow Builder)
- SessionHistoryPage: add relative z-10 to session card when close
  popover is open so it renders above sibling cards

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Michael Chihlas
2026-03-11 02:54:00 -04:00
parent 2f23141daf
commit 8b3033ca9d
2 changed files with 11 additions and 4 deletions

View File

@@ -279,7 +279,10 @@ export function SessionHistoryPage() {
{sessions.map((session) => (
<div
key={session.id}
className="bg-card border border-border rounded-xl p-4 transition-all hover:bg-accent/50"
className={cn(
'bg-card border border-border rounded-xl p-4 transition-all hover:bg-accent/50',
closingSessionId === session.id && 'relative z-10'
)}
>
<div className="flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between">
<div className="flex-1">