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

New login and signup #1117

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

New login and signup #1117

wants to merge 15 commits into from

Conversation

coderatomy
Copy link
Collaborator

Summary

New auth

@coderatomy coderatomy added the create-test-vm this issue needs a test vm to be auto created by github action label Feb 23, 2024
Copy link

@coderatomy is creating a test VM for this PR 🚀🚀🚀
This may take a few minutes so relax and grab a cup of coffee ☕
We will notify you when the VM is ready.

Copy link

pre-commit checks failed ❌❌❌
make sure you have pre-commit set up locally (see the README.md for instructions).
If you have set up pre-commit locally, you may need to undo this commit and
run "pre-commit" locally to see what the errors are.

Copy link

Test VM is ready ✅✅✅
You can access it with the url:
https://zubhub-test-1117.unstructured.studio
Default username: dummy
default password: dummy_password

@NdibeRaymond NdibeRaymond removed the create-test-vm this issue needs a test vm to be auto created by github action label Feb 26, 2024
Copy link

@NdibeRaymond is deleting test VM ...

Copy link

Test VM deleted ✅✅✅

@NdibeRaymond
Copy link
Collaborator

@coderatomy when you have the time please fix the issues being reported by pre-commit here

@@ -76,6 +76,8 @@ function NavBar(props) {
const [searchType, setSearchType] = useState(getQueryParams(window.location.href).get('type') || SearchType.PROJECTS);
const formRef = useRef();
const token = useSelector(state => state.auth.token);
const pathname = props.location?.pathname
const hideSearchAndActions = pathname === '/signup' || pathname === '/login';
Copy link
Collaborator

Choose a reason for hiding this comment

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

@coderatomy is this part of the requirements? I think a user should be allowed access to the search box even in the signup page (since are user can search for things while not logged in)

@@ -214,32 +214,67 @@ export const setLabelWidthOfStaticFields = (refs, document, props) => {
* @todo - describe object's function
*/
export const validationSchema = Yup.object().shape({
role: Yup.string().required('Please choose a role'),
Copy link
Collaborator

Choose a reason for hiding this comment

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

translation

password1: Yup.string().min(8, 'min').required('required'),
password2: Yup.string()
.oneOf([Yup.ref('password1'), null], 'noMatch')
email: Yup.string().email('invalid').required('Add your email'),
Copy link
Collaborator

Choose a reason for hiding this comment

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

translation

// return vars.email_field_touched && !value && !this.parent.phone ? false : true;
// }),
phone: Yup.string(),
// .test('phone_is_invalid', 'invalid', function () {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why are you commenting these out?

// .test('phone_is_empty', 'phoneOrEmail', function () {
// return vars.phone_field_touched && !vars.iti.getNumber() && !this.parent.email ? false : true;
// }),
dateOfBirth: Yup.date().required('required'),
Copy link
Collaborator

Choose a reason for hiding this comment

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

why was this changed?

</CardActionArea>
</Card>
</Container>
<Box width={'100%'}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

fix this. This should either be in the styles or not at all

Copy link
Collaborator

Choose a reason for hiding this comment

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

why did you remove classes.root?

Comment on lines +53 to +56
direction="column"
maxWidth={'600px'}
margin={'auto'}
rowSpacing={{ xs: 2, sm: 3, md: 5 }}
Copy link
Collaborator

Choose a reason for hiding this comment

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

fix all of this

<form onSubmit={handleSubmit}>
<Grid item>
<Typography align="center" className={mainClasses.header2}>
Welcome to ZubHub !
Copy link
Collaborator

Choose a reason for hiding this comment

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

you removed all the translations

Welcome to ZubHub !
</Typography>
<Typography align="center" className={mainClasses.text2}>
Log Into your ZubHub account to share ideas
Copy link
Collaborator

Choose a reason for hiding this comment

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

please return the translation

handleBlur,
handleSubmit,
touched,
} = useFormik({
Copy link
Collaborator

Choose a reason for hiding this comment

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

unless the way we were using formik before is no longer working, please use it the same way

@NdibeRaymond
Copy link
Collaborator

NdibeRaymond commented Feb 26, 2024

there are more changes to make than I can possibly comment on, but let's start with these first

Copy link

pre-commit checks failed ❌❌❌
make sure you have pre-commit set up locally (see the README.md for instructions).
If you have set up pre-commit locally, you may need to undo this commit and
run "pre-commit" locally to see what the errors are.

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.

2 participants