-
Notifications
You must be signed in to change notification settings - Fork 747
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
Refactors UserAuth and ProfileEdit pages not to use Corebase #9809
Refactors UserAuth and ProfileEdit pages not to use Corebase #9809
Conversation
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've added a non-blocking set of a few thoughts about the overall code organization; I'm maybe just overthinking it 😄
This looks great! Thank you for the comments throughout and for the new aria attr for the snackbars! With a few minor tweaks on that and a formatting issue this should be good to go!
kolibri/plugins/user_profile/assets/src/views/ProfileEditPage.vue
Outdated
Show resolved
Hide resolved
packages/kolibri-common/index.js
Outdated
@@ -0,0 +1,6 @@ | |||
'use strict'; | |||
|
|||
import AppError from '../../kolibri/core/assets/src/views/AppError'; |
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.
My thought was that we could just put the files themselves in the package, wouldn't even need the index.js then, as could just import kolibri-common/components/GlobalSnackbar
or somesuch.
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.
Ahh i see. Let me refactor this. Thanks for this clarification
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.
Looks good! Thanks Samson! Should be okay to force merge unless the blocking error would be fixed with a re-run of the linting.
Summary
This PR refactors UserAuthPage and ProfileEditPage to remove CoreBase usage.
![Screenshot 2022-11-03 at 18 17 21](https://user-images.githubusercontent.com/5203639/199760942-3fd11670-a318-4918-af1e-dfc6c7cc725c.png)
References
Closes #9233
Please note that the linting build fails due to a build bug fixed by #9810
Reviewer guidance
View the following pages. Pages should function as before;
http://localhost:8000/en/auth/#/signin
http://localhost:8000/en/profile/#/edit
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)