Repository navigation
Opportunity Home L10n Screenshots - #4012
Conversation
Adds opt-in l10n screenshots of the job intro, learn modules sheet, learning progress and the four delivery tabs. The mock Connect server now serves learn and delivery progress through the real parsers, and a screen-wide capture picks up the bottom sheet's own window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Walkthrough
Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4012 +/- ##
============================================
- Coverage 33.77% 33.77% -0.01%
Complexity 5110 5110
============================================
Files 782 782
Lines 51871 51871
Branches 6535 6535
============================================
- Hits 17520 17519 -1
Misses 32052 32052
- Partials 2299 2300 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Builders that return JSON now say so, per review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Technical Summary
Follow-up to #3987: extends the opt-in localization screenshots to the Opportunity Home surfaces that #3955 introduced.
OpportunityHomeScreenshotTestadds 7 tests (sdk 34, native graphics) for the job intro, the learn modules sheet, learning progress (3 of 5 modules), and the Dashboard, Payment, Visits and More delivery tabs.{}by default). Learn and delivery progress go through the app's real parsers.The screenshots found several layout and translation problems (tab label truncation in en too, the gauge label running into its arc, untranslated lt/no/ha strings, ₹ vs INR). Those are filed as CCCT-3033; this PR doesn't fix them.
7 new views are included in the screenshots:
Comparisons of each of the 7 new views across both languages and screen sizes can be found here.
Latest full results by language and screen size.
Safety Assurance
Safety story
Risk: Low. Opt-in screenshot tests only; no app code changes.
What gives confidence:
app/srcchanges. All four files are underapp/unit-tests/src/org/commcare/l10n/.-Pl10n.localeis set; without the flag onlyL10nScreenshotsTestruns (10 pass).Risks to review:
captureScreenRoboImageis marked experimental in Roborazzi.Automated test coverage
The new tests are themselves the coverage: screenshots for review by eye, not compared against a baseline.
🤖 Generated with Claude Code