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

feat: added modal for updating task progress and task percentage. #1290

Merged
merged 5 commits into from
Dec 6, 2024

Conversation

Achintya-Chatterjee
Copy link
Member

@Achintya-Chatterjee Achintya-Chatterjee commented Nov 30, 2024

Date: 30th November, 2024

Developer Name: @Achintya-Chatterjee


Issue Ticket Number

Description

Added modal for updating task progress and percentage

  • Restrict progress updates to tasks with status In Progress only.
  • Addressed the issue where users could update progress without providing updates or changing task status.
  • Ensures better task tracking and accountability.

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Screenshots

Screenshot 1
Screen.Recording.2024-12-05.at.04.02.45.mp4

Test Coverage

Screenshot 1 Screenshot 2024-12-03 at 03 29 23 Screenshot 2024-12-04 at 01 32 06

Additional Notes

  • This PR follows a stack PR approach, so first the test PR will be merged into this feature branch, then we can merge this to develop.

…de a task update before modifying progress percentage.

- Restrict progress updates to tasks with status In Progress only.
- Addressed the issue where users could update progress without providing updates or changing task status.
- Ensures better task tracking and accountability.
@Achintya-Chatterjee Achintya-Chatterjee self-assigned this Nov 30, 2024
Copy link

vercel bot commented Nov 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
status-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 5, 2024 10:09pm

Resolves an issue where the task update modal's styling
was reverting to default styles after submitting progress updates. The
implementation now maintains consistent styling throughout the update
process by properly managing the props on  modal state and preventing
unintended style resets.
Reimplements the progress bar in task details section to be visible in both
default and dev mode, while ensuring updates are only possible through the
task update modal. Progress bar now maintains a read-only state in the
details view while remaining interactive in the modal.
rishirishhh
rishirishhh previously approved these changes Dec 5, 2024
iamitprakash
iamitprakash previously approved these changes Dec 5, 2024
* fix: failing tests accroding to the component change

* test(TaskUpdateModal): add unit tests for TaskUpdateModal component

- Test rendering of modal in open and closed states
- Verify functionality of close button
- Ensure correct props are passed to ProgressContainer and ProgressForm
- Mock dependencies (Modal, ProgressContainer, ProgressForm) for isolation
- Validate display of current date

* fix: test cases after the component gets changed

* fix: improve test coverage for TaskUpdateModal component
@iamitprakash iamitprakash merged commit 67d83dc into develop Dec 6, 2024
3 checks passed
@iamitprakash iamitprakash deleted the feature/progress-update-flow-modal branch December 6, 2024 00:15
@Achintya-Chatterjee Achintya-Chatterjee mentioned this pull request Dec 7, 2024
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UX] Improve the Progress Update Flow
4 participants