Add more comments for clarification purposes
MAILPOET-6365
This commit is contained in:
committed by
Oluwaseun Olorunsola
parent
cea59c8e38
commit
a16f20b93d
@ -1,5 +1,6 @@
|
||||
// Core MailPoet styles. We need this here because the email editor does not register
|
||||
// under the mailpoet namespace and does not have access to the MailPoet plugin styles
|
||||
// These styles are required by ReviewRequest (mailpoet/assets/js/src/review-request.tsx) feature
|
||||
|
||||
// Settings
|
||||
// Global variables, config switches. Not producing any CSS.
|
||||
|
@ -24,9 +24,9 @@ const EVENTS_TO_TRACK = [
|
||||
'email_editor_events_rich_text_with_button_personalization_tags_shortcode_icon_clicked', // personalization_tags modal opened
|
||||
'email_editor_events_personalization_tags_modal_tag_insert_button_clicked', // personalization_tags inserted
|
||||
'email_editor_events_rich_text_with_button_input_field_updated', // either subject or preheader updated
|
||||
'email_editor_events_styles_sidebar_screen_typography_opened', // styles sidebar was seen
|
||||
'email_editor_events_styles_sidebar_screen_colors_opened', // styles sidebar was seen
|
||||
'email_editor_events_styles_sidebar_screen_layout_opened', // styles sidebar was seen
|
||||
'email_editor_events_styles_sidebar_screen_typography_opened', // styles sidebar-typography was seen
|
||||
'email_editor_events_styles_sidebar_screen_colors_opened', // styles sidebar-colors was seen
|
||||
'email_editor_events_styles_sidebar_screen_layout_opened', // styles sidebar-layout was seen
|
||||
'email_editor_events_header_send_button_clicked', // Send button clicked
|
||||
'email_editor_events_trash_modal_move_to_trash_button_clicked', // Move to trash button was clicked
|
||||
];
|
||||
|
@ -45,9 +45,7 @@ export default function EditTemplateBlocksNotification( { contentRef } ) {
|
||||
return;
|
||||
}
|
||||
setIsDialogOpen( true );
|
||||
recordEventOnce( 'edit_template_blocks_notification_opened', {
|
||||
templateId,
|
||||
} );
|
||||
recordEventOnce( 'edit_template_blocks_notification_opened' );
|
||||
};
|
||||
|
||||
const canvas = contentRef.current;
|
||||
|
@ -24,7 +24,7 @@ export function ScreenColors(): JSX.Element {
|
||||
|
||||
const handleOnChange = ( newStyles ) => {
|
||||
updateStyles( newStyles );
|
||||
recordEvent( 'styles_sidebar_screen_colors_styles_updated' );
|
||||
recordEvent( 'styles_sidebar_screen_colors_styles_updated' ); // We can't log the updated color here because the onChange function returns the complete object.
|
||||
};
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user