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-157147: Dynamic Nav Status Button #2920

Merged

Conversation

JasonHowellSlavin
Copy link
Contributor

@JasonHowellSlavin JasonHowellSlavin commented Sep 19, 2024

  • Adds a status button to appear in the nav to inform content QA and QA whether or not the Dynamic Nav is active and to provide additional information about Dynamic Nav and it's settings.
  • The experience is set for tablet and up, since the core user is QA.

Context:
The milo repo does not have the dynamicNavKey in the config, so the first two links will not show the feature.

Resolves: MWPW-157147

Test URLs:

Bacom

@JasonHowellSlavin JasonHowellSlavin added run-nala Run Nala Test Automation against PR needs-verification PR requires E2E testing by a reviewer labels Sep 19, 2024
Copy link

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.35%. Comparing base (c3c9bcc) to head (c37c02c).
Report is 98 commits behind head on stage.

Additional details and impacted files
@@            Coverage Diff             @@
##            stage    #2920      +/-   ##
==========================================
+ Coverage   96.24%   96.35%   +0.10%     
==========================================
  Files         236      244       +8     
  Lines       54254    55425    +1171     
==========================================
+ Hits        52217    53402    +1185     
+ Misses       2037     2023      -14     

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

libs/utils/utils.js Show resolved Hide resolved
libs/features/dynamic-navigation/status.css Outdated Show resolved Hide resolved
libs/features/dynamic-navigation/status.css Outdated Show resolved Hide resolved
libs/features/dynamic-navigation/status.css Outdated Show resolved Hide resolved
libs/features/dynamic-navigation/status.css Outdated Show resolved Hide resolved
Copy link
Contributor

This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR.

libs/utils/utils.js Outdated Show resolved Hide resolved
Copy link
Contributor

aem-code-sync bot commented Sep 26, 2024

Copy link
Contributor

This PR is currently in the needs-verification state. Please assign a QA engineer to verify the changes.

libs/features/dynamic-navigation/status.js Outdated Show resolved Hide resolved
libs/features/dynamic-navigation/status.js Outdated Show resolved Hide resolved
};

const returnPath = (url) => {
if (!url.includes('https://')) return '';
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably doesn't matter, but should startsWith be used instead?

Copy link
Contributor Author

@JasonHowellSlavin JasonHowellSlavin Oct 1, 2024

Choose a reason for hiding this comment

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

this benchmark says includes is faster, but startsWith is more semantic so I will go with that!

libs/features/dynamic-navigation/status.js Outdated Show resolved Hide resolved
libs/features/dynamic-navigation/status.js Outdated Show resolved Hide resolved
@Dli3 Dli3 added verified PR has been E2E tested by a reviewer Ready for Stage and removed needs-verification PR requires E2E testing by a reviewer labels Oct 8, 2024
@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Oct 21, 2024

Skipped 2920: "MWPW-157147: Dynamic Nav Status Button" due to file "libs/blocks/global-navigation/global-navigation.js" overlap. Merging will be attempted in the next batch

@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Oct 22, 2024

Skipped 2920: "MWPW-157147: Dynamic Nav Status Button" due to file "libs/utils/utils.js" overlap. Merging will be attempted in the next batch

1 similar comment
@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Oct 23, 2024

Skipped 2920: "MWPW-157147: Dynamic Nav Status Button" due to file "libs/utils/utils.js" overlap. Merging will be attempted in the next batch

@milo-pr-merge milo-pr-merge bot merged commit 199288d into adobecom:stage Oct 28, 2024
23 checks passed
@milo-pr-merge milo-pr-merge bot mentioned this pull request Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready for Stage run-nala Run Nala Test Automation against PR verified PR has been E2E tested by a reviewer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants