Charles Bochet
523df5398a
Optimize metadata queries ( #7013 )
...
In this PR:
1. Refactor guards to avoid duplicated queries: WorkspaceAuthGuard and
UserAuthGuard only check for existence of workspace and user in the
request without querying the database
2024-09-13 19:42:22 +02:00
gitstart-app[bot]
8f65326b47
Field name is oddly displayed when long ( #6755 )
...
### Description
- we added a new styled component to handle the label styles
- we added the title prop, and this will be applied for all fields,
track the styles and only adding the title if the label is hidden would
add unnecessary complexity to this issue, let us know if It's fine
- On our internal QA review, we noticed this extra error in the name:\
when we have spaces between the characters on names the name is
displayed in a weird way

when we don't have spaces we use the space on the right to fit the full
name\
like this:
Do
you want us to fix this problem too?
when testing the new changes since we changed one component that is used
on the main pages we created objects with a big name, to test the header
on the table view, and we noticed that the object name has exactly the
same issue as the field name on the settings page.
!\[image\](<https://github.com/user-attachments/assets/cfa3a0a3-da98-4b09-9650-178ace05bcbf >)
we added a fix for new field creation if the object name is long
###
Refs
#6738
### Demo
<https://www.loom.com/share/3572fb0c4e994b0aaac52985e76ae4fd?sid=9ef177e2-827b-45f2-8083-60771eef6203 >
Fixes #6738
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: Marie Stoppa <marie.stoppa@essec.edu >
2024-09-03 15:07:45 +02:00
gitstart-app[bot]
d61d5857f8
View becomes blank after deleting select ( #6703 )
...
This PR was created by [GitStart](https://gitstart.com/ ) to address the
requirements from this ticket:
[TWNTY-6027](https://clients.gitstart.com/twenty/5449/tickets/TWNTY-6027 ).
This ticket was imported from:
[TWNTY-6027](https://github.com/twentyhq/twenty/issues/6027 )
---
### Description
- Delete corresponding view simultaneously once select field is
deactivated instead of deleted because the bug happens on the
deactivation (one step before deleting), confirmation:
<https://discord.com/channels/1130383047699738754/1268662542172028971/1270367244509249651 >
- Is still possible to create Kanban views with deactivated Select
fields, but this is not related to the PR.
- The changes on the frontend are for refreshing the data after the view
deletion
### Refs
#6027
### Demo
<https://www.loom.com/share/4f705344e3054cd5b3d5eadd398d2c9c?sid=8db3d8b9-4dce-4e31-8359-0e31cbc0e2e7 >
Fixes #6027
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-08-27 11:10:32 +02:00
Anand Krishnan M J
59e14fabb4
[Issue-5772] Add sort feature on settings tables ( #5787 )
...
## Proposed Changes
- Introduce a new custom hook - useTableSort to sort table content
- Add test cases for the new custom hook
- Integrate useTableSort hook on to the table in settings object and
settings object field pages
## Related Issue
https://github.com/twentyhq/twenty/issues/5772
## Evidence
https://github.com/twentyhq/twenty/assets/87609792/8be456ce-2fa5-44ec-8bbd-70fb6c8fdb30
## Evidence after addressing review comments
https://github.com/twentyhq/twenty/assets/87609792/c267e3da-72f9-4c0e-8c94-a38122d6395e
## Further comments
Apologies for the large PR. Looking forward for the review
---------
Co-authored-by: Félix Malfait <felix.malfait@gmail.com >
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-08-14 17:11:17 +02:00
NitinPSingh
fa738ec373
fix #5660 standardized relation icon ( #6504 )
...
fix #5660
- updated One to many [1:N] icon across app
- created many to one icon [N:1] , and added it in app


---------
Co-authored-by: Félix Malfait <felix.malfait@gmail.com >
2024-08-05 15:47:25 +02:00
ktang520
1ceeb68da8
Changed record chip functionality from onClick to anchor tag ( #5462 )
...
[#4422 ](https://github.com/twentyhq/twenty/issues/4422 )
Demo:
https://github.com/twentyhq/twenty/assets/155670906/f8027ab2-c579-45f7-9f08-f4441a346ae7
Within the demo, we show the various areas in which the Command/CTRL +
Click functionality works. The table cells within the People and
Companies tab open within both the current tab and new tab due to
unchanged functionality within RecordTableCell. We did this to ensure we
could get a PR within by the end of the week.
In this commit, we ONLY edited EntityChip.tsx. We did this by:
- Removing useNavigate() and handleLinkClick/onClick functionality
- Wrapping InnerEntityChip in an anchor tag
This allowed for Command/CTRL + Click functionality to work. Clickable
left cells on tables, left side menu, and data model navigation
files/areas DID NOT get updated.
---------
Co-authored-by: Félix Malfait <felix.malfait@gmail.com >
2024-05-20 11:31:39 +02:00
Thaïs
b6d0b8a895
refactor: move Checkmark, Avatar, Chip and Tooltip to twenty-ui ( #4946 )
...
Split from https://github.com/twentyhq/twenty/pull/4518
Part of #4766
2024-04-15 12:05:06 +02:00
Thaïs
9f83cc1426
refactor: move @/ui/display/icon to twenty-ui ( #4820 )
...
Split from https://github.com/twentyhq/twenty/pull/4518
Part of https://github.com/twentyhq/twenty/issues/4766
2024-04-12 15:30:48 +02:00
Thomas Trompette
f332213e0d
Fix remote object read-only + remove relations ( #4921 )
...
- Set `readOnly` boolean in table row context. Preventing updates and
deletion
- Show page is null for remote objects. No need for complicated design
since this is temporary?
- Relation creations are now behind a feature flag for remote objects
- Refetch objects and views after syncing objects
---------
Co-authored-by: Thomas Trompette <thomast@twenty.com >
2024-04-11 17:58:02 +02:00
Thaïs
1639b2ad0e
refactor: improve Settings supported field types validation ( #4496 )
...
* refactor: improve Settings supported field types validation
Related to: #4084 , #4295
* fix: fix wrong import
2024-03-25 12:27:00 +01:00
gitstart-app[bot]
f543191552
TWNTY-3825 - ESLint rule: const naming ( #4171 )
...
* ESLint rule: const naming
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev >
* Refactor according to review
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev >
* refactor: Reverts changes on `twenty-server`
Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev >
2024-02-25 13:52:48 +01:00
Thaïs
29339ef99a
fix: detach relation records in cache on record deletion ( #3707 )
...
* fix: detach relation records in cache on record deletion
* fix: fix useGetRelationMetadata tests
2024-01-31 11:36:26 +01:00
Thaïs
09a2a656e2
feat: display identifier field in Object Detail page for custom objects ( #3329 )
...
* feat: display identifier field in Object Detail page for custom objects
Closes #3301
* fix: show Name as object label identifier by default
* Minor improvements
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-01-12 12:11:09 +01:00
Thaïs
8483cf0b4b
POC: chore: use Nx workspace lint rules ( #3163 )
...
* chore: use Nx workspace lint rules
Closes #3162
* Fix lint
* Fix lint on BE
* Fix tests
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-01-03 23:07:25 +01:00
Praveen Shinde
a4e45d039e
Updated the color theme of icon in Data Model Settings table ( #3121 )
...
* Updated the color theme of icon in Data Model Settings table
* add the sm stroke to icon
* add the sm stroke to icon
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2023-12-26 18:08:00 +01:00
Charles Bochet
8916dee352
Fix Icon Lazy Loading ( #2984 )
...
Fix Icon picker
2023-12-14 12:13:02 +01:00
Charles Bochet
5bdca9de6c
Migrate to a monorepo structure ( #2909 )
2023-12-10 18:10:54 +01:00