fix(app): selecting another item closes the previous item's pane page
On a wide split window a run's stage page (or an artifact, a file) opens inside the detail pane's own navigator. Selecting another run kept that page on top, so the pane still showed the old stage. ListDetailPanes now takes the selected item's identity (run, chat or pipeline id) and the pane navigator pops back to the item when it changes.
This commit is contained in:
@@ -256,6 +256,7 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
if (!beside) return list;
|
||||
return ListDetailPanes(
|
||||
list: list,
|
||||
detailIdentity: selected,
|
||||
detail: selected == null
|
||||
? const EmptyDetailPane(
|
||||
destination: AppDestination.chat,
|
||||
|
||||
Reference in New Issue
Block a user