Thomas Trompette
f0de1ab245
Add Multiselect for forms ( #9092 )
...
- Add new FormMultiSelectField component
- Factorize existing display / input into new ui components
- Update the variable resolver to handle arrays properly
<img width="526" alt="Capture d’écran 2024-12-17 à 11 46 38"
src="https://github.com/user-attachments/assets/6d37b513-8caa-43d0-a27e-ab55dac21f6d "
/>
2024-12-17 14:41:55 +01:00
nitin and Charles Bochet
c63842925f
Favorites Folders Fast Followups ( #8920 )
...
Fixes :
<img width="716" alt="Screenshot 2024-12-06 at 3 45 41 PM"
src="https://github.com/user-attachments/assets/61fdf355-0d0a-4ed7-befa-ada23341a58f ">
Fixes: Reduce menu width to 160px and it should appear below three dots
<img width="394" alt="Screenshot 2024-12-06 at 3 46 49 PM"
src="https://github.com/user-attachments/assets/b1266f83-9b6f-445b-9409-d7f691776bd0 ">
Fixes: The right margin should be 2px
<img width="1134" alt="Screenshot 2024-12-06 at 3 47 45 PM"
src="https://github.com/user-attachments/assets/b6dd857c-6575-418d-8e32-64cd4e5d4e85 ">
Fixes:
Requirement: Clicking the heart Icon should put the record as favorite.
It shouldn't open the menu on first click. It should only on second
click, when the record is already a favorite.
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-12-17 12:15:36 +01:00
Baptiste Devessier
5bd73e0df1
Add date form field ( #9021 )
...
- Add an option to hide the input from the
`packages/twenty-front/src/modules/ui/input/components/internal/date/components/AbsoluteDatePickerHeader.tsx`
component
- Create a form field for dates
- Integrate the picker
- Create an input **without a mask** to let the user types a date and
validate it by pressing the Enter key
- Extract some utils to parse and format dates
2024-12-17 11:11:19 +01:00
martmull
5dfcc413cf
9024 workflow test serverless function follow up ( #9066 )
...
- Fix Tablist style
- Fix dropdown style (wrong grey background)
- Update dropdown variable when no outputSchema is available
https://github.com/user-attachments/assets/56698fe8-8dd3-404a-b2b2-f1eca6f5fa28
2024-12-17 10:35:38 +01:00
08a9db2df6
Add Twenty Shared & Fix profile image rendering ( #8841 )
...
PR Summary:
1. Added `Twenty Shared` Package to centralize utilitiies as mentioned
in #8942
2. Optimization of `getImageAbsoluteURI.ts` to handle edge cases

---------
Co-authored-by: Antoine Moreaux <moreaux.antoine@gmail.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-12-17 09:24:21 +01:00
Marie
311b5f64c4
Refacto scroll + Aggregate queries for view groups ( #9089 )
...
Closes https://github.com/twentyhq/private-issues/issues/217 .
Refactoring scroll not to cause table-wide re-render when opening a
dropdown (triggering a scroll lock) in the table.
2024-12-16 17:58:57 +01:00
nitin
257834ea71
In navigation drawer, cursor should not be drag on hover and some enhancements ( #8975 )
...
as per the title- on hover, the draggable items had a grab cursor.
Couldn't change it to a pointer, because then onClick would have a weird
behavior of grab which causes lag onClick.
2024-12-13 14:37:46 +01:00
Charles Bochet
9579f22bc2
Move settings data model refreshMetadata to sync calls ( #9046 )
...
In this PR, I'm
- removing setting up the isAppWaitingForFreshMetadata boolean state in
PageChangeEffect navigate (not robust) to some precise synchronous
places, improving the control we have on when the app considers it's
ready to be rendered based on fresh metadata
- fixing tests
2024-12-13 13:14:10 +01:00
martmull
b10d831371
8726 workflow add a test button in workflow code step ( #9016 )
...
- add test button to workflow code step
- add test tab to workflow code step
https://github.com/user-attachments/assets/e180a827-7321-49a2-8026-88490c557da2


2024-12-13 10:16:29 +00:00
Charles Bochet
90c26643a8
Fix race condition while loading metadata on sign in ( #9027 )
2024-12-11 18:56:02 +01:00
07de458fda
fix:Hide Scrollbar before Scroll ( #8896 )
...
Fix for the issue #8847 Hide Scrollbar before Scroll.
https://github.com/user-attachments/assets/27dda89f-e3f6-4c72-bcc5-8c7e10d3c823
---------
Co-authored-by: Félix Malfait <felix@twenty.com >
Co-authored-by: ehconitin <nitinkoche03@gmail.com >
2024-12-11 22:44:46 +05:30
Thomas Trompette
4d9facb9bd
Add address composite form field ( #9022 )
...
- Create FormCountrySelectInput using the existing FormSelectFieldInput
- Create AddressFormFieldInput component
- Fix FormSelectFieldInput dropdown + add leftIcon
<img width="554" alt="Capture d’écran 2024-12-11 à 15 56 32"
src="https://github.com/user-attachments/assets/c3019f29-af76-44e1-96bd-a0c6283674e1 "
/>
2024-12-11 16:57:42 +00:00
Charles Bochet and Weiko
224b6d1334
Fix login issue ( #9012 )
...
Co-authored-by: Weiko <corentin@twenty.com >
2024-12-11 15:42:53 +01:00
Raphaël Bosi
ad04040ea6
8976 modify mobile page header ( #9020 )
...
Closes #8976
2024-12-11 15:06:09 +01:00
Raphaël Bosi
5c60a5511e
8929 move recordindexactionmenu menu inside the recordindexpageheader ( #9007 )
...
Closes #8929
Users with the feature flag `IS_PAGE_HEADER_V2_ENABLED` set to false
will still have the old behavior with the action bar.
To test the PR, test with and without the feature flag.
2024-12-11 11:51:33 +01:00
Lucas Bordeau
013eda4a32
Fixed dropdown bugs on 0.34 ( #9000 )
...
- New task dropdown wasn't using the proper dropdown id
- Action menu triggered by context menu (right click) on table cell was
listening in edit mode.
2024-12-10 16:01:03 +01:00
Raphaël Bosi
d70987653b
8964 add feature flag is page header v2 enabled ( #8995 )
...
Closes #8964
2024-12-10 10:56:28 +01:00
Raphaël Bosi
387f5259a7
8928 refactor page header buttons ( #8952 )
...
Closes #8928
<img width="1296" alt="Capture d’écran 2024-12-09 à 10 26 37"
src="https://github.com/user-attachments/assets/f33202b0-9c11-48da-8daa-e867d62a1803 ">
<img width="1296" alt="Capture d’écran 2024-12-09 à 10 26 54"
src="https://github.com/user-attachments/assets/a94f89d4-ca12-403f-bfcb-12168a82f77c ">
2024-12-09 10:55:33 +01:00
Charles Bochet
99f53a5030
Fix broken image urls in Settings > Profile and Invite To Workspace Email ( #8942 )
...
Fixes #8601
We had 3 implementations of getImageAbsoluteURI: in twenty-front, in
twenty-ui and in twenty-emails. I was able to remove the one in
twenty-front but I could not remove it from twenty-emails as this is a
standalone for now. The vision is to introduce shared utils in a
twenty-shared package
2024-12-07 14:57:32 +01:00
Charles Bochet
ab8ad46685
Fix bug reoder on table in view groups mode ( #8894 )
...
Fixes #8403
Added comments on the PR to explain changes
2024-12-06 19:19:27 +01:00
Lucas Bordeau
a9cb20f317
Refactor and fixes dropdown bugs ( #8807 )
...
Fixes https://github.com/twentyhq/twenty/issues/8788
Fixes https://github.com/twentyhq/twenty/issues/8793
Fixes https://github.com/twentyhq/twenty/issues/8791
Fixes https://github.com/twentyhq/twenty/issues/8890
Fixes https://github.com/twentyhq/twenty/issues/8893
- [x] Also :
Icon buttons under dropdown are visible without blur :

- [x] Also :
<img width="237" alt="image"
src="https://github.com/user-attachments/assets/e4c70936-beff-4481-89cb-0a32a36e0ee2 ">
- [x] Also :
<img width="335" alt="image"
src="https://github.com/user-attachments/assets/5be60395-6baf-49eb-8d40-197add049e20 ">
- [x] Also :
<img width="287" alt="image"
src="https://github.com/user-attachments/assets/a317561f-7986-4d70-a1c0-deee4f4e268a ">
- Button create new without padding
- Container is expanding
- [x] Also :
<img width="303" alt="image"
src="https://github.com/user-attachments/assets/09f8a27f-91db-4191-acdc-aaaeedaf6da5 ">
- [x] Also :
<img width="133" alt="image"
src="https://github.com/user-attachments/assets/fe17b32e-f7a4-46c4-8040-239eaf8198e8 ">
Font is cut at bottom ?
- [x] Also :
<img width="385" alt="image"
src="https://github.com/user-attachments/assets/7bab2092-2936-4112-a2ee-d32d6737e304 ">
The component should flip and not resize in this situation
- [x] Also :
<img width="244" alt="image"
src="https://github.com/user-attachments/assets/5384f49a-71f9-4638-a60c-158cc8c83f81 ">
- [x] Also :

2024-12-06 14:27:48 +00:00
Antoine Moreaux
ab22fd560a
fix(): Add default name to workspace in MultiWorkspaceDropdownButton ( #8924 )
...
Fix #8923
2024-12-06 12:23:02 +01:00
50af41f170
Remove duplicate plus sign for phone numbers ( #8871 )
...
Fixes #8838
1. Summary
It seems [this PR](https://github.com/twentyhq/twenty/pull/8614 ) caused
the issue. We added a plus sign on front-end when the
[callingCode](https://github.com/twentyhq/twenty/blob/c735026f6c4f011e82e80713f1554b5cdb4fda5b/packages/twenty-front/src/modules/ui/field/display/components/PhonesDisplay.tsx#L70 )
retrieved from back-end already has a plus sign.
2. Solution
@guillim Please let me know if I missed a case where the plus sign is
not there for the `callingCode`. If so, I think we should check whether
or not `callingCode` has a leading plus sign on front-end before adding
it. For now, I just removed the code that appends a plus sign on
front-end.
3. Screenshots

---------
Co-authored-by: guillim <guigloo@msn.com >
Co-authored-by: Guillim <guillim@users.noreply.github.com >
Co-authored-by: Weiko <deniaud.corentin@gmail.com >
2024-12-05 22:41:14 +01:00
Guillim
4623b6127b
Dropdown in dropdown ( #8911 )
...
Dropdown in dropdown bug
while still fixing scroll issue
fix #8716
2024-12-05 19:07:19 +01:00
Raphaël Bosi
c23896c5dc
Fix dropdown overflow ( #8907 )
...
Fixes:
<img width="267" alt="Capture d’écran 2024-12-03 à 14 59 24"
src="https://github.com/user-attachments/assets/73278208-25d2-4225-a632-eb37cc69fcd6 ">
2024-12-05 18:12:59 +01:00
Antoine Moreaux
081ecbcfaf
review(front): refacto url-manager ( #8861 )
...
Replace https://github.com/twentyhq/twenty/pull/8855
2024-12-05 11:47:51 +01:00
Antoine Moreaux
33e69805cb
review(): from PR #8656 ( #8870 )
2024-12-05 10:46:13 +01:00
Baptiste Devessier
9142bdfb92
Add Select form field ( #8815 )
...
Closes https://github.com/twentyhq/twenty/pull/8815
I took inspiration from existing parts of the codebase. Please, see the
comments I left below.
Remaining questions:
- I'm not sure about the best way to handle hotkey scopes in the
components easily
https://github.com/user-attachments/assets/7a6dd144-d528-4f68-97cd-c9181f3954f9
2024-12-04 15:39:14 +01:00
Antoine Moreaux
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
nitin
9a65e80566
Remove the heart icon button to add the view as a favorite from the top bar ( #8769 )
...
closes #8546
@Bonapara please check the behaviour, if this is what you were looking
for! ;)
2024-12-03 13:49:00 +01:00
Guillim and Charles Bochet
0527bc296e
Default address country 🗺️ & Phone prefix ☎️ ( #8614 )
...
# Default address 🗺️ country & Phone ☎️ country
We add the ability to add a Default address country and a default Phone
country for fields in the Data model.
fix #8081
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-12-02 12:34:05 +00:00
Félix Malfait
29eb9fe77b
Don't show summary/fields on workflow record pages ( #8804 )
...
Hiding the left column on workflow pages
This raises additional questions: how do we edit the title then?
Probably need a significant refacto of PageHeader
<img width="1094" alt="Screenshot 2024-11-29 at 10 01 08"
src="https://github.com/user-attachments/assets/b98d55cb-5097-4e46-bac5-5570d9ca0ad8 ">
2024-11-29 18:11:44 +01:00
Jérémy M
a2d55a8694
feat: table record group ( #8781 )
...
Fix #8401 #8402
This PR is only taking care or displaying properly the record group on
the table.
Record-reorder within group has also been prepared.
Start of collapsible animation has been done, but not working for now.
<img width="1381" alt="Screenshot 2024-11-28 at 2 52 07 PM"
src="https://github.com/user-attachments/assets/514bb3e6-3475-4c47-a91c-64f7d20bbe73 ">
2024-11-29 13:04:27 +01:00
Raphaël Bosi
05149feb00
Do not mount the command menu when the user is logged out ( #8808 )
...
Fixes two bugs:
- The command menu contains hooks which were trying to execute queries
even when the user was logged out
- The command menu could be opened with the command + K shortcut even
when the user was logged out
2024-11-29 12:19:58 +01:00
Baptiste Devessier
d73dc1a728
Create form field number ( #8634 )
...
- Refactor VariableTagInput to have a reusable low-level TipTap editor
- Create three primitive form fields:
- Text
- Number
- Boolean
## Notes
- We should automatically recognize the placeholder to use for every
FormFieldInput, as it's done for FieldInputs.
## Design decisions
Our main challenge was for variables and inputs to be able to
communicate between each other. We chose an API that adds some
duplication but remains simple and doesn't rely on "hacks" to work.
Common styles are centralized.
## Demo
"Workflow" mode with variables:

FormFieldInput mode, without variables:

Behavior difference between fields that can contain variables and static
content, and inputs that can have either a variable value or a static
value:

2024-11-28 17:03:24 +00:00
Raphaël Bosi
541bbb93cb
Fix: Put workflow run actions behind feature flag ( #8798 )
...
Fix: Put workflow run actions behind feature flag
2024-11-28 17:21:46 +01:00
Guillim and guillim
041b1f21bf
line breaks in tooltips & text ( #8783 )
...
This feature goal is to :
1 - clean variables not used any longer
2 - add line breaks for tooltips and text wrapped
<img width="329" alt="Screenshot 2024-11-27 at 18 37 18"
src="https://github.com/user-attachments/assets/b3d7ed76-df30-4377-9d73-08d55c0f5c49 ">
<img width="468" alt="Screenshot 2024-11-27 at 18 37 31"
src="https://github.com/user-attachments/assets/48ef343e-6071-4a89-a73f-fb271f8284c0 ">
Request From @Bonapara
---------
Co-authored-by: guillim <guillaume@twenty.com >
2024-11-28 14:30:23 +01:00
Charles Bochet
8aab063da3
Demo new onclick behavior
2024-11-28 14:17:01 +01:00
Jérémy M
812ed6ed69
feat: record board component state refactor ( #8779 )
...
Fix #8758
This PR is migrating the recoil component state from v1 to v2 for board.
It also now share some states and logics between board and table,
further can be done later.
Lastly this PR fix an issue since the PR #8613 that was treating
no-value as a normal record-group.
2024-11-28 13:44:21 +01:00
nitin and Félix Malfait
e96ad9a1f2
Admin panel init ( #8742 )
...
WIP
Related issues -
#7090
#8547
Master issue -
#4499
---------
Co-authored-by: Félix Malfait <felix@twenty.com >
2024-11-28 13:43:11 +01:00
Harsh Singh and Lucas Bordeau
3ad1113173
fix: scroll dropdown listing in hidden fields ( #8738 )
...
Fixes : #8716
[Screencast from 2024-11-25
22-06-24.webm](https://github.com/user-attachments/assets/35bd66cc-942f-4903-abda-0d67a75b6582 )
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-11-27 18:06:11 +01:00
Raphaël Bosi
a9cb1e9b0d
Refactor actions ( #8761 )
...
Closes #8737
- Refactored actions by creating hooks to add the possibility to
register actions programatically.
- Small fixes from #8610 review
- Fixed shortcuts display inside the command menu
- Removed `actionMenuEntriesComponentState` and introduced
`actionMenuEntriesComponentSelector`
2024-11-27 15:08:27 +01:00
Harsh Singh
49526937fa
fix: navigation drawer clip while making folder in favorites ( #8619 )
2024-11-25 19:49:22 +00:00
Thomas Trompette
5ec6cb0e6f
Make workflow step name editable ( #8677 )
...
- Use TextInput in header title
- add onTitleChange prop
- rename field name instead of label
To fix :
- padding right on title comes from current TextInput component. It
needs to be refactored
https://github.com/user-attachments/assets/535cd6d3-866b-4a61-9c5d-cdbe7710396a
2024-11-22 15:25:01 +00:00
Raphaël Bosi
f44e2935df
Fix filter multi select ( #8682 )
...
- Created a dropdown inside a dropdown for the
`ObjectFilterDropdownOperandDropdown` so the operand can be opened over
the selection with an offset
- Refactored dropdown component and introduced `DropdownUnmountEffect`
to close the dropdown when the component unmounts
- Removed old logic
Before:
<img width="216" alt="Capture d’écran 2024-11-22 à 14 03 58"
src="https://github.com/user-attachments/assets/3c1bba03-af03-4993-a070-f009b8dc876f ">
After:
<img width="222" alt="Capture d’écran 2024-11-22 à 14 03 40"
src="https://github.com/user-attachments/assets/a8a784b4-8672-4b02-bb21-e4a749682f2e ">
2024-11-22 14:08:29 +00:00
martmull
76be1df66a
Fix array and links display ( #8671 )
...
## Before


## After


2024-11-22 12:06:31 +01:00
Khuddite and Félix Malfait
62df0f0445
Display a generic fallback component when initial config load fails ( #8588 )
...
Fixes : #8487 #5027
1. Summary
The purpose of these changes is to elevate the dev/user experience when
the initial config load call fails for whatever reason by displaying a
fallback component.
2. Solution
I ended up making more changes than I initially planned. I had to update
the order of the contexts a bit because `GenericErrorFallback` is
dependent on `AppThemeProvider` for styling and `AppThemeProvider` is
dependent on `ObjectMetadataItemsProvider` for
[`useObjectMetadataItem`](https://github.com/khuddite/twenty/blob/ae2f193d68c6168e4c8323297d58f6dbc1de9fdf/packages/twenty-front/src/modules/object-metadata/hooks/useObjectMetadataItem.ts#L22 )
hook (`AppThemeProvider` -> `useColorScheme` -> `useUpdateOneRecord` ->
`useObjectMetadataItem`). I had to create a wrapper component for
`AppThemeProvider` and stylize it in a way that it looks responsive on
both mobile and desktop devices. Finally, I had to introduce the
`isErrored` flag to differentiate the loading and error states.
There are some improvements we can make later -
- Display a loading state for the initial config load
- Implement a refetch logic for the initial config loading failure
3. Recording
https://github.com/user-attachments/assets/c2f43573-8006-4118-8e18-8576099d78fd
https://github.com/user-attachments/assets/9c5853d3-539b-4880-aa38-c416c3e13594
---------
Co-authored-by: Félix Malfait <felix@twenty.com >
2024-11-22 09:45:23 +01:00
Raphaël Bosi
8f5515cab3
8414 add records selection context inside the command menu ( #8610 )
...
Closes #8414
https://github.com/user-attachments/assets/a6aeb50a-b57d-43db-a839-4627c49b4155
2024-11-21 17:56:53 +01:00
Raphaël Bosi
b8c01bcf5a
Fix empty state not being centered ( #8650 )
...
Fix empty state not being centered
Before:
<img width="1512" alt="Capture d’écran 2024-11-21 à 15 50 56"
src="https://github.com/user-attachments/assets/8ea843b6-dce3-46d9-b2e3-db3be39e0cc1 ">
After:
<img width="1512" alt="Capture d’écran 2024-11-21 à 15 50 41"
src="https://github.com/user-attachments/assets/b18d306a-ccea-489f-941f-086d816d3a79 ">
2024-11-21 16:28:07 +01:00
Raphaël Bosi
aae18a94c5
Fix action menu padding ( #8652 )
...
Before:
<img width="211" alt="Capture d’écran 2024-11-21 à 16 10 29"
src="https://github.com/user-attachments/assets/f13be007-e043-4b65-8fb1-b7264f7b37fd ">
After:
<img width="218" alt="Capture d’écran 2024-11-21 à 16 10 10"
src="https://github.com/user-attachments/assets/3fdf02b1-f932-4e72-8994-7596f6e22164 ">
2024-11-21 16:27:50 +01:00