Part of #17670 for file ui\pages\onboarding-flow\create-password\create-password.js#20795
Conversation
…ord\create-password.js
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
|
Hey @georgewrmarshall , @garrettbear , Some inconsistenciesI had to use Visual regressionPresently, I can see a small visual regression in the alignment of New Password and Show/Hide toggle. If we add an extra Also,I am working on replacing the deprecated components, like the Will introduce those changes in next commit in this PR if you find it OK. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #20795 +/- ##
===========================================
- Coverage 68.15% 68.15% -0.00%
===========================================
Files 1083 1083
Lines 42491 42491
Branches 11333 11333
===========================================
- Hits 28959 28957 -2
- Misses 13532 13534 +2 ☔ View full report in Codecov by Sentry. |
Hey @georgewrmarshall , Regards, |
|
Hey @georgewrmarshall , Regards, |
Hey @georgewrmarshall , Regards, |
georgewrmarshall
left a comment
There was a problem hiding this comment.
Looking good @PrgrmrHarshShukla! Left some small suggestions. Could we also create a storybook file for this component
import React from 'react';
import CreatePassword from './create-password';
export default {
title: 'Pages/OnboardingFlow/CreatePassword',
argTypes: {
createNewAccount: {
action: 'createNewAccount',
},
importWithRecoveryPhrase: {
action: 'importWithRecoveryPhrase',
},
secretRecoveryPhrase: {
control: 'text',
},
},
};
export const DefaultStory = (args) => <CreatePassword {...args} />;
DefaultStory.storyName = 'Default';
| value={password} | ||
| titleDetail={ | ||
| <Typography variant={TypographyVariant.H7}> | ||
| <Text variant={TextVariant.bodyXs}> |
There was a problem hiding this comment.
Let's replace the Text and link element with the ButtonLink component. Then we will be reducing the html bloat and using the correct semantic html element
<ButtonLink
variant={TextVariant.bodySm}
data-testid="show-password"
className="create-password__form--password-button"
onClick={(e) => {
e.preventDefault();
setShowPassword(!showPassword);
}}
marginBottom={1}
>
{showPassword ? t('hide') : t('show')}
</ButtonLink>
There was a problem hiding this comment.
Sure,
Will do it now.
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
Sure, |
Hey @georgewrmarshall , Done. |
Storybook file added for the component. |
|
Hey @georgewrmarshall , Please look into it for any remaining improvements. |
georgewrmarshall
left a comment
There was a problem hiding this comment.
LGTM! Thanks for your contribution @PrgrmrHarshShukla
| </h2> | ||
| <h4 | ||
| class="box box--margin-top-1 box--margin-bottom-1 box--flex-direction-row typography typography--h4 typography--weight-normal typography--style-normal typography--align-center typography--color-text-default" | ||
| align="center" |
There was a problem hiding this comment.
When updating the prop from the below suggestion it should remove this, so you will need to update snapshot
There was a problem hiding this comment.
Sure,
Will do that now.
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
|
Hey @garrettbear , |
|
Hey @garrettbear , |
georgewrmarshall
left a comment
There was a problem hiding this comment.
Hey @PrgrmrHarshShukla, looks like there is some unintentional code that has been removed in a rebase. We want to keep all the logic just replace stale components. Would you be able to revert those changes so it's just replacement of the components?
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
georgewrmarshall
left a comment
There was a problem hiding this comment.
I pushed a fix for the missing closing environment tag. Let's see if there are any tests we need to update
georgewrmarshall
left a comment
There was a problem hiding this comment.
LGTM!
- pulled branch checked storybook
- pull branch checked local build
after.mov
|
Hey @garrettbear , |






Explanation
This PR is a part of the issue #17670 Replace deprecated Typography with Text component for file
ui\pages\onboarding-flow\create-password\create-password.jsScreenshots/Screencaps
Before
After
Manual Testing Steps
Pre-merge author checklist
Pre-merge reviewer checklist
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the
Extension QA Boardlabel.In this case, a QA Engineer approval will be be required.