Fakultas Ilmu Komputer UI

Commit 087689d5 authored by Nandhika Prayoga's avatar Nandhika Prayoga Committed by Irwanto
Browse files

[REFACTOR] Investigation case changes on endpoint, positive case filtering,...

[REFACTOR] Investigation case changes on endpoint, positive case filtering, and faskes dropdown behaviour
parent 131bf7ae
...@@ -1413,6 +1413,14 @@ ...@@ -1413,6 +1413,14 @@
"resolved": "https://registry.npmjs.org/@react-native-community/cli-types/-/cli-types-4.4.0.tgz", "resolved": "https://registry.npmjs.org/@react-native-community/cli-types/-/cli-types-4.4.0.tgz",
"integrity": "sha512-H1XsjQ6imMZKK+IsehDnhVhxP0FyUKX6UMWMeUkSk6Ox5M7HZ2q8kvlxVqdgZM9ry8yb6RJtCIjgBT7w8eiSug==" "integrity": "sha512-H1XsjQ6imMZKK+IsehDnhVhxP0FyUKX6UMWMeUkSk6Ox5M7HZ2q8kvlxVqdgZM9ry8yb6RJtCIjgBT7w8eiSug=="
}, },
"@react-native-community/datetimepicker": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/@react-native-community/datetimepicker/-/datetimepicker-2.3.2.tgz",
"integrity": "sha512-BbDmWVIaSYoYK2x5tRRuy/UWUVS6WtZ+3D210zYZgyD47yEVcTbaLFL9zFw7VxNMb8c/6BFcEpC6k18WTYplwA==",
"requires": {
"invariant": "^2.2.4"
}
},
"@react-native-community/eslint-config": { "@react-native-community/eslint-config": {
"version": "0.0.5", "version": "0.0.5",
"resolved": "https://registry.npmjs.org/@react-native-community/eslint-config/-/eslint-config-0.0.5.tgz", "resolved": "https://registry.npmjs.org/@react-native-community/eslint-config/-/eslint-config-0.0.5.tgz",
......
...@@ -14,7 +14,13 @@ import { ...@@ -14,7 +14,13 @@ import {
ContactInvestigationFormStep2, ContactInvestigationFormStep2,
ContactInvestigationFormStep3, ContactInvestigationFormStep3,
ContactInvestigationFormStep4, ContactInvestigationFormStep4,
Splash MonitoringSelection,
MonitoringMedicalReference,
MonitoringFormFinishPage,
Splash,
MonitoringMedicalIntake,
MonitoringMedicalCheck,
MonitoringMedicalResume
} from 'scenes'; } from 'scenes';
import {Dimensions} from 'react-native'; import {Dimensions} from 'react-native';
import initialCacheState, { import initialCacheState, {
...@@ -194,6 +200,30 @@ const App = () => { ...@@ -194,6 +200,30 @@ const App = () => {
name="officer-signup-finish" name="officer-signup-finish"
component={OfficerSignupFormFinishPage} component={OfficerSignupFormFinishPage}
/> />
<Stack.Screen
name="monitoring-select"
component={MonitoringSelection}
/>
<Stack.Screen
name="monitoring-medical-reference"
component={MonitoringMedicalReference}
/>
<Stack.Screen
name="monitoring-medical-check"
component={MonitoringMedicalCheck}
/>
<Stack.Screen
name="monitoring-medical-intake"
component={MonitoringMedicalIntake}
/>
<Stack.Screen
name="monitoring-medical-resume"
component={MonitoringMedicalResume}
/>
<Stack.Screen
name="monitoring-finish"
component={MonitoringFormFinishPage}
/>
<Stack.Screen name="log" component={Log} /> <Stack.Screen name="log" component={Log} />
</Stack.Navigator> </Stack.Navigator>
</NavigationContainer> </NavigationContainer>
......
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders correctly 1`] = `
<View
style={
Object {
"flex": 1,
}
}
>
<RNCSafeAreaView
onInsetsChange={[Function]}
style={
Object {
"flex": 1,
}
}
>
<View
onLayout={[Function]}
style={
Object {
"flex": 1,
"overflow": "hidden",
}
}
>
<View
pointerEvents="box-none"
style={
Object {
"bottom": 0,
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
}
}
>
<View
accessibilityElementsHidden={false}
closing={false}
gestureVelocityImpact={0.3}
importantForAccessibility="auto"
onClose={[Function]}
onGestureBegin={[Function]}
onGestureCanceled={[Function]}
onOpen={[Function]}
onTransitionStart={[Function]}
pointerEvents="box-none"
style={
Object {
"bottom": 0,
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
}
}
transitionSpec={
Object {
"close": Object {
"animation": "spring",
"config": Object {
"damping": 500,
"mass": 3,
"overshootClamping": true,
"restDisplacementThreshold": 0.01,
"restSpeedThreshold": 0.01,
"stiffness": 1000,
},
},
"open": Object {
"animation": "spring",
"config": Object {
"damping": 500,
"mass": 3,
"overshootClamping": true,
"restDisplacementThreshold": 0.01,
"restSpeedThreshold": 0.01,
"stiffness": 1000,
},
},
}
}
>
<View
pointerEvents="box-none"
style={
Object {
"flex": 1,
"marginTop": 64,
}
}
>
<View
collapsable={false}
forwardedRef={[Function]}
onGestureHandlerEvent={[Function]}
onGestureHandlerStateChange={[Function]}
style={
Object {
"flex": 1,
"transform": Array [
Object {
"translateX": 0,
},
Object {
"translateX": 0,
},
],
}
}
>
<View
pointerEvents="none"
style={
Object {
"backgroundColor": "#fff",
"bottom": 0,
"left": 0,
"position": "absolute",
"shadowColor": "#000",
"shadowOffset": Object {
"height": 1,
"width": -1,
},
"shadowOpacity": 0.3,
"shadowRadius": 5,
"top": 0,
"width": 3,
}
}
/>
<View
style={
Array [
Object {
"flex": 1,
"overflow": "hidden",
},
Array [
Object {
"backgroundColor": "rgb(242, 242, 242)",
},
undefined,
],
]
}
>
<View
style={
Object {
"flex": 1,
"flexDirection": "column-reverse",
}
}
>
<View
style={
Object {
"flex": 1,
}
}
>
<RCTScrollView
style={
Array [
Object {
"backgroundColor": "#ffffff",
},
]
}
>
<View>
<RCTSafeAreaView
emulateUnlessSupported={true}
style={
Array [
Object {
"display": "flex",
},
]
}
>
<RCTSafeAreaView
emulateUnlessSupported={true}
style={
Array [
Object {
"backgroundColor": "white",
},
]
}
>
<RCTSafeAreaView
emulateUnlessSupported={true}
style={
Array [
Object {
"backgroundColor": "#f5f5f5",
"borderBottomRightRadius": 70,
"justifyContent": "center",
"minHeight": 150,
},
]
}
>
<RCTSafeAreaView
emulateUnlessSupported={true}
style={
Array [
Object {
"marginTop": "5%",
"paddingBottom": 20,
"paddingLeft": 20,
"paddingRight": 20,
"paddingTop": 20,
},
]
}
>
<View
style={
Array [
Object {
"height": "NaN",
"width": "NaN",
},
]
}
>
<View
accessible={true}
focusable={true}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
style={
Object {
"alignItems": "center",
"backgroundColor": "transparent",
"borderColor": "#42c41d",
"borderRadius": 3,
"borderWidth": 0.8,
"flexBasis": "auto",
"flexGrow": 1,
"flexShrink": 0,
"height": "auto",
"justifyContent": "center",
"opacity": 1,
"paddingBottom": 12,
"paddingLeft": 36,
"paddingRight": 36,
"paddingTop": 12,
"width": "auto",
}
}
>
<Text
color="#9d9e9d"
fontSize="16px"
fontWeight="Bold"
style={
Array [
Object {
"color": "#9d9e9d",
"fontFamily": "Dosis-Bold",
"fontSize": 16,
"textAlign": "left",
"width": "auto",
},
]
}
>
Beranda
</Text>
</View>
</View>
<View
style={
Array [
Object {
"marginTop": "10%",
"width": "NaN",
},
]
}
>
<Text
fontSize="16px"
fontWeight="Regular"
style={
Array [
Object {
"color": "black",
"fontFamily": "Dosis-Regular",
"fontSize": 16,
"textAlign": "left",
"width": "auto",
},
]
}
>
This is header
</Text>
</View>
</RCTSafeAreaView>
</RCTSafeAreaView>
</RCTSafeAreaView>
<RCTSafeAreaView
emulateUnlessSupported={true}
style={
Array [
Object {
"backgroundColor": "#f5f5f5",
},
]
}
>
<RCTSafeAreaView
emulateUnlessSupported={true}
style={
Array [
Object {
"backgroundColor": "white",
"borderTopLeftRadius": 80,
"justifyContent": "center",
"minHeight": 30,
},
]
}
/>
</RCTSafeAreaView>
</RCTSafeAreaView>
<View
style={
Array [
Object {
"backgroundColor": "#ffffff",
"paddingBottom": 12,
"paddingLeft": 12,
"paddingRight": 12,
"paddingTop": 0,
},
]
}
>
<View
style={
Array [
Object {
"backgroundColor": "#fafafa",
"borderBottomRightRadius": 60,
"borderTopLeftRadius": 20,
"marginBottom": 20,
"paddingBottom": 12,
"paddingLeft": 12,
"paddingRight": 12,
"paddingTop": 18,
},
]
}
>
<Text
fontSize="16px"
fontWeight="Regular"
style={
Array [
Object {
"color": "black",
"fontFamily": "Dosis-Regular",
"fontSize": 16,
"textAlign": "left",
"width": "auto",
},
]
}
>
Sri Tanjung
|
19
Tahun,
Laki-laki
</Text>
<Text
fontSize="16px"
fontWeight="Regular"
style={
Array [
Object {
"color": "black",
"fontFamily": "Dosis-Regular",
"fontSize": 16,
"textAlign": "left",
"width": "auto",
},
]
}
>
Pondok Cina, Beji
</Text>
<View
paddingBottom={5}
paddingLeft={0}
paddingRight={0}
paddingTop={5}
style={
Array [
Object {
"flexBasis": "auto",
"flexGrow": 0,
"flexShrink": 0,
"paddingBottom": 5,
"paddingLeft": 0,
"paddingRight": 0,
"paddingTop": 5,
},
]
}
/>
<View
style={
Array [
Object {
"backgroundColor": "#f5f5f5",
"borderRadius": 40,
"width": "60%",
},
]
}
>
<Text
align="center"
fontSize="16px"
fontWeight="Bold"
style={
Array [
Object {
"color": "black",
"fontFamily": "Dosis-Bold",
"fontSize": 16,
"textAlign": "center",
"width": "auto",
},
]
}
>
Status:
</Text>
<Text
align="center"
fontSize="16px"
fontWeight="Bold"
style={
Array [
Object {
"color": "black",
"fontFamily": "Dosis-Bold",
"fontSize": 16,
"textAlign": "center",
"width": "auto",
},
]
}
>
Belum Diperiksa
</Text>
</View>
</View>
</View>
</View>
</RCTScrollView>
</View>
</View>
</View>
</View>
</View>
</View>
</View>
</View>
<View
pointerEvents="box-none"
style={
Object {
"left": 0,
"position": "absolute",
"right": 0,
"top": 0,
}
}
>
<View
accessibilityElementsHidden={false}
importantForAccessibility="auto"
onLayout={[Function]}
pointerEvents="box-none"
style={null}
/>
</View>
</RNCSafeAreaView>
</View>
`;
exports[`renders correctly 2`] = `
<View
style={
Object {
"flex": 1,
}
}
>
<RNCSafeAreaView
onInsetsChange={[Function]}
style={
Object {
"flex": 1,