The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
feat(settings): replace TextInputV2 with TextInput and update hotkey … (#12236)
Antoine Moreaux710c859f4ee6
diff --git a/packages/twenty-front/src/modules/app/effect-components/PageChangeEffect.tsx b/packages/twenty-front/src/modules/app/effect-components/PageChangeEffect.tsxindex 079be631fdf..793e315482b 100644--- a/packages/twenty-front/src/modules/app/effect-components/PageChangeEffect.tsx+++ b/packages/twenty-front/src/modules/app/effect-components/PageChangeEffect.tsx@@ -223,6 +223,17 @@ export const PageChangeEffect = () => {});break;}+ case isMatchingLocation(+ location,+ SettingsPath.RestPlayground,+ AppBasePath.Settings,+ ): {+ setHotkeyScope(PageHotkeyScope.Settings, {+ goto: false,+ keyboardShortcutMenu: true,+ });+ break;+ }case isMatchingLocation(location,SettingsPath.WorkspaceMembersPage,diff --git a/packages/twenty-front/src/pages/settings/security/SettingsSecurityApprovedAccessDomain.tsx b/packages/twenty-front/src/pages/settings/security/SettingsSecurityApprovedAccessDomain.tsxindex b8cf8fa19a4..d9d1986bf20 100644--- a/packages/twenty-front/src/pages/settings/security/SettingsSecurityApprovedAccessDomain.tsx+++ b/packages/twenty-front/src/pages/settings/security/SettingsSecurityApprovedAccessDomain.tsx@@ -11,9 +11,9 @@ import { Trans, useLingui } from '@lingui/react/macro';import { z } from 'zod';import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer';import { useCreateApprovedAccessDomainMutation } from '~/generated/graphql';-import { TextInputV2 } from '@/ui/input/components/TextInputV2';import { H2Title } from 'twenty-ui/display';import { Section } from 'twenty-ui/layout';+import { TextInput } from '@/ui/input/components/TextInput';export const SettingsSecurityApprovedAccessDomain = () => {const navigate = useNavigateSettings();@@ -115,12 +115,11 @@ export const SettingsSecurityApprovedAccessDomain = () => {field: { onChange, value },fieldState: { error },}) => (- <TextInputV2+ <TextInput+ autoFocusautoComplete="off"value={value}- onChange={(domain: string) => {- onChange(domain);- }}+ onChange={onChange}fullWidthplaceholder="yourdomain.com"error={error?.message}@@ -140,7 +139,7 @@ export const SettingsSecurityApprovedAccessDomain = () => {field: { onChange, value },fieldState: { error },}) => (- <TextInputV2+ <TextInputautoComplete="off"value={value.split('@')[0]}onChange={onChange}