twenty/packages
Thaïs 47a6146dd0
feat: set primary link in Links field (#5429)
Closes #5375

<img width="381" alt="image"
src="https://github.com/twentyhq/twenty/assets/3098428/d87773df-c685-466b-ae35-a8349f79df48">

_____

~~Note that I ugraded `@apollo/client` to v3.10.4 because current
version is causing an error when trying to write the Links field in the
cache in `updateRecordFromCache` (`TypeError: Cannot convert object to
primitive value`). After upgrade, the error is gone but console still
prints a warning (here the custom object name is `Listing` and the Links
field name is `website`):~~

<img width="964" alt="image"
src="https://github.com/twentyhq/twenty/assets/3098428/834b8909-e8dc-464a-8c5a-6b7e4c964a7f">

~~It might be because the Links field seems to somehow have a
`__typename` property in Apollo's cache, so Apollo considers it as a
record and tries to match the object's cache with an id, but the Links
field value has no id so it can't find it.
We might want to find where this `__typename` is added and remove it
from the Links object in the cache.~~

Edit: will fix this in another PR as upgrading `@apollo/client` +
`apollo-upload-client` seems to break types and/or tests. Related issue:
[#5437](https://github.com/twentyhq/twenty/issues/5437)
2024-05-22 10:32:37 +02:00
..
twenty-chrome-extension Fix vite.config duplicate cache configuration 2024-05-21 20:36:25 +02:00
twenty-docker Feat/add postgres spilo (#5049) 2024-04-29 17:09:41 +02:00
twenty-docs Improve docs (#5492) 2024-05-21 09:09:19 +02:00
twenty-emails Bump versions to 0.11.2 (#5349) 2024-05-10 13:56:41 +02:00
twenty-front feat: set primary link in Links field (#5429) 2024-05-22 10:32:37 +02:00
twenty-postgres Fix postgres 15 & 16 conflict (#4860) 2024-04-11 11:42:48 +02:00
twenty-server 5498 create a feature flag is gmail sync v2 enabled (#5501) 2024-05-22 09:25:06 +02:00
twenty-ui feat: set primary link in Links field (#5429) 2024-05-22 10:32:37 +02:00
twenty-utils Create congratulations bot (#5404) 2024-05-21 22:56:25 +02:00
twenty-website Create congratulations bot (#5404) 2024-05-21 22:56:25 +02:00
twenty-zapier New field type: DATE (#4876) 2024-04-11 17:29:29 +02:00