Skip to content

Commit

Permalink
feat(content-sidebar): pass metadata.aiSuggestions flag into redesign…
Browse files Browse the repository at this point in the history
…ed 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>
  • Loading branch information
mhagmajer and mergify[bot] authored Oct 2, 2024
1 parent c034de4 commit b672f70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/elements/content-sidebar/SidebarPanels.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ class SidebarPanels extends React.Component<Props, State> {
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;
Expand Down Expand Up @@ -282,6 +283,7 @@ class SidebarPanels extends React.Component<Props, State> {
elementId={elementId}
fileId={fileId}
hasSidebarInitialized={isInitialized}
isBoxAiSuggestionsEnabled={isMetadataAiSuggestionsEnabled}
ref={this.metadataSidebar}
startMarkName={MARK_NAME_JS_LOADING_METADATA_REDESIGNED}
{...metadataSidebarProps}
Expand Down

0 comments on commit b672f70

Please sign in to comment.