Skip to content
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

Conversation

akolson
Copy link
Member

@akolson akolson commented Nov 3, 2022

Summary

This PR refactors UserAuthPage and ProfileEditPage to remove CoreBase usage.
Screenshot 2022-11-03 at 18 17 21

Screenshot 2022-11-03 at 18 14 39

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

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical user journeys are covered by Gherkin stories
  • Critical and brittle code paths are covered by unit tests

PR process

  • PR has the correct target branch and milestone
  • PR has 'needs review' or 'work-in-progress' label
  • If PR is ready for review, a reviewer has been added. (Don't use 'Assignees')
  • If this is an important user-facing change, PR or related issue has a 'changelog' label
  • If this includes an internal dependency change, a link to the diff is provided

Reviewer checklist

  • Automated test coverage is satisfactory
  • PR is fully functional
  • PR has been tested for accessibility regressions
  • External dependency files were updated if necessary (yarn and pip)
  • Documentation is updated
  • Contributor is in AUTHORS.md

@akolson akolson added the TODO: needs review Waiting for review label Nov 3, 2022
@akolson akolson added this to the 0.16.0 milestone Nov 3, 2022
@akolson akolson marked this pull request as ready for review November 3, 2022 19:41
Copy link
Member

@nucleogenesis nucleogenesis left a 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!

@@ -0,0 +1,6 @@
'use strict';

import AppError from '../../kolibri/core/assets/src/views/AppError';
Copy link
Member

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.

Copy link
Member Author

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

Copy link
Member

@nucleogenesis nucleogenesis left a 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.

@akolson akolson merged commit ecf08f1 into learningequality:develop Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TODO: needs review Waiting for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove CoreBase from User Profile and User Auth plugins
4 participants