Replace hotkey scopes by focus stack (Part 4 - Inputs) (#12933)

# Replace hotkey scopes by focus stack (Part 4 - Inputs)

This PR is the 4th part of a refactoring aiming to deprecate the hotkey
scopes api in favor of the new focus stack api which is more robust.
Part 1: https://github.com/twentyhq/twenty/pull/12673
Part 2: https://github.com/twentyhq/twenty/pull/12798
Part 3: https://github.com/twentyhq/twenty/pull/12910

In this part, I refactored all inputs in the app so that each input has
a unique id which can be used to track the focused element.
This commit is contained in:
Raphaël Bosi
2025-07-07 15:42:12 +02:00
committed by GitHub
parent 0199d5f72a
commit c6e5bab4e9
140 changed files with 1178 additions and 1004 deletions
@@ -7,12 +7,12 @@ import { SettingsSSOSAMLForm } from '@/settings/security/components/SSO/Settings
import { SettingSecurityNewSSOIdentityFormValues } from '@/settings/security/types/SSOIdentityProvider';
import { TextInput } from '@/ui/input/components/TextInput';
import styled from '@emotion/styled';
import { t } from '@lingui/core/macro';
import { ReactElement, useMemo } from 'react';
import { Controller, useFormContext } from 'react-hook-form';
import { IdentityProviderType } from '~/generated/graphql';
import { t } from '@lingui/core/macro';
import { H2Title, IconComponent, IconKey } from 'twenty-ui/display';
import { Section } from 'twenty-ui/layout';
import { IdentityProviderType } from '~/generated/graphql';
const StyledInputsContainer = styled.div`
display: grid;
@@ -88,6 +88,7 @@ export const SettingsSSOIdentitiesProvidersForm = () => {
control={control}
render={({ field: { onChange, value } }) => (
<TextInput
instanceId="sso-identity-provider-name"
autoComplete="off"
label={t`Name`}
value={value}
@@ -54,6 +54,7 @@ export const SettingsSSOOIDCForm = () => {
<StyledContainer>
<StyledLinkContainer>
<TextInput
instanceId="sso-oidc-authorized-uri"
readOnly={true}
label={t`Authorized URI`}
value={authorizedUrl}
@@ -81,6 +82,7 @@ export const SettingsSSOOIDCForm = () => {
<StyledContainer>
<StyledLinkContainer>
<TextInput
instanceId="sso-oidc-redirection-uri"
readOnly={true}
label={t`Redirection URI`}
value={redirectionUrl}
@@ -118,6 +120,7 @@ export const SettingsSSOOIDCForm = () => {
control={control}
render={({ field: { onChange, value } }) => (
<TextInput
instanceId="sso-oidc-client-id"
autoComplete="off"
label={t`Client ID`}
value={value}
@@ -132,6 +135,7 @@ export const SettingsSSOOIDCForm = () => {
control={control}
render={({ field: { onChange, value } }) => (
<TextInput
instanceId="sso-oidc-client-secret"
autoComplete="off"
type="password"
label={t`Client Secret`}
@@ -147,6 +151,7 @@ export const SettingsSSOOIDCForm = () => {
control={control}
render={({ field: { onChange, value } }) => (
<TextInput
instanceId="sso-oidc-issuer"
autoComplete="off"
label={t`Issuer URI`}
value={value}
@@ -169,6 +169,7 @@ export const SettingsSSOSAMLForm = () => {
<StyledContainer>
<StyledLinkContainer>
<TextInput
instanceId="sso-saml-acs-url"
disabled={true}
label="ACS Url"
value={acsUrl}
@@ -196,6 +197,7 @@ export const SettingsSSOSAMLForm = () => {
<StyledContainer>
<StyledLinkContainer>
<TextInput
instanceId="sso-saml-entity-id"
disabled={true}
label="Entity ID"
value={entityID}