Skip to content

Commit fc025f1

Browse files
authored
Add: Imperial unit support for pressure and capacity in the UI (#182)
Required for: #49
1 parent 10ce923 commit fc025f1

41 files changed

Lines changed: 531 additions & 168 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

androidApp/src/screenshotTest/kotlin/org/neotech/app/abysner/presentation/component/CylinderSizeDialogScreenshotTest.kt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,17 @@ fun CylinderSizeDialogCustomScreenshotTest() {
3030
CylinderSizeDialogCustomPreview()
3131
}
3232

33+
@PreviewTest
34+
@PreviewForScreenshotTestsDialog
35+
@Composable
36+
fun CylinderSizeDialogImperialPresetsScreenshotTest() {
37+
CylinderSizeDialogImperialPresetsPreview()
38+
}
39+
40+
@PreviewTest
41+
@PreviewForScreenshotTestsDialog
42+
@Composable
43+
fun CylinderSizeDialogImperialCustomScreenshotTest() {
44+
CylinderSizeDialogImperialCustomPreview()
45+
}
46+

androidApp/src/screenshotTest/kotlin/org/neotech/app/abysner/presentation/screens/ShareImageScreenshotTest.kt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,33 @@ package org.neotech.app.abysner.presentation.screens
1515
import androidx.compose.runtime.Composable
1616
import androidx.compose.ui.tooling.preview.Preview
1717
import com.android.tools.screenshot.PreviewTest
18+
import org.neotech.app.abysner.presentation.preview.DEVICE_PHONE_MAX_HEIGHT
1819

1920
@PreviewTest
20-
@Preview
21+
@Preview(device = DEVICE_SHARE_IMAGE)
2122
@Composable
2223
fun ShareImageScreenshotTest() {
2324
ShareImagePreview()
2425
}
2526

2627
@PreviewTest
27-
@Preview
28+
@Preview(device = DEVICE_SHARE_IMAGE)
2829
@Composable
2930
fun ShareImageExtremeScreenshotTest() {
3031
ShareImagePreviewExtreme()
3132
}
3233

3334
@PreviewTest
34-
@Preview
35+
@Preview(device = DEVICE_SHARE_IMAGE)
3536
@Composable
3637
fun ShareImageCcrBailoutScreenshotTest() {
3738
ShareImagePreviewCcrBailout()
3839
}
40+
41+
@PreviewTest
42+
@Preview(device = DEVICE_SHARE_IMAGE)
43+
@Composable
44+
fun ShareImageImperialScreenshotTest() {
45+
ShareImagePreviewImperial()
46+
}
47+

androidApp/src/screenshotTest/kotlin/org/neotech/app/abysner/presentation/screens/planner/PlannerScreenScreenshotTest.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,10 @@ fun PlannerScreenFoldableScreenshotTest() {
3838
PlannerScreenFoldablePreview()
3939
}
4040

41+
@PreviewTest
42+
@PreviewForScreenshotTestsMaxHeight
43+
@Composable
44+
fun PlannerScreenImperialScreenshotTest() {
45+
PlannerScreenImperialPreview()
46+
}
47+

androidApp/src/screenshotTest/kotlin/org/neotech/app/abysner/presentation/screens/planner/cylinders/CylinderPickerBottomSheetScreenshotTest.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,11 @@ fun CylinderPickerBottomSheetLockedGasScreenshotTest() {
4444
fun StandardGasPickerDialogScreenshotTest() {
4545
StandardGasPickerDialogPreview()
4646
}
47+
48+
@PreviewTest
49+
@PreviewForScreenshotTestsDefaultHeight
50+
@Composable
51+
fun CylinderPickerBottomSheetImperialScreenshotTest() {
52+
GasPickerBottomSheetImperialPreview()
53+
}
54+
Lines changed: 2 additions & 2 deletions
Loading
Loading
Loading
Lines changed: 2 additions & 2 deletions
Loading

androidApp/src/screenshotTestDebug/reference/org/neotech/app/abysner/presentation/screens/ShareImageScreenshotTestKt/ShareImageCcrBailoutScreenshotTest_0.png

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)