The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Chore(front): Create a custom eslint rule for Props naming (#1904)
gitstart-twenty77a1840611fc
diff --git a/docs/docs/contributor/frontend/advanced/best-practices.mdx b/docs/docs/contributor/frontend/advanced/best-practices.mdxindex b3a03be1260..7211404573b 100644--- a/docs/docs/contributor/frontend/advanced/best-practices.mdx+++ b/docs/docs/contributor/frontend/advanced/best-practices.mdx@@ -206,12 +206,12 @@ EXAMPLEAssume, we have the `EmailField` component defined below```tsx-type OwnProps = {+type EmailFieldProps = {value: string;disabled?: boolean;};-const EmailField = ({ value, disabled = false }: OwnProps) => (+const EmailField = ({ value, disabled = false }: EmailFieldProps) => (<TextInput value={value} disabled={disabled} fullWidth />);```diff --git a/docs/docs/contributor/frontend/advanced/style-guide.mdx b/docs/docs/contributor/frontend/advanced/style-guide.mdxindex 65efd35d0a6..a4048ce61aa 100644--- a/docs/docs/contributor/frontend/advanced/style-guide.mdx+++ b/docs/docs/contributor/frontend/advanced/style-guide.mdx@@ -40,7 +40,7 @@ export function MyComponent() {### Props-Create the type of the props and call it `OwnProps` if there's no need to export it.+Create the type of the props and call it `(ComponentName)Props` if there's no need to export it.Use props destructuring.@@ -49,11 +49,11 @@ Use props destructuring.export const MyComponent = (props) => <div>Hello {props.name}</div>;// ✅ Good, type-type OwnProps = {+type MyComponentProps = {name: string;};-export const MyComponent = ({ name }: OwnProps) => <div>Hello {name}</div>;+export const MyComponent = ({ name }: MyComponentProps) => <div>Hello {name}</div>;```#### Refrain from using `React.FC` or `React.FunctionComponent` to define prop types.@@ -76,11 +76,11 @@ const EmailField: React.FC<{* - This method doesn't automatically include the children prop. If* you want to include it, you have to specify it in OwnProps.*/-type OwnProps = {+type EmailFieldProps = {value: string;};-const EmailField = ({ value }: OwnProps) => (+const EmailField = ({ value }: EmailFieldProps) => (<TextInput value={value} disabled fullWidth />);```@@ -101,7 +101,7 @@ const MyComponent = (props: OwnProps) => {/* ✅ - Good, Explicitly lists all props* - Enhances readability and maintainability*/-const MyComponent = ({ prop1, prop2, prop3 }: OwnProps) => {+const MyComponent = ({ prop1, prop2, prop3 }: MyComponentProps) => {return <OtherComponent {...{ prop1, prop2, prop3 }} />;};```diff --git a/front/.eslintrc.js b/front/.eslintrc.jsindex d1ea86f8562..916a9c76588 100644--- a/front/.eslintrc.js+++ b/front/.eslintrc.js@@ -70,6 +70,7 @@ module.exports = {'twenty/no-hardcoded-colors': 'error','twenty/no-spread-props': 'error','twenty/matching-state-variable': 'error',+ 'twenty/component-props-naming': 'error','twenty/sort-css-properties-alphabetically': 'error','twenty/styled-components-prefixed-with-styled': 'error','func-style':['error', 'declaration', { 'allowArrowFunctions': true }],diff --git a/front/src/modules/activities/comment/Comment.tsx b/front/src/modules/activities/comment/Comment.tsxindex d91852caa90..c9301f46c27 100644--- a/front/src/modules/activities/comment/Comment.tsx+++ b/front/src/modules/activities/comment/Comment.tsx@@ -4,7 +4,7 @@ import { CommentForDrawer } from '../types/CommentForDrawer';import { CommentHeader } from './CommentHeader';-type OwnProps = {+type CommentProps = {comment: CommentForDrawer;actionBar?: React.ReactNode;};@@ -30,7 +30,7 @@ const StyledCommentBody = styled.div`text-align: left;`;-export const Comment = ({ comment, actionBar }: OwnProps) => (+export const Comment = ({ comment, actionBar }: CommentProps) => (<StyledContainer><CommentHeader comment={comment} actionBar={actionBar} /><StyledCommentBody>{comment.body}</StyledCommentBody>diff --git a/front/src/modules/activities/comment/CommentHeader.tsx b/front/src/modules/activities/comment/CommentHeader.tsxindex 83b30a3695f..c001ffd3ed6 100644--- a/front/src/modules/activities/comment/CommentHeader.tsx+++ b/front/src/modules/activities/comment/CommentHeader.tsx@@ -9,7 +9,7 @@ import {import { CommentForDrawer } from '../types/CommentForDrawer';-type OwnProps = {+type CommentHeaderProps = {comment: Pick<CommentForDrawer, 'id' | 'author' | 'createdAt'>;actionBar?: React.ReactNode;};@@ -62,7 +62,7 @@ const StyledTooltip = styled(Tooltip)`padding: 8px;`;-export const CommentHeader = ({ comment, actionBar }: OwnProps) => {+export const CommentHeader = ({ comment, actionBar }: CommentHeaderProps) => {const beautifiedCreatedAt = beautifyPastDateRelativeToNow(comment.createdAt);const exactCreatedAt = beautifyExactDateTime(comment.createdAt);const showDate = beautifiedCreatedAt !== '';diff --git a/front/src/modules/activities/components/ActivityAssigneePicker.tsx b/front/src/modules/activities/components/ActivityAssigneePicker.tsxindex 17378a4a5b8..1fcdfc64b71 100644--- a/front/src/modules/activities/components/ActivityAssigneePicker.tsx+++ b/front/src/modules/activities/components/ActivityAssigneePicker.tsx@@ -18,7 +18,7 @@ import {import { ACTIVITY_UPDATE_FRAGMENT } from '../graphql/fragments/activityUpdateFragment';import { GET_ACTIVITIES } from '../graphql/queries/getActivities';-export type OwnProps = {+export type ActivityAssigneePickerProps = {activity: Pick<Activity, 'id'> & {accountOwner?: Pick<User, 'id' | 'displayName'> | null;};@@ -34,7 +34,7 @@ export const ActivityAssigneePicker = ({activity,onSubmit,onCancel,-}: OwnProps) => {+}: ActivityAssigneePickerProps) => {const [relationPickerSearchFilter] = useRecoilScopedState(relationPickerSearchFilterScopedState,);diff --git a/front/src/modules/activities/components/ActivityBodyEditor.tsx b/front/src/modules/activities/components/ActivityBodyEditor.tsxindex 3dfa29beb6a..cf90d557fae 100644--- a/front/src/modules/activities/components/ActivityBodyEditor.tsx+++ b/front/src/modules/activities/components/ActivityBodyEditor.tsx@@ -14,12 +14,15 @@ const StyledBlockNoteStyledContainer = styled.div`width: 100%;`;-type OwnProps = {+type ActivityBodyEditorProps = {activity: Pick<Activity, 'id' | 'body'>;onChange?: (activityBody: string) => void;};-export const ActivityBodyEditor = ({ activity, onChange }: OwnProps) => {+export const ActivityBodyEditor = ({+ activity,+ onChange,+}: ActivityBodyEditorProps) => {const [updateActivityMutation] = useUpdateActivityMutation();const client = useApolloClient();diff --git a/front/src/modules/activities/components/ActivityComments.tsx b/front/src/modules/activities/components/ActivityComments.tsxindex 496f16ea623..2a1053327f5 100644--- a/front/src/modules/activities/components/ActivityComments.tsx+++ b/front/src/modules/activities/components/ActivityComments.tsx@@ -16,7 +16,7 @@ import { Comment } from '../comment/Comment';import { GET_ACTIVITY } from '../graphql/queries/getActivity';import { CommentForDrawer } from '../types/CommentForDrawer';-type OwnProps = {+type ActivityCommentsProps = {activity: Pick<Activity, 'id'> & {comments: Array<CommentForDrawer>;};@@ -62,7 +62,7 @@ const StyledThreadCommentTitle = styled.div`export const ActivityComments = ({activity,scrollableContainerRef,-}: OwnProps) => {+}: ActivityCommentsProps) => {const [createCommentMutation] = useCreateCommentMutation();const currentUser = useRecoilValue(currentUserState);diff --git a/front/src/modules/activities/components/ActivityEditor.tsx b/front/src/modules/activities/components/ActivityEditor.tsxindex e2f6bd6b8a9..ecb7f0e5765 100644--- a/front/src/modules/activities/components/ActivityEditor.tsx+++ b/front/src/modules/activities/components/ActivityEditor.tsx@@ -60,7 +60,7 @@ const StyledTopContainer = styled.div`padding: 24px 24px 24px 48px;`;-type OwnProps = {+type ActivityEditorProps = {activity: Pick<Activity,'id' | 'title' | 'body' | 'type' | 'completedAt' | 'dueAt'@@ -82,7 +82,7 @@ export const ActivityEditor = ({activity,showComment = true,autoFillTitle = false,-}: OwnProps) => {+}: ActivityEditorProps) => {const [hasUserManuallySetTitle, setHasUserManuallySetTitle] =useState<boolean>(false);diff --git a/front/src/modules/activities/components/ActivityTitle.tsx b/front/src/modules/activities/components/ActivityTitle.tsxindex ff03d638725..935361e7c6b 100644--- a/front/src/modules/activities/components/ActivityTitle.tsx+++ b/front/src/modules/activities/components/ActivityTitle.tsx@@ -44,7 +44,7 @@ const StyledCheckboxContainer = styled.div`justify-content: center;`;-type OwnProps = {+type ActivityTitleProps = {title: string;type: ActivityType;completed: boolean;@@ -58,7 +58,7 @@ export const ActivityTitle = ({type,onTitleChange,onCompletionChange,-}: OwnProps) => (+}: ActivityTitleProps) => (<StyledContainer>{type === ActivityType.Task && (<StyledCheckboxContainer onClick={() => onCompletionChange(!completed)}>diff --git a/front/src/modules/activities/components/ActivityTypeDropdown.tsx b/front/src/modules/activities/components/ActivityTypeDropdown.tsxindex 20be165779d..f27f2f3733f 100644--- a/front/src/modules/activities/components/ActivityTypeDropdown.tsx+++ b/front/src/modules/activities/components/ActivityTypeDropdown.tsx@@ -9,11 +9,13 @@ import {import { IconCheckbox, IconNotes } from '@/ui/icon';import { Activity, ActivityType } from '~/generated/graphql';-type OwnProps = {+type ActivityTypeDropdownProps = {activity: Pick<Activity, 'type'>;};-export const ActivityTypeDropdown = ({ activity }: OwnProps) => {+export const ActivityTypeDropdown = ({+ activity,+}: ActivityTypeDropdownProps) => {const theme = useTheme();return (<Chipdiff --git a/front/src/modules/activities/editable-fields/components/ActivityAssigneeEditableField.tsx b/front/src/modules/activities/editable-fields/components/ActivityAssigneeEditableField.tsxindex a9dbbc25dd1..317b3a2273c 100644--- a/front/src/modules/activities/editable-fields/components/ActivityAssigneeEditableField.tsx+++ b/front/src/modules/activities/editable-fields/components/ActivityAssigneeEditableField.tsx@@ -7,13 +7,15 @@ import { InlineCellHotkeyScope } from '@/ui/inline-cell/types/InlineCellHotkeyScimport { Entity } from '@/ui/input/relation-picker/types/EntityTypeForSelect';import { Company, User, useUpdateActivityMutation } from '~/generated/graphql';-type OwnProps = {+type ActivityAssigneeEditableFieldProps = {activity: Pick<Company, 'id' | 'accountOwnerId'> & {assignee?: Pick<User, 'id' | 'displayName' | 'avatarUrl'> | null;};};-export const ActivityAssigneeEditableField = ({ activity }: OwnProps) => {+export const ActivityAssigneeEditableField = ({+ activity,+}: ActivityAssigneeEditableFieldProps) => {return (<FieldContext.Providervalue={{diff --git a/front/src/modules/activities/editable-fields/components/ActivityAssigneeEditableFieldEditMode.tsx b/front/src/modules/activities/editable-fields/components/ActivityAssigneeEditableFieldEditMode.tsxindex 25d0ee79a63..6d6c39fb4fd 100644--- a/front/src/modules/activities/editable-fields/components/ActivityAssigneeEditableFieldEditMode.tsx+++ b/front/src/modules/activities/editable-fields/components/ActivityAssigneeEditableFieldEditMode.tsx@@ -10,7 +10,7 @@ const StyledContainer = styled.div`top: -8px;`;-export type OwnProps = {+export type ActivityAssigneeEditableFieldEditModeProps = {activity: Pick<Activity, 'id'> & {assignee?: Pick<User, 'id' | 'displayName'> | null;};@@ -22,7 +22,7 @@ export const ActivityAssigneeEditableFieldEditMode = ({activity,onSubmit,onCancel,-}: OwnProps) => {+}: ActivityAssigneeEditableFieldEditModeProps) => {const { closeInlineCell: closeEditableField } = useInlineCell();const handleSubmit = () => {diff --git a/front/src/modules/activities/editable-fields/components/ActivityEditorDateField.tsx b/front/src/modules/activities/editable-fields/components/ActivityEditorDateField.tsxindex c05eb579ab7..9b5cd650014 100644--- a/front/src/modules/activities/editable-fields/components/ActivityEditorDateField.tsx+++ b/front/src/modules/activities/editable-fields/components/ActivityEditorDateField.tsx@@ -7,11 +7,13 @@ import { InlineCellHotkeyScope } from '@/ui/inline-cell/types/InlineCellHotkeyScimport { RecoilScope } from '@/ui/utilities/recoil-scope/components/RecoilScope';import { useUpdateActivityMutation } from '~/generated/graphql';-type OwnProps = {+type ActivityEditorDateFieldProps = {activityId: string;};-export const ActivityEditorDateField = ({ activityId }: OwnProps) => {+export const ActivityEditorDateField = ({+ activityId,+}: ActivityEditorDateFieldProps) => {return (<RecoilScope><FieldContext.Providerdiff --git a/front/src/modules/activities/editable-fields/components/ActivityRelationEditableField.tsx b/front/src/modules/activities/editable-fields/components/ActivityRelationEditableField.tsxindex 726cc0cb02a..6db6c74a013 100644--- a/front/src/modules/activities/editable-fields/components/ActivityRelationEditableField.tsx+++ b/front/src/modules/activities/editable-fields/components/ActivityRelationEditableField.tsx@@ -8,7 +8,7 @@ import { Activity, ActivityTarget, Company, Person } from '~/generated/graphql';import { ActivityRelationEditableFieldEditMode } from './ActivityRelationEditableFieldEditMode';-type OwnProps = {+type ActivityRelationEditableFieldProps = {activity?: Pick<Activity, 'id'> & {activityTargets?: Array<Pick<ActivityTarget, 'id' | 'personId' | 'companyId'> & {@@ -19,7 +19,9 @@ type OwnProps = {};};-export const ActivityRelationEditableField = ({ activity }: OwnProps) => {+export const ActivityRelationEditableField = ({+ activity,+}: ActivityRelationEditableFieldProps) => {return (<RecoilScope CustomRecoilScopeContext={FieldRecoilScopeContext}><RecoilScope>diff --git a/front/src/modules/activities/editable-fields/components/ActivityRelationEditableFieldEditMode.tsx b/front/src/modules/activities/editable-fields/components/ActivityRelationEditableFieldEditMode.tsxindex c35b694c7e5..80c36546f19 100644--- a/front/src/modules/activities/editable-fields/components/ActivityRelationEditableFieldEditMode.tsx+++ b/front/src/modules/activities/editable-fields/components/ActivityRelationEditableFieldEditMode.tsx@@ -10,7 +10,7 @@ import { MultipleEntitySelect } from '@/ui/input/relation-picker/components/Multimport { Activity, ActivityTarget } from '~/generated/graphql';import { assertNotNull } from '~/utils/assert';-type OwnProps = {+type ActivityRelationEditableFieldEditModeProps = {activity?: Pick<Activity, 'id'> & {activityTargets?: Array<Pick<ActivityTarget, 'id' | 'personId' | 'companyId'>@@ -26,7 +26,7 @@ const StyledSelectContainer = styled.div`export const ActivityRelationEditableFieldEditMode = ({activity,-}: OwnProps) => {+}: ActivityRelationEditableFieldEditModeProps) => {const [searchFilter, setSearchFilter] = useState('');const initialPeopleIds = useMemo(diff --git a/front/src/modules/activities/notes/components/NoteList.tsx b/front/src/modules/activities/notes/components/NoteList.tsxindex 62a63458493..74066d92a7c 100644--- a/front/src/modules/activities/notes/components/NoteList.tsx+++ b/front/src/modules/activities/notes/components/NoteList.tsx@@ -5,7 +5,7 @@ import { NoteForList } from '../../types/NoteForList';import { NoteCard } from './NoteCard';-type OwnProps = {+type NoteListProps = {title: string;notes: NoteForList[];button?: ReactElement | false;@@ -47,7 +47,7 @@ const StyledNoteContainer = styled.div`width: 100%;`;-export const NoteList = ({ title, notes, button }: OwnProps) => (+export const NoteList = ({ title, notes, button }: NoteListProps) => (<>{notes && notes.length > 0 && (<StyledContainer>diff --git a/front/src/modules/activities/right-drawer/components/ActivityActionBar.tsx b/front/src/modules/activities/right-drawer/components/ActivityActionBar.tsxindex 054654e4a71..e3d62e22216 100644--- a/front/src/modules/activities/right-drawer/components/ActivityActionBar.tsx+++ b/front/src/modules/activities/right-drawer/components/ActivityActionBar.tsx@@ -10,11 +10,11 @@ import { IconTrash } from '@/ui/icon';import { isRightDrawerOpenState } from '@/ui/right-drawer/states/isRightDrawerOpenState';import { useDeleteActivityMutation } from '~/generated/graphql';-type OwnProps = {+type ActivityActionBarProps = {activityId: string;};-export const ActivityActionBar = ({ activityId }: OwnProps) => {+export const ActivityActionBar = ({ activityId }: ActivityActionBarProps) => {const [deleteActivityMutation] = useDeleteActivityMutation();const [, setIsRightDrawerOpen] = useRecoilState(isRightDrawerOpenState);diff --git a/front/src/modules/activities/right-drawer/components/RightDrawerActivity.tsx b/front/src/modules/activities/right-drawer/components/RightDrawerActivity.tsxindex 5982ab5ccde..2abeeb7ab53 100644--- a/front/src/modules/activities/right-drawer/components/RightDrawerActivity.tsx+++ b/front/src/modules/activities/right-drawer/components/RightDrawerActivity.tsx@@ -18,7 +18,7 @@ const StyledContainer = styled.div`position: relative;`;-type OwnProps = {+type RightDrawerActivityProps = {activityId: string;showComment?: boolean;autoFillTitle?: boolean;@@ -28,7 +28,7 @@ export const RightDrawerActivity = ({activityId,showComment = true,autoFillTitle = false,-}: OwnProps) => {+}: RightDrawerActivityProps) => {const [, setEntityFields] = useRecoilState(entityFieldsFamilyState(activityId),);diff --git a/front/src/modules/activities/table/components/CellCommentChip.tsx b/front/src/modules/activities/table/components/CellCommentChip.tsxindex 4027975c476..5b89dedc528 100644--- a/front/src/modules/activities/table/components/CellCommentChip.tsx+++ b/front/src/modules/activities/table/components/CellCommentChip.tsx@@ -2,10 +2,12 @@ import styled from '@emotion/styled';import { CommentChip, CommentChipProps } from './CommentChip';+type CellCommentChipProps = CommentChipProps;+// TODO: tie those fixed values to the other components in the cellconst StyledCellWrapper = styled.div``;-export const CellCommentChip = (props: CommentChipProps) => {+export const CellCommentChip = (props: CellCommentChipProps) => {if (props.count === 0) return null;return (diff --git a/front/src/modules/activities/tasks/components/TaskGroups.tsx b/front/src/modules/activities/tasks/components/TaskGroups.tsxindex 3bf4f2d53e3..f19cf18f9e8 100644--- a/front/src/modules/activities/tasks/components/TaskGroups.tsx+++ b/front/src/modules/activities/tasks/components/TaskGroups.tsx@@ -13,7 +13,7 @@ import { ActivityType } from '~/generated/graphql';import { AddTaskButton } from './AddTaskButton';import { TaskList } from './TaskList';-type OwnProps = {+type TaskGroupsProps = {entity?: ActivityTargetableEntity;showAddButton?: boolean;};@@ -52,7 +52,7 @@ const StyledContainer = styled.div`flex-direction: column;`;-export const TaskGroups = ({ entity, showAddButton }: OwnProps) => {+export const TaskGroups = ({ entity, showAddButton }: TaskGroupsProps) => {const {todayOrPreviousTasks,upcomingTasks,diff --git a/front/src/modules/activities/tasks/components/TaskList.tsx b/front/src/modules/activities/tasks/components/TaskList.tsxindex 92343be844f..d2139784c4c 100644--- a/front/src/modules/activities/tasks/components/TaskList.tsx+++ b/front/src/modules/activities/tasks/components/TaskList.tsx@@ -5,7 +5,7 @@ import { TaskForList } from '@/activities/types/TaskForList';import { TaskRow } from './TaskRow';-type OwnProps = {+type TaskListProps = {title?: string;tasks: TaskForList[];button?: ReactElement | false;@@ -46,7 +46,7 @@ const StyledTaskRows = styled.div`width: 100%;`;-export const TaskList = ({ title, tasks, button }: OwnProps) => (+export const TaskList = ({ title, tasks, button }: TaskListProps) => (<>{tasks && tasks.length > 0 && (<StyledContainer>diff --git a/front/src/modules/activities/timeline/components/TimelineActivity.tsx b/front/src/modules/activities/timeline/components/TimelineActivity.tsxindex 55a288de168..bea4ca5d21c 100644--- a/front/src/modules/activities/timeline/components/TimelineActivity.tsx+++ b/front/src/modules/activities/timeline/components/TimelineActivity.tsx@@ -116,7 +116,7 @@ const StyledTimelineItemContainer = styled.div`gap: ${({ theme }) => theme.spacing(4)};`;-type OwnProps = {+type TimelineActivityProps = {activity: Pick<Activity,'id' | 'title' | 'body' | 'createdAt' | 'completedAt' | 'type'@@ -125,7 +125,7 @@ type OwnProps = {};};-export const TimelineActivity = ({ activity }: OwnProps) => {+export const TimelineActivity = ({ activity }: TimelineActivityProps) => {const beautifiedCreatedAt = beautifyPastDateRelativeToNow(activity.createdAt);const exactCreatedAt = beautifyExactDateTime(activity.createdAt);const body = JSON.parse(activity.body ?? '{}')[0]?.content[0]?.text;diff --git a/front/src/modules/activities/timeline/components/TimelineActivityCardFooter.tsx b/front/src/modules/activities/timeline/components/TimelineActivityCardFooter.tsxindex a753a38578e..600ae5bda79 100644--- a/front/src/modules/activities/timeline/components/TimelineActivityCardFooter.tsx+++ b/front/src/modules/activities/timeline/components/TimelineActivityCardFooter.tsx@@ -4,7 +4,7 @@ import { UserChip } from '@/users/components/UserChip';import { Activity, User } from '~/generated/graphql';import { beautifyExactDate } from '~/utils/date-utils';-type OwnProps = {+type TimelineActivityCardFooterProps = {activity: Pick<Activity, 'id' | 'dueAt'> & {assignee?: Pick<User, 'id' | 'displayName' | 'avatarUrl'> | null;};@@ -26,7 +26,9 @@ const StyledVerticalSeparator = styled.div`height: 24px;`;-export const TimelineActivityCardFooter = ({ activity }: OwnProps) => (+export const TimelineActivityCardFooter = ({+ activity,+}: TimelineActivityCardFooterProps) => (<>{(activity.assignee || activity.dueAt) && (<StyledContainer>diff --git a/front/src/modules/activities/timeline/components/TimelineActivityTitle.tsx b/front/src/modules/activities/timeline/components/TimelineActivityTitle.tsxindex c296cd4c3a7..ceb96fd230f 100644--- a/front/src/modules/activities/timeline/components/TimelineActivityTitle.tsx+++ b/front/src/modules/activities/timeline/components/TimelineActivityTitle.tsx@@ -30,7 +30,7 @@ const StyledCheckboxContainer = styled.div<{ hasCheckbox?: boolean }>`justify-content: center;`;-type OwnProps = {+type TimelineActivityTitleProps = {title: string;completed?: boolean;type: ActivityType;@@ -42,7 +42,7 @@ export const TimelineActivityTitle = ({completed,type,onCompletionChange,-}: OwnProps) => (+}: TimelineActivityTitleProps) => (<StyledTitleContainer>{type === ActivityType.Task && (<StyledCheckboxContainerdiff --git a/front/src/modules/auth/components/Logo.tsx b/front/src/modules/auth/components/Logo.tsxindex 003559a9d9f..e79922864b2 100644--- a/front/src/modules/auth/components/Logo.tsx+++ b/front/src/modules/auth/components/Logo.tsx@@ -2,7 +2,7 @@ import styled from '@emotion/styled';import { getImageAbsoluteURIOrBase64 } from '@/users/utils/getProfilePictureAbsoluteURI';-type Props = React.ComponentProps<'div'> & {+type LogoProps = React.ComponentProps<'div'> & {workspaceLogo?: string | null;};@@ -47,7 +47,7 @@ const StyledMainLogo = styled.div<StyledMainLogoProps>`width: 100%;`;-export const Logo = ({ workspaceLogo, ...props }: Props) => {+export const Logo = ({ workspaceLogo, ...props }: LogoProps) => {if (!workspaceLogo) {return (// eslint-disable-next-line twenty/no-spread-propsdiff --git a/front/src/modules/auth/components/Modal.tsx b/front/src/modules/auth/components/Modal.tsxindex 765b04aa7cb..813ffc0ebac 100644--- a/front/src/modules/auth/components/Modal.tsx+++ b/front/src/modules/auth/components/Modal.tsx@@ -8,9 +8,9 @@ const StyledContent = styled(UIModal.Content)`width: calc(400px - ${({ theme }) => theme.spacing(10 * 2)});`;-type Props = React.ComponentProps<'div'>;+type AuthModalProps = React.ComponentProps<'div'>;-export const AuthModal = ({ children, ...restProps }: Props) => (+export const AuthModal = ({ children, ...restProps }: AuthModalProps) => (// eslint-disable-next-line twenty/no-spread-props<UIModal isOpen={true} {...restProps}><StyledContent>{children}</StyledContent>diff --git a/front/src/modules/auth/components/SubTitle.tsx b/front/src/modules/auth/components/SubTitle.tsxindex 07a5838d4a8..e9f485238de 100644--- a/front/src/modules/auth/components/SubTitle.tsx+++ b/front/src/modules/auth/components/SubTitle.tsx@@ -1,7 +1,7 @@import { JSX, ReactNode } from 'react';import styled from '@emotion/styled';-type OwnProps = {+type SubTitleProps = {children: ReactNode;};@@ -9,6 +9,6 @@ const StyledSubTitle = styled.div`color: ${({ theme }) => theme.font.color.secondary};`;-export const SubTitle = ({ children }: OwnProps): JSX.Element => (+export const SubTitle = ({ children }: SubTitleProps): JSX.Element => (<StyledSubTitle>{children}</StyledSubTitle>);diff --git a/front/src/modules/auth/components/Title.tsx b/front/src/modules/auth/components/Title.tsxindex 4bc01026fd2..9ef55d43d33 100644--- a/front/src/modules/auth/components/Title.tsx+++ b/front/src/modules/auth/components/Title.tsx@@ -3,7 +3,7 @@ import styled from '@emotion/styled';import { AnimatedEaseIn } from '@/ui/utilities/animation/components/AnimatedEaseIn';-type Props = React.PropsWithChildren & {+type TitleProps = React.PropsWithChildren & {animate?: boolean;};@@ -15,7 +15,7 @@ const StyledTitle = styled.div`margin-top: ${({ theme }) => theme.spacing(4)};`;-export const Title = ({ children, animate = false }: Props) => {+export const Title = ({ children, animate = false }: TitleProps) => {if (animate) {return (<StyledTitle>diff --git a/front/src/modules/auth/sign-in-up/components/FooterNote.tsx b/front/src/modules/auth/sign-in-up/components/FooterNote.tsxindex cd41568fbc5..1a61d468573 100644--- a/front/src/modules/auth/sign-in-up/components/FooterNote.tsx+++ b/front/src/modules/auth/sign-in-up/components/FooterNote.tsx@@ -1,7 +1,7 @@import React from 'react';import styled from '@emotion/styled';-type Props = React.ComponentProps<'div'>;+type FooterNoteProps = React.ComponentProps<'div'>;const StyledContainer = styled.div`align-items: center;@@ -11,5 +11,7 @@ const StyledContainer = styled.div`text-align: center;`;-// eslint-disable-next-line twenty/no-spread-props-export const FooterNote = (props: Props) => <StyledContainer {...props} />;+export const FooterNote = (props: FooterNoteProps) => (+ // eslint-disable-next-line twenty/no-spread-props+ <StyledContainer {...props} />+);diff --git a/front/src/modules/command-menu/components/CommandGroup.tsx b/front/src/modules/command-menu/components/CommandGroup.tsxindex 793c17c36a8..c01212a121d 100644--- a/front/src/modules/command-menu/components/CommandGroup.tsx+++ b/front/src/modules/command-menu/components/CommandGroup.tsx@@ -18,12 +18,12 @@ const StyledGroup = styled(Command.Group)`}`;-type OwnProps = {+type CommandGroupProps = {heading: string;children: React.ReactNode | React.ReactNode[];};-export const CommandGroup = ({ heading, children }: OwnProps) => {+export const CommandGroup = ({ heading, children }: CommandGroupProps) => {if (!children || !React.Children.count(children)) {return null;}diff --git a/front/src/modules/companies/components/CompanyChip.tsx b/front/src/modules/companies/components/CompanyChip.tsxindex 98248b0e26b..39016efc675 100644--- a/front/src/modules/companies/components/CompanyChip.tsx+++ b/front/src/modules/companies/components/CompanyChip.tsx@@ -1,6 +1,6 @@import { EntityChip, EntityChipVariant } from '@/ui/chip/components/EntityChip';-type OwnProps = {+type CompanyChipProps = {id: string;name: string;pictureUrl?: string;@@ -12,7 +12,7 @@ export const CompanyChip = ({name,pictureUrl,variant = EntityChipVariant.Regular,-}: OwnProps) => (+}: CompanyChipProps) => (<EntityChipentityId={id}linkToEntity={`/companies/${id}`}diff --git a/front/src/modules/companies/components/CompanyPicker.tsx b/front/src/modules/companies/components/CompanyPicker.tsxindex 45e915647c2..53bf48090be 100644--- a/front/src/modules/companies/components/CompanyPicker.tsx+++ b/front/src/modules/companies/components/CompanyPicker.tsx@@ -7,13 +7,17 @@ import { useRecoilScopedState } from '@/ui/utilities/recoil-scope/hooks/useRecoiimport { useFilteredSearchCompanyQuery } from '../hooks/useFilteredSearchCompanyQuery';-export type OwnProps = {+export type CompanyPickerProps = {companyId: string | null;onSubmit: (newCompanyId: EntityForSelect | null) => void;onCancel?: () => void;};-export const CompanyPicker = ({ companyId, onSubmit, onCancel }: OwnProps) => {+export const CompanyPicker = ({+ companyId,+ onSubmit,+ onCancel,+}: CompanyPickerProps) => {const [relationPickerSearchFilter, setRelationPickerSearchFilter] =useRecoilScopedState(relationPickerSearchFilterScopedState);diff --git a/front/src/modules/companies/components/CompanyProgressPicker.tsx b/front/src/modules/companies/components/CompanyProgressPicker.tsxindex ec5367d226e..4ec9c9a3b42 100644--- a/front/src/modules/companies/components/CompanyProgressPicker.tsx+++ b/front/src/modules/companies/components/CompanyProgressPicker.tsx@@ -16,7 +16,7 @@ import { RecoilScope } from '@/ui/utilities/recoil-scope/components/RecoilScope'import { useFilteredSearchCompanyQuery } from '../hooks/useFilteredSearchCompanyQuery';-export type OwnProps = {+export type CompanyProgressPickerProps = {companyId: string | null;onSubmit: (newCompanyId: EntityForSelect | null,@@ -29,7 +29,7 @@ export const CompanyProgressPicker = ({companyId,onSubmit,onCancel,-}: OwnProps) => {+}: CompanyProgressPickerProps) => {const containerRef = useRef<HTMLDivElement>(null);const { searchFilter, handleSearchFilterChange } = useEntitySelectSearch();diff --git a/front/src/modules/companies/components/CompanyTeam.tsx b/front/src/modules/companies/components/CompanyTeam.tsxindex b531164a5cf..9d31c11a001 100644--- a/front/src/modules/companies/components/CompanyTeam.tsx+++ b/front/src/modules/companies/components/CompanyTeam.tsx@@ -5,7 +5,7 @@ import { Company, useGetPeopleQuery } from '~/generated/graphql';import { AddPersonToCompany } from './AddPersonToCompany';-export type CompanyTeamPropsType = {+export type CompanyTeamProps = {company: Pick<Company, 'id'>;};@@ -42,7 +42,7 @@ const StyledTitle = styled.div`line-height: ${({ theme }) => theme.text.lineHeight.lg};`;-export const CompanyTeam = ({ company }: CompanyTeamPropsType) => {+export const CompanyTeam = ({ company }: CompanyTeamProps) => {const { data } = useGetPeopleQuery({variables: {orderBy: [],diff --git a/front/src/modules/companies/editable-field/components/CompanyNameEditableField.tsx b/front/src/modules/companies/editable-field/components/CompanyNameEditableField.tsxindex 6e5f25056d1..b0e0e19d634 100644--- a/front/src/modules/companies/editable-field/components/CompanyNameEditableField.tsx+++ b/front/src/modules/companies/editable-field/components/CompanyNameEditableField.tsx@@ -5,7 +5,7 @@ import { FieldRecoilScopeContext } from '@/ui/inline-cell/states/recoil-scope-coimport { RecoilScope } from '@/ui/utilities/recoil-scope/components/RecoilScope';import { Company, useUpdateOneCompanyMutation } from '~/generated/graphql';-type OwnProps = {+type CompanyNameEditableFieldProps = {company: Pick<Company, 'id' | 'name'>;};@@ -33,7 +33,9 @@ const StyledEditableTitleInput = styled.input<{width: calc(100% - ${({ theme }) => theme.spacing(2)});`;-export const CompanyNameEditableField = ({ company }: OwnProps) => {+export const CompanyNameEditableField = ({+ company,+}: CompanyNameEditableFieldProps) => {const [internalValue, setInternalValue] = useState(company.name);const [updateCompany] = useUpdateOneCompanyMutation();diff --git a/front/src/modules/people/components/PeoplePicker.tsx b/front/src/modules/people/components/PeoplePicker.tsxindex 9777535fd0b..e27bc79ef5f 100644--- a/front/src/modules/people/components/PeoplePicker.tsx+++ b/front/src/modules/people/components/PeoplePicker.tsx@@ -6,7 +6,7 @@ import { Entity } from '@/ui/input/relation-picker/types/EntityTypeForSelect';import { useRecoilScopedState } from '@/ui/utilities/recoil-scope/hooks/useRecoilScopedState';import { useSearchPeopleQuery } from '~/generated/graphql';-export type OwnProps = {+export type PeoplePickerProps = {personId: string | null;companyId?: string;onSubmit: (newPersonId: PersonForSelect | null) => void;@@ -26,7 +26,7 @@ export const PeoplePicker = ({onCancel,onCreate,excludePersonIds,-}: OwnProps) => {+}: PeoplePickerProps) => {const [relationPickerSearchFilter] = useRecoilScopedState(relationPickerSearchFilterScopedState,);diff --git a/front/src/modules/people/components/PersonChip.tsx b/front/src/modules/people/components/PersonChip.tsxindex 7fe37c0b739..00ebfbfecc2 100644--- a/front/src/modules/people/components/PersonChip.tsx+++ b/front/src/modules/people/components/PersonChip.tsx@@ -1,6 +1,6 @@import { EntityChip, EntityChipVariant } from '@/ui/chip/components/EntityChip';-export type PersonChipPropsType = {+export type PersonChipProps = {id: string;name: string;pictureUrl?: string;@@ -12,7 +12,7 @@ export const PersonChip = ({name,pictureUrl,variant,-}: PersonChipPropsType) => (+}: PersonChipProps) => (<EntityChipentityId={id}linkToEntity={`/person/${id}`}diff --git a/front/src/modules/people/editable-field/components/PeopleFullNameEditableField.tsx b/front/src/modules/people/editable-field/components/PeopleFullNameEditableField.tsxindex 3bf24401a33..4ddcda882c9 100644--- a/front/src/modules/people/editable-field/components/PeopleFullNameEditableField.tsx+++ b/front/src/modules/people/editable-field/components/PeopleFullNameEditableField.tsx@@ -5,11 +5,13 @@ import { EntityTitleDoubleTextInput } from '@/ui/input/components/EntityTitleDouimport { RecoilScope } from '@/ui/utilities/recoil-scope/components/RecoilScope';import { Person, useUpdateOnePersonMutation } from '~/generated/graphql';-type OwnProps = {+type PeopleFullNameEditableFieldProps = {people: Pick<Person, 'id' | 'firstName' | 'lastName'>;};-export const PeopleFullNameEditableField = ({ people }: OwnProps) => {+export const PeopleFullNameEditableField = ({+ people,+}: PeopleFullNameEditableFieldProps) => {const [internalValueFirstName, setInternalValueFirstName] = useState(people.firstName,);diff --git a/front/src/modules/settings/profile/components/NameFields.tsx b/front/src/modules/settings/profile/components/NameFields.tsxindex 28c5ce0efa6..319d4a68a50 100644--- a/front/src/modules/settings/profile/components/NameFields.tsx+++ b/front/src/modules/settings/profile/components/NameFields.tsx@@ -18,7 +18,7 @@ const StyledComboInputContainer = styled.div`}`;-type OwnProps = {+type NameFieldsProps = {autoSave?: boolean;onFirstNameUpdate?: (firstName: string) => void;onLastNameUpdate?: (lastName: string) => void;@@ -28,7 +28,7 @@ export const NameFields = ({autoSave = true,onFirstNameUpdate,onLastNameUpdate,-}: OwnProps) => {+}: NameFieldsProps) => {const currentUser = useRecoilValue(currentUserState);const [firstName, setFirstName] = useState(currentUser?.firstName ?? '');diff --git a/front/src/modules/settings/workspace/components/NameField.tsx b/front/src/modules/settings/workspace/components/NameField.tsxindex 14cba84a301..58a327af0af 100644--- a/front/src/modules/settings/workspace/components/NameField.tsx+++ b/front/src/modules/settings/workspace/components/NameField.tsx@@ -18,12 +18,15 @@ const StyledComboInputContainer = styled.div`}`;-type OwnProps = {+type NameFieldProps = {autoSave?: boolean;onNameUpdate?: (name: string) => void;};-export const NameField = ({ autoSave = true, onNameUpdate }: OwnProps) => {+export const NameField = ({+ autoSave = true,+ onNameUpdate,+}: NameFieldProps) => {const [currentUser] = useRecoilState(currentUserState);const workspace = currentUser?.workspaceMember?.workspace;diff --git a/front/src/modules/spreadsheet-import/components/Heading.tsx b/front/src/modules/spreadsheet-import/components/Heading.tsxindex d35a7e6209f..52c2ad82838 100644--- a/front/src/modules/spreadsheet-import/components/Heading.tsx+++ b/front/src/modules/spreadsheet-import/components/Heading.tsx@@ -1,7 +1,7 @@import React from 'react';import styled from '@emotion/styled';-export type Props = React.ComponentProps<'div'> & {+export type HeadingProps = React.ComponentProps<'div'> & {title: string;description?: string;};@@ -27,7 +27,7 @@ const StyledDescription = styled.span`text-align: center;`;-export const Heading = ({ title, description, ...props }: Props) => (+export const Heading = ({ title, description, ...props }: HeadingProps) => (// eslint-disable-next-line twenty/no-spread-props<StyledContainer {...props}><StyledTitle>{title}</StyledTitle>diff --git a/front/src/modules/spreadsheet-import/components/MatchColumnSelect.tsx b/front/src/modules/spreadsheet-import/components/MatchColumnSelect.tsxindex 1b849fdf3be..4ef0119d757 100644--- a/front/src/modules/spreadsheet-import/components/MatchColumnSelect.tsx+++ b/front/src/modules/spreadsheet-import/components/MatchColumnSelect.tsx@@ -27,7 +27,7 @@ const StyledFloatingDropdown = styled.div`z-index: ${({ theme }) => theme.lastLayerZIndex};`;-interface Props {+interface MatchColumnSelectProps {onChange: (value: ReadonlyDeep<SelectOption> | null) => void;value?: ReadonlyDeep<SelectOption>;options: readonly ReadonlyDeep<SelectOption>[];@@ -40,7 +40,7 @@ export const MatchColumnSelect = ({value,options: initialOptions,placeholder,-}: Props) => {+}: MatchColumnSelectProps) => {const theme = useTheme();const dropdownContainerRef = useRef<HTMLDivElement>(null);diff --git a/front/src/modules/spreadsheet-import/components/ModalWrapper.tsx b/front/src/modules/spreadsheet-import/components/ModalWrapper.tsxindex 5bae1d60356..fb7a1ad1bce 100644--- a/front/src/modules/spreadsheet-import/components/ModalWrapper.tsx+++ b/front/src/modules/spreadsheet-import/components/ModalWrapper.tsx@@ -26,13 +26,17 @@ const StyledRtlLtr = styled.div`flex-direction: column;`;-type Props = {+type ModalWrapperProps = {children: React.ReactNode;isOpen: boolean;onClose: () => void;};-export const ModalWrapper = ({ children, isOpen, onClose }: Props) => {+export const ModalWrapper = ({+ children,+ isOpen,+ onClose,+}: ModalWrapperProps) => {const { rtl } = useSpreadsheetImportInternal();return (diff --git a/front/src/modules/spreadsheet-import/components/Table.tsx b/front/src/modules/spreadsheet-import/components/Table.tsxindex 8971191dfbd..743044b2d9e 100644--- a/front/src/modules/spreadsheet-import/components/Table.tsx+++ b/front/src/modules/spreadsheet-import/components/Table.tsx@@ -106,12 +106,12 @@ const StyledDataGrid = styled(DataGrid)`}` as typeof DataGrid;-type Props<Data> = DataGridProps<Data> & {+type TableProps<Data> = DataGridProps<Data> & {rowHeight?: number;hiddenHeader?: boolean;};-export const Table = <Data,>(props: Props<Data>) => {+export const Table = <Data,>(props: TableProps<Data>) => {const { rtl } = useSpreadsheetImportInternal();return (diff --git a/front/src/modules/spreadsheet-import/provider/components/SpreadsheetImport.tsx b/front/src/modules/spreadsheet-import/provider/components/SpreadsheetImport.tsxindex beeaa2c72c1..71f0bc5f656 100644--- a/front/src/modules/spreadsheet-import/provider/components/SpreadsheetImport.tsx+++ b/front/src/modules/spreadsheet-import/provider/components/SpreadsheetImport.tsx@@ -17,6 +17,7 @@ export const defaultSpreadsheetImportProps: Partial<SpreadsheetOptions<any>> = {} as const;export const SpreadsheetImport = <T extends string>(+ // eslint-disable-next-line twenty/component-props-namingprops: SpreadsheetOptions<T>,) => {return (diff --git a/front/src/modules/spreadsheet-import/steps/components/MatchColumnsStep/MatchColumnsStep.tsx b/front/src/modules/spreadsheet-import/steps/components/MatchColumnsStep/MatchColumnsStep.tsxindex d99e4487ef7..63136e603ac 100644--- a/front/src/modules/spreadsheet-import/steps/components/MatchColumnsStep/MatchColumnsStep.tsx+++ b/front/src/modules/spreadsheet-import/steps/components/MatchColumnsStep/MatchColumnsStep.tsx@@ -44,7 +44,7 @@ const StyledColumn = styled.span`font-weight: ${({ theme }) => theme.font.weight.regular};`;-export type MatchColumnsProps<T extends string> = {+export type MatchColumnsStepProps<T extends string> = {data: RawData[];headerValues: RawData;onContinue: (data: any[], rawData: RawData[], columns: Columns<T>) => void;@@ -111,7 +111,7 @@ export const MatchColumnsStep = <T extends string>({data,headerValues,onContinue,-}: MatchColumnsProps<T>) => {+}: MatchColumnsStepProps<T>) => {const { enqueueDialog } = useDialog();const { enqueueSnackBar } = useSnackBar();const dataExample = data.slice(0, 2);diff --git a/front/src/modules/spreadsheet-import/steps/components/MatchColumnsStep/components/SubMatchingSelect.tsx b/front/src/modules/spreadsheet-import/steps/components/MatchColumnsStep/components/SubMatchingSelect.tsxindex b3c6febeca8..7a4abd135f3 100644--- a/front/src/modules/spreadsheet-import/steps/components/MatchColumnsStep/components/SubMatchingSelect.tsx+++ b/front/src/modules/spreadsheet-import/steps/components/MatchColumnsStep/components/SubMatchingSelect.tsx@@ -24,7 +24,7 @@ const StyledSelectLabel = styled.span`padding-top: ${({ theme }) => theme.spacing(1)};`;-interface Props<T> {+interface SubMatchingSelectProps<T> {option: MatchedOptions<T> | Partial<MatchedOptions<T>>;column: MatchedSelectColumn<T> | MatchedSelectOptionsColumn<T>;onSubChange: (val: T, index: number, option: string) => void;@@ -34,7 +34,7 @@ export const SubMatchingSelect = <T extends string>({option,column,onSubChange,-}: Props<T>) => {+}: SubMatchingSelectProps<T>) => {const { fields } = useSpreadsheetImportInternal<T>();const options = getFieldOptions(fields, column.value) as SelectOption[];const value = options.find((opt) => opt.value === option.value);diff --git a/front/src/modules/spreadsheet-import/steps/components/SelectHeaderStep/SelectHeaderStep.tsx b/front/src/modules/spreadsheet-import/steps/components/SelectHeaderStep/SelectHeaderStep.tsxindex 92581fa9f01..126cfb30b46 100644--- a/front/src/modules/spreadsheet-import/steps/components/SelectHeaderStep/SelectHeaderStep.tsx+++ b/front/src/modules/spreadsheet-import/steps/components/SelectHeaderStep/SelectHeaderStep.tsx@@ -18,12 +18,15 @@ const StyledTableContainer = styled.div`height: 0px;`;-type SelectHeaderProps = {+type SelectHeaderStepProps = {data: RawData[];onContinue: (headerValues: RawData, data: RawData[]) => Promise<void>;};-export const SelectHeaderStep = ({ data, onContinue }: SelectHeaderProps) => {+export const SelectHeaderStep = ({+ data,+ onContinue,+}: SelectHeaderStepProps) => {const [selectedRows, setSelectedRows] = useState<ReadonlySet<number>>(new Set([0]),);diff --git a/front/src/modules/spreadsheet-import/steps/components/SelectHeaderStep/components/SelectColumn.tsx b/front/src/modules/spreadsheet-import/steps/components/SelectHeaderStep/components/SelectColumn.tsxindex f792353a691..ea16b515552 100644--- a/front/src/modules/spreadsheet-import/steps/components/SelectHeaderStep/components/SelectColumn.tsx+++ b/front/src/modules/spreadsheet-import/steps/components/SelectHeaderStep/components/SelectColumn.tsx@@ -5,7 +5,9 @@ import { Radio } from '@/ui/input/components/Radio';const SELECT_COLUMN_KEY = 'select-row';-const SelectFormatter = (props: FormatterProps<unknown>) => {+type SelectFormatterProps = FormatterProps<unknown>;++const SelectFormatter = (props: SelectFormatterProps) => {const [isRowSelected, onRowSelectionChange] = useRowSelection();return (diff --git a/front/src/modules/spreadsheet-import/steps/components/SelectHeaderStep/components/SelectHeaderTable.tsx b/front/src/modules/spreadsheet-import/steps/components/SelectHeaderStep/components/SelectHeaderTable.tsxindex 82f8713c2ac..8f2e06d474a 100644--- a/front/src/modules/spreadsheet-import/steps/components/SelectHeaderStep/components/SelectHeaderTable.tsx+++ b/front/src/modules/spreadsheet-import/steps/components/SelectHeaderStep/components/SelectHeaderTable.tsx@@ -5,7 +5,7 @@ import { RawData } from '@/spreadsheet-import/types';import { generateSelectionColumns } from './SelectColumn';-interface Props {+interface SelectHeaderTableProps {data: RawData[];selectedRows: ReadonlySet<number>;setSelectedRows: (rows: ReadonlySet<number>) => void;@@ -15,7 +15,7 @@ export const SelectHeaderTable = ({data,selectedRows,setSelectedRows,-}: Props) => {+}: SelectHeaderTableProps) => {const columns = useMemo(() => generateSelectionColumns(data), [data]);return (diff --git a/front/src/modules/spreadsheet-import/steps/components/SelectSheetStep/SelectSheetStep.tsx b/front/src/modules/spreadsheet-import/steps/components/SelectSheetStep/SelectSheetStep.tsxindex 644efbcd07b..b07a40ca231 100644--- a/front/src/modules/spreadsheet-import/steps/components/SelectSheetStep/SelectSheetStep.tsx+++ b/front/src/modules/spreadsheet-import/steps/components/SelectSheetStep/SelectSheetStep.tsx@@ -24,7 +24,7 @@ const StyledRadioContainer = styled.div`height: 0px;`;-type SelectSheetProps = {+type SelectSheetStepProps = {sheetNames: string[];onContinue: (sheetName: string) => Promise<void>;};@@ -32,7 +32,7 @@ type SelectSheetProps = {export const SelectSheetStep = ({sheetNames,onContinue,-}: SelectSheetProps) => {+}: SelectSheetStepProps) => {const [isLoading, setIsLoading] = useState(false);const [value, setValue] = useState(sheetNames[0]);diff --git a/front/src/modules/spreadsheet-import/steps/components/UploadFlow.tsx b/front/src/modules/spreadsheet-import/steps/components/UploadFlow.tsxindex 6314d5a8742..ca75a08df90 100644--- a/front/src/modules/spreadsheet-import/steps/components/UploadFlow.tsx+++ b/front/src/modules/spreadsheet-import/steps/components/UploadFlow.tsx@@ -56,11 +56,11 @@ export type StepState =type: StepType.loading;};-interface Props {+interface UploadFlowProps {nextStep: () => void;}-export const UploadFlow = ({ nextStep }: Props) => {+export const UploadFlow = ({ nextStep }: UploadFlowProps) => {const theme = useTheme();const { initialStepState } = useSpreadsheetImportInternal();const [state, setState] = useState<StepState>(diff --git a/front/src/modules/spreadsheet-import/steps/components/UploadStep/UploadStep.tsx b/front/src/modules/spreadsheet-import/steps/components/UploadStep/UploadStep.tsxindex f9a5caf376d..619bde6355d 100644--- a/front/src/modules/spreadsheet-import/steps/components/UploadStep/UploadStep.tsx+++ b/front/src/modules/spreadsheet-import/steps/components/UploadStep/UploadStep.tsx@@ -10,11 +10,11 @@ const StyledContent = styled(Modal.Content)`padding: ${({ theme }) => theme.spacing(6)};`;-type UploadProps = {+type UploadStepProps = {onContinue: (data: WorkBook, file: File) => Promise<void>;};-export const UploadStep = ({ onContinue }: UploadProps) => {+export const UploadStep = ({ onContinue }: UploadStepProps) => {const [isLoading, setIsLoading] = useState(false);const handleOnContinue = useCallback(diff --git a/front/src/modules/spreadsheet-import/steps/components/UploadStep/components/ExampleTable.tsx b/front/src/modules/spreadsheet-import/steps/components/UploadStep/components/ExampleTable.tsxindex bc41de146fa..bbbaab975ae 100644--- a/front/src/modules/spreadsheet-import/steps/components/UploadStep/components/ExampleTable.tsx+++ b/front/src/modules/spreadsheet-import/steps/components/UploadStep/components/ExampleTable.tsx@@ -6,11 +6,13 @@ import { generateExampleRow } from '@/spreadsheet-import/utils/generateExampleRoimport { generateColumns } from './columns';-interface Props<T extends string> {+interface ExampleTableProps<T extends string> {fields: Fields<T>;}-export const ExampleTable = <T extends string>({ fields }: Props<T>) => {+export const ExampleTable = <T extends string>({+ fields,+}: ExampleTableProps<T>) => {const data = useMemo(() => generateExampleRow(fields), [fields]);const columns = useMemo(() => generateColumns(fields), [fields]);diff --git a/front/src/modules/spreadsheet-import/steps/components/ValidationStep/ValidationStep.tsx b/front/src/modules/spreadsheet-import/steps/components/ValidationStep/ValidationStep.tsxindex 1057c750395..6758f119954 100644--- a/front/src/modules/spreadsheet-import/steps/components/ValidationStep/ValidationStep.tsx+++ b/front/src/modules/spreadsheet-import/steps/components/ValidationStep/ValidationStep.tsx@@ -58,7 +58,7 @@ const StyledNoRowsContainer = styled.div`margin-top: ${({ theme }) => theme.spacing(8)};`;-type Props<T extends string> = {+type ValidationStepProps<T extends string> = {initialData: Data<T>[];file: File;onSubmitStart?: () => void;@@ -68,7 +68,7 @@ export const ValidationStep = <T extends string>({initialData,file,onSubmitStart,-}: Props<T>) => {+}: ValidationStepProps<T>) => {const { enqueueDialog } = useDialog();const { fields, onClose, onSubmit, rowHook, tableHook } =useSpreadsheetImportInternal<T>();diff --git a/front/src/modules/spreadsheet-import/utils/getMatchedColumns.ts b/front/src/modules/spreadsheet-import/utils/getMatchedColumns.tsindex 67ae8c024c6..4f95e2d5ef6 100644--- a/front/src/modules/spreadsheet-import/utils/getMatchedColumns.ts+++ b/front/src/modules/spreadsheet-import/utils/getMatchedColumns.ts@@ -3,7 +3,7 @@ import lavenstein from 'js-levenshtein';import {Column,Columns,- MatchColumnsProps,+ MatchColumnsStepProps,} from '@/spreadsheet-import/steps/components/MatchColumnsStep/MatchColumnsStep';import { Field, Fields } from '@/spreadsheet-import/types';@@ -13,7 +13,7 @@ import { setColumn } from './setColumn';export const getMatchedColumns = <T extends string>(columns: Columns<T>,fields: Fields<T>,- data: MatchColumnsProps<T>['data'],+ data: MatchColumnsStepProps<T>['data'],autoMapDistance: number,) =>columns.reduce<Column<T>[]>((arr, column) => {diff --git a/front/src/modules/spreadsheet-import/utils/setColumn.ts b/front/src/modules/spreadsheet-import/utils/setColumn.tsindex 23596cc9bac..0b428321872 100644--- a/front/src/modules/spreadsheet-import/utils/setColumn.ts+++ b/front/src/modules/spreadsheet-import/utils/setColumn.ts@@ -1,7 +1,7 @@import {Column,ColumnType,- MatchColumnsProps,+ MatchColumnsStepProps,} from '@/spreadsheet-import/steps/components/MatchColumnsStep/MatchColumnsStep';import { Field } from '@/spreadsheet-import/types';@@ -10,7 +10,7 @@ import { uniqueEntries } from './uniqueEntries';export const setColumn = <T extends string>(oldColumn: Column<T>,field?: Field<T>,- data?: MatchColumnsProps<T>['data'],+ data?: MatchColumnsStepProps<T>['data'],): Column<T> => {switch (field?.fieldType.type) {case 'select':diff --git a/front/src/modules/spreadsheet-import/utils/uniqueEntries.ts b/front/src/modules/spreadsheet-import/utils/uniqueEntries.tsindex 1ac5ff32e03..276921af98c 100644--- a/front/src/modules/spreadsheet-import/utils/uniqueEntries.ts+++ b/front/src/modules/spreadsheet-import/utils/uniqueEntries.ts@@ -1,12 +1,12 @@import uniqBy from 'lodash/uniqBy';import {- MatchColumnsProps,+ MatchColumnsStepProps,MatchedOptions,} from '@/spreadsheet-import/steps/components/MatchColumnsStep/MatchColumnsStep';export const uniqueEntries = <T extends string>(- data: MatchColumnsProps<T>['data'],+ data: MatchColumnsStepProps<T>['data'],index: number,): Partial<MatchedOptions<T>>[] =>uniqBy(diff --git a/front/src/modules/ui/action-bar/components/ActionBar.tsx b/front/src/modules/ui/action-bar/components/ActionBar.tsxindex 3ab70228f8b..080003d6491 100644--- a/front/src/modules/ui/action-bar/components/ActionBar.tsx+++ b/front/src/modules/ui/action-bar/components/ActionBar.tsx@@ -9,7 +9,7 @@ import { actionBarOpenState } from '../states/actionBarIsOpenState';import { ActionBarItem } from './ActionBarItem';-type OwnProps = {+type ActionBarProps = {selectedIds: string[];};@@ -33,7 +33,7 @@ const StyledContainerActionBar = styled.div`z-index: 1;`;-export const ActionBar = ({ selectedIds }: OwnProps) => {+export const ActionBar = ({ selectedIds }: ActionBarProps) => {const actionBarOpen = useRecoilValue(actionBarOpenState);const contextMenuIsOpen = useRecoilValue(contextMenuIsOpenState);const actionBarEntries = useRecoilValue(actionBarEntriesState);diff --git a/front/src/modules/ui/action-bar/components/ActionBarItem.tsx b/front/src/modules/ui/action-bar/components/ActionBarItem.tsxindex bf012bdcdcd..311cfdff4b9 100644--- a/front/src/modules/ui/action-bar/components/ActionBarItem.tsx+++ b/front/src/modules/ui/action-bar/components/ActionBarItem.tsx@@ -5,7 +5,7 @@ import { IconComponent } from '@/ui/icon/types/IconComponent';import { ActionBarItemAccent } from '../types/ActionBarItemAccent';-type OwnProps = {+type ActionBarItemProps = {Icon: IconComponent;label: string;accent?: ActionBarItemAccent;@@ -44,7 +44,7 @@ export const ActionBarItem = ({Icon,accent = 'standard',onClick,-}: OwnProps) => {+}: ActionBarItemProps) => {const theme = useTheme();return (<StyledButton accent={accent} onClick={onClick}>diff --git a/front/src/modules/ui/board/components/NewButton.tsx b/front/src/modules/ui/board/components/NewButton.tsxindex dcb588806d6..e1d3801264c 100644--- a/front/src/modules/ui/board/components/NewButton.tsx+++ b/front/src/modules/ui/board/components/NewButton.tsx@@ -20,11 +20,11 @@ const StyledButton = styled.button`}`;-type OwnProps = {+type NewButtonProps = {onClick: () => void;};-export const NewButton = ({ onClick }: OwnProps) => {+export const NewButton = ({ onClick }: NewButtonProps) => {const theme = useTheme();return (diff --git a/front/src/modules/ui/checkmark/components/AnimatedCheckmark.tsx b/front/src/modules/ui/checkmark/components/AnimatedCheckmark.tsxindex 8261c9e1035..a36c5231733 100644--- a/front/src/modules/ui/checkmark/components/AnimatedCheckmark.tsx+++ b/front/src/modules/ui/checkmark/components/AnimatedCheckmark.tsx@@ -1,7 +1,9 @@import { useTheme } from '@emotion/react';import { motion } from 'framer-motion';-export type CheckmarkProps = React.ComponentProps<typeof motion.path> & {+export type AnimatedCheckmarkProps = React.ComponentProps<+ typeof motion.path+> & {isAnimating?: boolean;color?: string;duration?: number;@@ -14,7 +16,7 @@ export const AnimatedCheckmark = ({duration = 0.5,size = 28,...restProps-}: CheckmarkProps) => {+}: AnimatedCheckmarkProps) => {const theme = useTheme();return (<svgdiff --git a/front/src/modules/ui/chip/components/Chip.tsx b/front/src/modules/ui/chip/components/Chip.tsxindex c152c991840..92fb211f7b1 100644--- a/front/src/modules/ui/chip/components/Chip.tsx+++ b/front/src/modules/ui/chip/components/Chip.tsx@@ -20,7 +20,7 @@ export enum ChipVariant {Rounded = 'rounded',}-type OwnProps = {+type ChipProps = {size?: ChipSize;disabled?: boolean;clickable?: boolean;@@ -33,7 +33,7 @@ type OwnProps = {className?: string;};-const StyledContainer = styled.div<Partial<OwnProps>>`+const StyledContainer = styled.div<Partial<ChipProps>>`align-items: center;background-color: ${({ theme, variant }) =>@@ -125,7 +125,7 @@ export const Chip = ({accent = ChipAccent.TextPrimary,maxWidth,className,-}: OwnProps) => (+}: ChipProps) => (<StyledContainerdata-testid="chip"clickable={clickable}diff --git a/front/src/modules/ui/chip/components/EntityChip.tsx b/front/src/modules/ui/chip/components/EntityChip.tsxindex 44228df4a52..0b4897aa892 100644--- a/front/src/modules/ui/chip/components/EntityChip.tsx+++ b/front/src/modules/ui/chip/components/EntityChip.tsx@@ -8,7 +8,7 @@ import { isNonEmptyString } from '~/utils/isNonEmptyString';import { Chip, ChipVariant } from './Chip';-type OwnProps = {+type EntityChipProps = {linkToEntity?: string;entityId: string;name: string;@@ -31,7 +31,7 @@ export const EntityChip = ({avatarType = 'rounded',variant = EntityChipVariant.Regular,LeftIcon,-}: OwnProps) => {+}: EntityChipProps) => {const navigate = useNavigate();const theme = useTheme();diff --git a/front/src/modules/ui/context-menu/components/ContextMenu.tsx b/front/src/modules/ui/context-menu/components/ContextMenu.tsxindex 2f1ac07bf8d..e96958a3c9c 100644--- a/front/src/modules/ui/context-menu/components/ContextMenu.tsx+++ b/front/src/modules/ui/context-menu/components/ContextMenu.tsx@@ -14,7 +14,7 @@ import { PositionType } from '../types/PositionType';import { ContextMenuItem } from './ContextMenuItem';-type OwnProps = {+type ContextMenuProps = {selectedIds: string[];};@@ -41,7 +41,7 @@ const StyledContainerContextMenu = styled.div<StyledContainerProps>`z-index: 1;`;-export const ContextMenu = ({ selectedIds }: OwnProps) => {+export const ContextMenu = ({ selectedIds }: ContextMenuProps) => {const contextMenuPosition = useRecoilValue(contextMenuPositionState);const contextMenuIsOpen = useRecoilValue(contextMenuIsOpenState);const contextMenuEntries = useRecoilValue(contextMenuEntriesState);diff --git a/front/src/modules/ui/context-menu/components/ContextMenuItem.tsx b/front/src/modules/ui/context-menu/components/ContextMenuItem.tsxindex cff5c7d3713..159edf8e659 100644--- a/front/src/modules/ui/context-menu/components/ContextMenuItem.tsx+++ b/front/src/modules/ui/context-menu/components/ContextMenuItem.tsx@@ -3,7 +3,7 @@ import { MenuItem } from '@/ui/menu-item/components/MenuItem';import { ContextMenuItemAccent } from '../types/ContextMenuItemAccent';-type OwnProps = {+type ContextMenuItemProps = {Icon: IconComponent;label: string;accent?: ContextMenuItemAccent;@@ -15,6 +15,6 @@ export const ContextMenuItem = ({Icon,accent = 'default',onClick,-}: OwnProps) => (+}: ContextMenuItemProps) => (<MenuItem LeftIcon={Icon} onClick={onClick} accent={accent} text={label} />);diff --git a/front/src/modules/ui/data-table/components/ColumnHeadWithDropdown.tsx b/front/src/modules/ui/data-table/components/ColumnHeadWithDropdown.tsxindex 7464025ef31..e76548e5f42 100644--- a/front/src/modules/ui/data-table/components/ColumnHeadWithDropdown.tsx+++ b/front/src/modules/ui/data-table/components/ColumnHeadWithDropdown.tsx@@ -6,7 +6,7 @@ import { ColumnDefinition } from '../types/ColumnDefinition';import { ColumnHead } from './ColumnHead';import { TableColumnDropdownMenu } from './TableColumnDropdownMenu';-type ColumnHeadProps = {+type ColumnHeadWithDropdownProps = {column: ColumnDefinition<FieldMetadata>;isFirstColumn: boolean;isLastColumn: boolean;@@ -18,7 +18,7 @@ export const ColumnHeadWithDropdown = ({isFirstColumn,isLastColumn,primaryColumnKey,-}: ColumnHeadProps) => {+}: ColumnHeadWithDropdownProps) => {return (<DropdownMenuclickableComponent={<ColumnHead column={column} />}diff --git a/front/src/modules/ui/data-table/components/DataTable.tsx b/front/src/modules/ui/data-table/components/DataTable.tsxindex 2ae7ffff543..fc8361a3558 100644--- a/front/src/modules/ui/data-table/components/DataTable.tsx+++ b/front/src/modules/ui/data-table/components/DataTable.tsx@@ -82,11 +82,11 @@ const StyledTableContainer = styled.div`overflow: auto;`;-type OwnProps = {+type DataTableProps = {updateEntityMutation: (params: any) => void;};-export const DataTable = ({ updateEntityMutation }: OwnProps) => {+export const DataTable = ({ updateEntityMutation }: DataTableProps) => {const tableBodyRef = useRef<HTMLDivElement>(null);const setRowSelectedState = useSetRowSelectedState();diff --git a/front/src/modules/ui/data-table/components/TableColumnDropdownMenu.tsx b/front/src/modules/ui/data-table/components/TableColumnDropdownMenu.tsxindex 8d7f0a5c7c2..812730dcb28 100644--- a/front/src/modules/ui/data-table/components/TableColumnDropdownMenu.tsx+++ b/front/src/modules/ui/data-table/components/TableColumnDropdownMenu.tsx@@ -9,19 +9,19 @@ import { ColumnHeadDropdownId } from '../constants/ColumnHeadDropdownId';import { useTableColumns } from '../hooks/useTableColumns';import { ColumnDefinition } from '../types/ColumnDefinition';-export type DataTableHeaderOptionsProps = {+export type DataTableColumnDropdownMenuProps = {column: ColumnDefinition<FieldMetadata>;isFirstColumn: boolean;isLastColumn: boolean;primaryColumnKey: string;};-export const TableColumnDropdownMenu = ({+export const DataTableColumnDropdownMenu = ({column,isFirstColumn,isLastColumn,primaryColumnKey,-}: DataTableHeaderOptionsProps) => {+}: DataTableColumnDropdownMenuProps) => {const { handleColumnVisibilityChange, handleMoveTableColumn } =useTableColumns();diff --git a/front/src/modules/ui/data-table/table-cell/components/TableCellContainer.tsx b/front/src/modules/ui/data-table/table-cell/components/TableCellContainer.tsxindex fa7fb1bf79d..b3910b44bf2 100644--- a/front/src/modules/ui/data-table/table-cell/components/TableCellContainer.tsx+++ b/front/src/modules/ui/data-table/table-cell/components/TableCellContainer.tsx@@ -29,7 +29,7 @@ const StyledCellBaseContainer = styled.div`user-select: none;`;-export type EditableCellProps = {+export type TableCellContainerProps = {editModeContent: ReactElement;nonEditModeContent: ReactElement;editModeHorizontalAlign?: 'left' | 'right';@@ -55,7 +55,7 @@ export const TableCellContainer = ({transparent = false,maxContentWidth,buttonIcon,-}: EditableCellProps) => {+}: TableCellContainerProps) => {const { isCurrentTableCellInEditMode } = useCurrentTableCellEditMode();const [isHovered, setIsHovered] = useState(false);diff --git a/front/src/modules/ui/data-table/table-cell/components/TableCellEditMode.tsx b/front/src/modules/ui/data-table/table-cell/components/TableCellEditMode.tsxindex 4fae82c89df..5abaae3cd5a 100644--- a/front/src/modules/ui/data-table/table-cell/components/TableCellEditMode.tsx+++ b/front/src/modules/ui/data-table/table-cell/components/TableCellEditMode.tsx@@ -3,7 +3,7 @@ import styled from '@emotion/styled';import { overlayBackground } from '@/ui/theme/constants/effects';-const StyledEditableCellEditModeContainer = styled.div<EditableCellEditModeProps>`+const StyledEditableCellEditModeContainer = styled.div<TableCellEditModeProps>`align-items: center;border: ${({ transparent, theme }) =>transparent ? 'none' : `1px solid ${theme.border.color.light}`};@@ -25,7 +25,7 @@ const StyledEditableCellEditModeContainer = styled.div<EditableCellEditModePropsz-index: 1;`;-export type EditableCellEditModeProps = {+export type TableCellEditModeProps = {children: ReactElement;transparent?: boolean;maxContentWidth?: number;@@ -40,7 +40,7 @@ export const TableCellEditMode = ({children,transparent = false,maxContentWidth,-}: EditableCellEditModeProps) => (+}: TableCellEditModeProps) => (<StyledEditableCellEditModeContainermaxContentWidth={maxContentWidth}transparent={transparent}diff --git a/front/src/modules/ui/data-table/table-cell/components/TableCellSoftFocusMode.tsx b/front/src/modules/ui/data-table/table-cell/components/TableCellSoftFocusMode.tsxindex 883d9bfa586..af93ab85a48 100644--- a/front/src/modules/ui/data-table/table-cell/components/TableCellSoftFocusMode.tsx+++ b/front/src/modules/ui/data-table/table-cell/components/TableCellSoftFocusMode.tsx@@ -9,9 +9,11 @@ import { useTableCell } from '../hooks/useTableCell';import { TableCellDisplayContainer } from './TableCellDisplayContainer';-type OwnProps = PropsWithChildren<unknown>;+type TableCellSoftFocusModeProps = PropsWithChildren<unknown>;-export const TableCellSoftFocusMode = ({ children }: OwnProps) => {+export const TableCellSoftFocusMode = ({+ children,+}: TableCellSoftFocusModeProps) => {const { openTableCell } = useTableCell();const isFieldInputOnly = useIsFieldInputOnly();diff --git a/front/src/modules/ui/field/components/FieldInput.tsx b/front/src/modules/ui/field/components/FieldInput.tsxindex b7f9c5956c7..c1ce74807c2 100644--- a/front/src/modules/ui/field/components/FieldInput.tsx+++ b/front/src/modules/ui/field/components/FieldInput.tsx@@ -31,7 +31,7 @@ import { isFieldRelation } from '../types/guards/isFieldRelation';import { isFieldText } from '../types/guards/isFieldText';import { isFieldURL } from '../types/guards/isFieldURL';-type OwnProps = {+type FieldInputProps = {onSubmit?: FieldInputEvent;onCancel?: () => void;onClickOutside?: FieldInputEvent;@@ -49,7 +49,7 @@ export const FieldInput = ({onShiftTab,onTab,onClickOutside,-}: OwnProps) => {+}: FieldInputProps) => {const { fieldDefinition } = useContext(FieldContext);return (diff --git a/front/src/modules/ui/field/meta-types/display/content-display/components/ChipDisplay.tsx b/front/src/modules/ui/field/meta-types/display/content-display/components/ChipDisplay.tsxindex edde4e4709c..a1b8eb67804 100644--- a/front/src/modules/ui/field/meta-types/display/content-display/components/ChipDisplay.tsx+++ b/front/src/modules/ui/field/meta-types/display/content-display/components/ChipDisplay.tsx@@ -4,7 +4,7 @@ import { Entity } from '@/ui/input/relation-picker/types/EntityTypeForSelect';import { getLogoUrlFromDomainName } from '~/utils';import { logError } from '~/utils/logError';-type OwnProps = {+type ChipDisplayProps = {entityType: Entity;displayName: string;entityId: string | null;@@ -16,7 +16,7 @@ export const ChipDisplay = ({displayName,entityId,avatarUrlValue,-}: OwnProps) => {+}: ChipDisplayProps) => {switch (entityType) {case Entity.Company: {return (diff --git a/front/src/modules/ui/field/meta-types/display/content-display/components/DateDisplay.tsx b/front/src/modules/ui/field/meta-types/display/content-display/components/DateDisplay.tsxindex d6aab3c061c..054c0213b61 100644--- a/front/src/modules/ui/field/meta-types/display/content-display/components/DateDisplay.tsx+++ b/front/src/modules/ui/field/meta-types/display/content-display/components/DateDisplay.tsx@@ -1,9 +1,9 @@import { formatToHumanReadableDate } from '~/utils';-type OwnProps = {+type DateDisplayProps = {value: Date | string | null | undefined;};-export const DateDisplay = ({ value }: OwnProps) => (+export const DateDisplay = ({ value }: DateDisplayProps) => (<div>{value && formatToHumanReadableDate(value)}</div>);diff --git a/front/src/modules/ui/field/meta-types/display/content-display/components/EmailDisplay.tsx b/front/src/modules/ui/field/meta-types/display/content-display/components/EmailDisplay.tsxindex 9582c3330a1..34f8a30e7cf 100644--- a/front/src/modules/ui/field/meta-types/display/content-display/components/EmailDisplay.tsx+++ b/front/src/modules/ui/field/meta-types/display/content-display/components/EmailDisplay.tsx@@ -7,11 +7,11 @@ const validateEmail = (email: string) => {return emailPattern.test(email.trim());};-type OwnProps = {+type EmailDisplayProps = {value: string | null;};-export const EmailDisplay = ({ value }: OwnProps) =>+export const EmailDisplay = ({ value }: EmailDisplayProps) =>value && validateEmail(value) ? (<ContactLinkhref={`mailto:${value}`}diff --git a/front/src/modules/ui/field/meta-types/display/content-display/components/MoneyDisplay.tsx b/front/src/modules/ui/field/meta-types/display/content-display/components/MoneyDisplay.tsxindex c6b0511541e..d39e1009221 100644--- a/front/src/modules/ui/field/meta-types/display/content-display/components/MoneyDisplay.tsx+++ b/front/src/modules/ui/field/meta-types/display/content-display/components/MoneyDisplay.tsx@@ -9,11 +9,11 @@ const StyledTextInputDisplay = styled.div`width: 100%;`;-type OwnProps = {+type MoneyDisplayProps = {value: number | null;};-export const MoneyDisplay = ({ value }: OwnProps) => (+export const MoneyDisplay = ({ value }: MoneyDisplayProps) => (<StyledTextInputDisplay>{value ? `$${formatNumber(value)}` : ''}</StyledTextInputDisplay>diff --git a/front/src/modules/ui/field/meta-types/display/content-display/components/NumberDisplay.tsx b/front/src/modules/ui/field/meta-types/display/content-display/components/NumberDisplay.tsxindex 6190f25bd83..bca6d61b76b 100644--- a/front/src/modules/ui/field/meta-types/display/content-display/components/NumberDisplay.tsx+++ b/front/src/modules/ui/field/meta-types/display/content-display/components/NumberDisplay.tsx@@ -9,11 +9,11 @@ const StyledNumberDisplay = styled.div`width: 100%;`;-type OwnProps = {+type NumberDisplayProps = {value: string | number | null;};-export const NumberDisplay = ({ value }: OwnProps) => (+export const NumberDisplay = ({ value }: NumberDisplayProps) => (<StyledNumberDisplay>{value && formatNumber(Number(value))}</StyledNumberDisplay>diff --git a/front/src/modules/ui/field/meta-types/display/content-display/components/PhoneDisplay.tsx b/front/src/modules/ui/field/meta-types/display/content-display/components/PhoneDisplay.tsxindex d7bc966c65e..f593ff2c258 100644--- a/front/src/modules/ui/field/meta-types/display/content-display/components/PhoneDisplay.tsx+++ b/front/src/modules/ui/field/meta-types/display/content-display/components/PhoneDisplay.tsx@@ -3,11 +3,11 @@ import { isValidPhoneNumber, parsePhoneNumber } from 'libphonenumber-js';import { ContactLink } from '@/ui/link/components/ContactLink';-type OwnProps = {+type PhoneDisplayProps = {value: string | null;};-export const PhoneDisplay = ({ value }: OwnProps) =>+export const PhoneDisplay = ({ value }: PhoneDisplayProps) =>value && isValidPhoneNumber(value) ? (<ContactLinkhref={parsePhoneNumber(value, 'FR')?.getURI()}diff --git a/front/src/modules/ui/field/meta-types/display/content-display/components/TextDisplay.tsx b/front/src/modules/ui/field/meta-types/display/content-display/components/TextDisplay.tsxindex cccceff9522..9229b84aa69 100644--- a/front/src/modules/ui/field/meta-types/display/content-display/components/TextDisplay.tsx+++ b/front/src/modules/ui/field/meta-types/display/content-display/components/TextDisplay.tsx@@ -7,10 +7,10 @@ const StyledTextInputDisplay = styled.div`width: 100%;`;-type OwnProps = {+type TextDisplayProps = {text: string;};-export const TextDisplay = ({ text }: OwnProps) => (+export const TextDisplay = ({ text }: TextDisplayProps) => (<StyledTextInputDisplay>{text}</StyledTextInputDisplay>);diff --git a/front/src/modules/ui/field/meta-types/display/content-display/components/URLDisplay.tsx b/front/src/modules/ui/field/meta-types/display/content-display/components/URLDisplay.tsxindex 31b55d5f6b2..cf9937882a1 100644--- a/front/src/modules/ui/field/meta-types/display/content-display/components/URLDisplay.tsx+++ b/front/src/modules/ui/field/meta-types/display/content-display/components/URLDisplay.tsx@@ -14,7 +14,7 @@ const StyledRawLink = styled(RoundedLink)`}`;-type OwnProps = {+type URLDisplayProps = {value: string | null;};@@ -33,7 +33,7 @@ const checkUrlType = (url: string) => {return LinkType.Url;};-export const URLDisplay = ({ value }: OwnProps) => {+export const URLDisplay = ({ value }: URLDisplayProps) => {const handleClick = (event: MouseEvent<HTMLElement>) => {event.stopPropagation();};diff --git a/front/src/modules/ui/field/meta-types/input/components/BooleanFieldInput.tsx b/front/src/modules/ui/field/meta-types/input/components/BooleanFieldInput.tsxindex e9810dd2031..9b6a48e51c9 100644--- a/front/src/modules/ui/field/meta-types/input/components/BooleanFieldInput.tsx+++ b/front/src/modules/ui/field/meta-types/input/components/BooleanFieldInput.tsx@@ -5,11 +5,11 @@ import { useBooleanField } from '../../hooks/useBooleanField';import { FieldInputEvent } from './DateFieldInput';-type OwnProps = {+type BooleanFieldInputProps = {onSubmit?: FieldInputEvent;};-export const BooleanFieldInput = ({ onSubmit }: OwnProps) => {+export const BooleanFieldInput = ({ onSubmit }: BooleanFieldInputProps) => {const { fieldValue } = useBooleanField();const persistField = usePersistField();diff --git a/front/src/modules/ui/field/meta-types/input/components/ChipFieldInput.tsx b/front/src/modules/ui/field/meta-types/input/components/ChipFieldInput.tsxindex 38b6335116b..d0960f6ad4d 100644--- a/front/src/modules/ui/field/meta-types/input/components/ChipFieldInput.tsx+++ b/front/src/modules/ui/field/meta-types/input/components/ChipFieldInput.tsx@@ -5,7 +5,7 @@ import { useChipField } from '../../hooks/useChipField';import { FieldInputEvent } from './DateFieldInput';-type OwnProps = {+type ChipFieldInputProps = {onClickOutside?: FieldInputEvent;onEnter?: FieldInputEvent;onEscape?: FieldInputEvent;@@ -19,7 +19,7 @@ export const ChipFieldInput = ({onClickOutside,onTab,onShiftTab,-}: OwnProps) => {+}: ChipFieldInputProps) => {const { fieldDefinition, contentFieldValue, hotkeyScope } = useChipField();const persistField = usePersistField();diff --git a/front/src/modules/ui/field/meta-types/input/components/DateFieldInput.tsx b/front/src/modules/ui/field/meta-types/input/components/DateFieldInput.tsxindex 10f47f9b1ae..0a96f2fdfe4 100644--- a/front/src/modules/ui/field/meta-types/input/components/DateFieldInput.tsx+++ b/front/src/modules/ui/field/meta-types/input/components/DateFieldInput.tsx@@ -6,7 +6,7 @@ import { useDateField } from '../../hooks/useDateField';export type FieldInputEvent = (persist: () => void) => void;-type OwnProps = {+type DateFieldInputProps = {onClickOutside?: FieldInputEvent;onEnter?: FieldInputEvent;onEscape?: FieldInputEvent;@@ -18,7 +18,7 @@ export const DateFieldInput = ({onEnter,onEscape,onClickOutside,-}: OwnProps) => {+}: DateFieldInputProps) => {const { fieldValue, hotkeyScope } = useDateField();const persistField = usePersistField();diff --git a/front/src/modules/ui/field/meta-types/input/components/DoubleTextChipFieldInput.tsx b/front/src/modules/ui/field/meta-types/input/components/DoubleTextChipFieldInput.tsxindex fdafe6ab659..c739f0f9d84 100644--- a/front/src/modules/ui/field/meta-types/input/components/DoubleTextChipFieldInput.tsx+++ b/front/src/modules/ui/field/meta-types/input/components/DoubleTextChipFieldInput.tsx@@ -6,7 +6,7 @@ import { useDoubleTextChipField } from '../../hooks/useDoubleTextChipField';import { FieldInputEvent } from './DateFieldInput';-type OwnProps = {+type DoubleTextChipFieldInputProps = {onClickOutside?: FieldInputEvent;onEnter?: FieldInputEvent;onEscape?: FieldInputEvent;@@ -20,7 +20,7 @@ export const DoubleTextChipFieldInput = ({onClickOutside,onTab,onShiftTab,-}: OwnProps) => {+}: DoubleTextChipFieldInputProps) => {const { fieldDefinition, firstValue, secondValue, hotkeyScope } =useDoubleTextChipField();diff --git a/front/src/modules/ui/field/meta-types/input/components/DoubleTextFieldInput.tsx b/front/src/modules/ui/field/meta-types/input/components/DoubleTextFieldInput.tsxindex 5538255e5bb..a3931e32bf4 100644--- a/front/src/modules/ui/field/meta-types/input/components/DoubleTextFieldInput.tsx+++ b/front/src/modules/ui/field/meta-types/input/components/DoubleTextFieldInput.tsx@@ -6,7 +6,7 @@ import { useDoubleTextField } from '../../hooks/useDoubleTextField';import { FieldInputEvent } from './DateFieldInput';-type OwnProps = {+type DoubleTextFieldInputProps = {onClickOutside?: FieldInputEvent;onEnter?: FieldInputEvent;onEscape?: FieldInputEvent;@@ -20,7 +20,7 @@ export const DoubleTextFieldInput = ({onClickOutside,onTab,onShiftTab,-}: OwnProps) => {+}: DoubleTextFieldInputProps) => {const { fieldDefinition, firstValue, secondValue, hotkeyScope } =useDoubleTextField();diff --git a/front/src/modules/ui/field/meta-types/input/components/EmailFieldInput.tsx b/front/src/modules/ui/field/meta-types/input/components/EmailFieldInput.tsxindex 9a90b67f0be..a1bca9c1636 100644--- a/front/src/modules/ui/field/meta-types/input/components/EmailFieldInput.tsx+++ b/front/src/modules/ui/field/meta-types/input/components/EmailFieldInput.tsx@@ -5,7 +5,7 @@ import { useEmailField } from '../../hooks/useEmailField';import { FieldInputEvent } from './DateFieldInput';-type OwnProps = {+type EmailFieldInputProps = {onClickOutside?: FieldInputEvent;onEnter?: FieldInputEvent;onEscape?: FieldInputEvent;@@ -19,7 +19,7 @@ export const EmailFieldInput = ({onClickOutside,onTab,onShiftTab,-}: OwnProps) => {+}: EmailFieldInputProps) => {const { fieldDefinition, fieldValue, hotkeyScope } = useEmailField();const persistField = usePersistField();diff --git a/front/src/modules/ui/field/meta-types/input/components/MoneyFieldInput.tsx b/front/src/modules/ui/field/meta-types/input/components/MoneyFieldInput.tsxindex 321108d26b6..aa77fda91b4 100644--- a/front/src/modules/ui/field/meta-types/input/components/MoneyFieldInput.tsx+++ b/front/src/modules/ui/field/meta-types/input/components/MoneyFieldInput.tsx@@ -4,7 +4,7 @@ import { useMoneyField } from '../../hooks/useMoneyField';export type FieldInputEvent = (persist: () => void) => void;-type OwnProps = {+type MoneyFieldInputProps = {onClickOutside?: FieldInputEvent;onEnter?: FieldInputEvent;onEscape?: FieldInputEvent;@@ -18,7 +18,7 @@ export const MoneyFieldInput = ({onClickOutside,onTab,onShiftTab,-}: OwnProps) => {+}: MoneyFieldInputProps) => {const { fieldDefinition, fieldValue, hotkeyScope, persistMoneyField } =useMoneyField();diff --git a/front/src/modules/ui/field/meta-types/input/components/NumberFieldInput.tsx b/front/src/modules/ui/field/meta-types/input/components/NumberFieldInput.tsxindex b7f6ec3317f..840b58c4aad 100644--- a/front/src/modules/ui/field/meta-types/input/components/NumberFieldInput.tsx+++ b/front/src/modules/ui/field/meta-types/input/components/NumberFieldInput.tsx@@ -4,7 +4,7 @@ import { useNumberField } from '../../hooks/useNumberField';export type FieldInputEvent = (persist: () => void) => void;-type OwnProps = {+type NumberFieldInputProps = {onClickOutside?: FieldInputEvent;onEnter?: FieldInputEvent;onEscape?: FieldInputEvent;@@ -18,7 +18,7 @@ export const NumberFieldInput = ({onClickOutside,onTab,onShiftTab,-}: OwnProps) => {+}: NumberFieldInputProps) => {const { fieldDefinition, fieldValue, hotkeyScope, persistNumberField } =useNumberField();diff --git a/front/src/modules/ui/field/meta-types/input/components/PhoneFieldInput.tsx b/front/src/modules/ui/field/meta-types/input/components/PhoneFieldInput.tsxindex 772b19617ed..ecc157c46b4 100644--- a/front/src/modules/ui/field/meta-types/input/components/PhoneFieldInput.tsx+++ b/front/src/modules/ui/field/meta-types/input/components/PhoneFieldInput.tsx@@ -4,7 +4,7 @@ import { usePhoneField } from '../../hooks/usePhoneField';import { FieldInputEvent } from './DateFieldInput';-type OwnProps = {+type PhoneFieldInputProps = {onClickOutside?: FieldInputEvent;onEnter?: FieldInputEvent;onEscape?: FieldInputEvent;@@ -18,7 +18,7 @@ export const PhoneFieldInput = ({onClickOutside,onTab,onShiftTab,-}: OwnProps) => {+}: PhoneFieldInputProps) => {const { fieldDefinition, fieldValue, hotkeyScope, persistPhoneField } =usePhoneField();diff --git a/front/src/modules/ui/field/meta-types/input/components/ProbabilityFieldInput.tsx b/front/src/modules/ui/field/meta-types/input/components/ProbabilityFieldInput.tsxindex 996f87d03a6..b8601b27604 100644--- a/front/src/modules/ui/field/meta-types/input/components/ProbabilityFieldInput.tsx+++ b/front/src/modules/ui/field/meta-types/input/components/ProbabilityFieldInput.tsx@@ -5,11 +5,13 @@ import { useProbabilityField } from '../../hooks/useProbabilityField';import { FieldInputEvent } from './DateFieldInput';-type OwnProps = {+type ProbabilityFieldInputProps = {onSubmit?: FieldInputEvent;};-export const ProbabilityFieldInput = ({ onSubmit }: OwnProps) => {+export const ProbabilityFieldInput = ({+ onSubmit,+}: ProbabilityFieldInputProps) => {const { probabilityIndex } = useProbabilityField();const persistField = usePersistField();diff --git a/front/src/modules/ui/field/meta-types/input/components/RelationFieldInput.tsx b/front/src/modules/ui/field/meta-types/input/components/RelationFieldInput.tsxindex 5998b7f8d1d..4404e1f81c3 100644--- a/front/src/modules/ui/field/meta-types/input/components/RelationFieldInput.tsx+++ b/front/src/modules/ui/field/meta-types/input/components/RelationFieldInput.tsx@@ -17,12 +17,15 @@ const StyledRelationPickerContainer = styled.div`top: -8px;`;-type OwnProps = {+type RelationFieldInputProps = {onSubmit?: FieldInputEvent;onCancel?: () => void;};-export const RelationFieldInput = ({ onSubmit, onCancel }: OwnProps) => {+export const RelationFieldInput = ({+ onSubmit,+ onCancel,+}: RelationFieldInputProps) => {const { fieldDefinition, fieldValue } = useRelationField();const persistField = usePersistField();diff --git a/front/src/modules/ui/field/meta-types/input/components/TextFieldInput.tsx b/front/src/modules/ui/field/meta-types/input/components/TextFieldInput.tsxindex 7372664250c..3edd43660cd 100644--- a/front/src/modules/ui/field/meta-types/input/components/TextFieldInput.tsx+++ b/front/src/modules/ui/field/meta-types/input/components/TextFieldInput.tsx@@ -5,7 +5,7 @@ import { useTextField } from '../../hooks/useTextField';import { FieldInputEvent } from './DateFieldInput';-type OwnProps = {+type TextFieldInputProps = {onClickOutside?: FieldInputEvent;onEnter?: FieldInputEvent;onEscape?: FieldInputEvent;@@ -19,7 +19,7 @@ export const TextFieldInput = ({onClickOutside,onTab,onShiftTab,-}: OwnProps) => {+}: TextFieldInputProps) => {const { fieldDefinition, fieldValue, hotkeyScope } = useTextField();const persistField = usePersistField();diff --git a/front/src/modules/ui/field/meta-types/input/components/URLFieldInput.tsx b/front/src/modules/ui/field/meta-types/input/components/URLFieldInput.tsxindex 3ad605ababe..172b1eedd34 100644--- a/front/src/modules/ui/field/meta-types/input/components/URLFieldInput.tsx+++ b/front/src/modules/ui/field/meta-types/input/components/URLFieldInput.tsx@@ -4,7 +4,7 @@ import { useURLField } from '../../hooks/useURLField';import { FieldInputEvent } from './DateFieldInput';-type OwnProps = {+type URLFieldInputProps = {onClickOutside?: FieldInputEvent;onEnter?: FieldInputEvent;onEscape?: FieldInputEvent;@@ -18,7 +18,7 @@ export const URLFieldInput = ({onClickOutside,onTab,onShiftTab,-}: OwnProps) => {+}: URLFieldInputProps) => {const { fieldDefinition, fieldValue, hotkeyScope, persistURLField } =useURLField();diff --git a/front/src/modules/ui/icon/components/IconAddressBook.tsx b/front/src/modules/ui/icon/components/IconAddressBook.tsxindex f5beb634ef8..03d486b2da2 100644--- a/front/src/modules/ui/icon/components/IconAddressBook.tsx+++ b/front/src/modules/ui/icon/components/IconAddressBook.tsx@@ -2,7 +2,9 @@ import { TablerIconsProps } from '@/ui/icon';import { ReactComponent as IconAddressBookRaw } from '../assets/address-book.svg';-export const IconAddressBook = (props: TablerIconsProps): JSX.Element => {+type IconAddressBookProps = TablerIconsProps;++export const IconAddressBook = (props: IconAddressBookProps): JSX.Element => {const size = props.size ?? 24;const stroke = props.stroke ?? 2;diff --git a/front/src/modules/ui/inline-cell/components/InlineCellContainer.tsx b/front/src/modules/ui/inline-cell/components/InlineCellContainer.tsxindex f579d517622..af0970dc503 100644--- a/front/src/modules/ui/inline-cell/components/InlineCellContainer.tsx+++ b/front/src/modules/ui/inline-cell/components/InlineCellContainer.tsx@@ -39,7 +39,9 @@ const StyledValueContainer = styled.div`max-width: calc(100% - ${({ theme }) => theme.spacing(4)});`;-const StyledLabel = styled.div<Pick<OwnProps, 'labelFixedWidth'>>`+const StyledLabel = styled.div<+ Pick<InlineCellContainerProps, 'labelFixedWidth'>+>`align-items: center;width: ${({ labelFixedWidth }) =>@@ -72,7 +74,7 @@ const StyledInlineCellBaseContainer = styled.div`width: 100%;`;-type OwnProps = {+type InlineCellContainerProps = {IconLabel?: IconComponent;label?: string;labelFixedWidth?: number;@@ -98,7 +100,7 @@ export const InlineCellContainer = ({editModeContentOnly,isDisplayModeFixHeight,disableHoverEffect,-}: OwnProps) => {+}: InlineCellContainerProps) => {const [isHovered, setIsHovered] = useState(false);const handleContainerMouseEnter = () => {diff --git a/front/src/modules/ui/inline-cell/components/InlineCellDisplayMode.tsx b/front/src/modules/ui/inline-cell/components/InlineCellDisplayMode.tsxindex c9c46992249..941b2654da8 100644--- a/front/src/modules/ui/inline-cell/components/InlineCellDisplayMode.tsx+++ b/front/src/modules/ui/inline-cell/components/InlineCellDisplayMode.tsx@@ -3,7 +3,7 @@ import styled from '@emotion/styled';const StyledInlineCellNormalModeOuterContainer = styled.div<Pick<- OwnProps,+ InlineCellDisplayModeProps,| 'isDisplayModeContentEmpty'| 'disableHoverEffect'| 'isDisplayModeFixHeight'@@ -50,7 +50,7 @@ const StyledEmptyField = styled.div`color: ${({ theme }) => theme.font.color.light};`;-type OwnProps = {+type InlineCellDisplayModeProps = {isDisplayModeContentEmpty?: boolean;disableHoverEffect?: boolean;isDisplayModeFixHeight?: boolean;@@ -63,7 +63,7 @@ export const InlineCellDisplayMode = ({disableHoverEffect,isDisplayModeFixHeight,isHovered,-}: React.PropsWithChildren<OwnProps>) => (+}: React.PropsWithChildren<InlineCellDisplayModeProps>) => (<StyledInlineCellNormalModeOuterContainerisDisplayModeContentEmpty={isDisplayModeContentEmpty}disableHoverEffect={disableHoverEffect}diff --git a/front/src/modules/ui/inline-cell/components/InlineCellEditMode.tsx b/front/src/modules/ui/inline-cell/components/InlineCellEditMode.tsxindex 4986a7c4e77..90900054197 100644--- a/front/src/modules/ui/inline-cell/components/InlineCellEditMode.tsx+++ b/front/src/modules/ui/inline-cell/components/InlineCellEditMode.tsx@@ -1,6 +1,6 @@import styled from '@emotion/styled';-const StyledInlineCellEditModeContainer = styled.div<OwnProps>`+const StyledInlineCellEditModeContainer = styled.div<InlineCellEditModeProps>`align-items: center;display: flex;@@ -26,11 +26,11 @@ const StyledInlineCellInput = styled.div`z-index: 10;`;-type OwnProps = {+type InlineCellEditModeProps = {children: React.ReactNode;};-export const InlineCellEditMode = ({ children }: OwnProps) => (+export const InlineCellEditMode = ({ children }: InlineCellEditModeProps) => (<StyledInlineCellEditModeContainer data-testid="inline-cell-edit-mode-container"><StyledInlineCellInput>{children}</StyledInlineCellInput></StyledInlineCellEditModeContainer>diff --git a/front/src/modules/ui/input/components/AutosizeTextInput.tsx b/front/src/modules/ui/input/components/AutosizeTextInput.tsxindex cf758591a03..64638902e97 100644--- a/front/src/modules/ui/input/components/AutosizeTextInput.tsx+++ b/front/src/modules/ui/input/components/AutosizeTextInput.tsx@@ -17,7 +17,7 @@ export enum AutosizeTextInputVariant {Button = 'button',}-type OwnProps = {+type AutosizeTextInputProps = {onValidate?: (text: string) => void;minRows?: number;placeholder?: string;@@ -114,7 +114,7 @@ export const AutosizeTextInput = ({onFocus,variant = AutosizeTextInputVariant.Icon,buttonTitle,-}: OwnProps) => {+}: AutosizeTextInputProps) => {const [isFocused, setIsFocused] = useState(false);const [isHidden, setIsHidden] = useState(variant === AutosizeTextInputVariant.Button,diff --git a/front/src/modules/ui/input/components/BooleanInput.tsx b/front/src/modules/ui/input/components/BooleanInput.tsxindex 8d12471bfe4..0b32b9bdd72 100644--- a/front/src/modules/ui/input/components/BooleanInput.tsx+++ b/front/src/modules/ui/input/components/BooleanInput.tsx@@ -17,12 +17,12 @@ const StyledEditableBooleanFieldValue = styled.div`margin-left: ${({ theme }) => theme.spacing(1)};`;-type OwnProps = {+type BooleanInputProps = {value: boolean;onToggle?: (newValue: boolean) => void;};-export const BooleanInput = ({ value, onToggle }: OwnProps) => {+export const BooleanInput = ({ value, onToggle }: BooleanInputProps) => {const [internalValue, setInternalValue] = useState(value);useEffect(() => {diff --git a/front/src/modules/ui/input/components/Checkbox.tsx b/front/src/modules/ui/input/components/Checkbox.tsxindex 08cd7c9f16d..31734bf45aa 100644--- a/front/src/modules/ui/input/components/Checkbox.tsx+++ b/front/src/modules/ui/input/components/Checkbox.tsx@@ -19,7 +19,7 @@ export enum CheckboxSize {Small = 'small',}-type OwnProps = {+type CheckboxProps = {checked: boolean;indeterminate?: boolean;onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;@@ -116,7 +116,7 @@ export const Checkbox = ({variant = CheckboxVariant.Primary,size = CheckboxSize.Small,shape = CheckboxShape.Squared,-}: OwnProps) => {+}: CheckboxProps) => {const [isInternalChecked, setIsInternalChecked] =React.useState<boolean>(false);diff --git a/front/src/modules/ui/input/components/DateInput.tsx b/front/src/modules/ui/input/components/DateInput.tsxindex e8d74e9ce4e..4952b101083 100644--- a/front/src/modules/ui/input/components/DateInput.tsx+++ b/front/src/modules/ui/input/components/DateInput.tsx@@ -29,7 +29,7 @@ const StyledInputContainer = styled.div`width: 100%;`;-export type DateInputEditProps = {+export type DateInputProps = {value: Nullable<Date>;onEnter: (newDate: Nullable<Date>) => void;onEscape: (newDate: Nullable<Date>) => void;@@ -46,7 +46,7 @@ export const DateInput = ({onEnter,onEscape,onClickOutside,-}: DateInputEditProps) => {+}: DateInputProps) => {const theme = useTheme();const [internalValue, setInternalValue] = useState(value);diff --git a/front/src/modules/ui/input/components/DoubleTextInput.tsx b/front/src/modules/ui/input/components/DoubleTextInput.tsxindex 97426d4d7dc..12f9be6aa10 100644--- a/front/src/modules/ui/input/components/DoubleTextInput.tsx+++ b/front/src/modules/ui/input/components/DoubleTextInput.tsx@@ -24,7 +24,7 @@ const StyledContainer = styled.div`}`;-type OwnProps = {+type DoubleTextInputProps = {firstValue: string;secondValue: string;firstValuePlaceholder: string;@@ -51,7 +51,7 @@ export const DoubleTextInput = ({onEscape,onShiftTab,onTab,-}: OwnProps) => {+}: DoubleTextInputProps) => {const [firstInternalValue, setFirstInternalValue] = useState(firstValue);const [secondInternalValue, setSecondInternalValue] = useState(secondValue);diff --git a/front/src/modules/ui/input/components/EntityTitleDoubleTextInput.tsx b/front/src/modules/ui/input/components/EntityTitleDoubleTextInput.tsxindex 9720b11def4..dcaca0b7110 100644--- a/front/src/modules/ui/input/components/EntityTitleDoubleTextInput.tsx+++ b/front/src/modules/ui/input/components/EntityTitleDoubleTextInput.tsx@@ -4,7 +4,7 @@ import styled from '@emotion/styled';import { StyledInput } from '@/ui/input/components/TextInput';import { ComputeNodeDimensions } from '@/ui/utilities/dimensions/components/ComputeNodeDimensions';-export type DoubleTextInputEditProps = {+export type EntityTitleDoubleTextInputProps = {firstValue: string;secondValue: string;firstValuePlaceholder: string;@@ -38,7 +38,7 @@ export const EntityTitleDoubleTextInput = ({firstValuePlaceholder,secondValuePlaceholder,onChange,-}: DoubleTextInputEditProps) => (+}: EntityTitleDoubleTextInputProps) => (<StyledDoubleTextContainer><ComputeNodeDimensions node={firstValue || firstValuePlaceholder}>{(nodeDimensions) => (diff --git a/front/src/modules/ui/input/components/PhoneInput.tsx b/front/src/modules/ui/input/components/PhoneInput.tsxindex 0d496c03274..e27645ea67f 100644--- a/front/src/modules/ui/input/components/PhoneInput.tsx+++ b/front/src/modules/ui/input/components/PhoneInput.tsx@@ -68,7 +68,7 @@ const StyledCustomPhoneInput = styled(ReactPhoneNumberInput)`}`;-export type PhoneCellEditProps = {+export type PhoneInputProps = {placeholder?: string;autoFocus?: boolean;value: string;@@ -89,7 +89,7 @@ export const PhoneInput = ({onShiftTab,onClickOutside,hotkeyScope,-}: PhoneCellEditProps) => {+}: PhoneInputProps) => {const [internalValue, setInternalValue] = useState<string | undefined>(value);const wrapperRef = useRef<HTMLDivElement | null>(null);diff --git a/front/src/modules/ui/input/components/ProbabilityInput.tsx b/front/src/modules/ui/input/components/ProbabilityInput.tsxindex f01b12dbcde..fbf3c228a45 100644--- a/front/src/modules/ui/input/components/ProbabilityInput.tsx+++ b/front/src/modules/ui/input/components/ProbabilityInput.tsx@@ -57,12 +57,15 @@ const PROBABILITY_VALUES = [{ label: '100%', value: 100 },];-type OwnProps = {+type ProbabilityInputProps = {probabilityIndex: number | null;onChange: (newValue: number) => void;};-export const ProbabilityInput = ({ onChange, probabilityIndex }: OwnProps) => {+export const ProbabilityInput = ({+ onChange,+ probabilityIndex,+}: ProbabilityInputProps) => {const [hoveredProbabilityIndex, setHoveredProbabilityIndex] = useState<number | null>(null);diff --git a/front/src/modules/ui/input/components/TextInput.tsx b/front/src/modules/ui/input/components/TextInput.tsxindex ee3defe3342..43e3ce48b4d 100644--- a/front/src/modules/ui/input/components/TextInput.tsx+++ b/front/src/modules/ui/input/components/TextInput.tsx@@ -11,7 +11,7 @@ export const StyledInput = styled.input`${textInputStyle}`;-type OwnProps = {+type TextInputProps = {placeholder?: string;autoFocus?: boolean;value: string;@@ -33,7 +33,7 @@ export const TextInput = ({onTab,onShiftTab,onClickOutside,-}: OwnProps) => {+}: TextInputProps) => {const [internalText, setInternalText] = useState(value);const wrapperRef = useRef(null);diff --git a/front/src/modules/ui/input/image/components/ImageInput.tsx b/front/src/modules/ui/input/image/components/ImageInput.tsxindex 1ac35e302e9..b3a7d6ba46b 100644--- a/front/src/modules/ui/input/image/components/ImageInput.tsx+++ b/front/src/modules/ui/input/image/components/ImageInput.tsx@@ -77,7 +77,7 @@ const StyledHiddenFileInput = styled.input`display: none;`;-type Props = Omit<React.ComponentProps<'div'>, 'children'> & {+type ImageInputProps = Omit<React.ComponentProps<'div'>, 'children'> & {picture: string | null | undefined;onUpload?: (file: File) => void;onRemove?: () => void;@@ -96,7 +96,7 @@ export const ImageInput = ({errorMessage,disabled = false,...restProps-}: Props) => {+}: ImageInputProps) => {const theme = useTheme();const hiddenFileInput = React.useRef<HTMLInputElement>(null);const onUploadButtonClick = () => {diff --git a/front/src/modules/ui/input/text/components/TextInputSettings.tsx b/front/src/modules/ui/input/text/components/TextInputSettings.tsxindex 35d2ad031c4..a882351c545 100644--- a/front/src/modules/ui/input/text/components/TextInputSettings.tsx+++ b/front/src/modules/ui/input/text/components/TextInputSettings.tsx@@ -19,7 +19,10 @@ import { useCombinedRefs } from '~/hooks/useCombinedRefs';import { InputHotkeyScope } from '../types/InputHotkeyScope';-type OwnProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {+type TextInputComponentProps = Omit<+ InputHTMLAttributes<HTMLInputElement>,+ 'onChange'+> & {label?: string;onChange?: (text: string) => void;fullWidth?: boolean;@@ -27,7 +30,7 @@ type OwnProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange'> & {error?: string;};-const StyledContainer = styled.div<Pick<OwnProps, 'fullWidth'>>`+const StyledContainer = styled.div<Pick<TextInputComponentProps, 'fullWidth'>>`display: flex;flex-direction: column;width: ${({ fullWidth }) => (fullWidth ? `100%` : 'auto')};@@ -48,7 +51,7 @@ const StyledInputContainer = styled.div`width: 100%;`;-const StyledInput = styled.input<Pick<OwnProps, 'fullWidth'>>`+const StyledInput = styled.input<Pick<TextInputComponentProps, 'fullWidth'>>`background-color: ${({ theme }) => theme.background.tertiary};border: none;border-bottom-left-radius: ${({ theme }) => theme.border.radius.sm};@@ -111,7 +114,8 @@ const TextInputComponent = (type,disableHotkeys = false,...props- }: OwnProps,+ }: TextInputComponentProps,+ // eslint-disable-next-line twenty/component-props-namingref: ForwardedRef<HTMLInputElement>,): JSX.Element => {const theme = useTheme();diff --git a/front/src/modules/ui/layout/components/DefaultLayout.tsx b/front/src/modules/ui/layout/components/DefaultLayout.tsxindex 3486e9a353f..37e304b1182 100644--- a/front/src/modules/ui/layout/components/DefaultLayout.tsx+++ b/front/src/modules/ui/layout/components/DefaultLayout.tsx@@ -50,11 +50,11 @@ const StyledMainContainer = styled.div`}`;-type OwnProps = {+type DefaultLayoutProps = {children: React.ReactNode;};-export const DefaultLayout = ({ children }: OwnProps) => {+export const DefaultLayout = ({ children }: DefaultLayoutProps) => {const onboardingStatus = useOnboardingStatus();return (diff --git a/front/src/modules/ui/layout/components/PageAddButton.tsx b/front/src/modules/ui/layout/components/PageAddButton.tsxindex 1cfaaf07ea7..bd9e9770554 100644--- a/front/src/modules/ui/layout/components/PageAddButton.tsx+++ b/front/src/modules/ui/layout/components/PageAddButton.tsx@@ -1,11 +1,11 @@import { IconButton } from '@/ui/button/components/IconButton';import { IconPlus } from '@/ui/icon';-type OwnProps = {+type PageAddButtonProps = {onClick: () => void;};-export const PageAddButton = ({ onClick }: OwnProps) => (+export const PageAddButton = ({ onClick }: PageAddButtonProps) => (<IconButtonIcon={IconPlus}dataTestId="add-button"diff --git a/front/src/modules/ui/layout/components/PageBody.tsx b/front/src/modules/ui/layout/components/PageBody.tsxindex 5525cc4c119..65bcbc8c72d 100644--- a/front/src/modules/ui/layout/components/PageBody.tsx+++ b/front/src/modules/ui/layout/components/PageBody.tsx@@ -1,11 +1,11 @@import { PAGE_BAR_MIN_HEIGHT } from './PageHeader';import { RightDrawerContainer } from './RightDrawerContainer';-type OwnProps = {+type PageBodyProps = {children: JSX.Element | JSX.Element[];};-export const PageBody = ({ children }: OwnProps) => (+export const PageBody = ({ children }: PageBodyProps) => (<RightDrawerContainer topMargin={PAGE_BAR_MIN_HEIGHT + 16 + 16}>{children}</RightDrawerContainer>diff --git a/front/src/modules/ui/layout/components/PageContainer.tsx b/front/src/modules/ui/layout/components/PageContainer.tsxindex 08b28b5430c..6a552e0e715 100644--- a/front/src/modules/ui/layout/components/PageContainer.tsx+++ b/front/src/modules/ui/layout/components/PageContainer.tsx@@ -1,6 +1,6 @@import styled from '@emotion/styled';-type OwnProps = {+type PageContainerProps = {children: JSX.Element | JSX.Element[];};@@ -10,6 +10,6 @@ const StyledContainer = styled.div`width: 100%;`;-export const PageContainer = ({ children }: OwnProps) => (+export const PageContainer = ({ children }: PageContainerProps) => (<StyledContainer>{children}</StyledContainer>);diff --git a/front/src/modules/ui/layout/components/PageFavoriteButton.tsx b/front/src/modules/ui/layout/components/PageFavoriteButton.tsxindex 40e41481c7b..0ffe75cf762 100644--- a/front/src/modules/ui/layout/components/PageFavoriteButton.tsx+++ b/front/src/modules/ui/layout/components/PageFavoriteButton.tsx@@ -1,12 +1,15 @@import { IconButton } from '@/ui/button/components/IconButton';import { IconHeart } from '@/ui/icon';-type OwnProps = {+type PageFavoriteButtonProps = {isFavorite: boolean;onClick: () => void;};-export const PageFavoriteButton = ({ isFavorite, onClick }: OwnProps) => (+export const PageFavoriteButton = ({+ isFavorite,+ onClick,+}: PageFavoriteButtonProps) => (<IconButtonIcon={IconHeart}size="medium"diff --git a/front/src/modules/ui/layout/components/PageHotkeysEffect.tsx b/front/src/modules/ui/layout/components/PageHotkeysEffect.tsxindex 772ca6024d8..6100b75417f 100644--- a/front/src/modules/ui/layout/components/PageHotkeysEffect.tsx+++ b/front/src/modules/ui/layout/components/PageHotkeysEffect.tsx@@ -1,11 +1,13 @@import { TableHotkeyScope } from '@/ui/data-table/types/TableHotkeyScope';import { useScopedHotkeys } from '@/ui/utilities/hotkey/hooks/useScopedHotkeys';-type OwnProps = {+type PageHotkeysEffectProps = {onAddButtonClick?: () => void;};-export const PageHotkeysEffect = ({ onAddButtonClick }: OwnProps) => {+export const PageHotkeysEffect = ({+ onAddButtonClick,+}: PageHotkeysEffectProps) => {useScopedHotkeys('c', () => onAddButtonClick?.(), TableHotkeyScope.Table, [onAddButtonClick,]);diff --git a/front/src/modules/ui/layout/components/RightDrawerContainer.tsx b/front/src/modules/ui/layout/components/RightDrawerContainer.tsxindex 01e40f92ae4..fa469af7030 100644--- a/front/src/modules/ui/layout/components/RightDrawerContainer.tsx+++ b/front/src/modules/ui/layout/components/RightDrawerContainer.tsx@@ -4,7 +4,7 @@ import { RightDrawer } from '@/ui/right-drawer/components/RightDrawer';import { PagePanel } from './PagePanel';-type OwnProps = {+type RightDrawerContainerProps = {children: JSX.Element | JSX.Element[];topMargin?: number;};@@ -33,7 +33,10 @@ const StyledLeftContainer = styled.div<LeftContainerProps>`width: 100%;`;-export const RightDrawerContainer = ({ children, topMargin }: OwnProps) => (+export const RightDrawerContainer = ({+ children,+ topMargin,+}: RightDrawerContainerProps) => (<StyledMainContainer topMargin={topMargin ?? 0}><StyledLeftContainer><PagePanel>{children}</PagePanel>diff --git a/front/src/modules/ui/layout/show-page/components/ShowPageRightContainer.tsx b/front/src/modules/ui/layout/show-page/components/ShowPageRightContainer.tsxindex 774bea38cd5..edb0ef894bc 100644--- a/front/src/modules/ui/layout/show-page/components/ShowPageRightContainer.tsx+++ b/front/src/modules/ui/layout/show-page/components/ShowPageRightContainer.tsx@@ -35,7 +35,7 @@ const StyledTabListContainer = styled.div`height: 40px;`;-type OwnProps = {+type ShowPageRightContainerProps = {entity: ActivityTargetableEntity;timeline?: boolean;tasks?: boolean;@@ -49,7 +49,7 @@ export const ShowPageRightContainer = ({tasks,notes,emails,-}: OwnProps) => {+}: ShowPageRightContainerProps) => {const TASK_TABS = [{id: 'timeline',diff --git a/front/src/modules/ui/layout/show-page/components/ShowPageSummaryCard.tsx b/front/src/modules/ui/layout/show-page/components/ShowPageSummaryCard.tsxindex 8ba72d6ba4a..8b7196286f5 100644--- a/front/src/modules/ui/layout/show-page/components/ShowPageSummaryCard.tsx+++ b/front/src/modules/ui/layout/show-page/components/ShowPageSummaryCard.tsx@@ -11,7 +11,7 @@ import {import { OverflowingTextWithTooltip } from '../../../tooltip/OverflowingTextWithTooltip';-type OwnProps = {+type ShowPageSummaryCardProps = {id?: string;logoOrAvatar?: string;title: string;@@ -81,7 +81,7 @@ export const ShowPageSummaryCard = ({avatarType,renderTitleEditComponent,onUploadPicture,-}: OwnProps) => {+}: ShowPageSummaryCardProps) => {const beautifiedCreatedAt =date !== '' ? beautifyPastDateRelativeToNow(date) : '';const exactCreatedAt = date !== '' ? beautifyExactDateTime(date) : '';diff --git a/front/src/modules/ui/link/components/ContactLink.tsx b/front/src/modules/ui/link/components/ContactLink.tsxindex 580af1e068e..e09a0c2128b 100644--- a/front/src/modules/ui/link/components/ContactLink.tsx+++ b/front/src/modules/ui/link/components/ContactLink.tsx@@ -2,7 +2,7 @@ import * as React from 'react';import { Link as ReactLink } from 'react-router-dom';import styled from '@emotion/styled';-type OwnProps = {+type ContactLinkProps = {className?: string;href: string;children?: React.ReactNode;@@ -30,7 +30,7 @@ export const ContactLink = ({href,children,onClick,-}: OwnProps) => (+}: ContactLinkProps) => (<div><StyledClickable className={className}><ReactLink target="_blank" onClick={onClick} to={href}>diff --git a/front/src/modules/ui/link/components/PrimaryLink.tsx b/front/src/modules/ui/link/components/PrimaryLink.tsxindex e8f9a914ce4..27cac16e4d6 100644--- a/front/src/modules/ui/link/components/PrimaryLink.tsx+++ b/front/src/modules/ui/link/components/PrimaryLink.tsx@@ -2,7 +2,7 @@ import React from 'react';import { Link as ReactLink } from 'react-router-dom';import styled from '@emotion/styled';-type OwnProps = {+type PrimaryLinkProps = {children: React.ReactNode;href: string;onClick?: () => void;@@ -18,7 +18,7 @@ const StyledClickable = styled.div`}`;-export const PrimaryLink = ({ href, children, onClick }: OwnProps) => (+export const PrimaryLink = ({ href, children, onClick }: PrimaryLinkProps) => (<StyledClickable><ReactLink onClick={onClick} to={href}>{children}diff --git a/front/src/modules/ui/link/components/RawLink.tsx b/front/src/modules/ui/link/components/RawLink.tsxindex 60c35144043..a02aad79981 100644--- a/front/src/modules/ui/link/components/RawLink.tsx+++ b/front/src/modules/ui/link/components/RawLink.tsx@@ -2,7 +2,7 @@ import * as React from 'react';import { Link as ReactLink } from 'react-router-dom';import styled from '@emotion/styled';-type OwnProps = {+type RawLinkProps = {className?: string;href: string;children?: React.ReactNode;@@ -19,7 +19,12 @@ const StyledClickable = styled.div`}`;-export const RawLink = ({ className, href, children, onClick }: OwnProps) => (+export const RawLink = ({+ className,+ href,+ children,+ onClick,+}: RawLinkProps) => (<div><StyledClickable className={className}><ReactLink target="_blank" onClick={onClick} to={href}>diff --git a/front/src/modules/ui/link/components/RoundedLink.tsx b/front/src/modules/ui/link/components/RoundedLink.tsxindex e000ba37069..f25905f3fc7 100644--- a/front/src/modules/ui/link/components/RoundedLink.tsx+++ b/front/src/modules/ui/link/components/RoundedLink.tsx@@ -5,7 +5,7 @@ import styled from '@emotion/styled';import { Chip } from '@/ui/chip/components/Chip';import { ChipSize, ChipVariant } from '@/ui/chip/components/Chip';-type OwnProps = {+type RoundedLinkProps = {href: string;children?: React.ReactNode;onClick?: (event: React.MouseEvent<HTMLElement>) => void;@@ -21,7 +21,7 @@ const StyledClickable = styled.div`}`;-export const RoundedLink = ({ children, href, onClick }: OwnProps) => (+export const RoundedLink = ({ children, href, onClick }: RoundedLinkProps) => (<div>{children !== '' ? (<StyledClickable>diff --git a/front/src/modules/ui/link/components/SocialLink.tsx b/front/src/modules/ui/link/components/SocialLink.tsxindex 49a6ea4a083..8233927af83 100644--- a/front/src/modules/ui/link/components/SocialLink.tsx+++ b/front/src/modules/ui/link/components/SocialLink.tsx@@ -9,7 +9,7 @@ export enum LinkType {Twitter = 'twitter',}-type OwnProps = {+type SocialLinkProps = {href: string;children?: React.ReactNode;type?: LinkType;@@ -26,7 +26,12 @@ const StyledRawLink = styled(RoundedLink)`}`;-export const SocialLink = ({ children, href, onClick, type }: OwnProps) => {+export const SocialLink = ({+ children,+ href,+ onClick,+ type,+}: SocialLinkProps) => {let displayValue = children;if (type === 'linkedin') {diff --git a/front/src/modules/ui/menu-item/components/MenuItemCommand.tsx b/front/src/modules/ui/menu-item/components/MenuItemCommand.tsxindex 38562125fbd..c89b86fa571 100644--- a/front/src/modules/ui/menu-item/components/MenuItemCommand.tsx+++ b/front/src/modules/ui/menu-item/components/MenuItemCommand.tsx@@ -79,7 +79,7 @@ const StyledMenuItemCommandContainer = styled(Command.Item)`}`;-export type MenuItemProps = {+export type MenuItemCommandProps = {LeftIcon?: IconComponent;text: string;command: string;@@ -93,7 +93,7 @@ export const MenuItemCommand = ({command,className,onClick,-}: MenuItemProps) => {+}: MenuItemCommandProps) => {const theme = useTheme();return (diff --git a/front/src/modules/ui/menu-item/components/MenuItemMultiSelect.tsx b/front/src/modules/ui/menu-item/components/MenuItemMultiSelect.tsxindex 1a8b5a88f4e..1c205e80e8b 100644--- a/front/src/modules/ui/menu-item/components/MenuItemMultiSelect.tsx+++ b/front/src/modules/ui/menu-item/components/MenuItemMultiSelect.tsx@@ -13,7 +13,7 @@ const StyledLeftContentWithCheckboxContainer = styled.div`gap: ${({ theme }) => theme.spacing(2)};`;-type OwnProps = {+type MenuItemMultiSelectProps = {LeftIcon?: IconComponent;selected: boolean;text: string;@@ -27,7 +27,7 @@ export const MenuItemMultiSelect = ({selected,className,onSelectChange,-}: OwnProps) => {+}: MenuItemMultiSelectProps) => {const handleOnClick = () => {onSelectChange?.(!selected);};diff --git a/front/src/modules/ui/menu-item/components/MenuItemMultiSelectAvatar.tsx b/front/src/modules/ui/menu-item/components/MenuItemMultiSelectAvatar.tsxindex 8e361807180..1521d5fb048 100644--- a/front/src/modules/ui/menu-item/components/MenuItemMultiSelectAvatar.tsx+++ b/front/src/modules/ui/menu-item/components/MenuItemMultiSelectAvatar.tsx@@ -16,7 +16,7 @@ const StyledLeftContentWithCheckboxContainer = styled.div`gap: ${({ theme }) => theme.spacing(2)};`;-type OwnProps = {+type MenuItemMultiSelectAvatarProps = {avatar?: ReactNode;selected: boolean;text: string;@@ -30,7 +30,7 @@ export const MenuItemMultiSelectAvatar = ({selected,className,onSelectChange,-}: OwnProps) => {+}: MenuItemMultiSelectAvatarProps) => {const handleOnClick = () => {onSelectChange?.(!selected);};diff --git a/front/src/modules/ui/menu-item/components/MenuItemNavigate.tsx b/front/src/modules/ui/menu-item/components/MenuItemNavigate.tsxindex 3973d72f473..5c2c271d93a 100644--- a/front/src/modules/ui/menu-item/components/MenuItemNavigate.tsx+++ b/front/src/modules/ui/menu-item/components/MenuItemNavigate.tsx@@ -9,7 +9,7 @@ import {StyledMenuItemLeftContent,} from '../internals/components/StyledMenuItemBase';-export type MenuItemProps = {+export type MenuItemNavigateProps = {LeftIcon?: IconComponent;text: string;onClick?: () => void;@@ -21,7 +21,7 @@ export const MenuItemNavigate = ({text,className,onClick,-}: MenuItemProps) => {+}: MenuItemNavigateProps) => {const theme = useTheme();return (diff --git a/front/src/modules/ui/menu-item/components/MenuItemSelect.tsx b/front/src/modules/ui/menu-item/components/MenuItemSelect.tsxindex 05246992c16..895ec5aa89b 100644--- a/front/src/modules/ui/menu-item/components/MenuItemSelect.tsx+++ b/front/src/modules/ui/menu-item/components/MenuItemSelect.tsx@@ -39,7 +39,7 @@ export const StyledMenuItemSelect = styled(StyledMenuItemBase)<{}}`;-type OwnProps = {+type MenuItemSelectProps = {LeftIcon: IconComponent | null | undefined;selected: boolean;text: string;@@ -57,7 +57,7 @@ export const MenuItemSelect = ({onClick,disabled,hovered,-}: OwnProps) => {+}: MenuItemSelectProps) => {const theme = useTheme();return (diff --git a/front/src/modules/ui/menu-item/components/MenuItemSelectAvatar.tsx b/front/src/modules/ui/menu-item/components/MenuItemSelectAvatar.tsxindex 4d108156293..909dad912a2 100644--- a/front/src/modules/ui/menu-item/components/MenuItemSelectAvatar.tsx+++ b/front/src/modules/ui/menu-item/components/MenuItemSelectAvatar.tsx@@ -11,7 +11,7 @@ import {import { StyledMenuItemSelect } from './MenuItemSelect';-type OwnProps = {+type MenuItemSelectAvatarProps = {avatar: ReactNode;selected: boolean;text: string;@@ -31,7 +31,7 @@ export const MenuItemSelectAvatar = ({disabled,hovered,testId,-}: OwnProps) => {+}: MenuItemSelectAvatarProps) => {const theme = useTheme();return (diff --git a/front/src/modules/ui/menu-item/components/MenuItemSelectColor.tsx b/front/src/modules/ui/menu-item/components/MenuItemSelectColor.tsxindex 677dfe200be..0254368f824 100644--- a/front/src/modules/ui/menu-item/components/MenuItemSelectColor.tsx+++ b/front/src/modules/ui/menu-item/components/MenuItemSelectColor.tsx@@ -20,7 +20,7 @@ const StyledColorSample = styled.div<{ colorName: ThemeColor }>`width: 12px;`;-type OwnProps = {+type MenuItemSelectColorProps = {selected: boolean;text: string;className?: string;@@ -38,7 +38,7 @@ export const MenuItemSelectColor = ({onClick,disabled,hovered,-}: OwnProps) => {+}: MenuItemSelectColorProps) => {const theme = useTheme();return (diff --git a/front/src/modules/ui/menu-item/components/MenuItemToggle.tsx b/front/src/modules/ui/menu-item/components/MenuItemToggle.tsxindex 9730cb9b075..05c09faac84 100644--- a/front/src/modules/ui/menu-item/components/MenuItemToggle.tsx+++ b/front/src/modules/ui/menu-item/components/MenuItemToggle.tsx@@ -4,7 +4,7 @@ import { Toggle } from '@/ui/input/components/Toggle';import { MenuItemLeftContent } from '../internals/components/MenuItemLeftContent';import { StyledMenuItemBase } from '../internals/components/StyledMenuItemBase';-type OwnProps = {+type MenuItemToggleProps = {LeftIcon?: IconComponent;toggled: boolean;text: string;@@ -18,7 +18,7 @@ export const MenuItemToggle = ({toggled,className,onToggleChange,-}: OwnProps) => {+}: MenuItemToggleProps) => {const handleOnClick = () => {onToggleChange?.(!toggled);};diff --git a/front/src/modules/ui/menu-item/internals/components/MenuItemLeftContent.tsx b/front/src/modules/ui/menu-item/internals/components/MenuItemLeftContent.tsxindex 76efeb07207..716df929831 100644--- a/front/src/modules/ui/menu-item/internals/components/MenuItemLeftContent.tsx+++ b/front/src/modules/ui/menu-item/internals/components/MenuItemLeftContent.tsx@@ -9,7 +9,7 @@ import {StyledMenuItemLeftContent,} from './StyledMenuItemBase';-type OwnProps = {+type MenuItemLeftContentProps = {LeftIcon: IconComponent | null | undefined;showGrip?: boolean;text: string;@@ -19,7 +19,7 @@ export const MenuItemLeftContent = ({LeftIcon,text,showGrip = false,-}: OwnProps) => {+}: MenuItemLeftContentProps) => {const theme = useTheme();return (diff --git a/front/src/modules/ui/navbar/components/MainNavbar.tsx b/front/src/modules/ui/navbar/components/MainNavbar.tsxindex 50ad10879b5..99043bee257 100644--- a/front/src/modules/ui/navbar/components/MainNavbar.tsx+++ b/front/src/modules/ui/navbar/components/MainNavbar.tsx@@ -5,7 +5,7 @@ import NavItemsContainer from './NavItemsContainer';import NavWorkspaceButton from './NavWorkspaceButton';import SupportChat from './SupportChat';-type OwnProps = {+type MainNavbarProps = {children: React.ReactNode;};@@ -18,7 +18,7 @@ const StyledContainer = styled.div`width: 100%;`;-const MainNavbar = ({ children }: OwnProps) => {+const MainNavbar = ({ children }: MainNavbarProps) => {const [isHovered, setIsHovered] = useState(false);const handleHover = () => {diff --git a/front/src/modules/ui/navbar/components/NavBackButton.tsx b/front/src/modules/ui/navbar/components/NavBackButton.tsxindex 8dacdb1e391..9574ae025da 100644--- a/front/src/modules/ui/navbar/components/NavBackButton.tsx+++ b/front/src/modules/ui/navbar/components/NavBackButton.tsx@@ -5,7 +5,7 @@ import { useRecoilState } from 'recoil';import { IconChevronLeft } from '@/ui/icon/index';import { isNavbarSwitchingSizeState } from '@/ui/layout/states/isNavbarSwitchingSizeState';-type OwnProps = {+type NavBackButtonProps = {title: string;};@@ -30,7 +30,7 @@ const StyledContainer = styled.div`justify-content: space-between;`;-const NavBackButton = ({ title }: OwnProps) => {+const NavBackButton = ({ title }: NavBackButtonProps) => {const navigate = useNavigate();const [, setIsNavbarSwitchingSize] = useRecoilState(isNavbarSwitchingSizeState,diff --git a/front/src/modules/ui/navbar/components/NavCollapseButton.tsx b/front/src/modules/ui/navbar/components/NavCollapseButton.tsxindex 26068698478..49ab85075b5 100644--- a/front/src/modules/ui/navbar/components/NavCollapseButton.tsx+++ b/front/src/modules/ui/navbar/components/NavCollapseButton.tsx@@ -32,7 +32,7 @@ const StyledCollapseButton = styled(motion.div)`width: 24px;`;-type CollapseButtonProps = {+type NavCollapseButtonProps = {direction?: 'left' | 'right';show?: boolean;};@@ -40,7 +40,7 @@ type CollapseButtonProps = {const NavCollapseButton = ({direction = 'left',show = true,-}: CollapseButtonProps) => {+}: NavCollapseButtonProps) => {const [isNavbarOpened, setIsNavbarOpened] =useRecoilState(isNavbarOpenedState);diff --git a/front/src/modules/ui/navbar/components/NavItemsContainer.tsx b/front/src/modules/ui/navbar/components/NavItemsContainer.tsxindex e9bd6c84bc4..7df27c250dd 100644--- a/front/src/modules/ui/navbar/components/NavItemsContainer.tsx+++ b/front/src/modules/ui/navbar/components/NavItemsContainer.tsx@@ -1,6 +1,6 @@import styled from '@emotion/styled';-type OwnProps = {+type NavItemsContainerProps = {children: React.ReactNode;};@@ -10,7 +10,7 @@ const StyledNavItemsContainer = styled.div`margin-top: 40px;`;-const NavItemsContainer = ({ children }: OwnProps) => (+const NavItemsContainer = ({ children }: NavItemsContainerProps) => (<StyledNavItemsContainer>{children}</StyledNavItemsContainer>);diff --git a/front/src/modules/ui/navbar/components/NavTitle.tsx b/front/src/modules/ui/navbar/components/NavTitle.tsxindex ee3ab4234c7..723204efb7f 100644--- a/front/src/modules/ui/navbar/components/NavTitle.tsx+++ b/front/src/modules/ui/navbar/components/NavTitle.tsx@@ -1,6 +1,6 @@import styled from '@emotion/styled';-type OwnProps = {+type NavTitleProps = {label: string;};@@ -15,6 +15,8 @@ const StyledTitle = styled.div`text-transform: uppercase;`;-const NavTitle = ({ label }: OwnProps) => <StyledTitle>{label}</StyledTitle>;+const NavTitle = ({ label }: NavTitleProps) => (+ <StyledTitle>{label}</StyledTitle>+);export default NavTitle;diff --git a/front/src/modules/ui/navbar/components/NavWorkspaceButton.tsx b/front/src/modules/ui/navbar/components/NavWorkspaceButton.tsxindex e10b656ff67..b6209c20539 100644--- a/front/src/modules/ui/navbar/components/NavWorkspaceButton.tsx+++ b/front/src/modules/ui/navbar/components/NavWorkspaceButton.tsx@@ -45,11 +45,13 @@ const StyledName = styled.div`margin-left: ${({ theme }) => theme.spacing(2)};`;-type OwnProps = {+type NavWorkspaceButtonProps = {showCollapseButton: boolean;};-const NavWorkspaceButton = ({ showCollapseButton }: OwnProps) => {+const NavWorkspaceButton = ({+ showCollapseButton,+}: NavWorkspaceButtonProps) => {const currentUser = useRecoilValue(currentUserState);const currentWorkspace = currentUser?.workspaceMember?.workspace;diff --git a/front/src/modules/ui/navbar/components/NavbarAnimatedContainer.tsx b/front/src/modules/ui/navbar/components/NavbarAnimatedContainer.tsxindex c96c4c4689c..a2c56ece780 100644--- a/front/src/modules/ui/navbar/components/NavbarAnimatedContainer.tsx+++ b/front/src/modules/ui/navbar/components/NavbarAnimatedContainer.tsx@@ -19,11 +19,13 @@ const StyledNavbarContainer = styled(motion.div)`padding: ${({ theme }) => theme.spacing(2)};`;-type NavbarProps = {+type NavbarAnimatedContainerProps = {children: React.ReactNode;};-export const NavbarAnimatedContainer = ({ children }: NavbarProps) => {+export const NavbarAnimatedContainer = ({+ children,+}: NavbarAnimatedContainerProps) => {const isNavbarOpened = useRecoilValue(isNavbarOpenedState);const [, setIsNavbarSwitchingSize] = useRecoilState(isNavbarSwitchingSizeState,diff --git a/front/src/modules/ui/navbar/components/SubMenuNavbar.tsx b/front/src/modules/ui/navbar/components/SubMenuNavbar.tsxindex 3d349c152db..e97d17068aa 100644--- a/front/src/modules/ui/navbar/components/SubMenuNavbar.tsx+++ b/front/src/modules/ui/navbar/components/SubMenuNavbar.tsx@@ -10,7 +10,7 @@ import { githubLink, leftNavbarWidth } from '../constants';import NavBackButton from './NavBackButton';import NavItemsContainer from './NavItemsContainer';-type OwnProps = {+type SubMenuNavbarProps = {children: React.ReactNode;backButtonTitle: string;displayVersion?: boolean;@@ -54,7 +54,7 @@ const SubMenuNavbar = ({children,backButtonTitle,displayVersion,-}: OwnProps) => {+}: SubMenuNavbarProps) => {const version = packageJson.version;const theme = useTheme();diff --git a/front/src/modules/ui/progress-bar/components/CircularProgressBar.tsx b/front/src/modules/ui/progress-bar/components/CircularProgressBar.tsxindex 5ca44381393..f252da2d824 100644--- a/front/src/modules/ui/progress-bar/components/CircularProgressBar.tsx+++ b/front/src/modules/ui/progress-bar/components/CircularProgressBar.tsx@@ -1,7 +1,7 @@import React, { useEffect, useMemo } from 'react';import { motion, useAnimation } from 'framer-motion';-interface Props {+interface CircularProgressBarProps {size?: number;barWidth?: number;barColor?: string;@@ -11,7 +11,7 @@ export const CircularProgressBar = ({size = 50,barWidth = 5,barColor = 'currentColor',-}: Props) => {+}: CircularProgressBarProps) => {const controls = useAnimation();const circumference = useMemo(diff --git a/front/src/modules/ui/section/components/Section.tsx b/front/src/modules/ui/section/components/Section.tsxindex 3d5fcf3455b..e5cc66dedeb 100644--- a/front/src/modules/ui/section/components/Section.tsx+++ b/front/src/modules/ui/section/components/Section.tsx@@ -1,7 +1,7 @@import { ReactNode } from 'react';import styled from '@emotion/styled';-type OwnProps = {+type SectionProps = {children: ReactNode;alignment?: SectionAlignment;fullWidth?: boolean;@@ -36,7 +36,7 @@ export const Section = ({alignment = SectionAlignment.Left,fullWidth = true,fontColor = SectionFontColor.Primary,-}: OwnProps) => (+}: SectionProps) => (<StyledSectionalignment={alignment}fullWidth={fullWidth}diff --git a/front/src/modules/ui/snack-bar/components/SnackBar.tsx b/front/src/modules/ui/snack-bar/components/SnackBar.tsxindex 9ad8c824664..14f37b0f4cd 100644--- a/front/src/modules/ui/snack-bar/components/SnackBar.tsx+++ b/front/src/modules/ui/snack-bar/components/SnackBar.tsx@@ -11,7 +11,7 @@ import { rgba } from '@/ui/theme/constants/colors';import { usePausableTimeout } from '../hooks/usePausableTimeout';-const StyledMotionContainer = styled.div<Pick<SnackbarProps, 'variant'>>`+const StyledMotionContainer = styled.div<Pick<SnackBarProps, 'variant'>>`align-items: center;background-color: ${({ theme, variant }) => {switch (variant) {@@ -59,7 +59,7 @@ const StyledProgressBarContainer = styled.div`top: 0;`;-const StyledCloseButton = styled.button<Pick<SnackbarProps, 'variant'>>`+const StyledCloseButton = styled.button<Pick<SnackBarProps, 'variant'>>`align-items: center;background-color: transparent;border: none;@@ -91,7 +91,7 @@ const StyledCloseButton = styled.button<Pick<SnackbarProps, 'variant'>>`export type SnackbarVariant = 'info' | 'error' | 'success';-export interface SnackbarProps extends React.ComponentPropsWithoutRef<'div'> {+export interface SnackBarProps extends React.ComponentPropsWithoutRef<'div'> {role?: 'alert' | 'status';icon?: React.ReactNode;message?: string;@@ -112,7 +112,7 @@ export const SnackBar = ({children,onClose,...rootProps-}: SnackbarProps) => {+}: SnackBarProps) => {const theme = useTheme();const progressBarRef = useRef<ProgressBarControls | null>(null);diff --git a/front/src/modules/ui/snack-bar/states/snackBarState.ts b/front/src/modules/ui/snack-bar/states/snackBarState.tsindex a69f2314d5e..e8572a86bf9 100644--- a/front/src/modules/ui/snack-bar/states/snackBarState.ts+++ b/front/src/modules/ui/snack-bar/states/snackBarState.ts@@ -1,8 +1,8 @@import { atom, selector } from 'recoil';-import { SnackbarProps } from '../components/SnackBar';+import { SnackBarProps } from '../components/SnackBar';-export type SnackBarOptions = SnackbarProps & {+export type SnackBarOptions = SnackBarProps & {id: string;};diff --git a/front/src/modules/ui/step-bar/components/StepBar.tsx b/front/src/modules/ui/step-bar/components/StepBar.tsxindex 6807982ceab..5cc14b6100b 100644--- a/front/src/modules/ui/step-bar/components/StepBar.tsx+++ b/front/src/modules/ui/step-bar/components/StepBar.tsx@@ -16,12 +16,16 @@ const StyledContainer = styled.div`}`;-export type StepsProps = React.PropsWithChildren &+export type StepBarProps = React.PropsWithChildren &React.ComponentProps<'div'> & {activeStep: number;};-export const StepBar = ({ children, activeStep, ...restProps }: StepsProps) => {+export const StepBar = ({+ children,+ activeStep,+ ...restProps+}: StepBarProps) => {const isMobile = useIsMobile();return (diff --git a/front/src/modules/ui/theme/components/AppThemeProvider.tsx b/front/src/modules/ui/theme/components/AppThemeProvider.tsxindex e7732bfcf57..7a55ebb082b 100644--- a/front/src/modules/ui/theme/components/AppThemeProvider.tsx+++ b/front/src/modules/ui/theme/components/AppThemeProvider.tsx@@ -6,7 +6,7 @@ import { ColorScheme } from '~/generated/graphql';import { useColorScheme } from '../hooks/useColorScheme';import { useSystemColorScheme } from '../hooks/useSystemColorScheme';-type OwnProps = {+type AppThemeProviderProps = {children: JSX.Element;};@@ -15,7 +15,7 @@ const themes = {[ColorScheme.Light]: lightTheme,};-export const AppThemeProvider = ({ children }: OwnProps) => {+export const AppThemeProvider = ({ children }: AppThemeProviderProps) => {const systemColorScheme = useSystemColorScheme();const { colorScheme } = useColorScheme();diff --git a/front/src/modules/ui/tooltip/AppTooltip.tsx b/front/src/modules/ui/tooltip/AppTooltip.tsxindex 0e4fa5b6d6c..251bef01274 100644--- a/front/src/modules/ui/tooltip/AppTooltip.tsx+++ b/front/src/modules/ui/tooltip/AppTooltip.tsx@@ -31,7 +31,7 @@ const StyledAppTooltip = styled(Tooltip)`z-index: ${({ theme }) => theme.lastLayerZIndex};`;-export type AppToolipProps = {+export type AppTooltipProps = {className?: string;anchorSelect?: string;content?: string;@@ -43,7 +43,7 @@ export type AppToolipProps = {positionStrategy?: PositionStrategy;};-export const AppTooltip = (props: AppToolipProps) => (+export const AppTooltip = (props: AppTooltipProps) => (// eslint-disable-next-line twenty/no-spread-props<StyledAppTooltip {...props} />);diff --git a/front/src/modules/ui/top-bar/TopBar.tsx b/front/src/modules/ui/top-bar/TopBar.tsxindex 0e500d82c54..2ec13e4c4d0 100644--- a/front/src/modules/ui/top-bar/TopBar.tsx+++ b/front/src/modules/ui/top-bar/TopBar.tsx@@ -1,7 +1,7 @@import { ReactNode } from 'react';import styled from '@emotion/styled';-type OwnProps = {+type TopBarProps = {className?: string;leftComponent?: ReactNode;rightComponent?: ReactNode;@@ -46,7 +46,7 @@ export const TopBar = ({rightComponent,bottomComponent,displayBottomBorder = true,-}: OwnProps) => (+}: TopBarProps) => (<StyledContainer className={className}><StyledTopBar displayBottomBorder={displayBottomBorder}><StyledLeftSection>{leftComponent}</StyledLeftSection>diff --git a/front/src/modules/ui/typography/components/H1Title.tsx b/front/src/modules/ui/typography/components/H1Title.tsxindex 09a01fa5295..063546d4236 100644--- a/front/src/modules/ui/typography/components/H1Title.tsx+++ b/front/src/modules/ui/typography/components/H1Title.tsx@@ -1,6 +1,6 @@import styled from '@emotion/styled';-type OwnProps = {+type H1TitleProps = {title: string;fontColor?: H1TitleFontColor;};@@ -25,4 +25,4 @@ const StyledTitle = styled.h2<{export const H1Title = ({title,fontColor = H1TitleFontColor.Tertiary,-}: OwnProps) => <StyledTitle fontColor={fontColor}>{title}</StyledTitle>;+}: H1TitleProps) => <StyledTitle fontColor={fontColor}>{title}</StyledTitle>;diff --git a/front/src/modules/ui/typography/components/H2Title.tsx b/front/src/modules/ui/typography/components/H2Title.tsxindex 629c6ce22b5..2a3cfbf3453 100644--- a/front/src/modules/ui/typography/components/H2Title.tsx+++ b/front/src/modules/ui/typography/components/H2Title.tsx@@ -1,6 +1,6 @@import styled from '@emotion/styled';-type Props = {+type H2TitleProps = {title: string;description?: string;addornment?: React.ReactNode;@@ -33,7 +33,7 @@ const StyledDescription = styled.h3`margin-top: ${({ theme }) => theme.spacing(3)};`;-export const H2Title = ({ title, description, addornment }: Props) => (+export const H2Title = ({ title, description, addornment }: H2TitleProps) => (<StyledContainer><StyledTitleContainer><StyledTitle>{title}</StyledTitle>diff --git a/front/src/modules/ui/utilities/animation/components/AnimatedEaseIn.tsx b/front/src/modules/ui/utilities/animation/components/AnimatedEaseIn.tsxindex a2ec18e17ad..846493ab9b2 100644--- a/front/src/modules/ui/utilities/animation/components/AnimatedEaseIn.tsx+++ b/front/src/modules/ui/utilities/animation/components/AnimatedEaseIn.tsx@@ -1,6 +1,6 @@import { motion } from 'framer-motion';-type Props = Omit<+type AnimatedEaseInProps = Omit<React.ComponentProps<typeof motion.div>,'initial' | 'animated' | 'transition'> & {@@ -11,7 +11,7 @@ export const AnimatedEaseIn = ({children,duration = 0.3,...restProps-}: Props) => {+}: AnimatedEaseInProps) => {const initial = { opacity: 0 };const animate = { opacity: 1 };const transition = { ease: 'linear', duration };diff --git a/front/src/modules/ui/utilities/animation/components/AnimatedTextWord.tsx b/front/src/modules/ui/utilities/animation/components/AnimatedTextWord.tsxindex d67957ffdfb..6a6106a4b6c 100644--- a/front/src/modules/ui/utilities/animation/components/AnimatedTextWord.tsx+++ b/front/src/modules/ui/utilities/animation/components/AnimatedTextWord.tsx@@ -11,7 +11,10 @@ const StyledWord = styled(motion.span)`white-space: pre;`;-type Props = Omit<React.ComponentProps<typeof motion.div>, 'children'> & {+type AnimatedTextWordProps = Omit<+ React.ComponentProps<typeof motion.div>,+ 'children'+> & {text: string;};@@ -44,7 +47,10 @@ const childAnimation = {},};-export const AnimatedTextWord = ({ text = '', ...restProps }: Props) => {+export const AnimatedTextWord = ({+ text = '',+ ...restProps+}: AnimatedTextWordProps) => {const words = useMemo(() => {const words = text.split(' ');diff --git a/front/src/modules/ui/utilities/debug/components/TimingProfiler.tsx b/front/src/modules/ui/utilities/debug/components/TimingProfiler.tsxindex 133588f6cec..614a2aa4ed9 100644--- a/front/src/modules/ui/utilities/debug/components/TimingProfiler.tsx+++ b/front/src/modules/ui/utilities/debug/components/TimingProfiler.tsx@@ -3,12 +3,12 @@ import { Interaction } from 'scheduler/tracing';import { logDebug } from '~/utils/logDebug';-type OwnProps = {+type TimingProfilerProps = {id: string;children: React.ReactNode;};-export const TimingProfiler = ({ id, children }: OwnProps) => {+export const TimingProfiler = ({ id, children }: TimingProfilerProps) => {const handleRender = (id: string,phase: 'mount' | 'update',diff --git a/front/src/modules/ui/utilities/dimensions/components/ComputeNodeDimensions.tsx b/front/src/modules/ui/utilities/dimensions/components/ComputeNodeDimensions.tsxindex 2174fb36ccd..5a31327f2a2 100644--- a/front/src/modules/ui/utilities/dimensions/components/ComputeNodeDimensions.tsx+++ b/front/src/modules/ui/utilities/dimensions/components/ComputeNodeDimensions.tsx@@ -1,7 +1,7 @@import { ReactNode, useEffect, useRef, useState } from 'react';import styled from '@emotion/styled';-type ComputeNodeDimensionsEffectProps = {+type ComputeNodeDimensionsProps = {children: (dimensions: { height: number; width: number } | undefined,) => ReactNode;@@ -17,7 +17,7 @@ const StyledNodeWrapper = styled.span`export const ComputeNodeDimensions = ({children,node = children(undefined),-}: ComputeNodeDimensionsEffectProps) => {+}: ComputeNodeDimensionsProps) => {const nodeWrapperRef = useRef<HTMLSpanElement>(null);const [nodeDimensions, setNodeDimensions] = useState<| {diff --git a/front/src/modules/ui/utilities/drag-select/components/DragSelect.tsx b/front/src/modules/ui/utilities/drag-select/components/DragSelect.tsxindex dba9e33cb04..1acf11ba09c 100644--- a/front/src/modules/ui/utilities/drag-select/components/DragSelect.tsx+++ b/front/src/modules/ui/utilities/drag-select/components/DragSelect.tsx@@ -9,7 +9,7 @@ import { rgba } from '@/ui/theme/constants/colors';import { useDragSelect } from '../hooks/useDragSelect';-type OwnProps = {+type DragSelectProps = {dragSelectable: RefObject<HTMLElement>;onDragSelectionChange: (id: string, selected: boolean) => void;onDragSelectionStart?: () => void;@@ -19,7 +19,7 @@ export const DragSelect = ({dragSelectable,onDragSelectionChange,onDragSelectionStart,-}: OwnProps) => {+}: DragSelectProps) => {const theme = useTheme();const { isDragSelectionStartEnabled } = useDragSelect();const { DragSelection } = useSelectionContainer({diff --git a/front/src/modules/ui/utilities/hotkey/components/HotkeyEffect.tsx b/front/src/modules/ui/utilities/hotkey/components/HotkeyEffect.tsxindex bfc314471a5..1f2e604b5d8 100644--- a/front/src/modules/ui/utilities/hotkey/components/HotkeyEffect.tsx+++ b/front/src/modules/ui/utilities/hotkey/components/HotkeyEffect.tsx@@ -2,7 +2,7 @@ import { Keys } from 'react-hotkeys-hook';import { useScopedHotkeys } from '@/ui/utilities/hotkey/hooks/useScopedHotkeys';-type OwnProps = {+type HotkeyEffectProps = {hotkey: {key: Keys;scope: string;@@ -10,7 +10,10 @@ type OwnProps = {onHotkeyTriggered: () => void;};-export const HotkeyEffect = ({ hotkey, onHotkeyTriggered }: OwnProps) => {+export const HotkeyEffect = ({+ hotkey,+ onHotkeyTriggered,+}: HotkeyEffectProps) => {useScopedHotkeys(hotkey.key, () => onHotkeyTriggered(), hotkey.scope, [onHotkeyTriggered,]);diff --git a/front/src/modules/ui/utilities/page-title/PageTitle.tsx b/front/src/modules/ui/utilities/page-title/PageTitle.tsxindex dcd34060ff0..362002ce442 100644--- a/front/src/modules/ui/utilities/page-title/PageTitle.tsx+++ b/front/src/modules/ui/utilities/page-title/PageTitle.tsx@@ -1,11 +1,13 @@import { Helmet } from 'react-helmet-async';-type OwnProps = {+type PageTitleProps = {title: string;};-export const PageTitle = ({ title }: OwnProps) => (- <Helmet>- <title>{title}</title>- </Helmet>-);+export const PageTitle = (props: PageTitleProps) => {+ return (+ <Helmet>+ <title>{props.title}</title>+ </Helmet>+ );+};diff --git a/front/src/modules/ui/view-bar/components/GenericEntityFilterChip.tsx b/front/src/modules/ui/view-bar/components/GenericEntityFilterChip.tsxindex fa483fe2b15..baad6511f13 100644--- a/front/src/modules/ui/view-bar/components/GenericEntityFilterChip.tsx+++ b/front/src/modules/ui/view-bar/components/GenericEntityFilterChip.tsx@@ -3,12 +3,15 @@ import { IconComponent } from '@/ui/icon/types/IconComponent';import { Filter } from '../types/Filter';-type OwnProps = {+type GenericEntityFilterChipProps = {filter: Filter;Icon?: IconComponent;};-export const GenericEntityFilterChip = ({ filter, Icon }: OwnProps) => (+export const GenericEntityFilterChip = ({+ filter,+ Icon,+}: GenericEntityFilterChipProps) => (<EntityChipentityId={filter.value}name={filter.displayValue}diff --git a/front/src/modules/ui/view-bar/components/SortOrFilterChip.tsx b/front/src/modules/ui/view-bar/components/SortOrFilterChip.tsxindex 134d5d3c752..63e8774be05 100644--- a/front/src/modules/ui/view-bar/components/SortOrFilterChip.tsx+++ b/front/src/modules/ui/view-bar/components/SortOrFilterChip.tsx@@ -4,7 +4,7 @@ import styled from '@emotion/styled';import { IconX } from '@/ui/icon/index';import { IconComponent } from '@/ui/icon/types/IconComponent';-type OwnProps = {+type SortOrFilterChipProps = {labelKey?: string;labelValue: string;Icon?: IconComponent;@@ -61,7 +61,7 @@ const SortOrFilterChip = ({onRemove,isSort,testId,-}: OwnProps) => {+}: SortOrFilterChipProps) => {const theme = useTheme();return (<StyledChip isSort={isSort}>diff --git a/front/src/modules/ui/view-bar/components/ViewBarDropdownButton.tsx b/front/src/modules/ui/view-bar/components/ViewBarDropdownButton.tsxindex 58d51f66040..998b7bb3d53 100644--- a/front/src/modules/ui/view-bar/components/ViewBarDropdownButton.tsx+++ b/front/src/modules/ui/view-bar/components/ViewBarDropdownButton.tsx@@ -4,7 +4,7 @@ import { Placement } from '@floating-ui/react';import { DropdownMenu } from '@/ui/dropdown/components/DropdownMenu';import { HotkeyScope } from '@/ui/utilities/hotkey/types/HotkeyScope';-type DropdownButtonProps = {+type ViewBarDropdownButtonProps = {buttonComponent: JSX.Element | JSX.Element[];dropdownComponents: JSX.Element | JSX.Element[];dropdownId: string;@@ -29,7 +29,7 @@ export const ViewBarDropdownButton = ({onClickOutside,onClose,onOpen,-}: DropdownButtonProps) => {+}: ViewBarDropdownButtonProps) => {return (<DropdownMenuclickableComponent={buttonComponent}diff --git a/front/src/modules/workspace/components/WorkspaceInviteLink.tsx b/front/src/modules/workspace/components/WorkspaceInviteLink.tsxindex e0096b508a1..7baca18fb62 100644--- a/front/src/modules/workspace/components/WorkspaceInviteLink.tsx+++ b/front/src/modules/workspace/components/WorkspaceInviteLink.tsx@@ -17,11 +17,13 @@ const StyledLinkContainer = styled.div`margin-right: ${({ theme }) => theme.spacing(2)};`;-type OwnProps = {+type WorkspaceInviteLinkProps = {inviteLink: string;};-export const WorkspaceInviteLink = ({ inviteLink }: OwnProps) => {+export const WorkspaceInviteLink = ({+ inviteLink,+}: WorkspaceInviteLinkProps) => {const theme = useTheme();const { enqueueSnackBar } = useSnackBar();diff --git a/front/src/modules/workspace/components/WorkspaceMemberCard.tsx b/front/src/modules/workspace/components/WorkspaceMemberCard.tsxindex 672481c232a..040713e9b97 100644--- a/front/src/modules/workspace/components/WorkspaceMemberCard.tsx+++ b/front/src/modules/workspace/components/WorkspaceMemberCard.tsx@@ -30,7 +30,7 @@ const StyledEmailText = styled.span`color: ${({ theme }) => theme.font.color.tertiary};`;-type OwnProps = {+type WorkspaceMemberCardProps = {workspaceMember: {user: Pick<User,@@ -43,7 +43,7 @@ type OwnProps = {export const WorkspaceMemberCard = ({workspaceMember,accessory,-}: OwnProps) => (+}: WorkspaceMemberCardProps) => (<StyledContainer><AvataravatarUrl={workspaceMember.user.avatarUrl}diff --git a/front/src/testing/FullHeightStorybookLayout.tsx b/front/src/testing/FullHeightStorybookLayout.tsxindex dacbf93c32b..01127243814 100644--- a/front/src/testing/FullHeightStorybookLayout.tsx+++ b/front/src/testing/FullHeightStorybookLayout.tsx@@ -7,10 +7,10 @@ const StyledLayout = styled.div`width: calc(100vw - 32px);`;-type OwnProps = {+type FullHeightStorybookLayoutProps = {children: JSX.Element;};-export const FullHeightStorybookLayout = ({ children }: OwnProps) => (- <StyledLayout>{children}</StyledLayout>-);+export const FullHeightStorybookLayout = ({+ children,+}: FullHeightStorybookLayoutProps) => <StyledLayout>{children}</StyledLayout>;diff --git a/packages/eslint-plugin-twenty-ts/dist/index.js b/packages/eslint-plugin-twenty-ts/dist/index.jsindex ceb667f377b..2fd0edf8bf9 100644--- a/packages/eslint-plugin-twenty-ts/dist/index.js+++ b/packages/eslint-plugin-twenty-ts/dist/index.js@@ -8,5 +8,6 @@ module.exports = {"matching-state-variable": require("./src/rules/matching-state-variable"),"sort-css-properties-alphabetically": require("./src/rules/sort-css-properties-alphabetically"),"styled-components-prefixed-with-styled": require("./src/rules/styled-components-prefixed-with-styled"),+ "component-props-naming": require("./src/rules/component-props-naming"),},};diff --git a/packages/eslint-plugin-twenty-ts/dist/src/rules/component-props-naming.js b/packages/eslint-plugin-twenty-ts/dist/src/rules/component-props-naming.jsnew file mode 100644index 00000000000..16b32f8132b--- /dev/null+++ b/packages/eslint-plugin-twenty-ts/dist/src/rules/component-props-naming.js@@ -0,0 +1,66 @@+"use strict";+Object.defineProperty(exports, "__esModule", { value: true });+const utils_1 = require("@typescript-eslint/utils");+const createRule = utils_1.ESLintUtils.RuleCreator(() => "https://docs.twenty.com/developer/frontend/style-guide#props");+const checkPropsTypeName = (node, context, functionName) => {+ const expectedPropTypeName = `${functionName}Props`;+ if (/^[A-Z]/.test(functionName)) {+ node.params.forEach((param) => {+ var _a, _b;+ if ((param.type === utils_1.AST_NODE_TYPES.ObjectPattern ||+ param.type === utils_1.AST_NODE_TYPES.Identifier) &&+ ((_b = (_a = param.typeAnnotation) === null || _a === void 0 ? void 0 : _a.typeAnnotation) === null || _b === void 0 ? void 0 : _b.type) ===+ utils_1.AST_NODE_TYPES.TSTypeReference &&+ param.typeAnnotation.typeAnnotation.typeName.type ===+ utils_1.AST_NODE_TYPES.Identifier) {+ const { typeName } = param.typeAnnotation.typeAnnotation;+ const actualPropTypeName = typeName.name;+ if (actualPropTypeName !== expectedPropTypeName) {+ context.report({+ node: param,+ messageId: "invalidPropsTypeName",+ data: { expectedPropTypeName, actualPropTypeName },+ fix: (fixer) => fixer.replaceText(typeName, expectedPropTypeName),+ });+ }+ }+ });+ }+};+const componentPropsNamingRule = createRule({+ create: (context) => {+ return {+ ArrowFunctionExpression: (node) => {+ var _a, _b;+ if (node.parent.type === utils_1.AST_NODE_TYPES.VariableDeclarator &&+ node.parent.id.type === utils_1.AST_NODE_TYPES.Identifier) {+ const functionName = (_b = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.id) === null || _b === void 0 ? void 0 : _b.name;+ checkPropsTypeName(node, context, functionName);+ }+ },+ FunctionDeclaration: (node) => {+ var _a;+ if ((_a = node.id) === null || _a === void 0 ? void 0 : _a.name) {+ const functionName = node.id.name;+ checkPropsTypeName(node, context, functionName);+ }+ },+ };+ },+ name: "component-props-naming",+ meta: {+ type: "problem",+ docs: {+ description: "Ensure component props follow naming convention",+ recommended: "recommended",+ },+ fixable: "code",+ schema: [],+ messages: {+ invalidPropsTypeName: "Expected prop type to be '{{ expectedPropTypeName }}' but found '{{ actualPropTypeName }}'",+ },+ },+ defaultOptions: [],+});+module.exports = componentPropsNamingRule;+exports.default = componentPropsNamingRule;diff --git a/packages/eslint-plugin-twenty-ts/dist/src/tests/component-props-naming.spec.js b/packages/eslint-plugin-twenty-ts/dist/src/tests/component-props-naming.spec.jsnew file mode 100644index 00000000000..e427783780b--- /dev/null+++ b/packages/eslint-plugin-twenty-ts/dist/src/tests/component-props-naming.spec.js@@ -0,0 +1,54 @@+import { RuleTester } from "@typescript-eslint/rule-tester";++import componentPropsNamingRule from "../rules/component-props.naming";++const ruleTester = new RuleTester({+ parser: "@typescript-eslint/parser",+ parserOptions: {+ project: "./tsconfig.json",+ tsconfigRootDir: __dirname,+ ecmaFeatures: {+ jsx: true,+ },+ },+});++ruleTester.run("component-props-naming", componentPropsNamingRule, {+ valid: [+ {+ code: `+ type MyComponentProps = { id: number; };+ const MyComponent: React.FC<MyComponentProps> = (props) => <div>{props.id}</div>;+ `,+ },+ {+ code: `+ type AnotherComponentProps = { message: string; };+ export const AnotherComponent: React.FC<AnotherComponentProps> = (props) => <div>{props.message}</div>;+ `,+ },+ ],+ invalid: [+ {+ code: `+ type UnmatchedComponentProps = { id: number; };+ `,+ errors: [+ {+ messageId: "invalidPropsTypeName",+ },+ ],+ },+ {+ code: `+ type UnmatchedComponentProps = { message: string; };+ const DifferentComponent: React.FC<UnmatchedComponentProps> = (props) => <div>{props.message}</div>;+ `,+ errors: [+ {+ messageId: "invalidPropsTypeName",+ },+ ],+ },+ ],+});diff --git a/packages/eslint-plugin-twenty/index.ts b/packages/eslint-plugin-twenty/index.tsindex 9e2f0b9c034..2ea148937e0 100644--- a/packages/eslint-plugin-twenty/index.ts+++ b/packages/eslint-plugin-twenty/index.ts@@ -6,5 +6,6 @@ module.exports = {"matching-state-variable": require("./src/rules/matching-state-variable"),"sort-css-properties-alphabetically": require("./src/rules/sort-css-properties-alphabetically"),"styled-components-prefixed-with-styled": require("./src/rules/styled-components-prefixed-with-styled"),+ "component-props-naming": require("./src/rules/component-props-naming"),},};diff --git a/packages/eslint-plugin-twenty/src/rules/component-props-naming.ts b/packages/eslint-plugin-twenty/src/rules/component-props-naming.tsnew file mode 100644index 00000000000..de3b674300b--- /dev/null+++ b/packages/eslint-plugin-twenty/src/rules/component-props-naming.ts@@ -0,0 +1,84 @@+import {+ AST_NODE_TYPES,+ ESLintUtils,+ TSESTree,+} from "@typescript-eslint/utils";+import { RuleContext } from "@typescript-eslint/utils/ts-eslint";++const createRule = ESLintUtils.RuleCreator(+ () => "https://docs.twenty.com/developer/frontend/style-guide#props",+);++const checkPropsTypeName = (+ node: TSESTree.FunctionDeclaration | TSESTree.ArrowFunctionExpression,+ context: Readonly<RuleContext<"invalidPropsTypeName", never[]>>,+ functionName: string,+) => {+ const expectedPropTypeName = `${functionName}Props`;++ if (/^[A-Z]/.test(functionName)) {+ node.params.forEach((param) => {+ if (+ (param.type === AST_NODE_TYPES.ObjectPattern ||+ param.type === AST_NODE_TYPES.Identifier) &&+ param.typeAnnotation?.typeAnnotation?.type ===+ AST_NODE_TYPES.TSTypeReference &&+ param.typeAnnotation.typeAnnotation.typeName.type ===+ AST_NODE_TYPES.Identifier+ ) {+ const { typeName } = param.typeAnnotation.typeAnnotation;+ const actualPropTypeName = typeName.name;+ if (actualPropTypeName !== expectedPropTypeName) {+ context.report({+ node: param,+ messageId: "invalidPropsTypeName",+ data: { expectedPropTypeName, actualPropTypeName },+ fix: (fixer) => fixer.replaceText(typeName, expectedPropTypeName),+ });+ }+ }+ });+ }+};++const componentPropsNamingRule = createRule({+ create: (context) => {+ return {+ ArrowFunctionExpression: (node) => {+ if (+ node.parent.type === AST_NODE_TYPES.VariableDeclarator &&+ node.parent.id.type === AST_NODE_TYPES.Identifier+ ) {+ const functionName = node.parent?.id?.name;++ checkPropsTypeName(node, context, functionName);+ }+ },+ FunctionDeclaration: (node) => {+ if (node.id?.name) {+ const functionName = node.id.name;++ checkPropsTypeName(node, context, functionName);+ }+ },+ };+ },+ name: "component-props-naming",+ meta: {+ type: "problem",+ docs: {+ description: "Ensure component props follow naming convention",+ recommended: "recommended",+ },+ fixable: "code",+ schema: [],+ messages: {+ invalidPropsTypeName:+ "Expected prop type to be '{{ expectedPropTypeName }}' but found '{{ actualPropTypeName }}'",+ },+ },+ defaultOptions: [],+});++module.exports = componentPropsNamingRule;+export default componentPropsNamingRule;diff --git a/packages/eslint-plugin-twenty/src/tests/component-props-naming.spec.ts b/packages/eslint-plugin-twenty/src/tests/component-props-naming.spec.tsnew file mode 100644index 00000000000..881358d5680--- /dev/null+++ b/packages/eslint-plugin-twenty/src/tests/component-props-naming.spec.ts@@ -0,0 +1,47 @@+import { RuleTester } from "@typescript-eslint/rule-tester";++import componentPropsNamingRule from "../rules/component-props-naming";++const ruleTester = new RuleTester({+ parser: "@typescript-eslint/parser",+ parserOptions: {+ project: "./tsconfig.json",+ tsconfigRootDir: __dirname,+ ecmaFeatures: {+ jsx: true,+ },+ },+});++ruleTester.run("component-props-naming", componentPropsNamingRule, {+ valid: [+ {+ code: "export const MyComponent= (props: MyComponentProps) => <div>{props.message}</div>;",+ },+ {+ code: "export const MyComponent = ({ message }: MyComponentProps) => <div>{message}</div>;",+ },+ ],+ invalid: [+ {+ code: "export const MyComponent = (props: OwnProps) => <div>{props.message}</div>;",+ errors: [+ {+ messageId: "invalidPropsTypeName",+ },+ ],+ output:+ "export const MyComponent = (props: MyComponentProps) => <div>{props.message}</div>;",+ },+ {+ code: "export const MyComponent = ({ message }: OwnProps) => <div>{message}</div>;",+ errors: [+ {+ messageId: "invalidPropsTypeName",+ },+ ],+ output:+ "export const MyComponent = ({ message }: MyComponentProps) => <div>{message}</div>;",+ },+ ],+});