-
Notifications
You must be signed in to change notification settings - Fork 31
Add Dashboard and Authentication (Login, Signup) components #1
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
base: master
Are you sure you want to change the base?
Conversation
fde51de to
0b89931
Compare
783157d to
c2434ab
Compare
|
@CajetanRodrigues, sometimes I am getting this on the landing page |
50a8eec to
56719b1
Compare
I have resolved it |
9b17d22 to
d5f7322
Compare
src/app/services/user.service.ts
Outdated
| headers: new HttpHeaders({ 'Content-Type': 'application/json', | ||
| 'Fineract-Platform-TenantId': 'mobile', | ||
| Authorization: 'Basic bWlmb3M6cGFzc3dvcmQ=' }) | ||
| Authorization: 'Basic bWlmb3M6cGFzc3dvcmQ=', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CajetanRodrigues hardcoded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I will resolve that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CajetanRodrigues Login using a recently registered user is not working.
I have resolved that. You can now sign up and login the same credentials you put in the form. Although the authentication flow is temporary, we could fix it in the near future. For now this PR needs to get merged to have the base fixed once and for all. So that I as well as upcoming contributors can create new components on top of the base.
ankit01ojha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CajetanRodrigues why username: mifos and password: password is working here, it should not work because there is no self service user as mifos. openMF/web-self-service-app#27
ankit01ojha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CajetanRodrigues Login using a recently registered user is not working.
d5f7322 to
0bbec54
Compare
66f0661 to
4a58910
Compare
Re: @gauravsaini03 Can you take a final look? |
4a58910 to
3991279
Compare
| <form #loginForm="ngForm" > | ||
| <img src="https://www.google-melange.com/archive/gci/2014/orgs/mifos/logo-200.png" alt="No Image found"> | ||
| <mat-form-field> | ||
| <mat-form-field class="font-style "> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove space in the class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Gaurav, as you have suggested. I have indented all the code.
So, you mean that the size of the font, position of font, spacing, and colors in button are different because you are using Angular Material with Angular 7 and not because of CSS? Modify the CSS to make it similar to the UI of the landing page of web self-service app because UI landing page of web self-service app is quite good. |
3991279 to
1587f8a
Compare
No, I didn't mean that. I will do the needful. Thanks for reviewing |
1587f8a to
2e78292
Compare
ankit01ojha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CajetanRodrigues you need to fetch the details of the client who has logged in and display their details in dashboard. I don't see you fetching the login clients details.
And do the change the UI of the login page, it's still the same.
2e78292 to
2558f0a
Compare
|
ankit01ojha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CajetanRodrigues Why there are so many unwanted undefined requests are being sent in the background? When being logged in for the first time the loader keeps on loading( maybe because of these unwanted error requests). Fix them. And why are you saving the image of the client in the local storage? Remove that too.
4e2733e to
477dc22
Compare
|
ankit01ojha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CajetanRodrigues remove inline CSS.
ankit01ojha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CajetanRodrigues Client's name is missing and charts are not correct for the client, tally it with the old app and fix it.
477dc22 to
88bdaa8
Compare
|
|
36ac98d to
c2fb688
Compare
ankit01ojha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CajetanRodrigues I cannot see clients APIs being called. You need to fetch clients details because if it shows no content then only you can differentiate between a self service user and a non self service user.
src/app/services/user.service.ts
Outdated
| headers: new HttpHeaders({ | ||
| 'Content-Type': 'application/json', | ||
| 'Fineract-Platform-TenantId': 'mobile', | ||
| Authorization: 'Basic bWlmb3M6cGFzc3dvcmQ=' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CajetanRodrigues hardcoded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I have done the changes. It now fetches the token dynamically.
c2fb688 to
104a7a4
Compare
|
ankit01ojha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CajetanRodrigues you are not checking whether clients are associated with that user or not, and without doing that how are you classifying whether a user is a self-service user or not?

Dashboard and Login Component Improvements
UI Demonstration
UI ScreenShots
Login Component
Forgot Password Component
Sign Up Component
Dashboard Component (Desktop Version)
Dashboard Component (Mobile Version)