-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP]: Blocklist V2 #9435
base: main
Are you sure you want to change the base?
[WIP]: Blocklist V2 #9435
Conversation
802ef9a
to
b1d8d97
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR introduces a comprehensive blocklist management system with multi-level blocking capabilities (From/To, Cc, Bcc) and context-based state management.
- Critical bug: Empty handler functions passed in
SettingsAccountsBlocklistSection.tsx
BlocklistContext.Provider instead of actual implementations - Added validation schema in
SettingAccountBlocklistContactRow.tsx
for email/domain inputs with proper error handling - New
BlocklistItem
type includes optional 'levels' property for granular blocking control - Implemented multi-select dropdown in
SettingAccountBlocklistContactRow.tsx
for configuring blocking levels - Created container architecture with
SettingAccountsBlocklistContainer.tsx
for better component organization
💡 (2/5) Greptile learns from your feedback when you react with 👍/👎!
8 file(s) reviewed, 8 comment(s)
Edit PR Review Bot Settings | Greptile
...s/twenty-front/src/modules/settings/accounts/components/SettingsAccountsBlocklistSection.tsx
Show resolved
Hide resolved
.../twenty-front/src/modules/settings/accounts/components/SettingAccountsBlocklistContainer.tsx
Show resolved
Hide resolved
.../twenty-front/src/modules/settings/accounts/components/SettingAccountsBlocklistContainer.tsx
Show resolved
Hide resolved
.../twenty-front/src/modules/settings/accounts/components/SettingAccountBlocklistContactRow.tsx
Show resolved
Hide resolved
packages/twenty-front/src/modules/settings/accounts/contexts/BlocklistContext.ts
Show resolved
Hide resolved
@@ -0,0 +1 @@ | |||
export type OptionalString = string | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Consider using undefined
instead of null
to align with TypeScript best practices, as undefined
is more commonly used for optional values
@@ -0,0 +1,6 @@ | |||
export enum BlocklistContactLevel { | |||
ALL = 'All', | |||
FROMTO = 'From/To', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: consider using 'FROM_TO' instead of 'FROMTO' to follow common enum naming conventions
🚧 WIP
Fixing #8831