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

Bug Fix 695 #830

Merged
merged 7 commits into from
Nov 29, 2023
Merged

Bug Fix 695 #830

merged 7 commits into from
Nov 29, 2023

Conversation

YuriyHryshchenko
Copy link

Type of Pull Request *

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. For example, tooling, build system, CI, docs, etc.)

Related links

#585 Personal Information Page Creation

#695 New author is not saved

#547 Page validation

Description *

Create functionality to update, create new author. Make first name and last name fields disabled for author in his personal information page as discussed this with team in daily, for creating and updating author by admin in "Адміністрування" after clicking "Підтвердити зміни" create redirect to expert page. If its own personal information page of author just dispatching action to get current user info to update info. Fixed Page Title with 404 error

src/components/Page/PageTitle.tsx Show resolved Hide resolved
src/views/Profile/PersonalInfo/PersonalInfo.tsx Outdated Show resolved Hide resolved
src/views/Profile/PersonalInfo/PersonalInfo.tsx Outdated Show resolved Hide resolved
src/views/Profile/PersonalInfo/PersonalInfo.tsx Outdated Show resolved Hide resolved
src/views/Profile/PersonalInfo/PersonalInfo.tsx Outdated Show resolved Hide resolved
… make new prop onSaveSuccessful in PersonalInfo component
Copy link
Collaborator

@skyboyer skyboyer 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 to me. Have just a single comment/concern on import React in types file, which is probably has been added accidentally

@@ -1,3 +1,5 @@
import React from 'react';
Copy link
Collaborator

Choose a reason for hiding this comment

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

added by accident?

@YuriyHryshchenko YuriyHryshchenko merged commit 48e1664 into develop Nov 29, 2023
1 check failed
@YuriyHryshchenko YuriyHryshchenko deleted the bugFix695 branch November 29, 2023 14:13
YuriyHryshchenko added a commit that referenced this pull request Jan 9, 2024
* Bugfix694 personal information (#829)

* Select current user to display info about him on Personal Information page

* Fix import order

* Bug Fix 695 (#830)

* Create, update author personal information. Remove 404 Error in page title.

* Fix import order

* Add try/catch, refactor code

* Create useCheckAdmin reusable hook to check if current user is admin, make new prop onSaveSuccessful in PersonalInfo component

* Create Wrapper for /create-author route, change onSaveSuccessfull prop

* Edit prop to remove error

* Remove import React

* Issue634 create user account for author (#831)

* Make buttons and form for creating user account

* Remake form for new mock data

* + Add ability to create user account for the author

* * Fixed imports

* * Change code according to the coments

* * Fix import order

* * Refactor conditional rendering for user account form buttons, remove comment lines, refactor styles for user account form
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants