Add message import granulary on non-pro emails, group emails and received contact creation (#6156)
1) Remove featureFlag 2) Base contactCreation on messageChannel.autoContactCreationPolicy 4) add excludeProfessionalEmails + excludeGroupEmails logic
This commit is contained in:
@ -33,6 +33,7 @@ export const SettingsAccountsEventVisibilitySettingsCard = ({
|
||||
value = CalendarChannelVisibility.ShareEverything,
|
||||
}: SettingsAccountsEventVisibilitySettingsCardProps) => (
|
||||
<SettingsAccountsRadioSettingsCard
|
||||
name="event-visibility"
|
||||
options={eventSettingsVisibilityOptions}
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
|
||||
@ -40,6 +40,7 @@ export const SettingsAccountsMessageAutoCreationCard = ({
|
||||
value = MessageChannelContactAutoCreationPolicy.SENT_AND_RECEIVED,
|
||||
}: SettingsAccountsMessageAutoCreationCardProps) => (
|
||||
<SettingsAccountsRadioSettingsCard
|
||||
name="message-auto-creation"
|
||||
options={autoCreationOptions}
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
|
||||
@ -51,6 +51,7 @@ export const SettingsAccountsMessageVisibilityCard = ({
|
||||
value = MessageChannelVisibility.ShareEverything,
|
||||
}: SettingsAccountsMessageVisibilityCardProps) => (
|
||||
<SettingsAccountsRadioSettingsCard
|
||||
name="message-visibility"
|
||||
options={inboxSettingsVisibilityOptions}
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
|
||||
@ -10,6 +10,7 @@ type SettingsAccountsRadioSettingsCardProps<Option extends { value: string }> =
|
||||
onChange: (nextValue: Option['value']) => void;
|
||||
options: Option[];
|
||||
value: Option['value'];
|
||||
name: string;
|
||||
};
|
||||
|
||||
const StyledCardContent = styled(CardContent)`
|
||||
@ -49,6 +50,7 @@ export const SettingsAccountsRadioSettingsCard = <
|
||||
onChange,
|
||||
options,
|
||||
value,
|
||||
name,
|
||||
}: SettingsAccountsRadioSettingsCardProps<Option>) => (
|
||||
<Card rounded>
|
||||
{options.map((option, index) => (
|
||||
@ -63,6 +65,7 @@ export const SettingsAccountsRadioSettingsCard = <
|
||||
<StyledDescription>{option.description}</StyledDescription>
|
||||
</div>
|
||||
<StyledRadio
|
||||
name={name}
|
||||
value={option.value}
|
||||
onCheckedChange={() => onChange(option.value)}
|
||||
checked={value === option.value}
|
||||
|
||||
@ -54,9 +54,7 @@ export const SettingsAccountsRowDropdownMenu = ({
|
||||
LeftIcon={IconMail}
|
||||
text="Emails settings"
|
||||
onClick={() => {
|
||||
navigate(
|
||||
`/settings/accounts/emails/${account.messageChannels[0].id}`,
|
||||
);
|
||||
navigate(`/settings/accounts/emails`);
|
||||
closeDropdown();
|
||||
}}
|
||||
/>
|
||||
@ -64,9 +62,7 @@ export const SettingsAccountsRowDropdownMenu = ({
|
||||
LeftIcon={IconCalendarEvent}
|
||||
text="Calendar settings"
|
||||
onClick={() => {
|
||||
navigate(
|
||||
`/settings/accounts/calendars/${account.calendarChannels[0].id}`,
|
||||
);
|
||||
navigate(`/settings/accounts/calendars`);
|
||||
closeDropdown();
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user