Skip to content

Conversation

@Waleed-Mujahid
Copy link
Member

Description

  • Placed all Edly specific logic in a separate edly dir to keep low core changes
  • Updated Logistration page to utilize Edly's prefilled email feature
  • Added EdlyAlert to show info based on your's EdlyMultiSiteAccess and error_code returned by backend api
  • Managed global state via edly reducers and sagas to avoid prop drilling and minimizing number of lines changed in core files

Ticket

https://projects.arbisoft.com/project/edly-product/task/8082
https://projects.arbisoft.com/project/edly-product/task/8089

Linked PR

https://github.com/edly-io/edly-features-app/pull/39

- Added Edly reducer and saga to the root reducer and saga respectively.
- Updated LoginPage to utilize Edly's prefilled email feature and display EdlyAlert.
- Enhanced Logistration component to conditionally render EmailCheckPage based on props.
- Incorporated EdlyAlert in RegistrationPage for consistent user feedback.
- Updated EdlyAlert to directly render formatted messages without wrapping them in <p> tags initially.
- Ensured consistent rendering by wrapping the final alert message in a <p> tag within the Alert component.
@Waleed-Mujahid Waleed-Mujahid self-assigned this Dec 10, 2025
Copy link

@Anas-hameed Anas-hameed left a comment

Choose a reason for hiding this comment

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

We should have one more level

Comment on lines +9 to +19
const initialState = {
email: '',
redirectTo: null,
message: null,
errorMessage: null,
submitState: DEFAULT_STATE,
showEmailCheck: true,
prefilledEmail: '',
errorCode: null,
context: {},
};
Copy link

@Anas-hameed Anas-hameed Dec 10, 2025

Choose a reason for hiding this comment

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

We should add a sub-level that identifies the specific component this reducer belongs to. The current edly namespace doesn’t indicate which component uses this code.

src/edly/data/reducers.js is not indicating the component hierarchy

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.

3 participants