The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fixes #6499 alignment issue on workspace switcher (#6589)
NitinPSingh5404a8ba2d5b
diff --git a/packages/twenty-front/src/hooks/useIsMatchingLocation.ts b/packages/twenty-front/src/hooks/useIsMatchingLocation.tsindex 044a344068a..aa57dbb432e 100644--- a/packages/twenty-front/src/hooks/useIsMatchingLocation.ts+++ b/packages/twenty-front/src/hooks/useIsMatchingLocation.ts@@ -9,7 +9,7 @@ export const useIsMatchingLocation = () => {return useCallback((path: string, basePath?: AppBasePath) => {const constructedPath = basePath- ? new URL(basePath + path, document.location.origin).pathname ?? ''+ ? (new URL(basePath + path, document.location.origin).pathname ?? ''): path;return !!matchPath(constructedPath, location.pathname);diff --git a/packages/twenty-front/src/loading/components/LeftPanelSkeletonLoader.tsx b/packages/twenty-front/src/loading/components/LeftPanelSkeletonLoader.tsxindex 9a94373cef3..38803c9efec 100644--- a/packages/twenty-front/src/loading/components/LeftPanelSkeletonLoader.tsx+++ b/packages/twenty-front/src/loading/components/LeftPanelSkeletonLoader.tsx@@ -17,7 +17,7 @@ const StyledItemsContainer = styled.div`align-items: center;display: flex;flex-direction: column;- gap: 12px;+ gap: 14px;height: calc(100dvh - 32px);margin-bottom: auto;max-width: 204px;diff --git a/packages/twenty-front/src/modules/activities/emails/components/MessageThreadSubscribersChip.tsx b/packages/twenty-front/src/modules/activities/emails/components/MessageThreadSubscribersChip.tsxindex d1082721583..6ef97d07b28 100644--- a/packages/twenty-front/src/modules/activities/emails/components/MessageThreadSubscribersChip.tsx+++ b/packages/twenty-front/src/modules/activities/emails/components/MessageThreadSubscribersChip.tsx@@ -45,7 +45,7 @@ export const MessageThreadSubscribersChip = ({? `+${numberOfMessageThreadSubscribers - MAX_NUMBER_OF_AVATARS}`: null;- const label = isPrivateThread ? privateLabel : moreAvatarsLabel ?? '';+ const label = isPrivateThread ? privateLabel : (moreAvatarsLabel ?? '');return (<Chipdiff --git a/packages/twenty-front/src/modules/object-metadata/utils/generateDefaultRecordChipData.ts b/packages/twenty-front/src/modules/object-metadata/utils/generateDefaultRecordChipData.tsindex 82fe1174431..5b3acd8698a 100644--- a/packages/twenty-front/src/modules/object-metadata/utils/generateDefaultRecordChipData.ts+++ b/packages/twenty-front/src/modules/object-metadata/utils/generateDefaultRecordChipData.ts@@ -4,7 +4,7 @@ import { ObjectRecord } from '@/object-record/types/ObjectRecord';export const generateDefaultRecordChipData = (record: ObjectRecord) => {const name = isFieldFullNameValue(record.name)? record.name.firstName + ' ' + record.name.lastName- : record.name ?? '';+ : (record.name ?? '');return {name,diff --git a/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/MultiSelectFieldInput.tsx b/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/MultiSelectFieldInput.tsxindex d36b2b9fbfc..c6134f911a2 100644--- a/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/MultiSelectFieldInput.tsx+++ b/packages/twenty-front/src/modules/object-record/record-field/meta-types/input/components/MultiSelectFieldInput.tsx@@ -42,8 +42,8 @@ export const MultiSelectFieldInput = ({const [searchFilter, setSearchFilter] = useState('');const containerRef = useRef<HTMLDivElement>(null);- const selectedOptions = fieldDefinition.metadata.options.filter(- (option) => fieldValues?.includes(option.value),+ const selectedOptions = fieldDefinition.metadata.options.filter((option) =>+ fieldValues?.includes(option.value),);const optionsInDropDown = fieldDefinition.metadata.options;diff --git a/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsx b/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsxindex e59ca3be75f..426078f807b 100644--- a/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsx+++ b/packages/twenty-front/src/modules/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsx@@ -69,7 +69,7 @@ export const RecordDetailRelationSection = ({const relationRecords: ObjectRecord[] =fieldValue && isToOneObject? [fieldValue as ObjectRecord]- : (fieldValue as ObjectRecord[]) ?? [];+ : ((fieldValue as ObjectRecord[]) ?? []);const relationRecordIds = relationRecords.map(({ id }) => id);diff --git a/packages/twenty-front/src/modules/spreadsheet-import/utils/findUnmatchedRequiredFields.ts b/packages/twenty-front/src/modules/spreadsheet-import/utils/findUnmatchedRequiredFields.tsindex e7219f70bdd..71af1840263 100644--- a/packages/twenty-front/src/modules/spreadsheet-import/utils/findUnmatchedRequiredFields.ts+++ b/packages/twenty-front/src/modules/spreadsheet-import/utils/findUnmatchedRequiredFields.ts@@ -6,11 +6,10 @@ export const findUnmatchedRequiredFields = <T extends string>(columns: Columns<T>,) =>fields- .filter(- (field) =>- field.fieldValidationDefinitions?.some(- (validation) => validation.rule === 'required',- ),+ .filter((field) =>+ field.fieldValidationDefinitions?.some(+ (validation) => validation.rule === 'required',+ ),).filter((field) =>diff --git a/packages/twenty-front/src/modules/ui/input/components/Toggle.tsx b/packages/twenty-front/src/modules/ui/input/components/Toggle.tsxindex 9aadab0eb02..f723e93e1c5 100644--- a/packages/twenty-front/src/modules/ui/input/components/Toggle.tsx+++ b/packages/twenty-front/src/modules/ui/input/components/Toggle.tsx@@ -16,7 +16,7 @@ type ContainerProps = {const StyledContainer = styled.div<ContainerProps>`align-items: center;background-color: ${({ theme, isOn, color }) =>- isOn ? color ?? theme.color.blue : theme.background.quaternary};+ isOn ? (color ?? theme.color.blue) : theme.background.quaternary};border-radius: 10px;cursor: pointer;display: flex;diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsxindex 40640237764..92b020a7dc7 100644--- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx+++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawer.tsx@@ -32,7 +32,7 @@ const StyledContainer = styled.div<{ isSubMenu?: boolean }>`box-sizing: border-box;display: flex;flex-direction: column;- gap: ${({ theme }) => theme.spacing(3)};+ gap: ${({ theme }) => theme.spacing(3.5)};height: 100%;min-width: ${DESKTOP_NAV_DRAWER_WIDTHS.menu}px;padding: ${({ theme }) => theme.spacing(3, 2, 4)};diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerHeader.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerHeader.tsxindex d6bbf810089..03ae1fcd0ad 100644--- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerHeader.tsx+++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/NavigationDrawerHeader.tsx@@ -15,8 +15,6 @@ const StyledContainer = styled.div<{ isMultiWorkspace: boolean }>`display: flex;gap: ${({ theme, isMultiWorkspace }) =>!isMultiWorkspace ? theme.spacing(2) : null};- padding: ${({ theme, isMultiWorkspace }) =>- !isMultiWorkspace ? theme.spacing(1) : null};height: ${({ theme }) => theme.spacing(8)};user-select: none;`;