Skip to content

Commit 2a2d8c6

Browse files
Merge pull request #5646 from simpledotorg/master
2 parents b77dfa3 + 06b71ba commit 2a2d8c6

File tree

15 files changed

+98
-54
lines changed

15 files changed

+98
-54
lines changed

.github/workflows/benchmark_suite.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
sudo udevadm trigger --name-match=kvm
2222
2323
- name: Checkout Android source
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v5
2525

2626
- name: Setup JDK
27-
uses: actions/setup-java@v4
27+
uses: actions/setup-java@v5
2828
with:
2929
distribution: 'zulu'
3030
java-version: 17

.github/workflows/build_prod.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ jobs:
4343
4444
- name: Checkout
4545
if: github.event.inputs.tramline-input == null || github.event.inputs.tramline-input == ''
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@v5
4747

4848
- name: Setup JDK
49-
uses: actions/setup-java@v4
49+
uses: actions/setup-java@v5
5050
with:
5151
java-version: 17
5252
distribution: zulu

.github/workflows/build_sandbox.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242
4343
- name: Checkout
4444
if: github.event.inputs.tramline-input == null || github.event.inputs.tramline-input == ''
45-
uses: actions/checkout@v4
45+
uses: actions/checkout@v5
4646

4747
- name: Setup JDK
48-
uses: actions/setup-java@v4
48+
uses: actions/setup-java@v5
4949
with:
5050
java-version: 17
5151
distribution: zulu

.github/workflows/build_staging.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242
4343
- name: Checkout
4444
if: github.event.inputs.tramline-input == null || github.event.inputs.tramline-input == ''
45-
uses: actions/checkout@v4
45+
uses: actions/checkout@v5
4646

4747
- name: Setup JDK
48-
uses: actions/setup-java@v4
48+
uses: actions/setup-java@v5
4949
with:
5050
java-version: 17
5151
distribution: zulu

.github/workflows/ci_checks.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: [ ubuntu-latest ]
1919
if: github.event_name == 'pull_request'
2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
2222
- name: Verify PR description
2323
run: .github/scripts/story_link_check.sh '${{ github.event.pull_request.body }}'
2424

@@ -27,13 +27,13 @@ jobs:
2727
if: github.event_name == 'pull_request'
2828
steps:
2929
- name: Checkout master
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@v5
3131
with:
3232
ref: master
3333
path: master
3434

3535
- name: Checkout current
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v5
3737
with:
3838
path: current
3939

@@ -43,10 +43,10 @@ jobs:
4343
lint:
4444
runs-on: [ ubuntu-latest ]
4545
steps:
46-
- uses: actions/checkout@v4
46+
- uses: actions/checkout@v5
4747

4848
- name: Setup JDK
49-
uses: actions/setup-java@v4
49+
uses: actions/setup-java@v5
5050
with:
5151
distribution: 'zulu'
5252
java-version: 17
@@ -58,10 +58,10 @@ jobs:
5858
unit_tests:
5959
runs-on: [ ubuntu-latest ]
6060
steps:
61-
- uses: actions/checkout@v4
61+
- uses: actions/checkout@v5
6262

6363
- name: Setup JDK
64-
uses: actions/setup-java@v4
64+
uses: actions/setup-java@v5
6565
with:
6666
distribution: 'zulu'
6767
java-version: 17
@@ -87,7 +87,7 @@ jobs:
8787
8888
8989
- name: Checkout Android source
90-
uses: actions/checkout@v4
90+
uses: actions/checkout@v5
9191

9292
- name: Start Simple Docker server
9393
run: |
@@ -116,7 +116,7 @@ jobs:
116116
script: echo "Generated AVD snapshot for caching."
117117

118118
- name: set up JDK
119-
uses: actions/setup-java@v4
119+
uses: actions/setup-java@v5
120120
with:
121121
distribution: 'zulu'
122122
java-version: 17
@@ -182,13 +182,13 @@ jobs:
182182
runs-on: [ ubuntu-latest ]
183183
steps:
184184
- name: Checkout master
185-
uses: actions/checkout@v4
185+
uses: actions/checkout@v5
186186
with:
187187
ref: master
188188
path: master
189189

190190
- name: Checkout current
191-
uses: actions/checkout@v4
191+
uses: actions/checkout@v5
192192
with:
193193
path: current
194194

@@ -199,7 +199,7 @@ jobs:
199199
runs-on: [ ubuntu-latest ]
200200
if: github.event_name == 'pull_request'
201201
steps:
202-
- uses: actions/checkout@v4
202+
- uses: actions/checkout@v5
203203
with:
204204
ref: ${{github.event.pull_request.head.ref}}
205205
fetch-depth: 0

CHANGELOG.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,43 @@
33
## Next Release
44

55
### Internal
6-
- Bump Sentry to v8.21.1
6+
- Bump Sentry to v8.22.0
7+
- Bump AndroidX Lifecycle to v2.9.4
8+
- Bump AndroidX Test Runner to v1.7.0
9+
- Bump AndroidX Test Rules to v1.7.0
10+
- Bump AndroidX JUnit to v1.3.0
11+
- Bump Jackson Core to v2.20.0
12+
- Bump Play Services Auth to v21.4.0
13+
- Bump Material Components to v1.12.0
14+
- Bump Kotlin to v2.2.20
15+
- Bump AndroidX Work to v2.10.5
16+
- Bump AndroidX ViewModel to v2.9.4
17+
- Bump Lottie Compose to v6.6.9
18+
- Bump Gson to v2.13.2
19+
- Bump KSP to v2.2.20-2.0.2
20+
- Bump firebase remote config to v23.0.1
21+
- Bump Google Truth to v1.4.5
22+
- Bump AndroidX Benchmark to v1.4.1
23+
- Bump AndroidX Camera to v1.5.0
24+
- Bump AndroidX Camera View to v1.5.0
25+
- Bump dagger to v2.57.2
26+
- Bump UUID generator to v5.1.1
27+
- Bump Compose BOM to v2025.09.01
28+
- Bump Sentry Android to v5.12.0
29+
- Update GH Actions `checkout` to v5
30+
- Update GH Actions `setup-jdk` to to v5
31+
- Bump Gradle to v9.1.0
32+
- Bump Mockito Kotlin to v6.0.0
33+
34+
### Changes
35+
36+
- Hide next button when registration is going
737

838
## 2025.09.09
939

1040
### Internal
1141
- Bump AGP to v8.13.0
1242
- Bump Lint to v31.13.0
13-
- Bump Kotlin to v2.2.0
14-
- Bump KSP to v2.2.0-2.0.2
1543
- Bump dagger to v2.57.1
1644
- Bump okhttp to v5.1.0
1745
- Bump retrofit to v3.0.0

app/src/main/java/org/simple/clinic/registration/phone/RegistrationPhoneScreen.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,14 @@ class RegistrationPhoneScreen :
174174
progressView.visibility = View.GONE
175175
}
176176

177+
override fun showNextButton() {
178+
nextButtonFrame.visibility = View.VISIBLE
179+
}
180+
181+
override fun hideNextButton() {
182+
nextButtonFrame.visibility = View.GONE
183+
}
184+
177185
override fun openLoginPinEntryScreen() {
178186
router.push(LoginPinScreenKey())
179187
}

app/src/main/java/org/simple/clinic/registration/phone/RegistrationPhoneUi.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ interface RegistrationPhoneUi {
77
fun hideAnyError()
88
fun showProgressIndicator()
99
fun hideProgressIndicator()
10+
fun showNextButton()
11+
fun hideNextButton()
1012
}

app/src/main/java/org/simple/clinic/registration/phone/RegistrationPhoneUiRenderer.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ class RegistrationPhoneUiRenderer(
2121
if (mode == RegistrationUiMode.RegistrationOngoing) {
2222
registrationResultValueCallback.clear()
2323
ui.showProgressIndicator()
24+
ui.hideNextButton()
2425
} else {
2526
ui.hideProgressIndicator()
27+
ui.showNextButton()
2628
}
2729
}
2830

app/src/test/java/org/simple/clinic/registration/phone/RegistrationPhoneScreenLogicTest.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ class RegistrationPhoneScreenLogicTest {
155155

156156
// then
157157
verify(ui).showProgressIndicator()
158+
verify(ui).hideNextButton()
158159
verify(findUserWithPhoneNumber).find(inputNumber)
159160
}
160161

@@ -176,6 +177,8 @@ class RegistrationPhoneScreenLogicTest {
176177
// then
177178
verify(ui).showProgressIndicator()
178179
verify(ui).hideProgressIndicator()
180+
verify(ui).hideNextButton()
181+
verify(ui).showNextButton()
179182
verify(ui).showUnexpectedErrorMessage()
180183

181184
clearInvocations(ui)
@@ -186,6 +189,8 @@ class RegistrationPhoneScreenLogicTest {
186189
// then
187190
verify(ui).showProgressIndicator()
188191
verify(ui).hideProgressIndicator()
192+
verify(ui).hideNextButton()
193+
verify(ui).showNextButton()
189194
verify(ui).showNetworkErrorMessage()
190195
}
191196

@@ -291,6 +296,7 @@ class RegistrationPhoneScreenLogicTest {
291296

292297
// then
293298
verify(ui).showProgressIndicator()
299+
verify(ui).hideNextButton()
294300
verify(facilitySync).pullWithResult()
295301
}
296302

@@ -324,6 +330,7 @@ class RegistrationPhoneScreenLogicTest {
324330

325331
// then
326332
verify(ui).hideProgressIndicator()
333+
verify(ui).showNextButton()
327334
verify(ui).showNetworkErrorMessage()
328335
verify(findUserWithPhoneNumber, never()).find(phoneNumber)
329336
}
@@ -342,6 +349,7 @@ class RegistrationPhoneScreenLogicTest {
342349

343350
// then
344351
verify(ui).hideProgressIndicator()
352+
verify(ui).showNextButton()
345353
verify(ui).showUnexpectedErrorMessage()
346354
verify(findUserWithPhoneNumber, never()).find(phoneNumber)
347355
}

0 commit comments

Comments
 (0)