Skip to content

Commit

Permalink
Jetpack AI: Include usage panel on block settings sidebar [PoC] (#34341)
Browse files Browse the repository at this point in the history
* Add the Usage Panel on the block settings sidebar

* Add changelog file

* Remove the heading of the panel
  • Loading branch information
lhkowalski authored Dec 1, 2023
1 parent bce3bc8 commit f9af9ee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Jetpack AI: Add Usage Panel to the block settings sidebar.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import { useEffect, useRef } from 'react';
/**
* Internal dependencies
*/
import UsagePanel from '../../plugins/ai-assistant-plugin/components/usage-panel';
import ConnectPrompt from './components/connect-prompt';
import ImageWithSelect from './components/image-with-select';
import { promptTemplates } from './components/prompt-templates-control';
Expand Down Expand Up @@ -446,6 +447,13 @@ export default function AIAssistantEdit( { attributes, setAttributes, clientId,
{ ...innerBlocks }
/>
) }
<InspectorControls>
<PanelBody initialOpen={ true }>
<PanelRow>
<UsagePanel />
</PanelRow>
</PanelBody>
</InspectorControls>

{ isPlaygroundVisible && (
<InspectorControls>
Expand Down

0 comments on commit f9af9ee

Please sign in to comment.