The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix bugs on pipeline new card creation and checkboxes not scrollable
Charles Bochet098cd038bdce
diff --git a/front/src/modules/companies/components/NewCompanyBoardCard.tsx b/front/src/modules/companies/components/NewCompanyBoardCard.tsxdeleted file mode 100644index 3290cee5ed6..00000000000--- a/front/src/modules/companies/components/NewCompanyBoardCard.tsx+++ /dev/null@@ -1,35 +0,0 @@-import { useCallback } from 'react';--import { useRecoilScopedState } from '@/recoil-scope/hooks/useRecoilScopedState';-import { SingleEntitySelect } from '@/relation-picker/components/SingleEntitySelect';-import { relationPickerSearchFilterScopedState } from '@/relation-picker/states/relationPickerSearchFilterScopedState';--import { useFilteredSearchCompanyQuery } from '../queries';--export function NewCompanyBoardCard() {- const [searchFilter] = useRecoilScopedState(- relationPickerSearchFilterScopedState,- );-- const companies = useFilteredSearchCompanyQuery({ searchFilter });-- const handleEntitySelect = useCallback(async (companyId: string) => {- return;- }, []);-- function handleCancel() {- return;- }-- return (- <SingleEntitySelect- onEntitySelected={(value) => handleEntitySelect(value.id)}- onCancel={handleCancel}- entities={{- entitiesToSelect: companies.entitiesToSelect,- selectedEntity: companies.selectedEntities[0],- loading: companies.loading,- }}- />- );-}diff --git a/front/src/modules/companies/components/NewCompanyProgressButton.tsx b/front/src/modules/companies/components/NewCompanyProgressButton.tsxindex 944e1ca620e..51cebd9f729 100644--- a/front/src/modules/companies/components/NewCompanyProgressButton.tsx+++ b/front/src/modules/companies/components/NewCompanyProgressButton.tsx@@ -96,18 +96,16 @@ export function NewCompanyProgressButton() {return (<>{isCreatingCard ? (- <RecoilScope>- <SingleEntitySelect- onEntitySelected={(value) => handleEntitySelect(value)}- onCancel={handleCancel}- entities={{- entitiesToSelect: companies.entitiesToSelect,- selectedEntity: companies.selectedEntities[0],- loading: companies.loading,- }}- disableBackgroundBlur={true}- />- </RecoilScope>+ <SingleEntitySelect+ onEntitySelected={(value) => handleEntitySelect(value)}+ onCancel={handleCancel}+ entities={{+ entitiesToSelect: companies.entitiesToSelect,+ selectedEntity: companies.selectedEntities[0],+ loading: companies.loading,+ }}+ disableBackgroundBlur={true}+ />) : (<NewButton onClick={handleNewClick} />)}diff --git a/front/src/modules/companies/components/companyBoardOptions.tsx b/front/src/modules/companies/components/companyBoardOptions.tsxindex 8bccfdc0428..a4365d4a97f 100644--- a/front/src/modules/companies/components/companyBoardOptions.tsx+++ b/front/src/modules/companies/components/companyBoardOptions.tsx@@ -1,9 +1,14 @@import { CompanyBoardCard } from '@/companies/components/CompanyBoardCard';import { NewCompanyProgressButton } from '@/companies/components/NewCompanyProgressButton';+import { RecoilScope } from '@/recoil-scope/components/RecoilScope';import { BoardOptions } from '../../pipeline-progress/types/BoardOptions';export const companyBoardOptions: BoardOptions = {- newCardComponent: <NewCompanyProgressButton />,+ newCardComponent: (+ <RecoilScope>+ <NewCompanyProgressButton />+ </RecoilScope>+ ),cardComponent: <CompanyBoardCard />,};diff --git a/front/src/modules/ui/components/form/Checkbox.tsx b/front/src/modules/ui/components/form/Checkbox.tsxindex cc87cd661c2..332f2ac88a6 100644--- a/front/src/modules/ui/components/form/Checkbox.tsx+++ b/front/src/modules/ui/components/form/Checkbox.tsx@@ -12,6 +12,7 @@ type OwnProps = {const StyledInputContainer = styled.div`align-items: center;display: flex;+ position: relative;`;const StyledInput = styled.input<{ indeterminate?: boolean }>`