Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal: Make AI promotions less intrusive [ED-14582] #27283

Conversation

DennisNerush
Copy link
Member

No description provided.

netanelavr
netanelavr previously approved these changes May 9, 2024
@@ -146,7 +146,7 @@ export default class AiBehavior extends Marionette.Behavior {
return;
}

if ( ! shouldShowPromotionIntroduction() ) {
if ( ! shouldShowPromotionIntroduction( sessionStorage ) ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where this sessionStorage is coming from?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

window global context

} );

it( `Should return false when previous promotion appeared less than ${ HOURS_BETWEEN_PROMOTION_INTRODUCTIONS } hours ago`, async () => {
const currentDate = new Date( 2024, 5, 3, 15 );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test will not work after Jun, 03 2024

@DennisNerush DennisNerush force-pushed the ED-14582-internal-make-ai-promotions-less-intrusive branch from 7972502 to 9cca5a6 Compare May 12, 2024 14:25
matipojo
matipojo previously approved these changes May 12, 2024
@DennisNerush DennisNerush force-pushed the ED-14582-internal-make-ai-promotions-less-intrusive branch from 871c317 to 89c17bd Compare May 15, 2024 07:13
@DennisNerush DennisNerush merged commit 594ad30 into elementor:main May 15, 2024
43 checks passed
DennisNerush added a commit to DennisNerush/elementor that referenced this pull request May 15, 2024
DennisNerush added a commit to DennisNerush/elementor that referenced this pull request May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants