From d5d12c3609ec954aef559ec518365b761c325e79 Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Thu, 12 Sep 2024 15:50:56 -0300 Subject: [PATCH 1/3] =?UTF-8?q?=E2=9C=A8=20(frontend):=20Add=20react-json-?= =?UTF-8?q?view-lite=20package=20to=20frontend=20dependencies=20?= =?UTF-8?q?=F0=9F=93=9D=20(frontend):=20Update=20JsonView=20component=20in?= =?UTF-8?q?=20dictAreaModal=20to=20use=20dark=20theme=20and=20adjust=20cla?= =?UTF-8?q?ss=20name=20=F0=9F=93=9D=20(frontend):=20Update=20background=20?= =?UTF-8?q?color=20for=20dark=20theme=20in=20JsonView=20component=20stylin?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/package.json | 1 + src/frontend/src/modals/dictAreaModal/index.tsx | 5 ++--- src/frontend/src/style/classes.css | 12 ++++-------- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/frontend/package.json b/src/frontend/package.json index a0d6182042fc..ed20c4dfe624 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -62,6 +62,7 @@ "react-hook-form": "^7.52.0", "react-hotkeys-hook": "^4.5.0", "react-icons": "^5.2.1", + "react-json-view-lite": "^1.5.0", "react-laag": "^2.0.5", "react-markdown": "^8.0.7", "react-pdf": "^9.0.0", diff --git a/src/frontend/src/modals/dictAreaModal/index.tsx b/src/frontend/src/modals/dictAreaModal/index.tsx index b0499e7a8f51..3fd098ba0508 100644 --- a/src/frontend/src/modals/dictAreaModal/index.tsx +++ b/src/frontend/src/modals/dictAreaModal/index.tsx @@ -65,14 +65,13 @@ export default function DictAreaModal({
diff --git a/src/frontend/src/style/classes.css b/src/frontend/src/style/classes.css index 22d4a2545fc3..f8c3d9d0a20f 100644 --- a/src/frontend/src/style/classes.css +++ b/src/frontend/src/style/classes.css @@ -151,18 +151,14 @@ textarea[class^="ag-"]:focus { height: fit-content !important; } -.json-view-white { - background-color: #f8fafc !important; -} - -.json-view-dark { - background-color: #141924 !important; +.json-view.dark { + background-color: #161c28 !important; } .react-flow__node.dragging * { cursor: grabbing !important; } -.react-flow__node-noteNode:not(.selected){ +.react-flow__node-noteNode:not(.selected) { z-index: -1 !important; -} \ No newline at end of file +} From 7205b74d359489e37ff6e69a8e562be149f9a23c Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Fri, 13 Sep 2024 10:02:05 -0300 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=94=A7=20(generalBugs-shard-13.spec.t?= =?UTF-8?q?s):=20remove=20unnecessary=20line=20causing=20linting=20issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tests/extended/regression/generalBugs-shard-13.spec.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/frontend/tests/extended/regression/generalBugs-shard-13.spec.ts b/src/frontend/tests/extended/regression/generalBugs-shard-13.spec.ts index c26b5851a8a9..947152b2b913 100644 --- a/src/frontend/tests/extended/regression/generalBugs-shard-13.spec.ts +++ b/src/frontend/tests/extended/regression/generalBugs-shard-13.spec.ts @@ -63,7 +63,6 @@ test("should be able to share a component on the store by clicking on the share await page.getByText("New Project", { exact: true }).click(); await page.getByRole("heading", { name: "Basic Prompting" }).click(); - await page.waitForSelector("text=share", { timeout: 10000 }); await page.waitForSelector("text=playground", { timeout: 10000 }); await page.waitForSelector("text=api", { timeout: 10000 }); From 4a4c15b2e9ce6c7b9b97e1bd69faeeafa9fa0881 Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Fri, 13 Sep 2024 10:55:55 -0300 Subject: [PATCH 3/3] updating lock --- src/frontend/package-lock.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/frontend/package-lock.json b/src/frontend/package-lock.json index ddcef6df70b9..dbd35cc62fe7 100644 --- a/src/frontend/package-lock.json +++ b/src/frontend/package-lock.json @@ -67,6 +67,7 @@ "react-hook-form": "^7.52.0", "react-hotkeys-hook": "^4.5.0", "react-icons": "^5.2.1", + "react-json-view-lite": "^1.5.0", "react-laag": "^2.0.5", "react-markdown": "^8.0.7", "react-pdf": "^9.0.0", @@ -14018,6 +14019,18 @@ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", "license": "MIT" }, + "node_modules/react-json-view-lite": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/react-json-view-lite/-/react-json-view-lite-1.5.0.tgz", + "integrity": "sha512-nWqA1E4jKPklL2jvHWs6s+7Na0qNgw9HCP6xehdQJeg6nPBTFZgGwyko9Q0oj+jQWKTTVRS30u0toM5wiuL3iw==", + "license": "MIT", + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "react": "^16.13.1 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/react-laag": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/react-laag/-/react-laag-2.0.5.tgz",