Skip to content

Google yolo#343

Draft
echen-adobe wants to merge 8 commits intostagefrom
google-yolo
Draft

Google yolo#343
echen-adobe wants to merge 8 commits intostagefrom
google-yolo

Conversation

@echen-adobe
Copy link
Copy Markdown
Contributor

Summary

This PR adds Express-owned Google One Tap (YOLO) auto sign-in so it can be driven from the Express codebase instead of only Milo. Initialization runs from express-delayed.js after IMS is available: it loads the Google GSI client, mounts the prompt under the federated profile placeholder, and signs the user in via adobeIMS.socialHeadlessSignIn (with fallback to signInWithSocialProvider for new accounts).

Author controls (page metadata):

  • google-login: on | desktop | mobile to enable One Tap and restrict by viewport (anything else leaves it off).
  • google-yolo-zero-tap: set to on for auto_select (silent / second-visit style behavior when Google allows it).
  • google-login-redirect: optional absolute URL to send users after a successful existing-account sign-in; otherwise the page reloads (or SUSI redirect flow for new accounts).
  • google-login-accepted-tou-list: optional; passed through as accepted_tou_list for progressive / TOU behavior (aligned with Identity expectations).

Milo coordination: a default google-login meta is appended after loadArea() in scripts.js so Milo’s delayed path does not treat the page as YOLO-enabled before Express takes ownership—reducing duplicate One Tap behavior (authors can still override via document metadata).


Jira Ticket

Resolves: MWPW-188779


Test URLs

Env URL
Before https://main--da-express-milo--adobecom.aem.page/express/
After https://google-yolo--da-express-milo--adobecom.aem.page/express/?martech=off

Draft demo (metadata / flow): https://google-yolo--da-express-milo--adobecom.aem.page/drafts/echen/blog-yolo


Verification Steps

  1. Open the After URL (and the draft URL) while signed out of Adobe; ensure Google One Tap is allowed in the browser (and you have an active Google session if testing auto behavior).
  2. Confirm the One Tap UI appears when page metadata enables it (google-login = on / desktop / mobile as appropriate for your viewport).
  3. Complete sign-in: existing Google-linked Adobe account should respect google-login-redirect when set, or reload when not; new user flow should continue via social sign-in as implemented.
  4. On a page without google-login enabled (or with an unsupported value), confirm One Tap from this Express path does not run (only Milo may still run on some pages until fully decoupled).
  5. Before vs after: on main, Express does not own this flow; on this branch, Express initializes One Tap from delayed scripts with the metadata behavior above. Expect possible brief double prompt while both Milo and Express One Tap exist—widget may flash as each stack runs (as noted on the ticket).

Potential Regressions

  • https://google-yolo--da-express-milo--adobecom.aem.live/express/?martech=off
  • Pages that relied on only Milo for One Tap: behavior may change where Express now appends default google-login meta (desktop) after loadArea.
  • IMS / Identity flows: wrong or missing google-login-accepted-tou-list could affect progressive-account / TOU expectations—validate with Identity for production metadata.
  • Viewport gating: desktop vs mobile must be verified on real breakpoints (code uses min-width: 900px).

Additional Notes

  • Progressive account creation (defer DOB / full account) is already enabled per team comment on MWPW-188779 (separate from this PR’s scope).
  • Related prior Milo work / accepted_tou_list discussion: milo#5401.
  • Linked reference implementation / requirements: MWPW-180897, progressive diligence: MWPW-186062.

@aem-code-sync
Copy link
Copy Markdown

aem-code-sync Bot commented Apr 10, 2026

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@github-actions github-actions Bot added the Ready for Review Ready for peer review. label Apr 10, 2026
@aem-code-sync
Copy link
Copy Markdown

aem-code-sync Bot commented Apr 10, 2026

@echen-adobe echen-adobe marked this pull request as draft April 10, 2026 20:38
@github-actions github-actions Bot removed the Ready for Review Ready for peer review. label Apr 10, 2026
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.

1 participant