Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Create ToS and Privacy Statement #40

Merged
merged 7 commits into from
May 23, 2022
Merged

Create ToS and Privacy Statement #40

merged 7 commits into from
May 23, 2022

Conversation

AtilioA
Copy link
Owner

@AtilioA AtilioA commented May 22, 2022

Creates ToS.md file with ToS and Privacy Statement. Reads the markdown file with markdown-to-jsx (I've tried react-markdown but had trouble with types) and displays its content on the /privacidade page, properly stylized.
Somewhat out of scope for this issue-PR, I'll add a checkbox to the SignUp as well (edit: done).

Resolves #36.

@AtilioA AtilioA added enhancement New feature or request front-end This issue or PR is related to the front-end labels May 22, 2022
@AtilioA AtilioA requested a review from Henriquelay May 22, 2022 00:24
@AtilioA
Copy link
Owner Author

AtilioA commented May 22, 2022

(Rebased to fix commits messages)

@AtilioA AtilioA marked this pull request as ready for review May 22, 2022 00:47
@AtilioA AtilioA linked an issue May 22, 2022 that may be closed by this pull request
Copy link
Collaborator

@Henriquelay Henriquelay left a comment

Choose a reason for hiding this comment

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

There's some points on the frontend and TOS that I think a second look is needed

web/package.json Show resolved Hide resolved
description: 'Ocorreu um erro ao fazer login. Cheque suas credenciais.'
});
type: 'error',
title: 'Erro na autenticação',
Copy link
Collaborator

Choose a reason for hiding this comment

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

"Verifique seu e-mail" may wrongly direct the user to check it's inbox . Just "Verifique suas credenciais" looks fine to me, since login user are also part of credentials, ana not only password

Copy link
Owner Author

Choose a reason for hiding this comment

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

Currently, the toast message is the same whether the credentials are incorrect or the user has not confirmed their email yet, thus the request.

@@ -35,10 +35,12 @@ const SignUp: React.FC = () => {
(password: string, field: any) =>
password
? field
.required('Senhas não batem')
.oneOf([Yup.ref('password')], 'Senhas não batem')
.required('Senhas não batem')
Copy link
Collaborator

Choose a reason for hiding this comment

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

"Senhas não são iguais"

Copy link
Owner Author

Choose a reason for hiding this comment

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

💥🚗

Copy link
Owner Author

Choose a reason for hiding this comment

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

Unrelated to PR but will change

web/src/pages/SignUp/index.tsx Outdated Show resolved Hide resolved
Copy link
Owner Author

@AtilioA AtilioA left a comment

Choose a reason for hiding this comment

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

accidentally started a review 😎

description: 'Ocorreu um erro ao fazer login. Cheque suas credenciais.'
});
type: 'error',
title: 'Erro na autenticação',
Copy link
Owner Author

Choose a reason for hiding this comment

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

Currently, the toast message is the same whether the credentials are incorrect or the user has not confirmed their email yet, thus the request.

@@ -35,10 +35,12 @@ const SignUp: React.FC = () => {
(password: string, field: any) =>
password
? field
.required('Senhas não batem')
.oneOf([Yup.ref('password')], 'Senhas não batem')
.required('Senhas não batem')
Copy link
Owner Author

Choose a reason for hiding this comment

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

Unrelated to PR but will change

@AtilioA AtilioA requested a review from Henriquelay May 22, 2022 21:00
@AtilioA AtilioA merged commit b8f163c into develop May 23, 2022
@AtilioA AtilioA deleted the create-tos branch May 23, 2022 16:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request front-end This issue or PR is related to the front-end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create ToS and Privacy Statement
2 participants