Coder Social home page Coder Social logo

Comments (5)

aaemnnosttv avatar aaemnnosttv commented on August 29, 2024 2

@techanvil @hussain-t I've opened a PR for a simpler alternative approach that minimizes changes to existing components as we're on a bit of a time crunch for this release.

from site-kit-wp.

techanvil avatar techanvil commented on August 29, 2024 1

Hi @hussain-t, thanks for drafting this IB. There are a few points to address:

If the KEY_METRICS_SETUP_CTA_WIDGET_SLUG item is dismissed (with the false value) AND

It's correct that we should check for isDismissed === false, but the wording of the point is wrong because this indicates the item has not been dismissed, this had me confused for a bit until I worked through it. So, please update the point along these lines:

If the KEY_METRICS_SETUP_CTA_WIDGET_SLUG item is not dismissed (specifically check for the false value) AND

I also found the following point a bit confusing, because it can suggest that the IB is only covering the dismissal of the banner:

This will prevent the banner from being rendered in response to dismissing the KM CTA (on the same page load).

I'd suggest updating this along these lines:

This will prevent the banner from being rendered when the KM CTA is present, and it will stay hidden when the KM CTA is dismissed (on the same page load).

Lastly, regarding the test coverage, KeyMetricsSetupCTAWidget also has some existing coverage so we could add a test there as well. This being the case, we might want to bump the estimate up too.

from site-kit-wp.

hussain-t avatar hussain-t commented on August 29, 2024

Thanks for your kind review, @techanvil. I have updated the iB.

from site-kit-wp.

techanvil avatar techanvil commented on August 29, 2024

Thanks @hussain-t! The IB LGTM. ✅

from site-kit-wp.

mohitwp avatar mohitwp commented on August 29, 2024

QA Update ✅

  • Tested on main environment.
  • Verified that With a GA4 property that does not have EM enabled, the EM CTA is not displaying on the dashboard at the same time as the KM set up CTA.
  • Verified that the banner not appear in response to dismissing the KM CTA (on the same page load)
Recording.660.mp4

from site-kit-wp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.