Skip to content

fix: close dashboard preview modal when opening canvas#259

Merged
dimavedenyapin merged 1 commit intomainfrom
fix/close-dashboard-modal-on-canvas-open
Apr 19, 2026
Merged

fix: close dashboard preview modal when opening canvas#259
dimavedenyapin merged 1 commit intomainfrom
fix/close-dashboard-modal-on-canvas-open

Conversation

@dimavedenyapin
Copy link
Copy Markdown
Contributor

Summary

  • When clicking the Canvas button from a task opened via the dashboard preview modal, the modal stayed open behind the canvas view
  • Root cause: openTaskOnCanvas and openAppOnCanvas in UIStore set sidebarView and pending state but didn't clear dashboardPreviewTaskId
  • Fix: include dashboardPreviewTaskId: null in both actions' state updates

Test plan

  • Open dashboard → click a task card to open preview modal → click Canvas button → modal should close and canvas should open with the task
  • All 82 renderer test files pass (1230 tests)

🤖 Generated with Claude Code

When clicking the Canvas button from a task opened via the dashboard
preview modal, the modal remained open because openTaskOnCanvas and
openAppOnCanvas only set sidebarView and pending task/app state without
clearing dashboardPreviewTaskId.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dimavedenyapin dimavedenyapin merged commit 2d411b5 into main Apr 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant