Skip to content

Commit

Permalink
Merge branch 'develop' into fix/pch-editor-sidebar-incorect-ai-opt-in…
Browse files Browse the repository at this point in the history
…-message
  • Loading branch information
acicovic committed Mar 19, 2024
2 parents abde539 + 22a5baa commit 4297871
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build/content-helper/editor-sidebar.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-primitives', 'wp-url'), 'version' => '191c5934f6e0faf95daa');
<?php return array('dependencies' => array('react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-plugins', 'wp-primitives', 'wp-url'), 'version' => '17c17c38e859a7a2cb72');
8 changes: 4 additions & 4 deletions build/content-helper/editor-sidebar.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,19 @@ const OverviewMenu = (
),
},
} );
Telemetry.trackEvent( 'editor_sidebar_performance_datapoint_hidden', { dataPoint } );
Telemetry.trackEvent( 'editor_sidebar_performance_datapoint_hidden',
{ datapoint: dataPoint }
);
} else {
setSettings( {
PerformanceStatsSettings: {
...settings.PerformanceStatsSettings,
VisibleDataPoints: [ ...settings.PerformanceStatsSettings.VisibleDataPoints, dataPoint ],
},
} );
Telemetry.trackEvent( 'editor_sidebar_performance_datapoint_shown', { dataPoint } );
Telemetry.trackEvent( 'editor_sidebar_performance_datapoint_shown',
{ datapoint: dataPoint }
);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const PerformanceStatsMenu = (
VisiblePanels: availablePanels.map( ( panel ) => panel.name ),
},
} );
Telemetry.trackEvent( 'editor_sidebar_performance_panel_reset' );
Telemetry.trackEvent( 'editor_sidebar_performance_panels_reset' );
onClose();
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const DEFAULT_MAX_LINK_WORDS = 4;
*/
const withSettingsProvider = createHigherOrderComponent( ( BlockEdit ) => {
return ( props ) => {
if ( ! props.isSelected || props.name !== 'core/paragraph' ) {
if ( props.name !== 'core/paragraph' ) {
return <BlockEdit { ...props } />;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ export const PinnedTitleSuggestions = ( {
*/
const toggleCollapse = () => {
setIsCollapsed( ! isCollapsed );
Telemetry.trackEvent( 'title_suggestions_pinned_toggle', {
isOpen: ! isCollapsed,
pinnedTitles: pinnedTitles.length,
Telemetry.trackEvent( 'title_suggestions_pinned_toggled', {
is_open: ! isCollapsed,
pinned_titles: pinnedTitles.length,
} );
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export const TitleSuggestions = ( {
*/
const toggleCollapse = () => {
setIsCollapsed( ! isCollapsed );
Telemetry.trackEvent( 'title_suggestions_toggle', {
isOpen: ! isCollapsed,

Telemetry.trackEvent( 'title_suggestions_suggestions_toggled', {
is_open: ! isCollapsed,
suggestions: suggestions.length,
} );
};

Expand Down

0 comments on commit 4297871

Please sign in to comment.