From 56bafef4734136c57469738bc9f7cad3df11860f Mon Sep 17 00:00:00 2001 From: JF-Cozy Date: Mon, 28 Oct 2024 16:32:25 +0100 Subject: [PATCH] feat(Assistant): Rename assistant flags to be more precise --- src/components/Home.jsx | 4 ++-- src/containers/App.jsx | 4 ++-- src/dataproxy/DataProxyProvider.jsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Home.jsx b/src/components/Home.jsx index 663c75f11..8348cb090 100644 --- a/src/components/Home.jsx +++ b/src/components/Home.jsx @@ -28,13 +28,13 @@ const Home = ({ setAppsReady, wrapper }) => {
{pathname === '/connected' && } - {flag('cozy.search.enabled') && !isMobile && ( + {flag('cozy.searchbar.enabled') && !isMobile && ( )} { const context = useQuery(contextQuery.definition, contextQuery.options) const showAssistantForMobile = isFlagshipApp() - ? flag('cozy.search.enabled-for-flagship') - : flag('cozy.search.enabled') && isMobile + ? flag('cozy.searchbar.enabled-for-flagship') + : flag('cozy.searchbar.enabled') && isMobile useEffect(() => { setIsFetching( diff --git a/src/dataproxy/DataProxyProvider.jsx b/src/dataproxy/DataProxyProvider.jsx index 82db17044..a60d33740 100644 --- a/src/dataproxy/DataProxyProvider.jsx +++ b/src/dataproxy/DataProxyProvider.jsx @@ -27,7 +27,7 @@ export const DataProxyProvider = React.memo(({ children }) => { const initIframe = async () => { try { - if (!flag('cozy.search.with-result')) { + if (!flag('cozy.search.enabled')) { log.log( 'Dataproxy features will be disabled due to missing feature flags' )