-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Add workflow node actions and side panel controls #24411
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
Merged
Bonapara
merged 10 commits into
main
from
bonapara/workflow-node-actions-side-panel-controls
Aug 25, 2026
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
ba02a6b
Add workflow node actions and side panel controls
Bonapara ca93eb8
Refine workflow node actions and side panel controls
Bonapara 996b6fb
Merge branch 'main' into bonapara/workflow-node-actions-side-panel-co…
Bonapara 079eadf
Address workflow review feedback
Bonapara 6ced764
Align workflow tests with review standards
Bonapara 9437116
Merge branch 'main' into bonapara/workflow-node-actions-side-panel-co…
Bonapara fba170e
Merge branch 'main' into bonapara/workflow-node-actions-side-panel-co…
Bonapara 3666ea9
Address workflow controls review feedback
Bonapara 53b695c
Merge branch 'main' into bonapara/workflow-node-actions-side-panel-co…
Bonapara 723f496
Remove duplicate tooltip unit test
Bonapara File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
packages/twenty-front/src/modules/side-panel/components/SidePanelCloseButton.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import { useSidePanelMenu } from '@/side-panel/hooks/useSidePanelMenu'; | ||
| import { useLingui } from '@lingui/react/macro'; | ||
| import { IconX } from 'twenty-ui/icon'; | ||
| import { IconButtonWithTooltip } from 'twenty-ui/input'; | ||
|
|
||
| export const SidePanelCloseButton = () => { | ||
| const { t } = useLingui(); | ||
| const { closeSidePanelMenu } = useSidePanelMenu(); | ||
|
|
||
| const closeSidePanelLabel = t`Close side panel`; | ||
|
|
||
| return ( | ||
| <IconButtonWithTooltip | ||
| tooltipContent={closeSidePanelLabel} | ||
| Icon={IconX} | ||
| size="small" | ||
| variant="primary" | ||
| onClick={closeSidePanelMenu} | ||
| ariaLabel={closeSidePanelLabel} | ||
| /> | ||
| ); | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...ages/twenty-front/src/modules/side-panel/components/SidePanelTopBarEscapeHotkeyEffect.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| import { type RefObject } from 'react'; | ||
| import { Key } from 'ts-key-enum'; | ||
|
|
||
| import { useGlobalHotkeys } from '@/ui/utilities/hotkey/hooks/useGlobalHotkeys'; | ||
|
|
||
| type SidePanelTopBarEscapeHotkeyEffectProps = { | ||
| inputRef: RefObject<HTMLInputElement | null>; | ||
| onEscape: () => void; | ||
| }; | ||
|
|
||
| export const SidePanelTopBarEscapeHotkeyEffect = ({ | ||
| inputRef, | ||
| onEscape, | ||
| }: SidePanelTopBarEscapeHotkeyEffectProps) => { | ||
| const handleEscape = (event: KeyboardEvent) => { | ||
| if (document.activeElement === inputRef.current) { | ||
| return; | ||
| } | ||
|
|
||
| event.preventDefault(); | ||
| event.stopPropagation(); | ||
| event.stopImmediatePropagation(); | ||
|
|
||
| onEscape(); | ||
| }; | ||
|
|
||
| useGlobalHotkeys({ | ||
| keys: [Key.Escape], | ||
| callback: handleEscape, | ||
| containsModifier: false, | ||
| dependencies: [handleEscape], | ||
| options: { | ||
| eventListenerOptions: { | ||
| capture: true, | ||
| }, | ||
| preventDefault: false, | ||
| }, | ||
| }); | ||
|
|
||
| return null; | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
RecordTableBodyEscapeHotkeyEffect (and the board/calendar ones) also listen for Escape on PageFocusId.RecordIndex and each side stops immediate propagation when it matches, so whichever registered first swallows the other — the table one even with no rows selected. On a record index with the panel open, which one should win, and is that deterministic today?