Open Bonapara opened 2 months ago
To customize the email onboarding settings, follow these steps:
Update the frontend component:
src/components/onboarding/EmailSyncOptions.js
.const emailSyncOptions = [
{ value: 'everything', label: 'Everything' },
{ value: 'metadata', label: 'Metadata only' }
];
Add the option to exclude non-professional emails:
<Checkbox
label="Exclude non-professional emails"
checked={excludeNonProfessional}
onChange={(e) => setExcludeNonProfessional(e.target.checked)}
/>
Update the backend to handle the new option:
src/controllers/EmailSyncController.js
.const { syncOption, excludeNonProfessional } = req.body;
if (excludeNonProfessional) {
// Logic to exclude non-professional emails
}
Update any relevant schemas or models:
src/models/EmailSyncSettings.js
.
const EmailSyncSettingsSchema = new Schema({
syncOption: { type: String, required: true },
excludeNonProfessional: { type: Boolean, default: false }
});
can I work on this issue?
Sure @RobertoSimonini1, thanks for contributing!
@Bonapara, before start working on it, should I wait the ongoing work by @bosiraphael?
Hello @RobertoSimonini1, yes you should wait for the settings V2. They will be done by @charlesBochet and should be finished by the end of the following week :)
@Bonapara ok, thanks :)
Current Behavior
Today, we ask which level of information a user wants to share with their team while syncing their email for the first time during onboarding.
Desired Behavior
We want to reduce the choices to either "Everything" or "Metadata only" to create more space to ask if the user wants to exclude non-professional emails from being synchronized.
https://www.figma.com/design/xt8O9mFeLl46C5InWwoMrN/Twenty?node-id=33430-185278&t=QzHWEjAMYRBmJkM8-11
Blocked by ongoing work on Settings V2 by @bosiraphael