When completing setup for the AdSense module, the primary action "continue" is not consistent with other modules.

Note that the continue link is not the obvious next action (visually) compared to other modules which have a solid blue primary button to click. Also, this link opens the AdSense module page in a new tab, as if it is expected to link to an external page. This should link directly to the page without opening a new tab.
Compare to final step in Analytics setup

_Do not alter or remove anything below. The following sections will be managed by moderators only._
On this screen:

1) If the user deactivates the toggle:
2) If the user leaves the toggle activated:

clientID to the component that renders the "continue" button by changing updateAccountStatus() in assets/js/modules/adsense/dashboard/adsense-module-status.js to:async updateAccountStatus() {
const existingTag = await getExistingTag( 'adsense' );
const setLoadingMessage = ( message ) => {
this.setState( { loadingMessage: message } );
};
const { accountStatus, clientID } = await getAdSenseAccountStatus( existingTag, setLoadingMessage );
this.setState( { accountStatus, clientID } );
}
clientID from state and pass it to https://github.com/google/site-kit-wp/blob/ca665a5c966b131150f0373aa6ca38b1602abcb0/assets/js/modules/adsense/dashboard/adsense-module-status.js#L323I'm also experiencing this. 3 additional issues with the "existing AdSense user scenario".
An existing AdSense user should have the toggle for the AdSense code.

The screen that gives the "Sites" and the "Ads" links (below) that an existing AdSense user should see, is not showing (image 1).
Should be (and has been in previous versions):

Currently is:

The code doesn't get placed on the site.

Might be related to https://github.com/google/site-kit-wp/issues/936
Posting my discoveries/thoughts here as I find them until I get a full-fledged IB:
I spent a little time testing this for #936 and confirming that going back to a previous commit where this worked correctly (c57ffd23) I see this:

If user toggles, shows this:

For the Acceptance Criteria I would suggest we add:
ie
instead of

Looking into this a little more I found it started breaking in work on #427 (git bisect pointed to https://github.com/google/site-kit-wp/commit/97d5f974a5f1b2f5aaa0d2a930065e114ec830e5)
Not certain on IB without more digging.
The missing toggle and Button changes go in https://github.com/google/site-kit-wp/blob/develop/assets/js/modules/adsense/dashboard/adsense-in-process-status.js
We need to handle the case when everything has gone right and the account is set up, identified, matches the website etc... That is accountStatus is account-connected - https://github.com/google/site-kit-wp/blob/develop/assets/js/modules/adsense/dashboard/adsense-module-status.js#L72-L99 (Ivan K2 has access to an account with this status)
In this case we will:
We may also need to address the user state account-connected-nonmatching, where we provide an option to continue even when the user has AdSense code from another account. They click a button labeled "Continue anyway" to complete the setup, and a "Continue" button to confirm (i think, based on https://github.com/google/site-kit-wp/blob/develop/assets/js/modules/adsense/dashboard/adsense-module-status.js#L100-L120) . One of the test users should be able to reach this state for testing - the final action should be a button.
The issue here is that the user's clientID is no longer passed to the component that renders the continue button. We need to set the clientID in the state as well as accountStatus, which is pretty straightforward. IB added, and I'll push a branch that fixed this problem for me locally.
Excellent @tofumatt - thanks for tracking this down! I'll give the PR a test when you have it ready.
The PR made against the master branch is ready at https://github.com/google/site-kit-wp/pull/957, feel free to give that a go and let me know how it went 馃槃
@tofumatt Great, thanks for tracking down the underlying issue - nice work!
I made a few tiny adjustments to the PR and it tests well with my confirmed user now. I'll take some time tomorrow to run thru testing with any test user accounts I can access and let you know how that goes.