Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

frontend: refactor password change form to extract double-input password creation inputs as new component #2994

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

reivilibre
Copy link
Contributor

This is sort of part of #172: by doing this refactoring, we can more easily support the same checks and metering in other forms.

@reivilibre reivilibre requested a review from sandhose July 24, 2024 15:04
Copy link

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1a581b0
Status: ✅  Deploy successful!
Preview URL: https://c0b65b41.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://rei-fe-refactor-2inputpw.matrix-authentication-service-docs.pages.dev

View logs

<>
<Form.Field name="new_password">
<Form.Label>
{t("frontend.password_change.new_password_label")}
Copy link
Member

Choose a reason for hiding this comment

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

I guess keeping password_change as prefix for the password recovery makes sense. It won't when/if we start having this on the registration page; the label will probably have to be different

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah true, that's a pity, but probably not too bad

forceShowNewPasswordInvalid,
}: {
siteConfig: FragmentType<typeof CONFIG_FRAGMENT>;
forceShowNewPasswordInvalid: boolean;
Copy link
Member

Choose a reason for hiding this comment

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

That's a long prop name, but I'm fine with that :)

@reivilibre reivilibre merged commit 98aa3a8 into main Jul 24, 2024
16 checks passed
@reivilibre reivilibre deleted the rei/fe_refactor_2inputpw branch July 24, 2024 15:22
@sandhose sandhose added the A-Frontend Changes on the React frontend label Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Frontend Changes on the React frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants