8000 Fix Part of #4938: Create Admin Onboarding Intro(2/12) by adhiamboperes · Pull Request #5839 · oppia/oppia-android · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix Part of #4938: Create Admin Onboarding Intro(2/12) #5839

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

Open
wants to merge 22 commits into
base: redesign-pin-input
Choose a base branch
from

Conversation

adhiamboperes
Copy link
Collaborator
@adhiamboperes adhiamboperes commented Jun 2, 2025

Explanation

Fixes Part of #4938: Introduces the admin onboarding screen.

In #5378, the "I am a parent/Teacher" options routes to the profiles list screen, since admin onboarding has not been implemented yet. This PR creates the introduction screen, in which the user is informed of what it means to be an admin.

In #5387, the supervisor profile onboarding started on the profile type screen, and ended on the home screen. This workaround has been rewired so that supervisor onboarding starts on the introduction screen introduced in this PR.

Essential Checklist

  • The PR title and explanation each start with "Fix #bugnum: " (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • Any changes to scripts/assets files have their rationale included in the PR explanation.
  • The PR follows the style guide.
  • The PR does not contain any unnecessary code changes from Android Studio (reference).
  • The PR is made from a branch that's not called "develop" and is up-to-date with "develop".
  • The PR is assigned to the appropriate reviewers (reference).

For UI-specific PRs only

If your PR includes UI-related changes, then:

  • Add screenshots for portrait/landscape for both a tablet & phone of the before & after UI changes
  • For the screenshots above, include both English and pseudo-localized (RTL) screenshots (see RTL guide)
  • Add a video showing the full UX flow with a screen reader enabled (see accessibility guide)
  • For PRs introducing new UI elements or color changes, both light and dark mode screenshots must be included
  • Add a screenshot demonstrating that you ran affected Espresso tests locally & that they're passing
Landscape Portrait
Screenshot_1751638663 Screenshot_1751637334
Screenshot_1751640466 Screenshot_1751639602
Screen recording https://github.com/user-attachments/assets/365b2e28-050a-476c-9a16-298f68823a26

adhiamboperes and others added 10 commits May 5, 2025 08:23
…e-admin-intro

# Conflicts:
#	app/src/main/java/org/oppia/android/app/profile/ProfileChooserActivityPresenter.kt
#	app/src/main/java/org/oppia/android/app/profile/ProfileLoginFragmentPresenter.kt
Moved start onboarding to intro activity

Temporarily navigate to profile chooser until create profile nickname is completed

Ensure all activities in the backstack are removed
Copy link
github-actions bot commented Jun 2, 2025

Coverage Report

Results

Number of files assessed: 14
Overall Coverage: 77.22%
Coverage Analysis: FAIL

Failure Cases

File Failure Reason Status
//app:src/sharedTest/java/org/oppia/android/app/onboarding/AdminIntroActivityTest Source File: AdminIntroActivity.kt not found in the coverage data
//app:src/sharedTest/java/org/oppia/android/app/onboarding/AdminIntroFragmentTest Source File: AdminIntroFragment.kt not found in the coverage data

Passing coverage

Files with passing code coverage
File Coverage Lines Hit Status Min Required
EventBundleCreator.ktutility/src/main/java/org/oppia/android/util/logging/EventBundleCreator.kt
77.22% 339 / 439 70%

Exempted coverage

Files exempted from coverage
File Exemption Reason
FragmentComponentImpl.ktapp/src/main/java/org/oppia/android/app/fragment/FragmentComponentImpl.kt
This file is exempted from having a test file; skipping coverage check.
ProfileChooserActivity.ktapp/src/main/java/org/oppia/android/app/profile/ProfileChooserActivity.kt
This file is exempted from having a test file; skipping coverage check.
ActivityComponentImpl.ktapp/src/main/java/org/oppia/android/app/activity/ActivityComponentImpl.kt
This file is exempted from having a test file; skipping coverage check.
CreateProfileFragmentPresenter.ktapp/src/main/java/org/oppia/android/app/onboarding/CreateProfileFragmentPresenter.kt
This file is exempted from having a test file; skipping coverage check.
OnboardingProfileTypeFragment.ktapp/src/main/java/org/oppia/android/app/onboarding/OnboardingProfileTypeFragment.kt
This file is incompatible with code coverage tooling; skipping coverage check.
AdminIntroFragmentPresenter.ktapp/src/main/java/org/oppia/android/app/onboarding/AdminIntroFragmentPresenter.kt
This file is exempted from having a test file; skipping coverage check.
AdminIntroActivityPresenter.ktapp/src/main/java/org/oppia/android/app/onboarding/AdminIntroActivityPresenter.kt
This file is exempted from having a test file; skipping coverage check.
WavyBackground.ktapp/src/main/java/org/oppia/android/app/onboarding/WavyBackground.kt
This file is exempted from having a test file; skipping coverage check.
OnboardingProfileTypeFragmentPresenter.ktapp/src/main/java/org/oppia/android/app/onboarding/OnboardingProfileTypeFragmentPresenter.kt
This file is exempted from having a test file; skipping coverage check.
SplashActivityPresenter.ktapp/src/main/java/org/oppia/android/app/splash/SplashActivityPresenter.kt
This file is exempted from having a test file; skipping coverage check.
SplashActivity.ktapp/src/main/java/org/oppia/android/app/splash/SplashActivity.kt
This file is incompatible with code coverage tooling; skipping coverage check.

Refer test_file_exemptions.textproto for the comprehensive list of file exemptions and their required coverage percentages.

To learn more, visit the Oppia Android Code Coverage wiki page

Copy link
oppiabot bot commented Jun 9, 2025

Hi @adhiamboperes, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue.
If you are still working on this PR, please make a follow-up commit within 3 days (and submit it for review, if applicable). Please also let us know if you are stuck so we can help you!

@oppiabot oppiabot bot added the stale Corresponds to items that haven't seen a recent update and may be automatically closed. label Jun 9, 2025
Copy link

APK & AAB differences analysis

Note that this is a summarized snapshot. See the CI artifacts for detailed differences.

Dev

Expand to see flavor specifics

Universal APK

APK file size: 19 MiB (old), 19 MiB (new), 23 KiB (Added)

APK download size (estimated): 17 MiB (old), 17 MiB (new), 22 KiB (Added)

Method count: 261118 (old), 261419 (new), 301 (Added)

Features: 2 (old), 2 (new), 0 (No change)

Permissions: 6 (old), 6 (new), 0 (No change)

Resources: 6925 (old), 6935 (new), 10 (Added)

  • Anim: 43 (old), 43 (new), 0 (No change)
  • Animator: 26 (old), 26 (new), 0 (No change)
  • Array: 15 (old), 15 (new), 0 (No change)
  • Attr: 922 (old), 922 (new), 0 (No change)
  • Bool: 9 (old), 9 (new), 0 (No change)
  • Color: 984 (old), 984 (new), 0 (No change)
  • Dimen: 1080 (old), 1082 (new), 2 (Added):
    • dimen/onboarding_admin_intro_horizontal_card_padding (added)
    • dimen/onboarding_admin_intro_vertical_card_padding (added)
  • Drawable: 383 (old), 383 (new), 0 (No change)
  • Id: 1299 (old), 1301 (new), 2 (Added):
    • id/admin_intro_compose_view (added)
    • id/admin_intro_fragment_placeholder (added)
  • Integer: 37 (old), 37 (new), 0 (No change)
  • Interpolator: 11 (old), 11 (new), 0 (No change)
  • Layout: 384 (old), 386 (new), 2 (Added):
    • layout/admin_intro_activity (added)
    • layout/admin_intro_fragment 8000 (added)
  • Menu: 3 (old), 3 (new), 0 (No change)
  • Mipmap: 1 (old), 1 (new), 0 (No change)
  • Plurals: 10 (old), 10 (new), 0 (No change)
  • Raw: 2 (old), 2 (new), 0 (No change)
  • String: 874 (old), 878 (new), 4 (Added):
    • string/admin_intro_activity_header (added)
    • string/admin_intro_activity_learners_text (added)
    • string/admin_intro_activity_settings_text (added)
    • string/admin_intro_activity_title (added)
  • Style: 836 (old), 836 (new), 0 (No change)
  • Xml: 6 (old), 6 (new), 0 (No change)

Lesson assets: 111 (old), 111 (new), 0 (No change)

AAB differences

Expand to see AAB specifics

Supported configurations:

  • hdpi (same)
  • ldpi (same)
  • mdpi (same)
  • tvdpi (same)
  • xhdpi (same)
  • xxhdpi (same)
  • xxxhdpi (same)

Base APK

APK file size: 19 MiB (old), 19 MiB (new), 23 KiB (Added)
APK download size (estimated): 17 MiB (old), 17 MiB (new), 23 KiB (Added)
Method count: 261118 (old), 261419 (new), 301 (Added)
Resources: 6875 (old), 6885 (new), 10 (Added)

  • Dimen: 1076 (old), 1078 (new), 2 (Added)
  • Id: 1299 (old), 1301 (new), 2 (Added)
  • Layout: 384 (old), 386 (new), 2 (Added)
  • String: 874 (old), 878 (new), 4 (Added)

Configuration hdpi

APK file size: 50 KiB (old), 50 KiB (new), 32 bytes (Added)
APK download size (estimated): 18 KiB (old), 18 KiB (new), 1 bytes (Removed)

Configuration ldpi

APK file size: 49 KiB (old), 49 KiB (new), 40 bytes (Added)
APK download size (estimated): 14 KiB (old), 14 KiB (new), 1 bytes (Added)

Configuration mdpi

APK file size: 45 KiB (old), 45 KiB (new), 32 bytes (Added)
APK download size (estimated): 14 KiB (old), 14 KiB (new), 1 bytes (Added)

Configuration tvdpi

APK file size: 86 KiB (old), 86 KiB (new), 56 bytes (Added)
APK download size (estimated): 29 KiB (old), 29 KiB (new), 2 bytes (Added)

Configuration xhdpi

APK file size: 57 KiB (old), 57 KiB (new), 40 bytes (Added)
APK download size (estimated): 21 KiB (old), 21 KiB (new), 1 bytes (Added)

Configuration xxhdpi

APK file size: 63 KiB (old), 63 KiB (new), 32 bytes (Added)
APK download size (estimated): 29 KiB (old), 29 KiB (new), 2 bytes (Added)

Configuration xxxhdpi

APK file size: 63 KiB (old), 63 KiB (new), 32 bytes (Added)
APK download size (estimated): 28 KiB (old), 28 KiB (new), 2 bytes (Removed)

Alpha

Expand to see flavor specifics

Universal APK

APK file size: 11 MiB (old), 11 MiB (new), 66 KiB (Added)

APK download size (estimated): 10 MiB (old), 10 MiB (new), 64 KiB (Added)

Method count: 118383 (old), 119159 (new), 776 (Added)

Features: 2 (old), 2 (new), 0 (No change)

Permissions: 6 (old), 6 (new), 0 (No change)

Resources: 5881 (old), 5891 (new), 10 (Added)

  • Anim: 33 (old), 33 (new), 0 (No change)
  • Animator: 24 (old), 24 (new), 0 (No change)
  • Array: 14 (old), 14 (new), 0 (No change)
  • Attr: 888 (old), 888 (new), 0 (No change)
  • Bool: 8 (old), 8 (new), 0 (No change)
  • Color: 835 (old), 835 (new), 0 (No change)
  • Dimen: 806 (old), 808 (new), 2 (Added):
    • dimen/onboarding_admin_intro_horizontal_card_padding (added)
    • dimen/onboarding_admin_intro_vertical_card_padding (added)
  • Drawable: 345 (old), 345 (new), 0 (No change)
  • Id: 1243 (old), 1245 (new), 2 (Added):
    • id/admin_intro_compose_view (added)
    • id/admin_intro_fragment_placeholder (added)
  • Integer: 32 (old), 32 (new), 0 (No change)
  • Interpolator: 11 (old), 11 (new), 0 (No change)
  • Layout: 344 (old), 346 (new), 2 (Added):
    • layout/admin_intro_activity (added)
    • layout/admin_intro_fragment (added)
  • Menu: 1 (old), 1 (new), 0 (No change)
  • Mipmap: 1 (old), 1 (new), 0 (No change)
  • Plurals: 10 (old), 10 (new), 0 (No change)
  • String: 807 (old), 811 (new), 4 (Added):
    • string/admin_intro_activity_header (added)
    • string/admin_intro_activity_learners_text (added)
    • string/admin_intro_activity_settings_text (added)
    • string/admin_intro_activity_title (added)
  • Style: 478 (old), 478 (new), 0 (No change)
  • Xml: 1 (old), 1 (new), 0 (No change)

Lesson assets: 111 (old), 111 (new), 0 (No change)

AAB differences

Expand to see AAB specifics

Supported configurations:

  • hdpi (same)
  • ldpi (same)
  • mdpi (same)
  • tvdpi (same)
  • xhdpi (same)
  • xxhdpi (same)
  • xxxhdpi (same)

Base APK

APK file size: 11 MiB (old), 11 MiB (new), 66 KiB (Added)
APK download size (estimated): 10 MiB (old), 10 MiB (new), 66 KiB (Added)
Method count: 118383 (old), 119159 (new), 776 (Added)
Resources: 5838 (old), 5848 (new), 10 (Added)

  • Dimen: 804 (old), 806 (new), 2 (Added)
  • Id: 1243 (old), 1245 (new), 2 (Added)
  • Layout: 344 (old), 346 (new), 2 (Added)
  • String: 807 (old), 811 (new), 4 (Added)

Configuration hdpi

APK file size: 43 KiB (old), 43 KiB (new), 24 bytes (Added)
APK download size (estimated): 17 KiB (old), 17 KiB (new), 1 bytes (Removed)

Configuration ldpi

APK file size: 44 KiB (old), 45 KiB (new), 40 bytes (Added)
APK download size (estimated): 13 KiB (old), 13 KiB (new), 3 bytes (Removed)

Configuration mdpi

APK file size: 38 KiB (old), 38 KiB (new), 24 bytes (Added)
APK download size (estimated): 13 KiB (old), 13 KiB (new), 1 bytes (Removed)

Configuration tvdpi

APK file size: 73 KiB (old), 73 KiB (new), 40 bytes (Added)
APK download size (estimated): 27 KiB (old), 27 KiB (new), 1 bytes (Added)

Configuration xhdpi

APK file size: 50 KiB (old), 50 KiB (new), 32 bytes (Added)
APK download size (estimated): 20 KiB (old), 20 KiB (new), 2 bytes (Removed)

Configuration xxhdpi

APK file size: 55 KiB (old), 55 KiB (new), 24 bytes (Added)
APK download size (estimated): 28 KiB (old), 28 KiB (new), 1 bytes (Removed)

Configuration xxxhdpi

APK file size: 55 KiB (old), 55 KiB (new), 24 bytes (Added)
APK download size (estimated): 27 KiB (old), 27 KiB (new), 3 bytes (Added)

Beta

Expand to see flavor specifics

Universal APK

APK file size: 11 MiB (old), 11 MiB (new), 66 KiB (Added)

APK download size (estimated): 10 MiB (old), 10 MiB (new), 65 KiB (Added)

Method count: 118389 (old), 119165 (new), 776 (Added)

Features: 2 (old), 2 (new), 0 (No change)

Permissions: 6 (old), 6 (new), 0 (No change)

Resources: 5881 (old), 5891 (new), 10 (Added)

  • Anim: 33 (old), 33 (new), 0 (No change)
  • Animator: 24 (old), 24 (new), 0 (No change)
  • Array: 14 (old), 14 (new), 0 (No change)
  • Attr: 888 (old), 888 (new), 0 (No change)
  • Bool: 8 (old), 8 (new), 0 (No change)
  • Color: 835 (old), 835 (new), 0 (No change)
  • Dimen: 806 (old), 808 (new), 2 (Added):
    • dimen/onboarding_admin_intro_horizontal_card_padding (added)
    • dimen/onboarding_admin_intro_vertical_card_padding (added)
  • Drawable: 345 (old), 345 (new), 0 (No change)
  • Id: 1243 (old), 1245 (new), 2 (Added):
    • id/admin_intro_compose_view (added)
    • id/admin_intro_fragment_placeholder (added)
  • Integer: 32 (old), 32 (new), 0 (No change)
  • Interpolator: 11 (old), 11 (new), 0 (No change)
  • Layout: 344 (old), 346 (new), 2 (Added):
    • layout/admin_intro_activity (added)
    • layout/admin_intro_fragment (added)
  • Menu: 1 (old), 1 (new), 0 (No change)
  • Mipmap: 1 (old), 1 (new), 0 (No change)
  • Plurals: 10 (old), 10 (new), 0 (No change)
  • String: 807 (old), 811 (new), 4 (Added):
    • string/admin_intro_activity_header (added)
    • string/admin_intro_activity_learners_text (added)
    • string/admin_intro_activity_settings_text (added)
    • string/admin_intro_activity_title (added)
  • Style: 478 (old), 478 (new), 0 (No change)
  • Xml: 1 (old), 1 (new), 0 (No change)

Lesson assets: 111 (old), 111 (new), 0 (No change)

AAB differences

Expand to see AAB specifics

Supported configurations:

  • hdpi (same)
  • ldpi (same)
  • mdpi (same)
  • tvdpi (same)
  • xhdpi (same)
  • xxhdpi (same)
  • xxxhdpi (same)

Base APK

APK file size: 11 MiB (old), 11 MiB (new), 66 KiB (Added)
APK download size (estimated): 10 MiB (old), 10 MiB (new), 64 KiB (Added)
Method count: 118389 (old), 119165 (new), 776 (Added)
Resources: 5838 (old), 5848 (new), 10 (Added)

  • Dimen: 804 (old), 806 (new), 2 (Added)
  • Id: 1243 (old), 1245 (new), 2 (Added)
  • Layout: 344 (old), 346 (new), 2 (Added)
  • String: 807 (old), 811 (new), 4 (Added)

Configuration hdpi

APK file size: 43 KiB (old), 43 KiB (new), 24 bytes (Added)
APK download size (estimated): 17 KiB (old), 17 KiB (new), 0 bytes (No change)

Configuration ldpi

APK file size: 44 KiB (old), 45 KiB (new), 40 bytes (Added)
APK download size (estimated): 13 KiB (old), 13 KiB (new), 3 bytes (Removed)

Configuration mdpi

APK file size: 38 KiB (old), 38 KiB (new), 24 bytes (Added)
APK download size (estimated): 13 KiB (old), 13 KiB (new), 2 bytes (Removed)

Configuration tvdpi

APK file size: 73 KiB (old), 73 KiB (new), 40 bytes (Added)
APK download size (estimated): 27 KiB (old), 27 KiB (new), 0 bytes (No change)

Configuration xhdpi

APK file size: 50 KiB (old), 50 KiB (new), 32 bytes (Added)
APK download size (estimated): 20 KiB (old), 20 KiB (new), 1 bytes (Removed)

Configuration xxhdpi

APK file size: 55 KiB (old), 55 KiB (new), 24 bytes (Added)
APK download size (estimated): 28 KiB (old), 28 KiB (new), 1 bytes (Removed)

Configuration xxxhdpi

APK file size: 55 KiB (old), 55 KiB (new), 24 bytes (Added)
APK download size (estimated): 27 KiB (old), 27 KiB (new), 2 bytes (Added)

Ga

Expand to see flavor specifics

Universal APK

APK file size: 11 MiB (old), 11 MiB (new), 66 KiB (Added)

APK download size (estimated): 10 MiB (old), 10 MiB (new), 66 KiB (Added)

Method count: 118389 (old), 119165 (new), 776 (Added)

Features: 2 (old), 2 (new), 0 (No change)

Permissions: 6 (old), 6 (new), 0 (No change)

Resources: 5881 (old), 5891 (new), 10 (Added)

  • Anim: 33 (old), 33 (new), 0 (No change)
  • Animator: 24 (old), 24 (new), 0 (No change)
  • Array: 14 (old), 14 (new), 0 (No change)
  • Attr: 888 (old), 888 (new), 0 (No change)
  • Bool: 8 (old), 8 (new), 0 (No change)
  • Color: 835 (old), 835 (new), 0 (No change)
  • Dimen: 806 (old), 808 (new), 2 (Added):
    • dimen/onboarding_admin_intro_horizontal_card_padding (added)
    • dimen/onboarding_admin_intro_vertical_card_padding (added)
  • Drawable: 345 (old), 345 (new), 0 (No change)
  • Id: 1243 (old), 1245 (new), 2 (Added):
    • id/admin_intro_compose_view (added)
    • id/admin_intro_fragment_placeholder (added)
  • Integer: 32 (old), 32 (new), 0 (No change)
  • Interpolator: 11 (old), 11 (new), 0 (No change)
  • Layout: 344 (old), 346 (new), 2 (Added):
    • layout/admin_intro_activity (added)
    • layout/admin_intro_fragment (added)
  • Menu: 1 (old), 1 (new), 0 (No change)
  • Mipmap: 1 (old), 1 (new), 0 (No change)
  • Plurals: 10 (old), 10 (new), 0 (No change)
  • String: 807 (old), 811 (new), 4 (Added):
    • string/admin_intro_activity_header (added)
    • string/admin_intro_activity_learners_text (added)
    • string/admin_intro_activity_settings_text (added)
    • string/admin_intro_activity_title (added)
  • Style: 478 (old), 478 (new), 0 (No change)
  • Xml: 1 (old), 1 (new), 0 (No change)

Lesson assets: 111 (old), 111 (new), 0 (No change)

AAB differences

Expand to see AAB specifics

Supported configurations:

  • hdpi (same)
  • ldpi (same)
  • mdpi (same)
  • tvdpi (same)
  • xhdpi (same)
  • xxhdpi (same)
  • xxxhdpi (same)

Base APK

APK file size: 11 MiB (old), 11 MiB (new), 66 KiB (Added)
APK download size (estimated): 10 MiB (old), 10 MiB (new), 63 KiB (Added)
Method count: 118389 (old), 119165 (new), 776 (Added)
Resources: 5838 (old), 5848 (new), 10 (Added)

  • Dimen: 804 (old), 806 (new), 2 (Added)
  • Id: 1243 (old), 1245 (new), 2 (Added)
  • Layout: 344 (old), 346 (new), 2 (Added)
  • String: 807 (old), 811 (new), 4 (Added)

Configuration hdpi

APK file size: 43 KiB (old), 43 KiB (new), 24 bytes (Added)
APK download size (estimated): 17 KiB (old), 17 KiB (new), 2 bytes (Removed)

Configuration ldpi

APK file size: 44 KiB (old), 45 KiB (new), 40 bytes (Added)
APK download size (estimated): 13 KiB (old), 13 KiB (new), 3 bytes (Removed)

Configuration mdpi

APK file size: 38 KiB (old), 38 KiB (new), 24 bytes (Added)
APK download size (estimated): 13 KiB (old), 13 KiB (new), 2 bytes (Removed)

Configuration tvdpi

APK file size: 73 KiB (old), 73 KiB (new), 40 bytes (Added)
APK download size (estimated): 27 KiB (old), 27 KiB (new), 2 bytes (Added)

Configuration xhdpi

APK file size: 50 KiB (old), 50 KiB (new), 32 bytes (Added)
APK download size (estimated): 20 KiB (old), 20 KiB (new), 2 bytes (Removed)

Configuration xxhdpi

APK file size: 55 KiB (old), 55 KiB (new), 24 bytes (Added)
APK download size (estimated): 28 KiB (old), 28 KiB (new), 1 bytes (Removed)

Configuration xxxhdpi

APK file size: 55 KiB (old), 55 KiB (new), 24 bytes (Added)
APK download size (estimated): 27 KiB (old), 27 KiB (new), 2 bytes (Added)

@oppiabot oppiabot bot closed this Jun 17, 2025
@adhiamboperes adhiamboperes changed the title Create admin intro Fix Part of #4938: Create Admin Onboarding Intro(2/12) Jul 1, 2025
# Conflicts:
#	app/src/main/java/org
8000
/oppia/android/app/splash/SplashActivityPresenter.kt
#	app/src/main/res/values-land/dimens.xml
#	app/src/main/res/values-sw600dp-land/dimens.xml
#	app/src/main/res/values-sw600dp-port/dimens.xml
#	model/src/main/proto/arguments.proto
@adhiamboperes adhiamboperes reopened this Jul 1, 2025
@oppiabot oppiabot bot removed the stale Corresponds to items that haven't seen a recent update and may be automatically closed. label Jul 1, 2025
@adhiamboperes adhiamboperes self-assigned this Jul 2, 2025
Copy link
github-actions bot commented Jul 4, 2025

Coverage Report

Results

Number of files assessed: 14
Overall Coverage: 77.17%
Coverage Analysis: FAIL

Failure Cases

File Failure Reason Status
//app:src/sharedTest/java/org/oppia/android/app/onboarding/AdminIntroActivityTest Source File: AdminIntroActivity.kt not found in the coverage data
//app:src/sharedTest/java/org/oppia/android/app/onboarding/AdminIntroFragmentTest Source File: AdminIntroFragment.kt not found in the coverage data

Passing coverage

Files with passing code coverage
File Coverage Lines Hit Status Min Required
EventBundleCreator.ktutility/src/main/java/org/oppia/android/util/logging/EventBundleCreator.kt
77.17% 338 / 438 70%

Exempted coverage

Files exempted from coverage
File Exemption Reason
SplashActivity.ktapp/src/main/java/org/oppia/android/app/splash/SplashActivity.kt
This file is incompatible with code coverage tooling; skipping coverage check.
SplashActivityPresenter.ktapp/src/main/java/org/oppia/android/app/splash/SplashActivityPresenter.kt
This file is exempted from having a test file; skipping coverage check.
FragmentComponentImpl.ktapp/src/main/java/org/oppia/android/app/fragment/FragmentComponentImpl.kt
This file is exempted from having a test file; skipping coverage check.
ProfileChooserActivity.ktapp/src/main/java/org/oppia/android/app/profile/ProfileChooserActivity.kt
This file is exempted from having a test file; skipping coverage check.
WavyBackground.ktapp/src/main/java/org/oppia/android/app/onboarding/WavyBackground.kt
This file is exempted from having a test file; skipping coverage check.
CreateProfileFragmentPresenter.ktapp/src/main/java/org/oppia/android/app/onboarding/CreateProfileFragmentPresenter.kt
This file is exempted from having a test file; skipping coverage check.
AdminIntroActivityPresenter.ktapp/src/main/java/org/oppia/android/app/onboarding/AdminIntroActivityPresenter.kt
This file is exempted from having a test file; skipping coverage check.
AdminIntroFragmentPresenter.ktapp/src/main/java/org/oppia/android/app/onboarding/AdminIntroFragmentPresenter.kt
This file is exempted from having a test file; skipping coverage check.
OnboardingProfileTypeFragment.ktapp/src/main/java/org/oppia/android/app/onboarding/OnboardingProfileTypeFragment.kt
This file is incompatible with code coverage tooling; skipping coverage check.
OnboardingProfileTypeFragmentPresenter.ktapp/src/main/java/org/oppia/android/app/onboarding/OnboardingProfileTypeFragmentPresenter.kt
This file is exempted from having a test file; skipping coverage check.
ActivityComponentImpl.ktapp/src/main/java/org/oppia/android/app/activity/ActivityComponentImpl.kt
This file is exempted from having a test file; skipping coverage check.

Refer test_file_exemptions.textproto for the comprehensive list of file exemptions and their required coverage percentages.

To learn more, visit the Oppia Android Code Coverage wiki page

@adhiamboperes adhiamboperes marked this pull request as ready for review July 4, 2025 14:57
@adhiamboperes adhiamboperes requested review from a team as code owners July 4, 2025 14:57
@adhiamboperes adhiamboperes requested review from BenHenning and removed request for a team July 4, 2025 14:57
@adhiamboperes
Copy link
Collaborator Author

Hi @deonwaju, @subhajitxyz, please do a review pass. Thanks.

Copy link
github-actions bot commented Jul 4, 2025

Coverage Report

Results

Number of files assessed: 14
Overall Coverage: 77.17%
Coverage Analysis: PASS

Passing coverage

Files with passing code coverage
File Coverage Lines Hit Status Min Required
EventBundleCreator.ktutility/src/main/java/org/oppia/android/util/logging/EventBundleCreator.kt
77.17% 338 / 438 70%

Exempted coverage

Files exempted from coverage
File Exemption Reason
SplashActivity.ktapp/src/main/java/org/oppia/android/app/splash/SplashActivity.kt
This file is incompatible with code coverage tooling; skipping coverage check.
SplashActivityPresenter.ktapp/src/main/java/org/oppia/android/app/splash/SplashActivityPresenter.kt
This file is exempted from having a test file; skipping coverage check.
FragmentComponentImpl.ktapp/src/main/java/org/oppia/android/app/fragment/FragmentComponentImpl.kt
This file is exempted from having a test file; skipping coverage check.
ProfileChooserActivity.ktapp/src/main/java/org/oppia/android/app/profile/ProfileChooserActivity.kt
This file is exempted from having a test file; skipping coverage check.
AdminIntroActivity.ktapp/src/main/java/org/oppia/android/app/onboarding/AdminIntroActivity.kt
This file is incompatible with code coverage tooling; skipping coverage check.
CreateProfileFragmentPresenter.ktapp/src/main/java/org/oppia/android/app/onboarding/CreateProfileFragmentPresenter.kt
This file is exempted from having a test file; skipping coverage check.
AdminIntroActivityPresenter.ktapp/src/main/java/org/oppia/android/app/onboarding/AdminIntroActivityPresenter.kt
This file is exempted from having a test file; skipping coverage check.
AdminIntroFragment.ktapp/src/main/java/org/oppia/android/app/onboarding/AdminIntroFragment.kt
This file is incompatible with code coverage tooling; skipping coverage check.
WavyBackgroundView.ktapp/src/main/java/org/oppia/android/app/onboarding/WavyBackgroundView.kt
This file is exempted from having a test file; skipping coverage check.
AdminIntroFragmentPresenter.ktapp/src/main/java/org/oppia/android/app/onboarding/AdminIntroFragmentPresenter.kt
This file is exempted from having a test file; skipping coverage check.
OnboardingProfileTypeFragment.ktapp/src/main/java/org/oppia/android/app/onboarding/OnboardingProfileTypeFragment.kt
This file is incompatible with code coverage tooling; skipping coverage check.
OnboardingProfileTypeFragmentPresenter.ktapp/src/main/java/org/oppia/android/app/onboarding/OnboardingProfileTypeFragmentPresenter.kt
This file is exempted from having a test file; skipping coverage check.
ActivityComponentImpl.ktapp/src/main/java/org/oppia/android/app/activity/ActivityComponentImpl.kt
This file is exempted from having a test file; skipping coverage check.

Refer test_file_exemptions.textproto for the comprehensive list of file exemptions and their required coverage percentages.

To learn more, visit the Oppia Android Code Coverage wiki page

android:id="@+id/admin_intro_fragment_placeholder"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

orientation isn’t applicable to FrameLayout, so it can be safely removed.

/** Test tag for the otter image. */
const val OTTER_TEST_TAG = "TEST_TAG.otter"

/** Test tag for the otter image. */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think , KDoc comment needs to updated.

/** Test tag for the otter image. */
const val BACK_BUTTON_TEST_TAG = "TEST_TAG.back_button"

/** Test tag for the otter image. */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the KDoc comment needs to be updated.

/** Adds a bezier curve background to a view. */
@Composable
fun WavyBackgroundView(backgroundColorResId: Int) {
val whiteColor = colorResource(backgroundColorResId)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
val whiteColor = colorResource(backgroundColorResId)
val waveColor = colorResource(backgroundColorResId)

}
else -> launchOnboardingActivity()
F438 Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible that profile != null && profile.startedProfileOnboarding == false ??

fun testActivity_hasCorrectActivityLabel() {
launch<AdminIntroActivity>(createAdminIntroActivityIntent())
.use { scenario ->
scenario?.onActivity { activity ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious—why is scenario treated as nullable here?

@subhajitxyz
Copy link
Collaborator

Thanks @adhiamboperes , the UI looks awesome! I’ve taken an initial pass and left some comments.

Copy link
oppiabot bot commented Jul 12, 2025

Hi @adhiamboperes, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue.
If you are still working on this PR, please make a follow-up commit within 3 days (and submit it for review, if applicable). Please also let us know if you are stuck so we can help you!

@oppiabot oppiabot bot added the stale Corresponds to items that haven't seen a recent update and may be automatically closed. label Jul 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Corresponds to items that haven't seen a recent update and may be automatically closed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0