-
Notifications
You must be signed in to change notification settings - Fork 175
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-128550] Profile block fixes #581
[MWPW-128550] Profile block fixes #581
Conversation
Hello, I'm Franklin Bot and I will run some test suites that validate the page speed.
|
|
|
const accessToken = window.adobeIMS.getAccessToken(); | ||
const { env } = getConfig(); | ||
const headers = new Headers({ Authorization: `Bearer ${accessToken.token}` }); | ||
const profileData = await fetch(`https://${env.adobeIO}/profile`, { headers }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is adobeIO
used anywhere else? Maybe we can rename to profileAPI or something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only place where we use it so far. Milo exposes the hostname
in their getConfig()
method as part of the env
property and its value reflects the current environment. If it will be needed in any other place, we can save it somewhere, but it's not the case right now.
@@ -76,6 +76,11 @@ | |||
background-color: var(--feds-background-nav--light); | |||
} | |||
|
|||
[dir = "rtl"] .feds-nav-wrapper { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick - there's mixed dir='rtl'
and dir = "rtl"
throughout the code, we should be consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the two instances where we were using single quotes and no spaces - 00cdf22
dropdownElem.classList.add('feds-signIn-dropdown'); | ||
|
||
// TODO we don't have a good way of adding attributes to links | ||
const dropdownSignIn = dropdownElem.querySelector('[href="https://adobe.com?sign-in=true"]'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should add another TODO here to revisit the logic, it doesn't make sense to show the URL for non adobe.com pages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd argue that if a consumer doesn't want the IMS login option, they shouldn't add the https://adobe.com?sign-in=true
link in their navigation document. We're not adding it by default, only if that link is authored.
|
* [MWPW-128550] Profile block fixes * [MWPW-128550] Profile block fixes PR feedback implementation --------- Co-authored-by: Rares Munteanu <ramuntea@adobe.com>
* [MWPW-128550] Profile block fixes * [MWPW-128550] Profile block fixes PR feedback implementation --------- Co-authored-by: Rares Munteanu <ramuntea@adobe.com>
* [MWPW-128550] Profile block fixes * [MWPW-128550] Profile block fixes PR feedback implementation --------- Co-authored-by: Rares Munteanu <ramuntea@adobe.com>
* [MWPW-128550] Profile block fixes * [MWPW-128550] Profile block fixes PR feedback implementation --------- Co-authored-by: Rares Munteanu <ramuntea@adobe.com>
* [MWPW-128550] Profile block fixes * [MWPW-128550] Profile block fixes PR feedback implementation --------- Co-authored-by: Rares Munteanu <ramuntea@adobe.com>
This PR handles a few bugs which were found in the Profile block logic:
gnav
classes;li
elements;Please note that the standalone implementation POC has not been updated, since it's not a priority to implement this right away.
Resolves: MWPW-128550
Test URLs: