Skip to content

Commit

Permalink
feat(Assistant): Rename assistant flags to be more precise
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Oct 28, 2024
1 parent cab1de6 commit 56bafef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ const Home = ({ setAppsReady, wrapper }) => {
<Main className="u-flex-grow-1">
<ScrollToTopOnMount target={wrapper} />
{pathname === '/connected' && <Announcements />}
{flag('cozy.search.enabled') && !isMobile && (
{flag('cozy.searchbar.enabled') && !isMobile && (
<AssistantWrapperDesktop />
)}
<Content
className={cx('u-flex u-flex-column u-ph-1', {
[styles['homeMainContent--withAssistant']]:
isMobile && flag('cozy.search.enabled'),
isMobile && flag('cozy.searchbar.enabled'),
[styles['homeMainContent--immersive']]:
getFlagshipMetadata().immersive
})}
Expand Down
4 changes: 2 additions & 2 deletions src/containers/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ const App = ({ accounts, konnectors, triggers }) => {
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(
Expand Down
2 changes: 1 addition & 1 deletion src/dataproxy/DataProxyProvider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
Expand Down

0 comments on commit 56bafef

Please sign in to comment.