7943141d03
feat(*): allow to select auth providers + add multiworkspace with subdomain management ( #8656 )
...
## Summary
Add support for multi-workspace feature and adjust configurations and
states accordingly.
- Introduced new state isMultiWorkspaceEnabledState.
- Updated ClientConfigProviderEffect component to handle
multi-workspace.
- Modified GraphQL schema and queries to include multi-workspace related
configurations.
- Adjusted server environment variables and their respective
documentation to support multi-workspace toggle.
- Updated server-side logic to handle new multi-workspace configurations
and conditions.
2024-12-03 19:06:28 +01:00
430644448a
Migrate to twenty-ui - navigation/link ( #7837 )
...
This PR was created by [GitStart](https://gitstart.com/ ) to address the
requirements from this ticket:
[TWNTY-7535](https://clients.gitstart.com/twenty/5449/tickets/TWNTY-7535 ).
---
### Description.
Migrate link components to `twenty-ui` \
\
Fixes #7535
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: gitstart-twenty <140154534+gitstart-twenty@users.noreply.github.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-10-22 17:36:26 +02:00
c97c71762e
fix: Input fields to have expected behaviour in case of empty / only whitespaces string ( #6736 )
...
# ISSUE
- Closes #6734
- Closes #6633
- Closes #6733
- Closes #6816
# Description
- [x] Don't allow Empty (whitespaces) Objects to Create, all the
keyboard shortcuts are also handled for this.
https://github.com/user-attachments/assets/1c9add4e-f13f-458b-8f76-63bd868413a2
https://github.com/user-attachments/assets/e72b6ee3-74e4-4517-a230-3eb10db80dc7
Note: we do have one other issue with FullName field #6740 Inorder to
test use **shift**.
- [x] Api Keys Input Name Field -> New and Detail View Name field
shouldn't be empty or string with whitespaces, we won't able to have
whitespaces in both. **Try Entering just spaces**
https://github.com/user-attachments/assets/b521b49f-648c-4585-9d15-8ff4faed3c3a
- [x] Similar to above, Empty webhook endpoint url under
**/settings/developers/webhooks/new** won't be created. **Try Entering
just spaces**
- [x] New Functions or Updating Functions will not able to have
whitespaces, empty string as Name. **Try Entering just spaces**
https://github.com/user-attachments/assets/09fcf394-c6d9-4080-8efd-462b054a22d0
- [x] under **settings/workspace-members** changes will lead and solve
that user won't be able to enter Invite by email as just whitespaces +
button is now getting disabled when there is no correct email. **Try
Entering just spaces**
https://github.com/user-attachments/assets/b352edfa-113b-4645-80fd-db6f120ab5db
- [x] Text Input Field, will not allow to start entering with
whitespaces and won't take just whitespaces as value spaces between
words will work.
https://github.com/user-attachments/assets/8c1a0812-45be-4ed2-bd3d-bb4f92147976
- [x] Similarly Number works as per above including shortcuts.
https://github.com/user-attachments/assets/9f69cc87-5c3c-43ee-93c4-fa887bc0d7ee
- [x] Similarly FullName field works as per above including shortcuts
https://github.com/user-attachments/assets/7bb006b2-abf7-44cd-a214-7a2fc68df169
- [x] Pasting fullName is been Improved.
- Case 1 (Two Words): If there are exactly two words, return them as is.
- Case 2 (More than Two Words): If there are more than two words, return
the first two words only.
- Case 3 (One Word): If there is only one word, return it as the first
name, with an empty string as the last name.
- WhiteSpaces have been handled.
```
console.log(splitFullName("John Doe")); // ["John", "Doe"]
console.log(splitFullName(" ")); // ["", ""]
console.log(splitFullName("John")); // ["John", ""]
console.log(splitFullName(" John Doe ")); // ["John", "Doe"]
console.log(splitFullName("John Michael Andrew Doe")); // ["John", "Michael"]
```
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-09-20 21:25:50 +02:00
fed12ddfcd
Improve performance of demo workspace - Rename getImageAbsoluteURIOrBase64 function ( #6282 )
...
### Description
1. This PR is a continuation of a previous PR:
https://github.com/twentyhq/twenty/pull/6201#pullrequestreview-2175601222
2. One test case was removed here:
`packages/twenty-front/src/utils/image/__tests__/getImageAbsoluteURI.test.ts`
because since we are not handling base64 images anymore, the result is
the same of the last test case. Would you rather we update the test
instead?
### Refs
- #3514
- https://github.com/twentyhq/twenty/pull/6201
### Demo
https://www.loom.com/share/4f32b535c77a4d418e319b095d09452c?sid=df34adf8-b013-44ef-b794-d54846f52d2d
Fixes #3514
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
2024-07-29 14:07:21 +02:00
8019ba8782
feat: implement new SnackBar design ( #5515 )
...
Closes #5383
## Light theme
<img width="905" alt="image"
src="https://github.com/twentyhq/twenty/assets/3098428/ab0683c5-ded3-420c-ace6-684d38794a2d ">
## Dark theme
<img width="903" alt="image"
src="https://github.com/twentyhq/twenty/assets/3098428/4e43ca35-438d-4ba0-8388-1f061c6ccfb0 ">
2024-05-23 12:19:50 +02:00
e0efa358de
Fixes #5024 : Update local recoil state when workspace name changes ( #5033 )
...
This PR fixes #5024 .
Local recoil state was not updated when workspace name is changed. This
PR updates local recoil state so that dropdown (and other parts of the
app) correctly shows the workspace name without reload.
2024-04-18 16:54:32 +02:00
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
a95972f808
refactor(chore):3896-replace-lodash-debounce-to-useDebounce ( #4814 )
...
Close : #3896
## PR Details
Changed `lodash.debounce` to `useDebounce`.
Co-authored-by: VoitovychDM <voitovych.dm.m@gmail.com >
2024-04-05 19:07:44 +02:00
cfb0cce9b8
Refactor Views by cleaning the code, relying on apolloCache and improving performances ( #4516 )
...
* Wip refactoring view
* Post merge conflicts
* Fix review
* Add create view capability
* Fix create object missing view
* Fix tests
2024-03-20 14:21:58 +01:00
581dfafe11
Renamed nullable utils into isDefined and isUndefinedOrNull ( #4402 )
...
* Renamed nullable utils into isDefined and isUndefinedOrNull
2024-03-11 14:28:57 +01:00
86c0f311f5
Introduce ComponentState ( #4386 )
...
* Proof of concept ComponentState
* Migrate to createState and createFamilyState
* Refactor
* Fix
* Fix tests
* Fix lint
* Fix tests
* Re-enable coverage
2024-03-09 11:31:00 +01:00
17511be0cf
TWNTY-3794 - ESLint rule: only take explicit boolean predicates in if statements ( #4354 )
...
* ESLint rule: only take explicit boolean predicates in if statements
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Merge main
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Fix frontend linter errors
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Fix jest
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Refactor according to review
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Refactor according to review
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
* Fix lint on new code
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br >
2024-03-09 10:48:19 +01:00
5bdca9de6c
Migrate to a monorepo structure ( #2909 )
2023-12-10 18:10:54 +01:00