[eric] canvas: creating a docked app no longer yanks the camera to its stored rect; the mini card is already in the chat you're watching (ENG-352)

This commit is contained in:
ciregenz
2026-08-18 20:59:00 -07:00
parent 9327475c3a
commit f6b2352acc
@@ -384,6 +384,11 @@ export function useDashboardLifecycle({
setTimeout(() => {
const vc = store.getState().dashboardLayout.viewCards[outputId];
if (!vc) return;
// A docked app renders inside the chat the user is already watching; flying the camera to its STORED rect lands on empty canvas (ENG-352).
if (vc.docked_to) {
handleHighlightCard(outputId);
return;
}
const rects = [{ x: vc.x, y: vc.y, width: vc.width, height: vc.height }];
const ac = store.getState().dashboardLayout.cards[anchorSid];
if (ac) rects.push({ x: ac.x, y: ac.y, width: ac.width, height: ac.height });