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

Add redux aa1 to improve basics aa3 #87

Merged
merged 43 commits into from
Jul 6, 2020
Merged

Conversation

schettn
Copy link
Member

@schettn schettn commented Jul 4, 2020

Checklist:

  • Have you added an explanation of what your changes do and why you'd like them to be included?
  • Have you updated or added documentation for the change?
  • Have you tested your changes with successful results?

Type of Changes:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation (non-breaking change which adds documentation)
  • Breaking change (fix or feature that would cause existing functionality to change)

What is the current behavior? (link to any open issues here)

What is the new behavior (if this is a feature change)?

Other information:

  • 🐍

schettn and others added 30 commits July 2, 2020 16:17
New redux structure was roughly implemented. Refinements take place in the following commits. But .. redux is fun :)
Some bugs are fixed and the actions were adjusted.
Incorrect user fetching has been fixed.
The registration works now with the new structure.
A context error where the login function was not defined due to asynchronously
is fixed now. After registering a user will be logged in.
React-Avatar-Editor was added for editing images on the site.
The modal for editing images was added.
The modal imports and exports were updated.
A page for editing user settings was added.
The path for the settings page was set.
The navbar settings now work with the settings page.
The settings action is now capable of updating profile pictures.
Now it is possible to access the settings page directly by entering the url. Access is only granted to the own settings page.
Now when clicking on `My Profile` only the corresponding components are rendered and not longer everyone like before.
Due to the switch to Redux, a lot of code is obsolete and is now being removed.
Now  Redux DevTools only applies in development mode.
The resolving of the merge conflicts went wrong and produced a syntax error which
is fixed now.
Uploading and deleting of talks is now only possible if a user is signed in
and on his profile.
Blank initialization was removed because it is no longer needed.
The check was added to prevent the uncontrolled component warning.
The chart for displaying languages has been added.
The project component has been improved and now actually looks nice.
The language chart and top languages have been implemented.
The pinned posts have been temporarily disabled.
The auth actions errors were updated.
The login form errors were updated.
@schettn
Copy link
Member Author

schettn commented Jul 4, 2020

@snek-at/frontend Just have a look on logically errors or some other invalid stuff. Issues on console logs and/or comments like sections are not part of this PR.

This is taken care of in implement PR!

@schettn schettn removed the request for review from Aichnerc July 6, 2020 09:19
@pinterid
Copy link
Member

pinterid commented Jul 6, 2020

Opening the settings page without being logged in should redirect to the login page.

Currently there is just an infinity loading screen.
image

Copy link
Member

@pinterid pinterid left a comment

Choose a reason for hiding this comment

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

I did not found any logical issues in this code, beside the ones i already marked.

The message have been refined cause the old one was a bit shitty.
Now when a anonymous user visits the settings page he is redirected to
the homepage with active login form.
@schettn
Copy link
Member Author

schettn commented Jul 6, 2020

I have updated the login error message cause it was not very neat to me.

Copy link
Member

@kleberbaum kleberbaum left a comment

Choose a reason for hiding this comment

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

Should be ok to merge, but you can also fix this issue beforehand.

src/components/molecules/Navbar/index.jsx Show resolved Hide resolved
pinterid and others added 7 commits July 6, 2020 12:57
Issues marked by Codacy were resolved.
Issues marked by Codacy were resolved.
Codacy errors were fixed.
Previously some data was stored in the profile section. Therefore when adjusting
data in settings it got overwritten during a refetch.
By moving this data to user section it does not get overwritten anymore.
Now when the result is undefined nothing happens cause there is no error.
There was an error where it always redirected if the settings url was entered
directly. This issue is fixed now,
There was a workaround to update user settings. This is removed now because it
resets the user data every read cache iteration.
@schettn schettn merged commit 1913941 into improve-basics-aa3 Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment