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

[MWPW-166027] - Add empty space if the logo is undefined #3528

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

Deva309
Copy link
Contributor

@Deva309 Deva309 commented Jan 23, 2025

In some cases the logo is coming as undefined for the new mobile GNAV.
We have added a empty space instead of 'undefined' text showing in the new Mobile GNAV.
Error Screenshot:
IMG_3226-1

Resolves: MWPW-166027

Test URLs:

Copy link
Contributor

aem-code-sync bot commented Jan 23, 2025

Page Scores Audits Google
📱 /?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ /?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.47%. Comparing base (a4101ed) to head (12a4f5b).
Report is 37 commits behind head on stage.

Additional details and impacted files
@@           Coverage Diff           @@
##            stage    #3528   +/-   ##
=======================================
  Coverage   96.47%   96.47%           
=======================================
  Files         260      260           
  Lines       60415    60416    +1     
=======================================
+ Hits        58284    58285    +1     
  Misses       2131     2131           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

Reminder to set the Ready for Stage label - to queue this to get merged to stage & production.

@@ -457,7 +457,8 @@ export const transformTemplateToMobile = async (popup, item, localnav = false) =
{{main-menu}}
</button>
`;
const brand = document.querySelector('.feds-brand')?.outerHTML;
// Get the outerHTML of the .feds-brand element or use a default empty <span> if it doesn't exist
const brand = document.querySelector('.feds-brand')?.outerHTML || '<span></span>';
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be an empty span, or simply an empty string? 🤔

@prativas22
Copy link

Verified the fix for the new mobile GNAV, the logo appears as undefined in certain instances. Instead of space it was showing 'undefined' . The result looks good after the fix.
https://main--news--adobecom.hlx.page/?milolibs=mwpw-166027--milo--deva309
image
image

https://main--cc--adobecom.hlx.page/products/indesign?milolibs=mwpw-166027--milo--deva309
image

@prativas22 prativas22 added verified PR has been E2E tested by a reviewer Ready for Stage labels Jan 27, 2025
@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Jan 28, 2025

Skipped 3528: "[MWPW-166027] - Add empty space if the logo is undefined" due to file "libs/blocks/global-navigation/utilities/utilities.js" overlap. Merging will be attempted in the next batch

@milo-pr-merge milo-pr-merge bot merged commit e5f8f6b into adobecom:stage Jan 29, 2025
25 checks passed
@milo-pr-merge milo-pr-merge bot mentioned this pull request Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready for Stage verified PR has been E2E tested by a reviewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants