nitin
4edbb13706
Fix - Input box shadow, left icon focus and new size variant ( #9902 )
...
Favorite folder input needs to be 28px --- added a new sizeVariant
Removed box shadow completely -- checked with @Bonapara
The left icon used to be of color light on focus -- added a state to
check if input is focused
---------
Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com >
2025-01-29 19:44:25 +01:00
Antoine Moreaux
4edeb7f991
feat(auth): enhance SSO handling and workspace auth logic ( #9858 )
...
- Return only SSO providers with an `activate` status
- If only 1 SSO provider is enabled for auth, redirect the user to the
provider login page.
- if only SSO auth is available set the step to SSO selection.
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2025-01-29 19:28:21 +01:00
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
Raphaël Bosi
ce296fae4f
Add search records actions to the command menu ( #9892 )
...
Closes https://github.com/twentyhq/core-team-issues/issues/253 and
https://github.com/twentyhq/core-team-issues/issues/256 .
- Created `CommandMenuList`, a component used at the root level of the
command menu and inside the search page of the command menu
- Refactored record agnostic actions
- Added shortcuts to the action menu entries (`/` key for the search)
and updated the design of the shortcuts
- Reordered actions at the root level of the command menu
https://github.com/user-attachments/assets/e1339cc4-ef5d-45c5-a159-6817a54b92e9
2025-01-29 17:23:40 +00:00
Baptiste Devessier
03f3ccd060
Fix workflow edges color ( #9917 )
...
Fixes
https://discord.com/channels/1130383047699738754/1333831150535442462
2025-01-29 18:04:32 +01:00
Antoine Moreaux
ce8c6c4bac
fix: correct typo in property name from "Entreprise" to "Enterprise" ( #9916 )
...
The property name "hasValidEntrepriseKey" was corrected to
"hasValidEnterpriseKey" across multiple files for consistency and
accuracy. This ensures proper alignment with naming conventions and
avoids potential issues in usage or understanding.
2025-01-29 17:39:04 +01:00
Raphaël Bosi
04bc42aa47
Improve command menu chip design ( #9915 )
...
Before:
<img width="236" alt="Capture d’écran 2025-01-29 à 17 07 13"
src="https://github.com/user-attachments/assets/edc277f3-3e50-405a-9981-3ac63e270f3f "
/>
<img width="259" alt="Capture d’écran 2025-01-29 à 17 07 23"
src="https://github.com/user-attachments/assets/81863c50-5b96-4cbf-bc15-ab437d839fa1 "
/>
<img width="224" alt="Capture d’écran 2025-01-29 à 17 07 41"
src="https://github.com/user-attachments/assets/c0783544-6928-4b05-bf86-66d37ddca5e5 "
/>
After:
<img width="230" alt="Capture d’écran 2025-01-29 à 17 03 49"
src="https://github.com/user-attachments/assets/c47be446-32fa-40d1-af25-207ed91c0ea2 "
/>
<img width="254" alt="Capture d’écran 2025-01-29 à 17 04 15"
src="https://github.com/user-attachments/assets/99b9ab30-c77d-4392-8ef6-2a1a5fb00047 "
/>
<img width="218" alt="Capture d’écran 2025-01-29 à 17 04 37"
src="https://github.com/user-attachments/assets/6e214a42-438d-495f-9855-fd5397fcc6d3 "
/>
2025-01-29 16:37:59 +00:00
Félix Malfait
9d32e63111
Continue Frontend localization ( #9909 )
...
Translation more content on the frontend
2025-01-29 17:36:28 +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
Paul Rastoin
85ae7084ab
[FiX] Optimistic cache useUpdateOneRecord ( #9913 )
...
# Introduction
~~this could be cool for the updateRecordFromCache to return the updated
record, so we could consume its return value more explicitly such as
`updatedRecordValue`~~
In fact this is nitpick as it would really be the same than returning
the received params
## Fixes duplicated optimistic cache upsert
<img
src="https://github.com/user-attachments/assets/289f4801-5b67-4e4e-a87b-a512deb5180c "
width="300px" height="300px">
We were before comparing the previously `cachedRecord` which is now, not
the latest as the optimistic is (should) be working successfully since
https://github.com/twentyhq/twenty/pull/9881
## Reproduction
1- Open any Company
2- Attach an Opportunity it should appears only once
3bis- If you revert the last branch commit it will appear duplicated
Related to #9580
2025-01-29 17:11:36 +01:00
Paul Rastoin
29745c6756
[BUG] Fix record relation optimistic mutation ( #9881 )
...
# Introduction
It seems like optimistic caching isn't working as expected for any
record relation mutation, CREATE UPDATE DELETE.
It should not have an impact on the destroy
We included a new `computeOptimisticRecordInput` that will calculate if
a relation is added or detach.
Updated the `triggerCreateRecordsOptimisticEffect` signature we should
have a look to each of its call to determine if it should be checking
cache or not
Related to #9580
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2025-01-29 16:00:59 +01:00
Baptiste Devessier
5a34f6bfa7
Disable variables for the country code in the form phone field ( #9897 )
...
Fixes
https://discord.com/channels/1130383047699738754/1333820080651501691
We disable the variable picker for the country code for now. We'll
implement a proper solution later.
2025-01-29 15:40:59 +01:00
Thomas Trompette
7536a5a9a0
Add missing fields in update action ( #9908 )
...
Fix https://discord.com/channels/1130383047699738754/1333806855264145500
2025-01-29 14:23:21 +00:00
martmull
5329dd0c63
Disable variable picker when no available variables ( #9894 )
...
- Disable variable picker when no available variables
(https://discord.com/channels/1130383047699738754/1331236819227906049 )
<img width="496" alt="image"
src="https://github.com/user-attachments/assets/e4cb97c8-648c-4bdf-b230-49687113c9e6 "
/>
2025-01-28 18:53:26 +01:00
Baptiste Devessier
7195614926
Add history (undo/redo) to text variable editors ( #9889 )
...
https://github.com/user-attachments/assets/83689fd9-1b00-49ff-938a-748822baf15f
2025-01-28 18:35:36 +01:00
Marie
180f6c28a4
Aggregates - Update Date label ( #9862 )
...
https://discord.com/channels/1130383047699738754/1333388007293849640/1333388007293849640
2025-01-28 17:18:29 +00:00
Etienne
aa6d5c4c51
fix link validation and matching during csv import ( #9890 )
...
### Context
[Issue 9019](https://github.com/twentyhq/twenty/issues/9019 ) opens by
user having domain name not imported while importing through CSV.
@samyakpiya (thank you for your investigation !) has tested various
domain imports and has reported issue with its import test. Issues that
no longer exist : when I test your import, I get all records imported.
### Solution
- Remove "Link label" (cf screenshot - before fix) composite field in
matching options, not used in front that could mislead the user.
<img width="300" alt="Screenshot 2025-01-28 at 15 39 18"
src="https://github.com/user-attachments/assets/0ea24d9e-b339-42f3-b8d9-e271b33dbcfd "
/>
- Check links type fields validity in "Validate data" step
closes #9019
---------
Co-authored-by: etiennejouan <jouan.etienne@gmail.com >
2025-01-28 16:51:19 +01:00
Antoine Moreaux
eb88f6f584
feat(custom-domain): remove domainName + add migration for custom dom… ( #9872 )
...
…ain + feature flag
Blocked by #9849
2025-01-28 15:28:18 +01:00
Thomas Trompette
0e981bae0a
Fix workflows empty states ( #9878 )
...
Versions and runs cannot be added manually. Updating message.
<img width="545" alt="Capture d’écran 2025-01-28 à 11 33 47"
src="https://github.com/user-attachments/assets/36b7ade8-3061-4b72-bfa5-c262e4d7d25e "
/>
<img width="614" alt="Capture d’écran 2025-01-28 à 11 34 02"
src="https://github.com/user-attachments/assets/9b524eb4-f40c-4330-a37f-fb33e08d22f4 "
/>
2025-01-28 15:16:36 +01:00
Baptiste Devessier
1e9dce3fd5
Fix the design of the Variable chip ( #9871 )
...
- Use a React component for variable tags in tiptap
- Fix the design of the variable chip
- Always display a button to delete the chip

2025-01-28 14:59:45 +01:00
eliasylonen
b63ae14318
RICH_TEXT_V2 backend ( #9848 )
...
- Add RICH_TEXT_V2 composite type to backend.
- Add `bodyV2` field to tasks and notes.
- Minimum required frontend changes to avoid errors when creating a note
[Testing
instructions](https://github.com/twentyhq/twenty/pull/9690#issuecomment-2602378218 )
---------
Co-authored-by: ad-elias <elias@autodiligence.com >
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2025-01-28 14:05:06 +01:00
Thomas Trompette
069c34cd7b
Add link on snack bar ( #9873 )
...
Add link to workflow execution
<img width="639" alt="Capture d’écran 2025-01-27 à 18 15 34"
src="https://github.com/user-attachments/assets/f2a1b3b5-7bf6-4b33-bba7-bf8907f6bcc6 "
/>
2025-01-28 11:26:20 +01:00
Félix Malfait
af8d22ee99
Fix ObjectType casing and conflict between Relation and RelationMetadata ( #9849 )
...
Fixes #9827
Also uncovered a conflict with `@objectType('Relation')` and
`@objectType('relation)`
I don't want to address it in this PR so I will create a followup issue
when we close this but I think there's a confusion between
Relation/RelationMetadata, it's unclear what is what
---------
Co-authored-by: Antoine Moreaux <moreaux.antoine@gmail.com >
2025-01-28 10:06:18 +01:00
Charles Bochet
4542199e5c
Fix object metadata view creation issue ( #9875 )
...
Fixes https://github.com/twentyhq/core-team-issues/issues/26
Fixes https://github.com/twentyhq/twenty/issues/9350
2025-01-27 21:25:02 +01:00
Félix Malfait
549c3faf71
Add server translation ( #9847 )
...
First proof of concept for server-side translation.
The goal was to translate one metadata item:
<img width="939" alt="Screenshot 2025-01-26 at 08 18 41"
src="https://github.com/user-attachments/assets/e42a3f7f-f5e3-4ee7-9be5-272a2adccb23 "
/>
2025-01-27 21:07:49 +01:00
Etienne
10476fcb01
remove freeAccess user logic ( #9866 )
...
closes #9763
---------
Co-authored-by: etiennejouan <jouan.etienne@gmail.com >
2025-01-27 17:49:16 +01:00
martmull
7362558e30
Reset selectedStep with proper step ( #9867 )
...
as title
fixes
https://discord.com/channels/1130383047699738754/1331215762840485908
2025-01-27 15:35:29 +01:00
martmull
687b61849a
Fix rightDrawer padding ( #9869 )
...
Fixes
https://discord.com/channels/1130383047699738754/1331236153713627157
## Before

## After

2025-01-27 14:31:47 +00:00
martmull
68c4f9cb0d
Fix design to match figma ( #9864 )
...
As title
Fixes
https://discord.com/channels/1130383047699738754/1331212573902770228
## Before

## After

2025-01-27 15:23:28 +01:00
Guillim
4bb8e3a50e
updating SettingsAccountsListEmptyStateCard ( #9868 )
...
changing from "Connect a Google account" to "Choose your provider"
updating all languages using
`npx nx run twenty-front:lingui:extract`
2025-01-27 15:20:48 +01:00
martmull
c1e84a746c
Fix design for select action ( #9857 )
...
as title
fixes
https://discord.com/channels/1130383047699738754/1330945172489371771
2025-01-27 13:29:04 +01:00
martmull
fb0b342374
Fix background color in code step right drawer ( #9856 )
...
Fixes
https://discord.com/channels/1130383047699738754/1331211019430924380
as title
2025-01-27 12:16:21 +01:00
Guillim
8df3214e84
decoupling isMicrosoftAuthEnabled and IsMicrosoftSyncEnabled (which has no reason to be used here) ( #9854 )
...
### what
decoupling auth and email synchro
### why
IsMicrosoftSyncEnabled (which has no reason to be used here) since we
now allow microsoft as a auth provider
2025-01-27 11:04:19 +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
Samyak Piya
55be726105
Rename Unintuitive Function Names in Authentication Flow ( #9706 )
...
Resolves #9623
## Description
This PR renames the following functions to better reflect their purpose.
- Backend:
- Verify → GetAuthTokensFromLoginToken
- Challenge → GetLoginTokenFromCredentials
- Frontend:
- challenge → getLoginTokenFromCredentials
- verify → getAuthTokensFromLoginToken
## Testing
_Sign in works as expected:_
https://github.com/user-attachments/assets/7e8f73c7-2c7d-4cd2-9965-5ad9f5334cd3
_Sign up works as expected:_
https://github.com/user-attachments/assets/d1794ee4-8b59-4934-84df-d819eabd5224
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2025-01-24 19:19:14 +01:00
Lucas Bordeau
570b2e3530
Refactored record filter saving to view filters ( #9844 )
...
This PR refactors the record filter saving to view filters.
Before we used states to track the change of view filters, now we just
check if there's a difference between the current record filters and the
current view filters before saving.
We also use this check to show the reset and save buttons.
CRUD operations to perform on view filters are computed by utils , and .
Also added unit tests on those utils.
2025-01-24 18:48:59 +01:00
Thomas Trompette
07dec36976
Tt fast follows 24/01 ( #9843 )
...
- Add icons on steps
- Add search input on object selection
- Improve event label
<img width="503" alt="Capture d’écran 2025-01-24 à 17 59 34"
src="https://github.com/user-attachments/assets/4e5d31d6-6fe5-4f78-9112-3fbd6ee66743 "
/>
<img width="503" alt="Capture d’écran 2025-01-24 à 17 59 54"
src="https://github.com/user-attachments/assets/7f37402f-3d1a-4bea-9082-05f50a711f35 "
/>
<img width="503" alt="Capture d’écran 2025-01-24 à 18 00 08"
src="https://github.com/user-attachments/assets/fffabaff-9d5d-4584-9297-e21434333de0 "
/>
2025-01-24 17:25:01 +00:00
martmull
03197226f4
Fix Cmd enter to test code step ( #9841 )
2025-01-24 16:46:56 +00:00
Paul Rastoin
95c772664e
Refactor triggerUpdateRelationsOptimisticEffect to compute relationship from Metadatas ( #9815 )
...
# Introduction
At the moment the relationships are inferred from the record data
structure instead of its metadatas
We should refactor the code that computes or not the necessity to detach
a relation on a mutation
We've refactored the `isObjectRecordConnection` method to be consuming a
`relationDefintion` instead of "typeChecking" at the runtime the data
structure using zod validation schema
Related to #9580
2025-01-24 17:24:23 +01:00
Raphaël Bosi
ff41768e8f
250 implement restore context button on command menu ( #9836 )
...
Closes https://github.com/twentyhq/core-team-issues/issues/250
https://github.com/user-attachments/assets/9c120188-497d-4273-9137-f8d0de3bd884
2025-01-24 16:10:02 +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
martmull
1a42483aa9
Fix wrong label formatting ( #9830 )
...
Fixes
https://discord.com/channels/1130383047699738754/1324785862830985266
## Before
<img width="451" alt="image"
src="https://github.com/user-attachments/assets/53ae96f9-4bbd-40e3-beaa-a5702f2adee4 "
/>
## After
<img width="388" alt="image"
src="https://github.com/user-attachments/assets/e36da162-bc60-4596-823b-ffb6ddfed98d "
/>
2025-01-24 15:11:30 +01:00
Antoine Moreaux
5783c41df2
fix(auth): Improve error management with sso + fix microsoft saml ( #9799 )
...
Fix #9760 #9758
2025-01-24 10:36:18 +01:00
Suhotra Dey
3c85516f77
fixed ellipsis for calendar events ( #9823 )
...
Fixed Missing ellipsis for long calendar event names #5267 introducing
width for the title
Co-authored-by: Charles Bochet <charles@twenty.com >
2025-01-24 10:33:46 +01:00
Baptiste Devessier
23400e9679
Normalize the spacing between nodes ( #9820 )
...
## Old


## New

2025-01-23 18:26:51 +01:00
martmull
daa8ff1299
148 cant access note without title from kanban board ( #9817 )
...
closes https://github.com/twentyhq/core-team-issues/issues/148
- fixes not openable kanban card when identifier empty
- update card behavior (onClick open recordPage)
- fixes right click actionDropdown position
## Before
https://github.com/user-attachments/assets/696194b8-d7fa-4fc1-a6f9-b46241a262e5

## After
https://github.com/user-attachments/assets/41e296e5-ae16-47f8-b174-7dd21d74188d

2025-01-23 17:05:35 +00:00
Félix Malfait
afa2282ea3
Fix left menu highlight ( #9821 )
...
Fix #9777
getAppPath doesn't return object/pet/ but actually object/pet so it
needed a small adjustment (pet - 1 = PE is included in PEople)
2025-01-23 17:59:30 +01:00
Jérémy M
bf564788c3
fix: board hide button not working ( #9818 )
...
Fix #9816
2025-01-23 16:17:46 +00:00
Chandragupt Gosavi
1d7cbcabee
fix: scrolling inside the table with scrollbar ( #9753 )
...
Fixed- when scrolling inside the table with scrollbar, cursor also
selects rows. Now on scrolling with scrollbar content is scrolled in
respective direction as expected and table rows don't get selected.
fixes issue #6773
---------
Co-authored-by: nitin <142569587+ehconitin@users.noreply.github.com >
Co-authored-by: ehconitin <nitinkoche03@gmail.com >
2025-01-23 15:41:57 +00: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