From 7e7e957e32d5ca91af2372d138703579abf32065 Mon Sep 17 00:00:00 2001 From: Timothy Carambat Date: Thu, 14 Mar 2024 16:56:15 -0700 Subject: [PATCH] Enable privacy and handling to be reviewed and modified (#910) --- frontend/src/App.jsx | 7 + .../src/components/SettingsSidebar/index.jsx | 9 + .../GeneralSettings/PrivacyAndData/index.jsx | 206 ++++++++++++++++++ .../Steps/DataHandling/index.jsx | 6 +- frontend/src/utils/paths.js | 3 + server/models/systemSettings.js | 1 + server/utils/helpers/updateENV.js | 4 + 7 files changed, 233 insertions(+), 3 deletions(-) create mode 100644 frontend/src/pages/GeneralSettings/PrivacyAndData/index.jsx diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 8a57d27bb..9ef160e72 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -50,6 +50,9 @@ const EmbedConfigSetup = lazy( () => import("@/pages/GeneralSettings/EmbedConfigs") ); const EmbedChats = lazy(() => import("@/pages/GeneralSettings/EmbedChats")); +const PrivacyAndData = lazy( + () => import("@/pages/GeneralSettings/PrivacyAndData") +); export default function App() { return ( @@ -110,6 +113,10 @@ export default function App() { path="/settings/security" element={} /> + } + /> } diff --git a/frontend/src/components/SettingsSidebar/index.jsx b/frontend/src/components/SettingsSidebar/index.jsx index a7aca7ffe..66f881ff6 100644 --- a/frontend/src/components/SettingsSidebar/index.jsx +++ b/frontend/src/components/SettingsSidebar/index.jsx @@ -20,6 +20,7 @@ import { CodeBlock, Barcode, ClosedCaptioning, + EyeSlash, } from "@phosphor-icons/react"; import useUser from "@/hooks/useUser"; import { USER_BACKGROUND_COLOR } from "@/utils/constants"; @@ -349,5 +350,13 @@ const SidebarOptions = ({ user = null }) => ( flex={true} allowedRole={["admin"]} /> +