From 053fcdc7da832538a3e9f342d02e4b2a81fe40d5 Mon Sep 17 00:00:00 2001 From: Anton Sukhov Date: Tue, 20 Jan 2026 08:44:53 +0400 Subject: [PATCH 1/2] OSN-1281. Add useEffect for value update ## Description _useEffect_ added for value update [react-json-editor-ajrm](https://github.com/AndrewRedican/react-json-editor-ajrm) package is now archived, and we have the same issue as described here: https://github.com/AndrewRedican/react-json-editor-ajrm/issues/88 As a temporary solution, we can use the _waitAfterKeyPress_ prop to make this field at least usable for manual input. --- ngui/ui/src/components/JsonView/JsonView.tsx | 2 +- .../components/OrganizationOptions/OrganizationOptions.tsx | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ngui/ui/src/components/JsonView/JsonView.tsx b/ngui/ui/src/components/JsonView/JsonView.tsx index 96cbbe026..095de1757 100644 --- a/ngui/ui/src/components/JsonView/JsonView.tsx +++ b/ngui/ui/src/components/JsonView/JsonView.tsx @@ -13,7 +13,7 @@ const JsonView = ({ value, onChange, id, viewOnly = false }) => { height="auto" width="100%" onChange={onChange} - waitAfterKeyPress={0} + waitAfterKeyPress={1000} confirmGood={false} colors={theme.palette.json} viewOnly={viewOnly} diff --git a/ngui/ui/src/components/OrganizationOptions/OrganizationOptions.tsx b/ngui/ui/src/components/OrganizationOptions/OrganizationOptions.tsx index af86d1ec5..c4e887fa8 100644 --- a/ngui/ui/src/components/OrganizationOptions/OrganizationOptions.tsx +++ b/ngui/ui/src/components/OrganizationOptions/OrganizationOptions.tsx @@ -1,4 +1,4 @@ -import { useState } from "react"; +import { useEffect, useState } from "react"; import AddOutlinedIcon from "@mui/icons-material/AddOutlined"; import { CircularProgress } from "@mui/material"; import Box from "@mui/material/Box"; @@ -39,6 +39,10 @@ const OrganizationOptions = ({ const openSideModal = useOpenSideModal(); + useEffect(() => { + setUpdatedValue(value); + }, [value]); + const onJsonChange = ({ error, jsObject }) => { setUpdatedValue(jsObject); setIsValidJson(error === false); From 327a9d13861c3075bf98e55fac5e2a29a6c93994 Mon Sep 17 00:00:00 2001 From: Anton Sukhov Date: Tue, 20 Jan 2026 08:51:53 +0400 Subject: [PATCH 2/2] OSN-1284. When selecting the Data Source filter, the perspective in side-modal is not saved upon clicking the Save button ## Description Added account_id property for schema validation --- ngui/ui/src/components/Resources/filterConfigs.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ngui/ui/src/components/Resources/filterConfigs.tsx b/ngui/ui/src/components/Resources/filterConfigs.tsx index 8e0d3bbb8..82c6e70ae 100644 --- a/ngui/ui/src/components/Resources/filterConfigs.tsx +++ b/ngui/ui/src/components/Resources/filterConfigs.tsx @@ -128,6 +128,10 @@ export const FILTER_CONFIGS = { type: { type: "string", enum: CLOUD_ACCOUNT_TYPES_LIST + }, + account_id: { + type: "string", + nullable: true } } }