twenty/packages
Marie 17422b7690
fix: I should be able to use "enter" key to create profile (#4978)
## Context
Fixes #4808 

TL;DR
Introducing pure stateless modal component ("UI modal") for our auth
modal not to have default hotkeyScope overriding our create-profile
hotkeyScope
+ we dont want the shortcut to be available for all the modal content, only for the input that should not be using a hotkeyscope, so we are using onKeyDown for the specific issue on create profile.

Explanation
create-profile hotkey scope is set by PageChangeEffect; CreateProfile
component adds enter key shortcut; but this scope is overwritten by the
default scope by the Modal component that expects a hotkeyScope to reset
to (and defaults to the default hotkeyScope if none indicated).
In the auth flow we were using that Modal component to give a modal look
to the flow but it is not a modal per say, it's a set of pages contained
within a modal look.
By creating this UI component we are escaping that hotkeyScope
overriding that does not make sense in our context.

## How was it tested
Locally
Storybook
2024-04-17 10:45:02 +02:00
..
twenty-chrome-extension New field type: DATE (#4876) 2024-04-11 17:29:29 +02:00
twenty-docker refactor: move @/ui/display/icon to twenty-ui (#4820) 2024-04-12 15:30:48 +02:00
twenty-docs Fix ParticipantChip and stories imports (#4974) 2024-04-15 18:09:05 +02:00
twenty-emails Release 0.4.0 (#4856) 2024-04-05 18:35:48 +02:00
twenty-front fix: I should be able to use "enter" key to create profile (#4978) 2024-04-17 10:45:02 +02:00
twenty-postgres Fix postgres 15 & 16 conflict (#4860) 2024-04-11 11:42:48 +02:00
twenty-server [messaging] Add message deletion during partial sync (#4972) 2024-04-16 17:18:06 +02:00
twenty-ui Add connection failed status (#4939) 2024-04-15 14:09:01 +02:00
twenty-utils Improve website github sync (#4259) 2024-03-01 15:15:55 +01:00
twenty-website Modify UI website and fix navbar issue on small devices (#4961) 2024-04-17 10:18:18 +02:00
twenty-zapier New field type: DATE (#4876) 2024-04-11 17:29:29 +02:00