From 4c84af95d911b6100e38a502785404cfed516093 Mon Sep 17 00:00:00 2001 From: "Irina V. Kuzmina" Date: Thu, 23 May 2024 17:44:07 +0300 Subject: [PATCH] Remove FieldHint flag usage --- .../features/features-list/DatasetFieldHint.ts | 2 +- .../Sections/AppearanceSection/AppearanceSection.tsx | 6 +----- .../GroupControlBody/GroupControlBody.tsx | 12 +++--------- .../components/Dialogs/DialogField/DialogField.tsx | 9 +-------- 4 files changed, 6 insertions(+), 23 deletions(-) diff --git a/src/server/components/features/features-list/DatasetFieldHint.ts b/src/server/components/features/features-list/DatasetFieldHint.ts index e9cfa7df8f..8fa1535ce6 100644 --- a/src/server/components/features/features-list/DatasetFieldHint.ts +++ b/src/server/components/features/features-list/DatasetFieldHint.ts @@ -5,6 +5,6 @@ export default createFeatureConfig({ name: Feature.FieldHint, state: { development: true, - production: false, + production: true, }, }); diff --git a/src/ui/units/dash/containers/Dialogs/Control2/Sections/AppearanceSection/AppearanceSection.tsx b/src/ui/units/dash/containers/Dialogs/Control2/Sections/AppearanceSection/AppearanceSection.tsx index 2fa1369e1c..f0c603fb6c 100644 --- a/src/ui/units/dash/containers/Dialogs/Control2/Sections/AppearanceSection/AppearanceSection.tsx +++ b/src/ui/units/dash/containers/Dialogs/Control2/Sections/AppearanceSection/AppearanceSection.tsx @@ -2,8 +2,6 @@ import React from 'react'; import {I18n} from 'i18n'; -import {Feature} from '../../../../../../../../shared'; -import Utils from '../../../../../../../../ui/utils'; import {SectionWrapper} from '../../../../../../../components/SectionWrapper/SectionWrapper'; import {HintRow} from './Rows/HintRow/HintRow'; @@ -15,13 +13,11 @@ import './AppearanceSection.scss'; const i18n = I18n.keyset('dash.control-dialog.edit'); const AppearanceSection = () => { - const canSetHint = Utils.isEnabledFeature(Feature.FieldHint); - return ( - {canSetHint && } + ); }; diff --git a/src/ui/units/dash/containers/Dialogs/GroupControl/GroupControlBody/GroupControlBody.tsx b/src/ui/units/dash/containers/Dialogs/GroupControl/GroupControlBody/GroupControlBody.tsx index 7a92d7b8ef..f7582d113e 100644 --- a/src/ui/units/dash/containers/Dialogs/GroupControl/GroupControlBody/GroupControlBody.tsx +++ b/src/ui/units/dash/containers/Dialogs/GroupControl/GroupControlBody/GroupControlBody.tsx @@ -4,8 +4,6 @@ import {FormRow} from '@gravity-ui/components'; import block from 'bem-cn-lite'; import {I18n} from 'i18n'; -import {Feature} from '../../../../../../../shared'; -import {Utils} from '../../../../../../../ui'; import {HintRow} from '../../Control2/Sections/AppearanceSection/Rows/HintRow/HintRow'; import {InnerTitleRow} from '../../Control2/Sections/AppearanceSection/Rows/InnerTitleRow/InnerTitleRow'; import {TitleRow} from '../../Control2/Sections/AppearanceSection/Rows/TitleRow/TitleRow'; @@ -18,8 +16,6 @@ const b = block('group-control-dialog'); const i18n = I18n.keyset('dash.group-controls-dialog.edit'); export const GroupControlBody = () => { - const canSetHint = Utils.isEnabledFeature(Feature.FieldHint); - return ( @@ -31,11 +27,9 @@ export const GroupControlBody = () => {
- {canSetHint && ( -
- -
- )} +
+ +
diff --git a/src/ui/units/wizard/components/Dialogs/DialogField/DialogField.tsx b/src/ui/units/wizard/components/Dialogs/DialogField/DialogField.tsx index 4acd182059..75fd2f3232 100644 --- a/src/ui/units/wizard/components/Dialogs/DialogField/DialogField.tsx +++ b/src/ui/units/wizard/components/Dialogs/DialogField/DialogField.tsx @@ -8,7 +8,6 @@ import {connect} from 'react-redux'; import {Dispatch, bindActionCreators} from 'redux'; import { CommonSharedExtraSettings, - Feature, HintSettings, Placeholder, PlaceholderId, @@ -38,7 +37,6 @@ import { Field as TField, TableBarsSettings, } from '../../../../../../shared/types'; -import {Utils} from '../../../../../../ui'; import {registry} from '../../../../../registry'; import { AVAILABLE_DATETIMETZ_FORMATS, @@ -389,17 +387,12 @@ class DialogField extends React.PureComponent