-
Notifications
You must be signed in to change notification settings - Fork 19k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(editor): Popping logs out into a new window #13788
Conversation
Codecov ReportAttention: Patch coverage is 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes in this file makes it possible to listen to the right window object when the resizer is used in a PiP window
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes in this file are needed to show tooltips properly in a PiP window.
I'm using provide/inject instead of props so that I don't have to modify individual usages of the tooltip component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed with product to remove the confirmation dialog of clearing the chat history. In the future we'll need to make the dialog work in PiP window as well. Right now it always shows in the main window even when the user is interacting in PiP window.
isSupported, | ||
// When the `copy()` method is invoked from inside of the document picture-in-picture (PiP) window, it throws the error "Document is not focused". | ||
// Therefore, we disable copying features in the PiP window for now. | ||
isSupported: computed(() => isSupported && !isInPiPWindow.value), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't find any usages of isSupported
in the codebase, so it should be safe to change boolean
to ComputedRef<boolean>
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few small remarks.
Great work on this! 🤩
packages/frontend/editor-ui/src/components/CanvasChat/components/ChatLogsPanel.vue
Outdated
Show resolved
Hide resolved
packages/frontend/editor-ui/src/components/CanvasChat/components/ChatMessagesPanel.vue
Show resolved
Hide resolved
packages/frontend/editor-ui/src/components/CanvasChat/CanvasChat.vue
Outdated
Show resolved
Hide resolved
packages/frontend/@n8n/design-system/src/components/N8nResizeWrapper/ResizeWrapper.vue
Outdated
Show resolved
Hide resolved
packages/frontend/editor-ui/src/components/CanvasChat/composables/usePiPWindow.ts
Outdated
Show resolved
Hide resolved
packages/frontend/editor-ui/src/components/CanvasChat/CanvasChat.vue
Outdated
Show resolved
Hide resolved
|
n8n
|
Project |
n8n
|
Branch Review |
sug-20-popout-logs-view
|
Run status |
|
Run duration | 04m 50s |
Commit |
|
Committer | autologie |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
2
|
|
6
|
|
0
|
|
454
|
View all changes introduced in this branch ↗︎ |
|
1 similar comment
|
✅ All Cypress E2E specs passed |
Got released with |
Summary
This PR implements the feature to pop out the chat and logs pane at the bottom of canvas.
The feature is built on top of Google Chrome's experimental
documentPictureInPicture
API. For other browsers and insecure context which disallows the usage of this API, the button to pop out the pane is hidden.Screencast.from.2025-03-12.09-29-16.webm
Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/SUG-20/popping-logs-out-into-a-new-window
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)