Quick Chat now dismisses from page clicks while other floating windows stay persistent. - Add an opt-in outside-pointer dismissal path to FloatingWindow with safeguards for inside clicks, nested dialogs, touch compatibility events, and active drag/resize gestures. - Enable outside-click dismissal only for the Quick Chat floating window and document the behavior. - Cover the opt-in behavior, default persistence, nested surfaces, gesture guards, and listener cleanup with FloatingWindow tests. - Add a release changeset for the Quick Chat dismissal feature. Files changed: .changeset/fn-7152-quick-chat-outside-click-close.md | 7 ++ docs/dashboard-guide.md | 1 + packages/dashboard/app/App.tsx | 4 + packages/dashboard/app/components/FloatingWindow.css | 5 +- packages/dashboard/app/components/FloatingWindow.tsx | 45 +++++++++ packages/dashboard/app/components/__tests__/FloatingWindow.test.tsx | 109 +++++++++++++++++++++ 6 files changed, 170 insertions(+), 1 deletion(-) Fusion-Task-Id: FN-7152 Fusion-Task-Lineage: 5bd6c10a-3e21-4eb9-bd1e-99f3aaf9c7b6 Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
6.8 KiB
6.8 KiB