-
-
Notifications
You must be signed in to change notification settings - Fork 45
Changes to delivery progress text for each payment unit #3007
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
Conversation
📝 WalkthroughWalkthroughThe changes in this pull request modify the Sequence Diagram(s)sequenceDiagram
participant F as ConnectDeliveryProgressDeliveryFragment
participant D as Delivery Record
participant J as Job
participant U as Unit
loop For each delivery
F->>D: Retrieve delivery details
Note over F: Declare local variables (totalApproved, totalAmount, daysRemaining) per iteration
F->>F: Compute totalApproved directly within loop
F->>F: Calculate remaining (new variable replaces totalPending)
F->>J: Call job.getDaysRemaining()
J-->>F: Return days remaining
F->>U: Access unit.getMaxTotal() for approvedPercentage calculation
F->>F: Compute approvedPercentage using new value
end
Suggested Reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (4)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
| // Get pending and approved counts | ||
| totalPending = statusCounts.containsKey("pending") ? statusCounts.get("pending") : 0; | ||
| totalApproved = statusCounts.containsKey("approved") ? statusCounts.get("approved") : 0; | ||
| int totalApproved = statusCounts.containsKey("approved") ? statusCounts.get("approved") : 0; |
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 think taking key "approved" as constant value
https://dimagi.atlassian.net/browse/CCCT-897
cross-request: dimagi/commcare-core#1455
Product Description
Small improvements to the text displayed for each payment unit in the delivery progress page, to only count progress based on approved visits (not including pending visits).
Technical Summary
Simple change to the values that go into the text field and progress bar
Feature Flag
Connect
Safety Assurance
Safety story
Simple change to UI inputs. Tested manually.
Automated test coverage
No automated tests for Connect yet.
QA Plan
Verify the delivery progress bar and text for each payment unit are displayed as specified in Sankalp's comment in the Jira ticket.
Labels and Review