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

Adding SIW screens for same device OV enrollments #3526

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

vakaevich-okta
Copy link
Contributor

@vakaevich-okta vakaevich-okta commented Jan 29, 2024

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
actual-win
actual-osx
actual-android
actual-ios

SIW V3
actual-osx-v3
actual-win-v3
actual-android-v3
actual-ios-v3

Demo recordings of SIW1, SIW3 with and without FF:

https://drive.google.com/drive/folders/1ExIrop2lg8j4IumGcPl7wvaCiShy8HCA?usp=sharing

Downstream Monolith Build:

@vakaevich-okta vakaevich-okta force-pushed the okta-677620-same-ov-enrollment-screens branch 4 times, most recently from 84299ef to 3b13435 Compare February 22, 2024 13:05
src/v3/src/types/schema.ts Outdated Show resolved Hide resolved
src/v3/src/components/Widget/style.css Outdated Show resolved Hide resolved
src/v3/src/components/Widget/style.css Outdated Show resolved Hide resolved
Copy link
Contributor

@glenfannin-okta glenfannin-okta left a 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
Copy link
Contributor

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 🙏

Copy link
Contributor Author

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

@vakaevich-okta vakaevich-okta force-pushed the okta-677620-same-ov-enrollment-screens branch from 3b13435 to dac8178 Compare February 26, 2024 14:12
@vakaevich-okta
Copy link
Contributor Author

@glenfannin-okta , @trevoring-okta please see updates to the PR in the second comment.
V3 screenshots attached to the PR description.
Regarding transferring components from odyssey-1.x branch and converting new and existing svg images into components - is it ok with you guys if I'll do that in a follow up PR please? Our team is approaching deadline for the seamless same device enrollment

href={options.url}
rel="noopener noreferrer"
ariaLabel={options.altText}
className={options.linkClassName}
Copy link
Contributor

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?

Copy link
Contributor Author

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}
Copy link
Contributor

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 }
/>

Copy link
Contributor

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

Copy link
Contributor Author

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';
Copy link
Contributor

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']

Copy link
Contributor Author

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

@trevoring-okta
Copy link
Contributor

Our team is approaching deadline for the seamless same device enrollment

To clarify, you need to hit this Friday's monthly release to meet your deadline?

@vakaevich-okta vakaevich-okta force-pushed the okta-677620-same-ov-enrollment-screens branch 5 times, most recently from 2417396 to 94e46ec Compare March 11, 2024 13:14
@vakaevich-okta vakaevich-okta force-pushed the okta-677620-same-ov-enrollment-screens branch from 94e46ec to 288453c Compare March 19, 2024 11:45
@vakaevich-okta vakaevich-okta force-pushed the okta-677620-same-ov-enrollment-screens branch 4 times, most recently from 17585bd to 657101e Compare April 8, 2024 13:07
@vakaevich-okta
Copy link
Contributor Author

@glenfannin-okta , @kentonsmith-okta , @trevoring-okta please review

Copy link
Contributor

@glenfannin-okta glenfannin-okta left a 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.

src/v3/src/components/Icon/AppleStoreIcon.tsx Outdated Show resolved Hide resolved
src/v3/src/components/ImageLink/ImageLink.tsx Show resolved Hide resolved
src/v3/src/types/schema.ts Outdated Show resolved Hide resolved
src/v3/src/types/schema.ts Outdated Show resolved Hide resolved
@vakaevich-okta vakaevich-okta force-pushed the okta-677620-same-ov-enrollment-screens branch from e03deba to 72f5383 Compare April 10, 2024 18:18
@vakaevich-okta
Copy link
Contributor Author

Seeking for the final approval from @trevoring-okta, @lesterchoi-okta, @glenfannin-okta , @kentonsmith-okta

trevoring-okta
trevoring-okta previously approved these changes Apr 15, 2024
Copy link
Contributor

@trevoring-okta trevoring-okta left a 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

@glenfannin-okta
Copy link
Contributor

Going to give approval now pending one nit/suggestion. Would like to get @glenfannin-okta (and maybe @lesterchoi-okta) last thoughts

I will give it a thorough once over again today 🙏

Thank you for going through this!

@vakaevich-okta vakaevich-okta force-pushed the okta-677620-same-ov-enrollment-screens branch from f3f027b to 5009ec9 Compare April 17, 2024 13:00
Copy link
Contributor

@glenfannin-okta glenfannin-okta left a 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.

@oktapp-aperture-okta oktapp-aperture-okta bot merged commit 91aafe9 into master Apr 17, 2024
1 check passed
@oktapp-aperture-okta oktapp-aperture-okta bot deleted the okta-677620-same-ov-enrollment-screens branch April 17, 2024 16:24
trevoring-okta pushed a commit that referenced this pull request Apr 23, 2024
OKTA-677620 Adding SIW screens for same device OV enrollments. Resolves OKTA-677620
Addressing PR comments
Addressing PR comments
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.

None yet

3 participants