Closed erenfn closed 1 month ago
The pull request includes several updates across multiple components in the frontend application. Key modifications involve changes to prop names, updates to utility function imports, and adjustments to form validation attributes. The FileUpload
component now imports utility functions from a new location, while the UserTitle
and Dashboard
components have renamed props from fullName
to name
. Additionally, utility functions for file handling have been restructured, and the CreateAccountPage
and ForgotPasswordPage
components have improved their handling of the required
attribute in form fields.
File | Change Summary |
---|---|
frontend/src/components/Fileupload/FileUpload.jsx |
Updated import statement for utility functions from fileFunctions to generalHelper . |
frontend/src/components/HomePageComponents/UserTitle/UserTitle.jsx |
Renamed prop from fullName to name and updated propTypes . |
frontend/src/scenes/dashboard/Dashboard.jsx |
Renamed prop from fullName to name and updated usage of UserTitle component. |
frontend/src/scenes/home/Home.jsx |
Updated prop passed to Dashboard component from fullName to name . |
frontend/src/services/authProvider.jsx |
Simplified authReducer and fetchUser function by removing fullName construction. |
frontend/src/utils/fileFunctions.js |
Deleted file containing getFileExtension and formatFileSize functions. |
frontend/src/utils/generalHelper.js |
Added functions: getFileExtension , formatFileSize , and getFullName . |
frontend/src/utils/loginHelper.js |
Updated handleAuthSuccess function to streamline user data extraction. |
frontend/src/scenes/login/CreateAccountPage.jsx |
Changed required attribute from string to boolean for form fields. |
frontend/src/scenes/login/ForgotPasswordPage.jsx |
Changed required attribute from string to boolean for form fields. |
frontend/src/tests/scenes/login/LoginPage.test.jsx |
Wrapped asynchronous operations in tests with act for better state handling. |
profile_picture_url
to the users table, which is relevant to the changes in the main PR that involve restructuring utility functions related to file handling, including image uploads.FileUpload
component, as both involve file handling and user interactions for uploading images.frontend