From 2ffa095303aabd0eb74de2b7a09183c6330b0042 Mon Sep 17 00:00:00 2001 From: Timofey Boyko Date: Fri, 28 Jun 2024 17:37:55 +0300 Subject: [PATCH] Client:OAuth: enable public client by default and remove toggle button --- .../ClientForm/components/BasicBlock.tsx | 14 +++++++------- .../OAuth/sub-components/ClientForm/index.tsx | 4 ++-- packages/runtime.json | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/components/BasicBlock.tsx b/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/components/BasicBlock.tsx index 7c4de70452..d3894b733f 100644 --- a/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/components/BasicBlock.tsx +++ b/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/components/BasicBlock.tsx @@ -6,8 +6,8 @@ import { HelpButton } from "@docspace/shared/components/help-button"; import { FieldContainer } from "@docspace/shared/components/field-container"; import { Checkbox } from "@docspace/shared/components/checkbox"; import { IClientReqDTO } from "@docspace/shared/utils/oauth/types"; -import { ToggleButton } from "@docspace/shared/components/toggle-button"; -import { Text } from "@docspace/shared/components/text"; +// import { ToggleButton } from "@docspace/shared/components/toggle-button"; +// import { Text } from "@docspace/shared/components/text"; import { StyledBlock, StyledInputBlock } from "../ClientForm.styled"; @@ -24,7 +24,7 @@ interface BasicBlockProps { logoValue: string; descriptionValue: string; allowPkce: boolean; - isPublic: boolean; + // isPublic: boolean; changeValue: ( name: keyof IClientReqDTO, @@ -80,7 +80,7 @@ const BasicBlock = ({ logoValue, descriptionValue, allowPkce, - isPublic, + // isPublic, changeValue, isEdit, @@ -148,7 +148,7 @@ const BasicBlock = ({ ); - const publicClientHelpButtonText = "Help text"; + // const publicClientHelpButtonText = "Help text"; const isNameRequiredError = requiredErrorFields.includes("name"); const isWebsiteRequiredError = requiredErrorFields.includes("website_url"); @@ -230,7 +230,7 @@ const BasicBlock = ({ - Public client - + */} ); diff --git a/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/index.tsx b/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/index.tsx index 7376a46239..17745083bb 100644 --- a/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/index.tsx +++ b/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/ClientForm/index.tsx @@ -69,7 +69,7 @@ const ClientForm = ({ terms_url: "", policy_url: "", - is_public: false, + is_public: true, allow_pkce: false, scopes: [], @@ -380,7 +380,7 @@ const ClientForm = ({ descriptionValue={form.description} logoValue={form.logo} allowPkce={form.allow_pkce} - isPublic={form.is_public} + // isPublic={form.is_public} changeValue={onChangeForm} isEdit={isEdit} errorFields={errorFields} diff --git a/packages/runtime.json b/packages/runtime.json index f5a7c911a0..8b7a99f2a5 100644 --- a/packages/runtime.json +++ b/packages/runtime.json @@ -1,5 +1,5 @@ { - "date": "2024628_131043", + "date": "2024628_173723", "checksums": { "api.js": "0efbae3383bf6c6b6f26d573eee164d2", "api.poly.js": "2a2ac2c0e4a7007b61d2d1ff7b00a22e",