-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
feat(settings-security): add feature flag for trusted domains #10338
feat(settings-security): add feature flag for trusted domains #10338
Conversation
Introduce a new feature flag, IsTrustedDomainsEnabled, to control the visibility of the trusted domains section in security settings. Updated back-end seeds, enums, and front-end logic to support this change.
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 adds a new feature flag IsTrustedDomainsEnabled
to control the visibility of trusted domains functionality in the security settings section.
- Added new feature flag in
/packages/twenty-server/src/database/typeorm-seeds/core/feature-flags.ts
with default valuefalse
- Implemented conditional rendering in
/packages/twenty-front/src/pages/settings/security/SettingsSecurity.tsx
using the new feature flag - Added
IsTrustedDomainsEnabled
toFeatureFlagKey
enum in/packages/twenty-server/src/engine/core-modules/feature-flag/enums/feature-flag-key.enum.ts
- Updated GraphQL types in
/packages/twenty-front/src/generated/graphql.tsx
to include the new feature flag
4 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
packages/twenty-front/src/pages/settings/security/SettingsSecurity.tsx
Outdated
Show resolved
Hide resolved
…ture-flag-for-trusted-domains
Introduce a new enum flag IsTrustedDomainsEnabled in the GraphQL metadata. This addition supports feature toggling for trusted domain functionality.
…ture-flag-for-trusted-domains
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.
maybe rename as discussed before merging? Good for me otherwise!
packages/twenty-server/src/database/typeorm-seeds/core/feature-flags.ts
Outdated
Show resolved
Hide resolved
…ture-flag-for-trusted-domains # Conflicts: # packages/twenty-front/src/pages/settings/security/SettingsSecurity.tsx
Renamed the feature flag key IsTrustedDomainsEnabled to IsApprovedAccessDomainsEnabled across the codebase. Updated all relevant enums, seeds, GraphQL types, and usage references to align with the new terminology. This change improves clarity and better reflects the intended functionality.
…d-domains' into feat/add-feature-flag-for-trusted-domains
Removed the WorkspaceTrustedDomainResolver and WorkspaceTrustedDomainService, along with their associated methods and dependencies. This change simplifies the codebase by eliminating unused or redundant functionality.
…ture-flag-for-trusted-domains
…ture-flag-for-trusted-domains
…ture-flag-for-trusted-domains
…10346) Added support for validating trusted domains during user sign-in and sign-up processes. Updated services to check trusted domains and ensure proper access control. Adjusted tests and mocks to align with the new functionality.
6fbb8b6
into
feat/frontend-manage-trusted-domains
Thanks @AMoreaux for your contribution! |
Introduce a new feature flag, IsTrustedDomainsEnabled, to control the visibility of the trusted domains section in security settings. Updated back-end seeds, enums, and front-end logic to support this change.