-
Notifications
You must be signed in to change notification settings - Fork 46
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
Nahiyan_Added a "Edit Tasks" button to reduce the number of requests #2013
Nahiyan_Added a "Edit Tasks" button to reduce the number of requests #2013
Conversation
Added this button because before on page initialization, the app would have to make too many unnecessary requests to the backend. Now when the users wants to edit tasks, they may click the new button which will then make all the requests to the backend needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abdel-lall @MALAV1308 Thanks for the reviews and I have fixed the console log errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I tested your PR and have encountered few issues. The tasks are not loading on the project info page and when I click the edit task button, no requests are being sent to the server. Please refer the video attached.
PR.2013.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Im not able to see the tasks and clicking on edit tasks sends no request to the network
Screen.Recording.2024-03-05.at.10.03.38.PM.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just reviewed this pull request
I logged in as an owner role, go to a project reports from Reports->Projects.
- there's an Edit Tasks button
- Edit button of each task is disabled --> Not disabled but hidden
- after clicking
Edit Tasks
, making more request and show the edit button for each task
please make sure if we need task button for each task being hidden or disabled before clicking edit tasks button.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after clarifying the request, I approve this change according to previous review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I reviewed your PR and it is working as intended.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR worked as described.
Screen.Recording.2024-04-02.at.2.48.54.PM.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reviewed this PR and the changes work as intended.
Screen.Recording.2024-04-14.at.1.26.06.AM.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The functionality is working, well done!.
the UI needs general improvements
https://www.loom.com/share/cebfd39908934a7d9196f89d365d2180?sid=c0e9e4f4-c524-427a-8116-da762663a033
4798b11
…ighestGoodNetworkApp into Nahiyan_Optimize-Project-Report-Page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edit Sign is visible and is working.
Console has an error: "Warning: validateDOMNesting(...):
At some page sizes the headings in task table overlap with each other.
Number of requests do not increase to a large number on clicking edit button.
Rest everything works fine.
Great work!
PR.2013.mp4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…ighestGoodNetworkApp into Nahiyan_Optimize-Project-Report-Page
Thank you all, merging! |
Description
Added this button because before on-page initialization, the app would have to make too many unnecessary requests to the backend. Now when the users want to edit tasks, they may click the new button which will then make all the requests to the backend needed.
Related PRS (if any):
This frontend PR is related to the dev backend
Main changes explained:
-Added a "Edit tasks" button
-Should be disabled on page load
-When clicked should allow the user to edit tasks
How to test:
npm install
andnpm run start:local
to run this PR locallyScreenshots or videos of changes:
Before clicking "Edit Tasks" button
After clicking "Edit Tasks" button