Removed all v2 in naming of state management logic (#13675)
This PR removes any V2 naming in state management logic and some minor utils and hooks. It has a lot of changes but nearly all of them were made by the rename functionality of vscode which is deterministic, so it shouldn't introduce any regression. QA has been made on this PR on the main features of the app without any noticeable issue. Also renamed some other v2 naming related items : - TextInputV2 => TextInput - TextInput => SettingsTextInput - ObjectFilterDropdownFilterSelectMenuItemV2 => ObjectFilterDropdownFilterSelectMenuItem - useInitDraftValueV2 => useInitDraftValue - useOpenRecordTableCellV2 => useOpenRecordTableCell
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ import { SettingsRadioCardContainer } from '@/settings/components/SettingsRadioC
|
||||
import { SettingsSSOOIDCForm } from '@/settings/security/components/SSO/SettingsSSOOIDCForm';
|
||||
import { SettingsSSOSAMLForm } from '@/settings/security/components/SSO/SettingsSSOSAMLForm';
|
||||
import { SettingSecurityNewSSOIdentityFormValues } from '@/settings/security/types/SSOIdentityProvider';
|
||||
import { TextInput } from '@/ui/input/components/TextInput';
|
||||
import { SettingsTextInput } from '@/ui/input/components/SettingsTextInput';
|
||||
import styled from '@emotion/styled';
|
||||
import { t } from '@lingui/core/macro';
|
||||
import { ReactElement, useMemo } from 'react';
|
||||
@@ -87,7 +87,7 @@ export const SettingsSSOIdentitiesProvidersForm = () => {
|
||||
name="name"
|
||||
control={control}
|
||||
render={({ field: { onChange, value } }) => (
|
||||
<TextInput
|
||||
<SettingsTextInput
|
||||
instanceId="sso-identity-provider-name"
|
||||
autoComplete="off"
|
||||
label={t`Name`}
|
||||
|
||||
+6
-6
@@ -1,6 +1,6 @@
|
||||
/* @license Enterprise */
|
||||
|
||||
import { TextInput } from '@/ui/input/components/TextInput';
|
||||
import { SettingsTextInput } from '@/ui/input/components/SettingsTextInput';
|
||||
import styled from '@emotion/styled';
|
||||
import { useLingui } from '@lingui/react/macro';
|
||||
import { Controller, useFormContext } from 'react-hook-form';
|
||||
@@ -51,7 +51,7 @@ export const SettingsSSOOIDCForm = () => {
|
||||
<StyledInputsContainer>
|
||||
<StyledContainer>
|
||||
<StyledLinkContainer>
|
||||
<TextInput
|
||||
<SettingsTextInput
|
||||
instanceId="sso-oidc-authorized-uri"
|
||||
readOnly={true}
|
||||
label={t`Authorized URI`}
|
||||
@@ -75,7 +75,7 @@ export const SettingsSSOOIDCForm = () => {
|
||||
</StyledContainer>
|
||||
<StyledContainer>
|
||||
<StyledLinkContainer>
|
||||
<TextInput
|
||||
<SettingsTextInput
|
||||
instanceId="sso-oidc-redirection-uri"
|
||||
readOnly={true}
|
||||
label={t`Redirection URI`}
|
||||
@@ -109,7 +109,7 @@ export const SettingsSSOOIDCForm = () => {
|
||||
name="clientID"
|
||||
control={control}
|
||||
render={({ field: { onChange, value } }) => (
|
||||
<TextInput
|
||||
<SettingsTextInput
|
||||
instanceId="sso-oidc-client-id"
|
||||
autoComplete="off"
|
||||
label={t`Client ID`}
|
||||
@@ -124,7 +124,7 @@ export const SettingsSSOOIDCForm = () => {
|
||||
name="clientSecret"
|
||||
control={control}
|
||||
render={({ field: { onChange, value } }) => (
|
||||
<TextInput
|
||||
<SettingsTextInput
|
||||
instanceId="sso-oidc-client-secret"
|
||||
autoComplete="off"
|
||||
type="password"
|
||||
@@ -140,7 +140,7 @@ export const SettingsSSOOIDCForm = () => {
|
||||
name="issuer"
|
||||
control={control}
|
||||
render={({ field: { onChange, value } }) => (
|
||||
<TextInput
|
||||
<SettingsTextInput
|
||||
instanceId="sso-oidc-issuer"
|
||||
autoComplete="off"
|
||||
label={t`Issuer URI`}
|
||||
|
||||
+3
-3
@@ -2,7 +2,7 @@
|
||||
|
||||
import { parseSAMLMetadataFromXMLFile } from '@/settings/security/utils/parseSAMLMetadataFromXMLFile';
|
||||
import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';
|
||||
import { TextInput } from '@/ui/input/components/TextInput';
|
||||
import { SettingsTextInput } from '@/ui/input/components/SettingsTextInput';
|
||||
import { useTheme } from '@emotion/react';
|
||||
import styled from '@emotion/styled';
|
||||
import { useLingui } from '@lingui/react/macro';
|
||||
@@ -170,7 +170,7 @@ export const SettingsSSOSAMLForm = () => {
|
||||
<HorizontalSeparator text={'Or'} />
|
||||
<StyledContainer>
|
||||
<StyledLinkContainer>
|
||||
<TextInput
|
||||
<SettingsTextInput
|
||||
instanceId="sso-saml-acs-url"
|
||||
disabled={true}
|
||||
label="ACS Url"
|
||||
@@ -191,7 +191,7 @@ export const SettingsSSOSAMLForm = () => {
|
||||
</StyledContainer>
|
||||
<StyledContainer>
|
||||
<StyledLinkContainer>
|
||||
<TextInput
|
||||
<SettingsTextInput
|
||||
instanceId="sso-saml-entity-id"
|
||||
disabled={true}
|
||||
label="Entity ID"
|
||||
|
||||
Reference in New Issue
Block a user