Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
256b36c
refactor(apps/meteor/client/views/omnichannel/components/OmnichannelB…
tassoevan Jul 3, 2026
5ff03f2
refactor(apps/meteor/client/views/omnichannel/components/outboundMess…
tassoevan Jul 3, 2026
2286f99
refactor(apps/meteor/client/views/omnichannel/components/outboundMess…
tassoevan Jul 3, 2026
8aba091
refactor(apps/meteor/client/views/omnichannel/components/outboundMess…
tassoevan Jul 3, 2026
88e4168
refactor(apps/meteor/client/views/omnichannel/components/outboundMess…
tassoevan Jul 3, 2026
3ee0722
refactor(apps/meteor/client/views/omnichannel/components/outboundMess…
tassoevan Jul 3, 2026
f485c04
refactor(apps/meteor/client/views/omnichannel/components/outboundMess…
tassoevan Jul 3, 2026
2f9b014
refactor(apps/meteor/client/views/omnichannel/components/outboundMess…
tassoevan Jul 3, 2026
e50cc09
refactor(apps/meteor/client/views/omnichannel/components/outboundMess…
tassoevan Jul 3, 2026
2e27ee9
refactor(apps/meteor/client/views/omnichannel/components/outboundMess…
tassoevan Jul 3, 2026
f16db8b
refactor(apps/meteor/client/views/omnichannel/components/outboundMess…
tassoevan Jul 3, 2026
0625494
refactor(apps/meteor/client/views/omnichannel/components/outboundMess…
tassoevan Jul 3, 2026
bb4a48a
refactor(apps/meteor/client/views/omnichannel/components/outboundMess…
tassoevan Jul 3, 2026
6a91b76
refactor(apps/meteor/client/views/omnichannel/components/outboundMess…
tassoevan Jul 3, 2026
05bddb8
refactor(apps/meteor/client/views/omnichannel/components/outboundMess…
tassoevan Jul 3, 2026
8866726
refactor(apps/meteor/client/views/omnichannel/contactHistory/MessageL…
tassoevan Jul 3, 2026
2fcd151
refactor(apps/meteor/client/views/omnichannel/contactInfo): export co…
tassoevan Jul 3, 2026
f35730a
refactor(apps/meteor/client/views/omnichannel/contactInfo/ContactInfo…
tassoevan Jul 3, 2026
21c3208
refactor(apps/meteor/client/views/omnichannel/contactInfo/tabs/Contac…
tassoevan Jul 3, 2026
ca0de99
refactor(apps/meteor/client/views/omnichannel/contactInfo/tabs/Contac…
tassoevan Jul 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { useOmnichannelPriorities } from '../../hooks/useOmnichannelPriorities';
import { PriorityIcon } from '../../priorities/PriorityIcon';
import RoomActivityIcon from '../RoomActivityIcon';

const OmnichannelBadges = ({ room }: { room: ISubscription & IRoom }) => {
export type OmnichannelBadgesProps = { room: ISubscription & IRoom };

const OmnichannelBadges = ({ room }: OmnichannelBadgesProps) => {
const { enabled: isPriorityEnabled } = useOmnichannelPriorities();

if (!isOmnichannelRoom(room)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { UserAvatar } from '@rocket.chat/ui-avatar';
import type { AllHTMLAttributes } from 'react';
import { useMemo, useState } from 'react';

type AutoCompleteDepartmentAgentProps = Omit<AllHTMLAttributes<HTMLInputElement>, 'onChange'> & {
export type AutoCompleteDepartmentAgentProps = Omit<AllHTMLAttributes<HTMLInputElement>, 'onChange'> & {
error?: boolean;
value: string;
onChange(value: string): void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useTimeFromNow } from '../../../../../hooks/useTimeFromNow';
import useOutboundProvidersList from '../hooks/useOutboundProvidersList';
import { findLastChatFromChannel } from '../utils/findLastChatFromChannel';

type AutoCompleteOutboundProviderProps = Omit<
export type AutoCompleteOutboundProviderProps = Omit<
ComponentProps<typeof PaginatedSelectFiltered>,
'filter' | 'setFilter' | 'options' | 'endReached' | 'renderItem'
> & {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { formatPhoneNumber } from '../../../../../../lib/formatPhoneNumber';
import type { TemplateParameters } from '../../types/template';
import TemplatePreview from '../TemplatePreview';

type OutboundMessagePreviewProps = ComponentProps<typeof Box> & {
export type OutboundMessagePreviewProps = ComponentProps<typeof Box> & {
template?: IOutboundProviderTemplate;
contactName?: ILivechatContact['name'];
providerName?: IOutboundProviderMetadata['providerName'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { ReactNode } from 'react';
import { useId } from 'react';
import { useTranslation } from 'react-i18next';

type PreviewItemProps = {
export type PreviewItemProps = {
label: string;
icon: Keys;
children: ReactNode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import useOutboundProvidersList from '../../hooks/useOutboundProvidersList';
import { useOutboundMessageUpsellModal } from '../../modals';
import { formatOutboundMessagePayload, isMessageStepValid, isRecipientStepValid, isRepliesStepValid } from '../../utils/outbound-message';

type OutboundMessageWizardProps = {
export type OutboundMessageWizardProps = {
defaultValues?: Partial<Pick<SubmitPayload, 'contactId' | 'providerId' | 'recipient' | 'sender'>>;
onSuccess?(): void;
onError?(): void;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box } from '@rocket.chat/fuselage';
import type { ComponentProps } from 'react';

type OutboundMessageFormProps = ComponentProps<typeof Box> & {
export type OutboundMessageFormProps = ComponentProps<typeof Box> & {
onSubmit?: () => void;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { css } from '@rocket.chat/css-in-js';
import { IconButton } from '@rocket.chat/fuselage';
import { useTranslation } from 'react-i18next';

type RetryButtonProps = {
export type RetryButtonProps = {
loading: boolean;
onClick(): void;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export type MessageFormSubmitPayload = {
templateParameters: TemplateParameters;
};

type MessageFormProps = {
export type MessageFormProps = {
contact?: Omit<Serialized<ILivechatContact>, 'contactManager'>;
templates?: IOutboundProviderTemplate[];
onSubmit(values: MessageFormSubmitPayload): void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import TemplateSelect from '../../../../TemplateSelect';
import { cxp } from '../../../utils/cx';
import type { MessageFormData } from '../MessageForm';

type TemplateFieldProps = ComponentProps<typeof Field> & {
export type TemplateFieldProps = ComponentProps<typeof Field> & {
control: Control<MessageFormData>;
templates: Serialized<IOutboundProviderTemplate>[] | undefined;
onChange?: (templateId: string) => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { TemplateParameter, TemplateParameterMetadata } from '../../../../.
import TemplatePlaceholderInput from '../../../../TemplatePlaceholderSelector';
import type { MessageFormData } from '../MessageForm';

type TemplatePlaceholderFieldProps = ComponentProps<typeof Field> & {
export type TemplatePlaceholderFieldProps = ComponentProps<typeof Field> & {
control: Control<MessageFormData>;
metadata: TemplateParameterMetadata;
contact?: Omit<Serialized<ILivechatContact>, 'contactManager'>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useWatch } from 'react-hook-form';
import TemplatePreview from '../../../../TemplatePreview';
import type { MessageFormData } from '../MessageForm';

type TemplatePreviewFieldProps = {
export type TemplatePreviewFieldProps = {
control: Control<MessageFormData>;
template: IOutboundProviderTemplate;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type RecipientFormSubmitPayload = {
sender: string;
};

type RecipientFormProps = {
export type RecipientFormProps = {
defaultValues?: Partial<RecipientFormData>;
onDirty?(): void;
onSubmit(values: RecipientFormSubmitPayload): void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import RetryButton from '../../../components/RetryButton';
import { cxp } from '../../../utils/cx';
import type { RecipientFormData } from '../RecipientForm';

type ProviderFieldProps = ComponentProps<typeof Field> & {
export type ProviderFieldProps = ComponentProps<typeof Field> & {
control: Control<RecipientFormData>;
contact?: Omit<Serialized<ILivechatContact>, 'contactManager'>;
disabled?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import AutoCompleteContact from '../../../../../../AutoCompleteContact';
import RetryButton from '../../../components/RetryButton';
import type { RecipientFormData } from '../RecipientForm';

type ContactFieldProps = ComponentProps<typeof Field> & {
export type ContactFieldProps = ComponentProps<typeof Field> & {
control: Control<RecipientFormData>;
isError: boolean;
isFetching: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Trans, useTranslation } from 'react-i18next';
import RecipientSelect from '../../../../RecipientSelect';
import type { RecipientFormData } from '../RecipientForm';

type RecipientFieldProps = ComponentProps<typeof Field> & {
export type RecipientFieldProps = ComponentProps<typeof Field> & {
control: Control<RecipientFormData>;
contact?: Omit<Serialized<ILivechatContact>, 'contactManager'>;
type: 'phone' | 'email';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useTranslation } from 'react-i18next';
import SenderSelect from '../../../../SenderSelect';
import type { RecipientFormData } from '../RecipientForm';

type SenderFieldProps = ComponentProps<typeof Field> & {
export type SenderFieldProps = ComponentProps<typeof Field> & {
control: Control<RecipientFormData>;
provider?: Serialized<IOutboundProviderMetadata>;
disabled?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export type RepliesFormRef = {
submit: () => Promise<RepliesFormSubmitPayload>;
};

type RepliesFormProps = {
export type RepliesFormProps = {
defaultValues?: Partial<RepliesFormData>;
renderActions?(props: { isSubmitting: boolean }): ReactNode;
onSubmit: (data: RepliesFormSubmitPayload) => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import AutoCompleteAgent from '../../../../AutoCompleteDepartmentAgent';
import { cxp } from '../../../utils/cx';
import type { RepliesFormData } from '../RepliesForm';

type AgentFieldProps = ComponentProps<typeof Field> & {
export type AgentFieldProps = ComponentProps<typeof Field> & {
control: Control<RepliesFormData>;
agents: Serialized<ILivechatDepartmentAgents>[];
canAssignAgent?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import RetryButton from '../../../components/RetryButton';
import { cxp } from '../../../utils/cx';
import type { RepliesFormData } from '../RepliesForm';

type DepartmentFieldProps = ComponentProps<typeof Field> & {
export type DepartmentFieldProps = ComponentProps<typeof Field> & {
control: Control<RepliesFormData>;
onlyMyDepartments?: boolean;
isError: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { ComponentProps } from 'react';
import type { MessageFormSubmitPayload } from '../forms/MessageForm';
import MessageForm from '../forms/MessageForm';

type MessageStepProps = Omit<ComponentProps<typeof MessageForm>, 'onSubmit'> & {
export type MessageStepProps = Omit<ComponentProps<typeof MessageForm>, 'onSubmit'> & {
onSubmit(values: MessageFormSubmitPayload): void;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useWizardContext, WizardActions, WizardNextButton } from '@rocket.chat/
import type { RecipientFormData, RecipientFormSubmitPayload } from '../forms/RecipientForm';
import RecipientForm from '../forms/RecipientForm';

type RecipientStepProps = {
export type RecipientStepProps = {
defaultValues?: Partial<RecipientFormData>;
onDirty?: () => void;
onSubmit(values: RecipientFormSubmitPayload): void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useWizardContext, WizardActions, WizardBackButton, WizardNextButton } f
import type { RepliesFormData, RepliesFormSubmitPayload } from '../forms/RepliesForm';
import RepliesForm from '../forms/RepliesForm';

type RepliesStepProps = {
export type RepliesStepProps = {
defaultValues?: Partial<RepliesFormData>;
onSubmit(values: RepliesFormSubmitPayload): void;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next';

import OutboundMessagePreview from '../../OutboundMessagePreview';

type ReviewStepProps = ComponentProps<typeof OutboundMessagePreview> & {
export type ReviewStepProps = ComponentProps<typeof OutboundMessagePreview> & {
onSend(): Promise<void>;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useMemo } from 'react';

import { formatPhoneNumber } from '../../../../../lib/formatPhoneNumber';

type RecipientSelectProps = Omit<ComponentProps<typeof Select>, 'options' | 'onChange' | 'value'> & {
export type RecipientSelectProps = Omit<ComponentProps<typeof Select>, 'options' | 'onChange' | 'value'> & {
type: 'phone' | 'email';
contact: Serialized<ILivechatContact> | undefined;
value: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useMemo, type ComponentProps } from 'react';

import { formatPhoneNumber } from '../../../../../lib/formatPhoneNumber';

type SenderSelectProps = Omit<ComponentProps<typeof Select>, 'options'> & {
export type SenderSelectProps = Omit<ComponentProps<typeof Select>, 'options'> & {
provider: IOutboundProviderMetadata | undefined;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Button } from '@rocket.chat/fuselage';
import { forwardRef, type ComponentProps } from 'react';
import { useTranslation } from 'react-i18next';

type TemplatePlaceholderButtonProps = Omit<ComponentProps<typeof IconButton>, 'color' | 'icon'> & {
export type TemplatePlaceholderButtonProps = Omit<ComponentProps<typeof IconButton>, 'color' | 'icon'> & {
icon?: ComponentProps<typeof IconButton>['icon'];
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useRef, type ChangeEventHandler, type ChangeEvent, type ComponentProps
import PlaceholderSelector from './TemplatePlaceholderSelector';
import type { TemplateParameter } from '../../types/template';

type TemplatePlaceholderInputProps = Omit<ComponentProps<typeof TextInput>, 'value' | 'onChange'> & {
export type TemplatePlaceholderInputProps = Omit<ComponentProps<typeof TextInput>, 'value' | 'onChange'> & {
type?: TemplateParameter['type'];
value: string;
contact?: Serialized<ILivechatContact>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import MarkdownText from '../../../../../components/MarkdownText';
import type { TemplateParameters, ComponentType } from '../types/template';
import { processTemplatePreviewText } from '../utils/template';

type TemplatePreviewProps = {
export type TemplatePreviewProps = {
template: IOutboundProviderTemplate;
parameters?: TemplateParameters;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useLanguages } from '@rocket.chat/ui-contexts';
import { useMemo } from 'react';
import type { Key, ComponentProps } from 'react';

type TemplateSelectProps = Omit<ComponentProps<typeof SelectFiltered>, 'value' | 'onChange' | 'options'> & {
export type TemplateSelectProps = Omit<ComponentProps<typeof SelectFiltered>, 'value' | 'onChange' | 'options'> & {
templates: IOutboundProviderTemplate[];
value: string;
onChange(value: Key): void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { useId } from 'react';
import { useTranslation } from 'react-i18next';

type OutboundMessageCloseConfirmationModalProps = {
export type OutboundMessageCloseConfirmationModalProps = {
onConfirm(): void;
onCancel(): void;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import GenericUpsellModal from '../../../../../../components/GenericUpsellModal'
import { useExternalLink } from '../../../../../../hooks/useExternalLink';
import { CONTACT_SALES_LINK, OUTBOUND_DOCS_LINK } from '../../constants';

type OutboundMessageUpsellModalProps = {
export type OutboundMessageUpsellModalProps = {
hasModule?: boolean;
isAdmin?: boolean;
isCommunity?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import UiKitMessageBlock from '../../../../components/message/uikit/UiKitMessage
import { useFormatDate } from '../../../../hooks/useFormatDate';
import { useFormatTime } from '../../../../hooks/useFormatTime';

type ContactHistoryMessageProps = {
export type ContactHistoryMessageProps = {
message: IMessage;
sequential: boolean;
isNewDay: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { useHistoryMessageList } from './useHistoryMessageList';
import { isMessageNewDay } from '../../../room/MessageList/lib/isMessageNewDay';
import { isMessageSequential } from '../../../room/MessageList/lib/isMessageSequential';

type ContactHistoryMessagesListProps = {
export type ContactHistoryMessagesListProps = {
chatId: string;
onClose: () => void;
onOpenRoom?: () => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useExternalLink } from '../../../hooks/useExternalLink';
import { useHasLicenseModule } from '../../../hooks/useHasLicenseModule';
import { links } from '../../../lib/links';

type AdvancedContactModalProps = {
export type AdvancedContactModalProps = {
onCancel: () => void;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import ContactInfoChannels from '../tabs/ContactInfoChannels';
import ContactInfoDetails from '../tabs/ContactInfoDetails';
import ContactInfoHistory from '../tabs/ContactInfoHistory';

type ContactInfoProps = {
export type ContactInfoProps = {
contact: Serialized<ILivechatContact>;
onClose: () => void;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useQuery } from '@tanstack/react-query';
import ContactInfoError from '../ContactInfoError';
import ContactInfo from './ContactInfo';

type ContactInfoWithDataProps = {
export type ContactInfoWithDataProps = {
id: string;
onClose: () => void;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { ContactManagerInput } from '../../additionalForms';
import { useCustomFieldsMetadata } from '../../directory/hooks/useCustomFieldsMetadata';
import { useReviewContact } from '../hooks/useReviewContact';

type ReviewContactModalProps = {
export type ReviewContactModalProps = {
contact: Serialized<ILivechatContact>;
onCancel: () => void;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useQuery } from '@tanstack/react-query';
import ContactInfoError from './ContactInfoError';
import EditContactInfo from './EditContactInfo';

type EditContactInfoWithDataProps = {
export type EditContactInfoWithDataProps = {
id: string;
onClose: () => void;
onCancel: () => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Box } from '@rocket.chat/fuselage';
import { GenericModal } from '@rocket.chat/ui-client';
import { useTranslation } from 'react-i18next';

type BlockChannelModalProps = {
export type BlockChannelModalProps = {
onCancel: () => void;
onConfirm: () => void;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Virtuoso } from 'react-virtuoso';
import ContactInfoChannelsItem from './ContactInfoChannelsItem';
import useOutboundProvidersList from '../../../components/outboundMessage/hooks/useOutboundProvidersList';

type ContactInfoChannelsProps = {
export type ContactInfoChannelsProps = {
contact: Pick<ILivechatContact, '_id' | 'unknown'>;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { useOutboundMessageModal } from '../../../components/outboundMessage/mod
import { useVisitorInfo } from '../../../directory/hooks/useVisitorInfo';
import { useOmnichannelSource } from '../../../hooks/useOmnichannelSource';

type ContactInfoChannelsItemProps = Serialized<ILivechatContactChannel> & {
export type ContactInfoChannelsItemProps = Serialized<ILivechatContactChannel> & {
contact?: Pick<ILivechatContact, '_id' | 'unknown'>;
canSendOutboundMessage?: boolean;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Field from '../../../components/Field';
import Info from '../../../components/Info';
import Label from '../../../components/Label';

type ContactInfoDetailsProps = {
export type ContactInfoDetailsProps = {
contact: Pick<ILivechatContact, '_id' | 'unknown'>;
emails?: string[];
phones?: string[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { IconProps } from '@rocket.chat/fuselage';
import { Box, ButtonGroup, Icon } from '@rocket.chat/fuselage';
import type { ComponentProps, ReactNode } from 'react';

type ContactInfoDetailsEntryProps = Pick<ComponentProps<typeof Box>, 'is' | 'aria-labelledby'> & {
export type ContactInfoDetailsEntryProps = Pick<ComponentProps<typeof Box>, 'is' | 'aria-labelledby'> & {
icon: IconProps['name'];
value: string;
actions?: ReactNode;
Expand Down
Loading
Loading