Repository navigation
QA-8695 Update Connect Toolbar Title When Leaving Delivery Screens - #3963
OrangeAndGreen wants to merge 1 commit into
Conversation
Once ConnectActivity sets the action bar title directly, AppCompat ignores Activity.setTitle, so the list, learn and intro screens kept the last delivery opportunity's title and subtitle (QA-8695). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Suggested Review Order
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthrough
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to No material merge-blocking risk is established for this title update. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## commcare_2.65 #3963 +/- ##
===================================================
+ Coverage 37.32% 37.39% +0.07%
- Complexity 6864 6871 +7
===================================================
Files 1034 1034
Lines 61094 61098 +4
Branches 7472 7472
===================================================
+ Hits 22802 22848 +46
+ Misses 35637 35586 -51
- Partials 2655 2664 +9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
QA-8695
Product Description
After visiting a delivery opportunity, the Connect toolbar kept that opportunity's name and "Delivery progress" subtitle on the opportunity list and on learn/intro screens. Each screen now shows its own title.
Technical Summary
ConnectActivitysets the action bar title directly inonPostCreate, and AppCompat ignoresActivity.setTitleonce that has happened, so the four Connect screens usingrequireActivity().setTitle(...)never updated the toolbar.ConnectActivitynow routessetTitletosetActionBarTitle, which also clears the subtitle.Safety Assurance
Safety story
What gives confidence:
ConnectActivity; the existingsetTitlecallers are unchanged and now take effect.ConnectDeliveryHomeFragmentTestpasses.Automated test coverage
ConnectDeliveryHomeFragmentTestchecks that after the delivery home sets its title and subtitle, a latersetTitlereplaces the title and clears the subtitle.🤖 Generated with Claude Code