diff --git a/app/AndroidManifest.xml b/app/AndroidManifest.xml index b96defa86..0ee9184fa 100644 --- a/app/AndroidManifest.xml +++ b/app/AndroidManifest.xml @@ -184,6 +184,10 @@ + + - \ No newline at end of file + diff --git a/app/assets/locales/android_translatable_strings.txt b/app/assets/locales/android_translatable_strings.txt index 0bce47881..ca0b17f32 100644 --- a/app/assets/locales/android_translatable_strings.txt +++ b/app/assets/locales/android_translatable_strings.txt @@ -65,6 +65,7 @@ home.sync=Sync with Server home.unsent.forms.indicator=Unsent Forms: ${0} home.logout=Log out of CommCare home.report=Report an Issue +home.connect=View Job Status # IMPORTANT: do NOT change the name of this key for any reason; HQ uses it for the training root menu training.root.title=Training @@ -177,7 +178,7 @@ login.password=Password login.pin.password=PIN login.primed.prompt=Your password has been saved for you! Just press 'Log In'. login.button=Log In -login.app.direct=Login to your app directly. +login.app.connect=Go to Connect Jobs login.sync=Synchronize with server login.bad.password=We couldn't find a user with this password. Please try another! login.welcome.single=Welcome back! Please log in. diff --git a/app/build.gradle b/app/build.gradle index 3411bfc82..1db6a7e83 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -14,6 +14,7 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'com.google.gms.google-services' apply plugin: 'com.google.firebase.crashlytics' +apply plugin: 'androidx.navigation.safeargs' apply from: 'jacoco.gradle' repositories { @@ -142,6 +143,14 @@ dependencies { implementation 'io.michaelrocks:libphonenumber-android:8.13.11' implementation 'com.nulab-inc:zxcvbn:1.7.0' + + def nav_version = '2.6.0' + implementation "androidx.navigation:navigation-fragment:$nav_version" + implementation "androidx.navigation:navigation-ui:$nav_version" + implementation "androidx.navigation:navigation-dynamic-features-fragment:$nav_version" + implementation "androidx.navigation:navigation-compose:$nav_version" + implementation "androidx.navigation:navigation-fragment-ktx:$nav_version" + implementation "androidx.navigation:navigation-ui-ktx:$nav_version" } ext { @@ -402,7 +411,6 @@ android { resValue 'string', 'application_name', applicationName } - cccStaging { buildConfigField 'String', 'CCC_HOST', "\"connect-staging.dimagi.com\"" @@ -591,7 +599,7 @@ static def numbersToLetters(String version) { case '8': words.append('eight'); break case '9': words.append('nine'); break case '0': words.append('zero'); break - default: break // skip non-numeric' + default: break // skip non-numeric } } return words.toString() diff --git a/app/res/drawable-hdpi/arrow_right.png b/app/res/drawable-hdpi/arrow_right.png new file mode 100644 index 000000000..6e36633a2 Binary files /dev/null and b/app/res/drawable-hdpi/arrow_right.png differ diff --git a/app/res/drawable-hdpi/book.png b/app/res/drawable-hdpi/book.png new file mode 100644 index 000000000..41ca7cfbe Binary files /dev/null and b/app/res/drawable-hdpi/book.png differ diff --git a/app/res/drawable-hdpi/calendar_heart.png b/app/res/drawable-hdpi/calendar_heart.png new file mode 100644 index 000000000..9f283f285 Binary files /dev/null and b/app/res/drawable-hdpi/calendar_heart.png differ diff --git a/app/res/drawable-hdpi/checklist.png b/app/res/drawable-hdpi/checklist.png new file mode 100644 index 000000000..521a3a1e2 Binary files /dev/null and b/app/res/drawable-hdpi/checklist.png differ diff --git a/app/res/drawable-hdpi/cloud_backup.png b/app/res/drawable-hdpi/cloud_backup.png new file mode 100644 index 000000000..2ef0adf8e Binary files /dev/null and b/app/res/drawable-hdpi/cloud_backup.png differ diff --git a/app/res/drawable-hdpi/mobile_support.png b/app/res/drawable-hdpi/mobile_support.png new file mode 100644 index 000000000..b5d9a74c2 Binary files /dev/null and b/app/res/drawable-hdpi/mobile_support.png differ diff --git a/app/res/drawable-hdpi/monetary_support.png b/app/res/drawable-hdpi/monetary_support.png new file mode 100644 index 000000000..6f5fc083c Binary files /dev/null and b/app/res/drawable-hdpi/monetary_support.png differ diff --git a/app/res/drawable-hdpi/money.png b/app/res/drawable-hdpi/money.png new file mode 100644 index 000000000..267e753bf Binary files /dev/null and b/app/res/drawable-hdpi/money.png differ diff --git a/app/res/drawable-hdpi/money2.png b/app/res/drawable-hdpi/money2.png new file mode 100644 index 000000000..8154c5055 Binary files /dev/null and b/app/res/drawable-hdpi/money2.png differ diff --git a/app/res/drawable-hdpi/report_approved.png b/app/res/drawable-hdpi/report_approved.png new file mode 100644 index 000000000..85afd5c5d Binary files /dev/null and b/app/res/drawable-hdpi/report_approved.png differ diff --git a/app/res/drawable-hdpi/time.png b/app/res/drawable-hdpi/time.png new file mode 100644 index 000000000..aa3fc4170 Binary files /dev/null and b/app/res/drawable-hdpi/time.png differ diff --git a/app/res/drawable-hdpi/watch.png b/app/res/drawable-hdpi/watch.png new file mode 100644 index 000000000..fa8d950e2 Binary files /dev/null and b/app/res/drawable-hdpi/watch.png differ diff --git a/app/res/drawable-ldpi/arrow_right.png b/app/res/drawable-ldpi/arrow_right.png new file mode 100644 index 000000000..9fc90da14 Binary files /dev/null and b/app/res/drawable-ldpi/arrow_right.png differ diff --git a/app/res/drawable-ldpi/book.png b/app/res/drawable-ldpi/book.png new file mode 100644 index 000000000..a54565c17 Binary files /dev/null and b/app/res/drawable-ldpi/book.png differ diff --git a/app/res/drawable-ldpi/calendar_heart.png b/app/res/drawable-ldpi/calendar_heart.png new file mode 100644 index 000000000..9c8fe1e0d Binary files /dev/null and b/app/res/drawable-ldpi/calendar_heart.png differ diff --git a/app/res/drawable-ldpi/checklist.png b/app/res/drawable-ldpi/checklist.png new file mode 100644 index 000000000..fa3d3bf2d Binary files /dev/null and b/app/res/drawable-ldpi/checklist.png differ diff --git a/app/res/drawable-ldpi/cloud_backup.png b/app/res/drawable-ldpi/cloud_backup.png new file mode 100644 index 000000000..e6137b3c1 Binary files /dev/null and b/app/res/drawable-ldpi/cloud_backup.png differ diff --git a/app/res/drawable-ldpi/mobile_support.png b/app/res/drawable-ldpi/mobile_support.png new file mode 100644 index 000000000..dc46abb3c Binary files /dev/null and b/app/res/drawable-ldpi/mobile_support.png differ diff --git a/app/res/drawable-ldpi/monetary_support.png b/app/res/drawable-ldpi/monetary_support.png new file mode 100644 index 000000000..26acbe5e5 Binary files /dev/null and b/app/res/drawable-ldpi/monetary_support.png differ diff --git a/app/res/drawable-ldpi/money.png b/app/res/drawable-ldpi/money.png new file mode 100644 index 000000000..8a8d5d8a2 Binary files /dev/null and b/app/res/drawable-ldpi/money.png differ diff --git a/app/res/drawable-ldpi/money2.png b/app/res/drawable-ldpi/money2.png new file mode 100644 index 000000000..944ba97ca Binary files /dev/null and b/app/res/drawable-ldpi/money2.png differ diff --git a/app/res/drawable-ldpi/report_approved.png b/app/res/drawable-ldpi/report_approved.png new file mode 100644 index 000000000..635600ee2 Binary files /dev/null and b/app/res/drawable-ldpi/report_approved.png differ diff --git a/app/res/drawable-ldpi/time.png b/app/res/drawable-ldpi/time.png new file mode 100644 index 000000000..6c2372b14 Binary files /dev/null and b/app/res/drawable-ldpi/time.png differ diff --git a/app/res/drawable-ldpi/watch.png b/app/res/drawable-ldpi/watch.png new file mode 100644 index 000000000..9601d728d Binary files /dev/null and b/app/res/drawable-ldpi/watch.png differ diff --git a/app/res/drawable-mdpi/arrow_right.png b/app/res/drawable-mdpi/arrow_right.png new file mode 100644 index 000000000..25c204ded Binary files /dev/null and b/app/res/drawable-mdpi/arrow_right.png differ diff --git a/app/res/drawable-mdpi/book.png b/app/res/drawable-mdpi/book.png new file mode 100644 index 000000000..20d63087c Binary files /dev/null and b/app/res/drawable-mdpi/book.png differ diff --git a/app/res/drawable-mdpi/calendar_heart.png b/app/res/drawable-mdpi/calendar_heart.png new file mode 100644 index 000000000..9df2ca5db Binary files /dev/null and b/app/res/drawable-mdpi/calendar_heart.png differ diff --git a/app/res/drawable-mdpi/checklist.png b/app/res/drawable-mdpi/checklist.png new file mode 100644 index 000000000..cdeb0a287 Binary files /dev/null and b/app/res/drawable-mdpi/checklist.png differ diff --git a/app/res/drawable-mdpi/cloud_backup.png b/app/res/drawable-mdpi/cloud_backup.png new file mode 100644 index 000000000..3ec0fad89 Binary files /dev/null and b/app/res/drawable-mdpi/cloud_backup.png differ diff --git a/app/res/drawable-mdpi/mobile_support.png b/app/res/drawable-mdpi/mobile_support.png new file mode 100644 index 000000000..324e2642e Binary files /dev/null and b/app/res/drawable-mdpi/mobile_support.png differ diff --git a/app/res/drawable-mdpi/monetary_support.png b/app/res/drawable-mdpi/monetary_support.png new file mode 100644 index 000000000..17a847e6e Binary files /dev/null and b/app/res/drawable-mdpi/monetary_support.png differ diff --git a/app/res/drawable-mdpi/money.png b/app/res/drawable-mdpi/money.png new file mode 100644 index 000000000..f73141286 Binary files /dev/null and b/app/res/drawable-mdpi/money.png differ diff --git a/app/res/drawable-mdpi/money2.png b/app/res/drawable-mdpi/money2.png new file mode 100644 index 000000000..e1a9c437b Binary files /dev/null and b/app/res/drawable-mdpi/money2.png differ diff --git a/app/res/drawable-mdpi/report_approved.png b/app/res/drawable-mdpi/report_approved.png new file mode 100644 index 000000000..7f6d92226 Binary files /dev/null and b/app/res/drawable-mdpi/report_approved.png differ diff --git a/app/res/drawable-mdpi/time.png b/app/res/drawable-mdpi/time.png new file mode 100644 index 000000000..d68f3c220 Binary files /dev/null and b/app/res/drawable-mdpi/time.png differ diff --git a/app/res/drawable-mdpi/watch.png b/app/res/drawable-mdpi/watch.png new file mode 100644 index 000000000..936e9b04c Binary files /dev/null and b/app/res/drawable-mdpi/watch.png differ diff --git a/app/res/drawable-xhdpi/arrow_right.png b/app/res/drawable-xhdpi/arrow_right.png new file mode 100644 index 000000000..ce80798af Binary files /dev/null and b/app/res/drawable-xhdpi/arrow_right.png differ diff --git a/app/res/drawable-xhdpi/book.png b/app/res/drawable-xhdpi/book.png new file mode 100644 index 000000000..21031db66 Binary files /dev/null and b/app/res/drawable-xhdpi/book.png differ diff --git a/app/res/drawable-xhdpi/calendar_heart.png b/app/res/drawable-xhdpi/calendar_heart.png new file mode 100644 index 000000000..c6b0a1c28 Binary files /dev/null and b/app/res/drawable-xhdpi/calendar_heart.png differ diff --git a/app/res/drawable-xhdpi/checklist.png b/app/res/drawable-xhdpi/checklist.png new file mode 100644 index 000000000..2b94cf1a6 Binary files /dev/null and b/app/res/drawable-xhdpi/checklist.png differ diff --git a/app/res/drawable-xhdpi/cloud_backup.png b/app/res/drawable-xhdpi/cloud_backup.png new file mode 100644 index 000000000..9e3d1fbc8 Binary files /dev/null and b/app/res/drawable-xhdpi/cloud_backup.png differ diff --git a/app/res/drawable-xhdpi/mobile_support.png b/app/res/drawable-xhdpi/mobile_support.png new file mode 100644 index 000000000..4292c8fc5 Binary files /dev/null and b/app/res/drawable-xhdpi/mobile_support.png differ diff --git a/app/res/drawable-xhdpi/monetary_support.png b/app/res/drawable-xhdpi/monetary_support.png new file mode 100644 index 000000000..308be235f Binary files /dev/null and b/app/res/drawable-xhdpi/monetary_support.png differ diff --git a/app/res/drawable-xhdpi/money.png b/app/res/drawable-xhdpi/money.png new file mode 100644 index 000000000..198624b82 Binary files /dev/null and b/app/res/drawable-xhdpi/money.png differ diff --git a/app/res/drawable-xhdpi/money2.png b/app/res/drawable-xhdpi/money2.png new file mode 100644 index 000000000..f351352b9 Binary files /dev/null and b/app/res/drawable-xhdpi/money2.png differ diff --git a/app/res/drawable-xhdpi/report_approved.png b/app/res/drawable-xhdpi/report_approved.png new file mode 100644 index 000000000..1a9108d79 Binary files /dev/null and b/app/res/drawable-xhdpi/report_approved.png differ diff --git a/app/res/drawable-xhdpi/time.png b/app/res/drawable-xhdpi/time.png new file mode 100644 index 000000000..8fc989ef4 Binary files /dev/null and b/app/res/drawable-xhdpi/time.png differ diff --git a/app/res/drawable-xhdpi/watch.png b/app/res/drawable-xhdpi/watch.png new file mode 100644 index 000000000..21115b1ce Binary files /dev/null and b/app/res/drawable-xhdpi/watch.png differ diff --git a/app/res/drawable-xxhdpi/arrow_right.png b/app/res/drawable-xxhdpi/arrow_right.png new file mode 100644 index 000000000..0dac308dc Binary files /dev/null and b/app/res/drawable-xxhdpi/arrow_right.png differ diff --git a/app/res/drawable-xxhdpi/book.png b/app/res/drawable-xxhdpi/book.png new file mode 100644 index 000000000..b62d870b3 Binary files /dev/null and b/app/res/drawable-xxhdpi/book.png differ diff --git a/app/res/drawable-xxhdpi/calendar_heart.png b/app/res/drawable-xxhdpi/calendar_heart.png new file mode 100644 index 000000000..2acc43993 Binary files /dev/null and b/app/res/drawable-xxhdpi/calendar_heart.png differ diff --git a/app/res/drawable-xxhdpi/checklist.png b/app/res/drawable-xxhdpi/checklist.png new file mode 100644 index 000000000..fc636c514 Binary files /dev/null and b/app/res/drawable-xxhdpi/checklist.png differ diff --git a/app/res/drawable-xxhdpi/cloud_backup.png b/app/res/drawable-xxhdpi/cloud_backup.png new file mode 100644 index 000000000..5898c0c42 Binary files /dev/null and b/app/res/drawable-xxhdpi/cloud_backup.png differ diff --git a/app/res/drawable-xxhdpi/mobile_support.png b/app/res/drawable-xxhdpi/mobile_support.png new file mode 100644 index 000000000..33b16815a Binary files /dev/null and b/app/res/drawable-xxhdpi/mobile_support.png differ diff --git a/app/res/drawable-xxhdpi/monetary_support.png b/app/res/drawable-xxhdpi/monetary_support.png new file mode 100644 index 000000000..02a693dc0 Binary files /dev/null and b/app/res/drawable-xxhdpi/monetary_support.png differ diff --git a/app/res/drawable-xxhdpi/money.png b/app/res/drawable-xxhdpi/money.png new file mode 100644 index 000000000..01a3b1d8b Binary files /dev/null and b/app/res/drawable-xxhdpi/money.png differ diff --git a/app/res/drawable-xxhdpi/money2.png b/app/res/drawable-xxhdpi/money2.png new file mode 100644 index 000000000..326274f45 Binary files /dev/null and b/app/res/drawable-xxhdpi/money2.png differ diff --git a/app/res/drawable-xxhdpi/report_approved.png b/app/res/drawable-xxhdpi/report_approved.png new file mode 100644 index 000000000..38c71a4d1 Binary files /dev/null and b/app/res/drawable-xxhdpi/report_approved.png differ diff --git a/app/res/drawable-xxhdpi/time.png b/app/res/drawable-xxhdpi/time.png new file mode 100644 index 000000000..b362f9cea Binary files /dev/null and b/app/res/drawable-xxhdpi/time.png differ diff --git a/app/res/drawable-xxhdpi/watch.png b/app/res/drawable-xxhdpi/watch.png new file mode 100644 index 000000000..529a8ac21 Binary files /dev/null and b/app/res/drawable-xxhdpi/watch.png differ diff --git a/app/res/drawable-xxxhdpi/arrow_right.png b/app/res/drawable-xxxhdpi/arrow_right.png new file mode 100644 index 000000000..d5dbe7c80 Binary files /dev/null and b/app/res/drawable-xxxhdpi/arrow_right.png differ diff --git a/app/res/drawable-xxxhdpi/book.png b/app/res/drawable-xxxhdpi/book.png new file mode 100644 index 000000000..3aa0d39be Binary files /dev/null and b/app/res/drawable-xxxhdpi/book.png differ diff --git a/app/res/drawable-xxxhdpi/calendar_heart.png b/app/res/drawable-xxxhdpi/calendar_heart.png new file mode 100644 index 000000000..37aa04670 Binary files /dev/null and b/app/res/drawable-xxxhdpi/calendar_heart.png differ diff --git a/app/res/drawable-xxxhdpi/checklist.png b/app/res/drawable-xxxhdpi/checklist.png new file mode 100644 index 000000000..1245b9019 Binary files /dev/null and b/app/res/drawable-xxxhdpi/checklist.png differ diff --git a/app/res/drawable-xxxhdpi/cloud_backup.png b/app/res/drawable-xxxhdpi/cloud_backup.png new file mode 100644 index 000000000..dccb153fc Binary files /dev/null and b/app/res/drawable-xxxhdpi/cloud_backup.png differ diff --git a/app/res/drawable-xxxhdpi/mobile_support.png b/app/res/drawable-xxxhdpi/mobile_support.png new file mode 100644 index 000000000..c12340beb Binary files /dev/null and b/app/res/drawable-xxxhdpi/mobile_support.png differ diff --git a/app/res/drawable-xxxhdpi/monetary_support.png b/app/res/drawable-xxxhdpi/monetary_support.png new file mode 100644 index 000000000..49e889521 Binary files /dev/null and b/app/res/drawable-xxxhdpi/monetary_support.png differ diff --git a/app/res/drawable-xxxhdpi/money.png b/app/res/drawable-xxxhdpi/money.png new file mode 100644 index 000000000..f659263f9 Binary files /dev/null and b/app/res/drawable-xxxhdpi/money.png differ diff --git a/app/res/drawable-xxxhdpi/money2.png b/app/res/drawable-xxxhdpi/money2.png new file mode 100644 index 000000000..e1171ed60 Binary files /dev/null and b/app/res/drawable-xxxhdpi/money2.png differ diff --git a/app/res/drawable-xxxhdpi/report_approved.png b/app/res/drawable-xxxhdpi/report_approved.png new file mode 100644 index 000000000..d50a39d9f Binary files /dev/null and b/app/res/drawable-xxxhdpi/report_approved.png differ diff --git a/app/res/drawable-xxxhdpi/time.png b/app/res/drawable-xxxhdpi/time.png new file mode 100644 index 000000000..5147cf2ce Binary files /dev/null and b/app/res/drawable-xxxhdpi/time.png differ diff --git a/app/res/drawable-xxxhdpi/watch.png b/app/res/drawable-xxxhdpi/watch.png new file mode 100644 index 000000000..81bca9719 Binary files /dev/null and b/app/res/drawable-xxxhdpi/watch.png differ diff --git a/app/res/drawable/progress_ring.xml b/app/res/drawable/progress_ring.xml new file mode 100644 index 000000000..7a297b702 --- /dev/null +++ b/app/res/drawable/progress_ring.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + diff --git a/app/res/layout-land/home_screen.xml b/app/res/layout-land/home_screen.xml index 2e964d314..a61968b85 100644 --- a/app/res/layout-land/home_screen.xml +++ b/app/res/layout-land/home_screen.xml @@ -67,9 +67,58 @@ android:text="@string/connect_payment_confirm_no"/> + + + + + + + - \ No newline at end of file + diff --git a/app/res/layout/connect_available_job_item.xml b/app/res/layout/connect_available_job_item.xml new file mode 100644 index 000000000..cb100b928 --- /dev/null +++ b/app/res/layout/connect_available_job_item.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/res/layout/connect_claimed_job_item.xml b/app/res/layout/connect_claimed_job_item.xml new file mode 100644 index 000000000..f89c83017 --- /dev/null +++ b/app/res/layout/connect_claimed_job_item.xml @@ -0,0 +1,87 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/res/layout/connect_empty_job_list_item.xml b/app/res/layout/connect_empty_job_list_item.xml new file mode 100644 index 000000000..9fd8059cf --- /dev/null +++ b/app/res/layout/connect_empty_job_list_item.xml @@ -0,0 +1,34 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/res/layout/connect_job_list_header_item.xml b/app/res/layout/connect_job_list_header_item.xml new file mode 100644 index 000000000..5d28c2ed7 --- /dev/null +++ b/app/res/layout/connect_job_list_header_item.xml @@ -0,0 +1,16 @@ + + + + + + \ No newline at end of file diff --git a/app/res/layout/connect_payment_item.xml b/app/res/layout/connect_payment_item.xml new file mode 100644 index 000000000..5c0a6d319 --- /dev/null +++ b/app/res/layout/connect_payment_item.xml @@ -0,0 +1,39 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/res/layout/connect_results_summary_item.xml b/app/res/layout/connect_results_summary_item.xml new file mode 100644 index 000000000..13f0fbf64 --- /dev/null +++ b/app/res/layout/connect_results_summary_item.xml @@ -0,0 +1,44 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/res/layout/connect_verification_item.xml b/app/res/layout/connect_verification_item.xml new file mode 100644 index 000000000..9287b1da9 --- /dev/null +++ b/app/res/layout/connect_verification_item.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/app/res/layout/fragment_connect_available_jobs_list.xml b/app/res/layout/fragment_connect_available_jobs_list.xml new file mode 100644 index 000000000..29906e889 --- /dev/null +++ b/app/res/layout/fragment_connect_available_jobs_list.xml @@ -0,0 +1,15 @@ + + + + + + \ No newline at end of file diff --git a/app/res/layout/fragment_connect_delivery_details.xml b/app/res/layout/fragment_connect_delivery_details.xml new file mode 100644 index 000000000..e883dd371 --- /dev/null +++ b/app/res/layout/fragment_connect_delivery_details.xml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +