generated from Real-Dev-Squad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Refactor TaskDetails
Component for Improved Maintainability and Performance
#1243
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…for improved maintainability and performance - Broke down TaskDetails component into smaller, focused subcomponents: TaskHeader, TaskDescription, TaskDetailsSection, TaskParticipants, TaskDates, TaskDependencies, and TaskProgress. - Maintained consistent styling using existing CSS classes from task-details.module.scss. - Ensured all functionalities, including editing, API integration, and state management, remain intact. - Added performance optimizations using React best practices, such as useCallback and useMemo where applicable. - Handled loading and error states, as well as edge cases like empty data gracefully.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…nal rendering - Resolved type issues, ensuring is correctly handled as a number. - Fixed conditional rendering to prevent the edit button from appearing for unauthorized users. - Ensured consistent date formatting using utility. - Improved type safety across the TaskDetails subcomponents to prevent future issues. - Maintained all functionality from previous refactor, including state management and API integration.
- Adjusted the position of the 'Status' and 'Link' fields within the TaskDetailsSection component to ensure they are displayed correctly. - Ensured that the 'Status' dropdown is only visible in edit mode and does not appear twice. - Verified that the layout matches the design specifications when switching between view and edit modes.
…onents - Reverted changes in the component structure that affected the layout and styling. - Ensured the CSS classes are applied correctly and match the pre-refactor styling. - Adjusted the JSX structure to maintain the original visual layout.
Achintya-Chatterjee
requested review from
prakashchoudhary07,
iamitprakash,
yesyash,
pallabez,
vinayak-trivedi,
tejaskh3,
vinit717,
rishirishhh and
joyguptaa
August 30, 2024 18:15
iamitprakash
previously approved these changes
Aug 31, 2024
yesyash
requested changes
Aug 31, 2024
|
ashifkhn
previously approved these changes
Sep 1, 2024
yesyash
requested changes
Sep 1, 2024
…ady using named export
…encies components and directly use underlying components
… of ternary operator
tejaskh3
requested changes
Sep 2, 2024
ashifkhn
reviewed
Sep 2, 2024
tejaskh3
previously approved these changes
Sep 2, 2024
yesyash
approved these changes
Sep 2, 2024
ashifkhn
approved these changes
Sep 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Date:
29 August, 2024
Developer Name: @Achintya-Chatterjee
Issue Ticket Number
TaskDetails
Component for Improved Maintainability and Performance #1227Description
Refactors the
TaskDetails
component by breaking it down into smaller, modular subcomponents. The refactor includes the creation of new subcomponents such asTaskHeader
,TaskDescription
,TaskDetailsSection
,TaskParticipants
,TaskDates
,TaskDependencies
, andTaskProgress
. Performance optimizations have been applied using React best practices, ensuring the component is efficient and easy to maintain.TaskDetails
into distinct subcomponents.useCallback
,useMemo
).Documentation Updated?
Under Feature Flag
Database Changes
Breaking Changes
Development Tested?
Screenshots
Screenshot 1
Screen.Recording.2024-08-30.at.23.41.17.mp4
Test Coverage
Screenshot 1
Additional Notes
and extend.
TaskDetails
Subcomponents #1245 will be merged to this branchfeature/refactor-taskdetails-component
then this PR will be merged todevelop