Raphaël Bosi
b81ffcc77c
Add viewId to recordIndexId ( #9647 )
...
Before the `recordIndexId` was the name plural. This caused problems
because the component states were the same for every view of an object.
When we switched from one view to another, some states weren't reset.
This PR fixes this by:
- Creating an effect at the same level of page change effect to set the
`currentViewId` inside the object `contextStore`
- Adding the `currentViewId` to the `recordIndexId`
Follow ups:
- We need to get rid of
`packages/twenty-front/src/modules/views/states/currentViewIdComponentState.ts`
and use the context store instead
2025-01-16 18:41:19 +01:00
Charles Bochet
90c26643a8
Fix race condition while loading metadata on sign in ( #9027 )
2024-12-11 18:56:02 +01:00
Antoine Moreaux
33e69805cb
review(): from PR #8656 ( #8870 )
2024-12-05 10:46:13 +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
Khuddite
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
9b0c74251f
Fix actions setter when opening the command menu ( #8263 )
...
Fix standard actions overriding navigate and create commands when
opening the command menu.
Before fix:
<img width="493" alt="Capture d’écran 2024-10-31 à 18 08 56"
src="https://github.com/user-attachments/assets/015bd798-baa4-4f84-8886-e355c0ef1455 ">
After fix:
<img width="499" alt="Capture d’écran 2024-10-31 à 18 08 34"
src="https://github.com/user-attachments/assets/02ba7fc4-ec90-4c13-9830-d884c0da37d9 ">
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-11-05 11:01:08 +01:00
ZiaCodes
5e2df81211
fix: hidden settings menu affects settings layout ( #7769 )
...
This PR fixes #6746
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-10-21 21:28:01 +02:00
Charles Bochet
eccf0bf8ba
Enforce front project structure through ESLINT ( #7863 )
...
Fixes: https://github.com/twentyhq/twenty/issues/7329
2024-10-20 20:20:19 +02:00
sid0-0
e662f6ccb3
fix: fixed shortcuts population ( #7016 )
...
This PR fixes #6776
Screenshots:
<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/ca061c30-ddb7-40ff-8c54-8b0d85d40864 ">
---------
Co-authored-by: sid0-0 <a@b.com >
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-10-08 17:39:41 +02:00