Baptiste Devessier
85df6ada52
Prevent all workflow node and edge deletions made through the UI ( #9918 )
...
## Old
In the demo, I press the `Delete` key multiple times, and it deletes the
nodes.
https://github.com/user-attachments/assets/75bf84d3-b182-488c-a781-bbe236985142
## New
https://github.com/user-attachments/assets/4ae4f387-e143-4ce8-8140-6cb2c549f5d2
2025-01-29 18:29:01 +01:00
Baptiste Devessier
03f3ccd060
Fix workflow edges color ( #9917 )
...
Fixes
https://discord.com/channels/1130383047699738754/1333831150535442462
2025-01-29 18:04:32 +01:00
Thomas Trompette
ce0a6c1b17
Fix empty trigger on readonly + fix cache apollo on deactivation ( #9912 )
...
- On deactivation, we should not need to refresh so the workflow
disappear from cmd+k
https://github.com/user-attachments/assets/826fa4c6-3faa-49d1-b180-ed5d3ed187e5
- When readonly, step empty, we should not see the right drawer
https://github.com/user-attachments/assets/b557ef61-da81-446d-b160-f26c4c7a5191
2025-01-29 17:25:20 +01:00
Baptiste Devessier
84c299f8d4
Create a reusable Label component ( #9833 )
...
As seen with @Bonapara, I'm creating a Label component and use it in the
workflows.
2025-01-24 19:25:04 +01:00
Thomas Trompette
29df6e64a0
Fix icon matching + small other fixes on workflows ( #9814 )
...
- Record Fields label
- body height fix
- Icons on object picker
- Fix icon matching between nodes and right drawer
<img width="1296" alt="Capture d’écran 2025-01-23 à 18 51 12"
src="https://github.com/user-attachments/assets/ecd5fb00-49cd-416e-96af-9200418294e0 "
/>
2025-01-24 15:47:09 +01:00
Baptiste Devessier
23400e9679
Normalize the spacing between nodes ( #9820 )
...
## Old


## New

2025-01-23 18:26:51 +01:00
Baptiste Devessier
bbb0c9a761
Improve the design of workflow nodes ( #9810 )
...
- Go over every node in the workflows and fix the styles to conform to
Figma
- Create stories for every node type
2025-01-23 15:12:37 +00:00
Raphaël Bosi
337b6a86ab
251 create top bar chips inside the command menu ( #9809 )
...
Closes #https://github.com/twentyhq/core-team-issues/issues/251
https://github.com/user-attachments/assets/065c97fe-1daf-4b48-9d57-6bbb96d24ede
2025-01-23 14:44:21 +01:00
Baptiste Devessier
26aca9508b
Align the workflow visualizer's nodes on the left ( #9776 )
...
**This PR implements a new layout for the visualizer, but the dimensions
of the nodes will change soon. I used hard-coded dimensions, like
`40px`, but I'll update them when I work on fixing the nodes' design. I
think we can merge this PR first and then fix the nodes' design.**
https://github.com/user-attachments/assets/580fa812-ee8e-4452-b6ac-ca55ecb31759
2025-01-22 11:03:36 +01:00
Baptiste Devessier
8e0467e2e4
Workflow E2E tests – batch 2 ( #9747 )
...
- Fix the e2e according to the last changes in the workflows
- Create a few more tests regarding the workflow visualizer
2025-01-21 11:46:27 +01:00
Baptiste Devessier
7ed2c12e7a
Workflow e2e tests – 1st batch ( #9713 )
...
- Clean Playwright's configuration:
- Remove artificial 500ms delay between each step
- Group all tests under a `chrome` project relying on a `setup` project
to get an authentication state which all tests can reuse
- Changes on the `Sign up with invite link via email` test:
- Generate a new email for each test trial, as previously it was failing
when run many times
- Make deleting the account part of the test; if we write other tests
for account sign-up, we'll prefer to delete the accounts with an HTTP
call to speed up things
- Added some assertions to ensure we reached steps when expected, as we
removed the 500ms delay between each step, and it made some assertions
fail
- Wrote new tests for workflows:
- Created `Create workflow`, a test asserting we can create a workflow
from the record table
- Created `Create simple workflow`, a test asserting we can create a
simple flow; I will add more assertions to this test and write other
tests once this first PR is approved
- I make HTTP calls to delete and destroy workflows after they run to
keep the database clean
- Added a data-testid to ensure we focus elements from the Cmd+K; our
selectors are not strong – see `getByRole('textbox')` – and I preferred
to scope them to a root element
- Added an `aria-label` to a button
---------
Co-authored-by: prastoin <paul@twenty.com >
2025-01-20 10:59:01 +01:00
Baptiste Devessier
18dea07344
Create many steps in a row ( #9727 )
...
Fixes
https://discord.com/channels/1130383047699738754/1329099124515274823
2025-01-17 18:12:11 +01:00
Baptiste Devessier
c543a930cd
Improve workflow arrows' design ( #9619 )
...
Old design:

New design:

2025-01-14 22:38:44 +01:00
Raphaël Bosi
530a18558b
9426 migrate workflow pages to command menu ( #9515 )
...
Closes twentyhq/core-team-issues#53
- Removes command menu top bar text input when the user is not on root
page
- Fixes bug when resetting command menu context
- Added animations on command menu open and close
- Refactored workflow visualizer code to remove unnecessary rerenders
and props drilling
https://github.com/user-attachments/assets/1da3adb8-220b-407b-9279-30354d3100d3
2025-01-13 16:53:57 +01:00
Marie
7d7955fc65
Move capitalize into twenty-shared ( #9414 )
...
capitalize had been moved into twenty-shared. Let's remove the
duplicates in server and front !
2025-01-07 14:25:29 +00:00
Baptiste Devessier
c61831c78a
Workflow dark mode improvements ( #9412 )
...
## Dark mode
Old vs New


## Light mode
Old vs New


2025-01-06 18:07:23 +01:00
Thomas Trompette
5da744ebc5
Continue workflow folders re-ordering ( #9315 )
...
- put actions in steps
- move hooks
- move states
2025-01-02 12:23:07 +00:00
Thomas Trompette
9e74ffae52
Refacto workflow folders ( #9302 )
...
- Create separated folders for sections
- Add components
- Add utils and clean old ones
- Add constants
- Rename search variables folder and components
Next steps:
- clean hooks
- clean states
2024-12-31 16:08:14 +00:00