-
Notifications
You must be signed in to change notification settings - Fork 319
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
Adding SIW screens for same device OV enrollments #3526
Adding SIW screens for same device OV enrollments #3526
Conversation
51af985
to
47e3fd7
Compare
1a13241
to
dcb11a7
Compare
84299ef
to
3b13435
Compare
src/v3/src/transformer/oktaVerify/transformOktaVerifyEnrollPoll.ts
Outdated
Show resolved
Hide resolved
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.
Can you also add screenshots for Gen 3 🙏
ariaLabel={options.altText} | ||
className="app-store-link" | ||
> | ||
<Box |
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.
Can you copy over the the code I linked from our odyssey-1.x branch for the new Image functional component that we created there and then use it in place of this <Box component="img"... />
?
That component already has all of the props you use here and it would save us some time from having to convert it over to use Image
ourselves 🙏
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.
@trevoring-okta I've created a follow up jira OKTA-701606 for this change
3b13435
to
dac8178
Compare
@glenfannin-okta , @trevoring-okta please see updates to the PR in the second comment. |
src/v3/src/transformer/oktaVerify/transformOktaVerifyEnrollPoll.ts
Outdated
Show resolved
Hide resolved
href={options.url} | ||
rel="noopener noreferrer" | ||
ariaLabel={options.altText} | ||
className={options.linkClassName} |
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 don't think Odyssey's Link
takes in a className
prop. Are you still getting the correct styles that you're looking for?
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.
yes
component="img" | ||
src={options.imageSrc} | ||
alt={options.altText} | ||
className={options.imageClassName} |
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.
Thanks for creating this component. Even if we postpone the conversion of this Box component="img"
code to a fast-follow ticket, can you at least replace the styles you get from the app-store-logo
class to use sx
here and pass in width and height via props? You should then be able to remove .app-store-logo
from style.css
So something like:
<Box
component="img"
src={options.imageSrc}
alt={options.altText}
sx={{ width: options.width, height: options.height }
/>
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.
For testing purposes you can move app-store-logo
to the data-se
prop
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.
@trevoring-okta please see updated PR with the second commit addressing requested changes
const FORM_SELECTOR = '[data-se="o-form-explain"]'; | ||
const SUB_HEADER = '[data-se="subheader"]'; | ||
const COPY_ORG_LINK_BUTTON_CLASS = '.copy-org-clipboard-button'; | ||
const CLIPBOARD_TEXT = 'data-clipboard-text'; | ||
const DOWNLOAD_OV_LINK_CLASS = '.download-ov-link'; | ||
const APP_STORE_LINK_CLASS = '.app-store-link'; | ||
const APP_STORE_LOGO_CLASS = '.app-store-logo'; |
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.
After removing .app-store-logo
you can switch this selector to be [data-se='app-store-logo']
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.
@trevoring-okta please see updated PR with the second commit that removes .app-store-logo
To clarify, you need to hit this Friday's monthly release to meet your deadline? |
2417396
to
94e46ec
Compare
94e46ec
to
288453c
Compare
17585bd
to
657101e
Compare
@glenfannin-okta , @kentonsmith-okta , @trevoring-okta please review |
src/v3/src/transformer/oktaVerify/transformOktaVerifyEnrollPoll.ts
Outdated
Show resolved
Hide resolved
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.
Other than the last comment (and lint fixes) this LGTM!
CC: @trevoring-okta @lesterchoi-okta for final Approval.
test/testcafe/framework/page-objects/EnrollOktaVerifyPageObject.js
Outdated
Show resolved
Hide resolved
src/v2/view-builder/views/ov/EnrollChannelPollDescriptionView.js
Outdated
Show resolved
Hide resolved
src/v3/src/transformer/oktaVerify/transformOktaVerifyEnrollPoll.ts
Outdated
Show resolved
Hide resolved
e03deba
to
72f5383
Compare
Seeking for the final approval from @trevoring-okta, @lesterchoi-okta, @glenfannin-okta , @kentonsmith-okta |
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.
Going to give approval now pending one nit/suggestion. Would like to get @glenfannin-okta (and maybe @lesterchoi-okta) last thoughts
src/v3/src/transformer/oktaVerify/transformOktaVerifyEnrollPoll.ts
Outdated
Show resolved
Hide resolved
I will give it a thorough once over again today 🙏 Thank you for going through this! |
f3f027b
to
5009ec9
Compare
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.
Final comment added, other than that this LGTM.
src/v2/view-builder/views/ov/EnrollChannelPollDescriptionView.js
Outdated
Show resolved
Hide resolved
OKTA-677620 Adding SIW screens for same device OV enrollments. Resolves OKTA-677620 Addressing PR comments Addressing PR comments
Description:
Adding SIW screens for same device OV enrollments
Backend PR: https://github.com/atko-eng/okta-core/pull/93431
PR Checklist
Issue:
Reviewers:
@yannongli-okta , @jaredperreault-okta , @glenfannin-okta
Screenshot/Video:
SIW V1
SIW V3
Demo recordings of SIW1, SIW3 with and without FF:
https://drive.google.com/drive/folders/1ExIrop2lg8j4IumGcPl7wvaCiShy8HCA?usp=sharing
Downstream Monolith Build: