Skip to content

Commit

Permalink
minor bug fixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
RushanNanayakkara committed Jul 1, 2024
1 parent 8449766 commit 156a656
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 17 deletions.
7 changes: 0 additions & 7 deletions .changeset/chilled-bats-taste.md

This file was deleted.

9 changes: 9 additions & 0 deletions .changeset/tiny-dodos-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@wso2is/common.branding.v1": patch
"@wso2is/admin.branding.v1": patch
"@wso2is/identity-apps-core": patch
"@wso2is/console": patch
"@wso2is/i18n": patch
---

Add multi screen support for branding
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const PasswordRecoveryEmailLinkFragment: FunctionComponent<PasswordRecoveryEmail
.TEXT_BUNDLE_KEYS.PASSWORD_RECOVERY
.IDENTIFIER.INPUT.PLACEHOLDER, "Username")
}
data-testid="login-page-username-input"
data-componentid="login-page-username-input"
/>
<i aria-hidden="true" className="user outline icon"></i>
<input id="username" name="username" type="hidden" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ const PasswordRecoveryMultiOptionFragment: FunctionComponent<PasswordRecoveryMul
<div className="ui divider hidden"></div>
<div className="ui large form">
<div className="field">
<label>
{ i18n(CustomTextPreferenceConstants.TEXT_BUNDLE_KEYS
.PASSWORD_RECOVERY.IDENTIFIER.INPUT.LABEL, "Username") }
</label>
<div className="ui fluid left icon input">
<input
type="text"
Expand All @@ -64,7 +68,7 @@ const PasswordRecoveryMultiOptionFragment: FunctionComponent<PasswordRecoveryMul
.TEXT_BUNDLE_KEYS.PASSWORD_RECOVERY
.IDENTIFIER.INPUT.PLACEHOLDER, "Username")
}
data-testid="login-page-username-input"
data-componentid="login-page-username-input"
/>
<i aria-hidden="true" className="user outline icon"></i>
<input id="username" name="username" type="hidden" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export class CustomTextPreferenceConstants {
BODY: string;
IDENTIFIER: {
INPUT: {
LABEL: string;
PLACEHOLDER: string;
}
};
Expand Down Expand Up @@ -180,12 +181,13 @@ export class CustomTextPreferenceConstants {
BODY: "password.recovery.body",
BUTTON: {
EMAIL_LINK: "password.recovery.button.email.link",
MULTI: "password.recovery.button.email.multi",
MULTI: "password.recovery.button.multi",
SMS_OTP: "password.recovery.button.smsotp"
},
HEADING: "password.recovery.heading",
IDENTIFIER: {
INPUT: {
LABEL: "Username",
PLACEHOLDER: "password.recovery.identifier.input.placeholder"
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,7 @@
<div class="ui radio checkbox">
<input type="radio" name="recoveryOption" value="<%=EMAIL%>"
<%=EMAIL.equals(selectedOption)?"checked":""%>/>
<label><%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle,
"send.email.link")%>
<label><%=i18n(recoveryResourceBundle, customText, "send.email.link")%>
</label>
</div>
</div>
Expand All @@ -363,8 +362,7 @@
<div class="ui radio checkbox">
<input type="radio" name="recoveryOption" value="<%=SMSOTP%>"
<%=SMSOTP.equals(selectedOption)?"checked":""%>/>
<label><%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle,
"send.code.via.sms")%>
<label><%=i18n(recoveryResourceBundle, customText, "send.code.via.sms")%>
</div>
</div>
<%
Expand Down Expand Up @@ -439,7 +437,8 @@
%>
<div class="mt-4">
<%
String submitButtoni18nText = multipleRecoveryOptionsAvailable? "Submit" :
String submitButtoni18nText =
multipleRecoveryOptionsAvailable? "password.recovery.button.multi" :
( isEmailRecoveryAvailable? "password.recovery.button.email.link" :
( isQuestionBasedPasswordRecoveryEnabledByTenant? "Recover.with.question" :
( isSMSRecoveryAvailable ? "password.recovery.button.smsotp" :
Expand All @@ -448,8 +447,7 @@
<button id="recoverySubmit"
class="ui primary button large fluid"
type="submit">
<%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle,
submitButtoni18nText)%>
<%=i18n(recoveryResourceBundle, customText, submitButtoni18nText)%>
</button>
</div>
<div class="mt-1 align-center">
Expand Down

0 comments on commit 156a656

Please sign in to comment.