From b672f7059697e922d2ae193ef6a98217695c843d Mon Sep 17 00:00:00 2001 From: Marcin Hagmajer Date: Wed, 2 Oct 2024 13:35:15 +0200 Subject: [PATCH] feat(content-sidebar): pass metadata.aiSuggestions flag into redesigned sidebar (#3665) * feat(content-sidebar): use aiSuggestions flag in metadata sidebar * fix: sort asc --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- src/elements/content-sidebar/SidebarPanels.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/elements/content-sidebar/SidebarPanels.js b/src/elements/content-sidebar/SidebarPanels.js index fcfc9e1e1c..4578586dae 100644 --- a/src/elements/content-sidebar/SidebarPanels.js +++ b/src/elements/content-sidebar/SidebarPanels.js @@ -194,6 +194,7 @@ class SidebarPanels extends React.Component { const { isInitialized } = this.state; const isMetadataSidebarRedesignEnabled = isFeatureEnabled(features, 'metadata.redesign.enabled'); + const isMetadataAiSuggestionsEnabled = isFeatureEnabled(features, 'metadata.aiSuggestions.enabled'); if (!isOpen || (!hasActivity && !hasDetails && !hasMetadata && !hasSkills && !hasVersions)) { return null; @@ -282,6 +283,7 @@ class SidebarPanels extends React.Component { elementId={elementId} fileId={fileId} hasSidebarInitialized={isInitialized} + isBoxAiSuggestionsEnabled={isMetadataAiSuggestionsEnabled} ref={this.metadataSidebar} startMarkName={MARK_NAME_JS_LOADING_METADATA_REDESIGNED} {...metadataSidebarProps}