react-native-stallion 2.4.2 → 2.4.3-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/stallion/storage/StallionConfig.java +2 -10
- package/ios/main/StallionConfig.m +2 -6
- package/package.json +1 -1
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/main/components/StallionDevMenu.js +69 -0
- package/src/main/components/StallionDevMenu.js.map +1 -0
- package/src/main/components/common/BackButton/index.js +19 -42
- package/src/main/components/common/BackButton/index.js.map +1 -1
- package/src/main/components/common/Chevron/index.js +64 -0
- package/src/main/components/common/Chevron/index.js.map +1 -0
- package/src/main/components/common/CrossButton/index.js +18 -11
- package/src/main/components/common/CrossButton/index.js.map +1 -1
- package/src/main/components/common/Header/index.js +3 -15
- package/src/main/components/common/Header/index.js.map +1 -1
- package/src/main/components/common/Header/styles.js +0 -22
- package/src/main/components/common/Header/styles.js.map +1 -1
- package/src/main/components/modules/devMenu/components/ActionButton.js +45 -0
- package/src/main/components/modules/devMenu/components/ActionButton.js.map +1 -0
- package/src/main/components/modules/devMenu/components/AppHeader.js +17 -0
- package/src/main/components/modules/devMenu/components/AppHeader.js.map +1 -0
- package/src/main/components/modules/devMenu/components/BucketRow.js +34 -0
- package/src/main/components/modules/devMenu/components/BucketRow.js.map +1 -0
- package/src/main/components/modules/devMenu/components/BundleHistoryCard.js +92 -0
- package/src/main/components/modules/devMenu/components/BundleHistoryCard.js.map +1 -0
- package/src/main/components/modules/devMenu/components/Chip.js +16 -0
- package/src/main/components/modules/devMenu/components/Chip.js.map +1 -0
- package/src/main/components/modules/devMenu/components/DetailHeader.js +32 -0
- package/src/main/components/modules/devMenu/components/DetailHeader.js.map +1 -0
- package/src/main/components/modules/devMenu/components/DeviceCard.js +31 -0
- package/src/main/components/modules/devMenu/components/DeviceCard.js.map +1 -0
- package/src/main/components/modules/devMenu/components/ErrorBanner.js +17 -0
- package/src/main/components/modules/devMenu/components/ErrorBanner.js.map +1 -0
- package/src/main/components/modules/devMenu/components/ModeToggle.js +54 -0
- package/src/main/components/modules/devMenu/components/ModeToggle.js.map +1 -0
- package/src/main/components/modules/devMenu/components/ProdBundleCard.js +47 -0
- package/src/main/components/modules/devMenu/components/ProdBundleCard.js.map +1 -0
- package/src/main/components/modules/devMenu/components/ReleaseNote.js +44 -0
- package/src/main/components/modules/devMenu/components/ReleaseNote.js.map +1 -0
- package/src/main/components/modules/devMenu/components/SectionLabel.js +13 -0
- package/src/main/components/modules/devMenu/components/SectionLabel.js.map +1 -0
- package/src/main/components/modules/devMenu/components/StateCard.js +30 -0
- package/src/main/components/modules/devMenu/components/StateCard.js.map +1 -0
- package/src/main/components/modules/devMenu/components/Wordmark.js +35 -0
- package/src/main/components/modules/devMenu/components/Wordmark.js.map +1 -0
- package/src/main/components/modules/devMenu/components/styles/index.js +403 -0
- package/src/main/components/modules/devMenu/components/styles/index.js.map +1 -0
- package/src/main/components/modules/devMenu/index.js +47 -0
- package/src/main/components/modules/devMenu/index.js.map +1 -0
- package/src/main/components/modules/devMenu/screens/BundleHistory.js +142 -0
- package/src/main/components/modules/devMenu/screens/BundleHistory.js.map +1 -0
- package/src/main/components/modules/devMenu/screens/Production.js +65 -0
- package/src/main/components/modules/devMenu/screens/Production.js.map +1 -0
- package/src/main/components/modules/devMenu/screens/TestingBuckets.js +81 -0
- package/src/main/components/modules/devMenu/screens/TestingBuckets.js.map +1 -0
- package/src/main/components/modules/devMenu/styles.js +50 -0
- package/src/main/components/modules/devMenu/styles.js.map +1 -0
- package/src/main/components/modules/modal/StallionModal.js +15 -51
- package/src/main/components/modules/modal/StallionModal.js.map +1 -1
- package/src/main/components/modules/modal/hooks/useStallionModal.js +21 -19
- package/src/main/components/modules/modal/hooks/useStallionModal.js.map +1 -1
- package/src/main/constants/appConstants.js +56 -53
- package/src/main/constants/appConstants.js.map +1 -1
- package/src/main/constants/colors.js +1 -10
- package/src/main/constants/colors.js.map +1 -1
- package/src/main/constants/designTokens.js +80 -0
- package/src/main/constants/designTokens.js.map +1 -0
- package/src/main/index.js +3 -1
- package/src/main/index.js.map +1 -1
- package/src/main/utils/useStallionConfig.js +2 -2
- package/src/main/utils/useStallionConfig.js.map +1 -1
- package/src/types/bundle.types.js +7 -0
- package/src/types/bundle.types.js.map +1 -1
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
- package/types/main/components/StallionDevMenu.d.ts +5 -0
- package/types/main/components/StallionDevMenu.d.ts.map +1 -0
- package/types/main/components/common/BackButton/index.d.ts +4 -3
- package/types/main/components/common/BackButton/index.d.ts.map +1 -1
- package/types/main/components/common/Chevron/index.d.ts +11 -0
- package/types/main/components/common/Chevron/index.d.ts.map +1 -0
- package/types/main/components/common/CrossButton/index.d.ts +4 -3
- package/types/main/components/common/CrossButton/index.d.ts.map +1 -1
- package/types/main/components/common/Header/index.d.ts +0 -2
- package/types/main/components/common/Header/index.d.ts.map +1 -1
- package/types/main/components/common/Header/styles.d.ts +0 -21
- package/types/main/components/common/Header/styles.d.ts.map +1 -1
- package/types/main/components/modules/devMenu/components/ActionButton.d.ts +19 -0
- package/types/main/components/modules/devMenu/components/ActionButton.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/AppHeader.d.ts +7 -0
- package/types/main/components/modules/devMenu/components/AppHeader.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/BucketRow.d.ts +11 -0
- package/types/main/components/modules/devMenu/components/BucketRow.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/BundleHistoryCard.d.ts +22 -0
- package/types/main/components/modules/devMenu/components/BundleHistoryCard.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/Chip.d.ts +9 -0
- package/types/main/components/modules/devMenu/components/Chip.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/DetailHeader.d.ts +10 -0
- package/types/main/components/modules/devMenu/components/DetailHeader.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/DeviceCard.d.ts +8 -0
- package/types/main/components/modules/devMenu/components/DeviceCard.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/ErrorBanner.d.ts +6 -0
- package/types/main/components/modules/devMenu/components/ErrorBanner.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/ModeToggle.d.ts +8 -0
- package/types/main/components/modules/devMenu/components/ModeToggle.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/ProdBundleCard.d.ts +13 -0
- package/types/main/components/modules/devMenu/components/ProdBundleCard.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/ReleaseNote.d.ts +11 -0
- package/types/main/components/modules/devMenu/components/ReleaseNote.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/SectionLabel.d.ts +6 -0
- package/types/main/components/modules/devMenu/components/SectionLabel.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/StateCard.d.ts +9 -0
- package/types/main/components/modules/devMenu/components/StateCard.d.ts.map +1 -0
- package/types/main/components/modules/{listing/index.d.ts → devMenu/components/Wordmark.d.ts} +1 -1
- package/types/main/components/modules/devMenu/components/Wordmark.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/styles/index.d.ts +353 -0
- package/types/main/components/modules/devMenu/components/styles/index.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/index.d.ts +14 -0
- package/types/main/components/modules/devMenu/index.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/screens/BundleHistory.d.ts +4 -0
- package/types/main/components/modules/devMenu/screens/BundleHistory.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/screens/Production.d.ts +4 -0
- package/types/main/components/modules/devMenu/screens/Production.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/screens/TestingBuckets.d.ts +4 -0
- package/types/main/components/modules/devMenu/screens/TestingBuckets.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/styles.d.ts +46 -0
- package/types/main/components/modules/devMenu/styles.d.ts.map +1 -0
- package/types/main/components/modules/modal/StallionModal.d.ts.map +1 -1
- package/types/main/components/modules/modal/hooks/useStallionModal.d.ts +5 -6
- package/types/main/components/modules/modal/hooks/useStallionModal.d.ts.map +1 -1
- package/types/main/constants/appConstants.d.ts +46 -48
- package/types/main/constants/appConstants.d.ts.map +1 -1
- package/types/main/constants/colors.d.ts +0 -9
- package/types/main/constants/colors.d.ts.map +1 -1
- package/types/main/constants/designTokens.d.ts +73 -0
- package/types/main/constants/designTokens.d.ts.map +1 -0
- package/types/main/index.d.ts +1 -0
- package/types/main/index.d.ts.map +1 -1
- package/types/main/utils/useStallionConfig.d.ts.map +1 -1
- package/types/types/bundle.types.d.ts +7 -0
- package/types/types/bundle.types.d.ts.map +1 -1
- package/types/types/utils.types.d.ts +3 -0
- package/types/types/utils.types.d.ts.map +1 -1
- package/src/main/components/common/ErrorView/index.js +0 -24
- package/src/main/components/common/ErrorView/index.js.map +0 -1
- package/src/main/components/common/ErrorView/styles.js +0 -30
- package/src/main/components/common/ErrorView/styles.js.map +0 -1
- package/src/main/components/common/Footer/index.js +0 -50
- package/src/main/components/common/Footer/index.js.map +0 -1
- package/src/main/components/common/Footer/styles.js +0 -91
- package/src/main/components/common/Footer/styles.js.map +0 -1
- package/src/main/components/common/FooterLoader/index.js +0 -11
- package/src/main/components/common/FooterLoader/index.js.map +0 -1
- package/src/main/components/common/FooterLoader/styles.js +0 -12
- package/src/main/components/common/FooterLoader/styles.js.map +0 -1
- package/src/main/components/common/OverlayLoader/index.js +0 -26
- package/src/main/components/common/OverlayLoader/index.js.map +0 -1
- package/src/main/components/common/OverlayLoader/styles.js +0 -33
- package/src/main/components/common/OverlayLoader/styles.js.map +0 -1
- package/src/main/components/modules/listing/components/BucketCard.js +0 -33
- package/src/main/components/modules/listing/components/BucketCard.js.map +0 -1
- package/src/main/components/modules/listing/components/BucketCardInfoSection.js +0 -56
- package/src/main/components/modules/listing/components/BucketCardInfoSection.js.map +0 -1
- package/src/main/components/modules/listing/components/BundleCard.js +0 -42
- package/src/main/components/modules/listing/components/BundleCard.js.map +0 -1
- package/src/main/components/modules/listing/components/BundleCardInfoSection.js +0 -82
- package/src/main/components/modules/listing/components/BundleCardInfoSection.js.map +0 -1
- package/src/main/components/modules/listing/components/CardDescriptionContent.js +0 -36
- package/src/main/components/modules/listing/components/CardDescriptionContent.js.map +0 -1
- package/src/main/components/modules/listing/components/ConfigView.js +0 -29
- package/src/main/components/modules/listing/components/ConfigView.js.map +0 -1
- package/src/main/components/modules/listing/components/MetaCard.js +0 -39
- package/src/main/components/modules/listing/components/MetaCard.js.map +0 -1
- package/src/main/components/modules/listing/components/SlotView.js +0 -80
- package/src/main/components/modules/listing/components/SlotView.js.map +0 -1
- package/src/main/components/modules/listing/components/styles/index.js +0 -121
- package/src/main/components/modules/listing/components/styles/index.js.map +0 -1
- package/src/main/components/modules/listing/hooks/useListing.js +0 -84
- package/src/main/components/modules/listing/hooks/useListing.js.map +0 -1
- package/src/main/components/modules/listing/index.js +0 -75
- package/src/main/components/modules/listing/index.js.map +0 -1
- package/src/main/components/modules/listing/styles.js +0 -24
- package/src/main/components/modules/listing/styles.js.map +0 -1
- package/src/main/components/modules/prod/index.js +0 -3
- package/src/main/components/modules/prod/index.js.map +0 -1
- package/src/main/components/modules/prod/prod.js +0 -30
- package/src/main/components/modules/prod/prod.js.map +0 -1
- package/src/main/components/modules/prod/styles/index.js +0 -29
- package/src/main/components/modules/prod/styles/index.js.map +0 -1
- package/types/main/components/common/ErrorView/index.d.ts +0 -8
- package/types/main/components/common/ErrorView/index.d.ts.map +0 -1
- package/types/main/components/common/ErrorView/styles.d.ts +0 -27
- package/types/main/components/common/ErrorView/styles.d.ts.map +0 -1
- package/types/main/components/common/Footer/index.d.ts +0 -10
- package/types/main/components/common/Footer/index.d.ts.map +0 -1
- package/types/main/components/common/Footer/styles.d.ts +0 -88
- package/types/main/components/common/Footer/styles.d.ts.map +0 -1
- package/types/main/components/common/FooterLoader/index.d.ts +0 -4
- package/types/main/components/common/FooterLoader/index.d.ts.map +0 -1
- package/types/main/components/common/FooterLoader/styles.d.ts +0 -10
- package/types/main/components/common/FooterLoader/styles.d.ts.map +0 -1
- package/types/main/components/common/OverlayLoader/index.d.ts +0 -7
- package/types/main/components/common/OverlayLoader/index.d.ts.map +0 -1
- package/types/main/components/common/OverlayLoader/styles.d.ts +0 -30
- package/types/main/components/common/OverlayLoader/styles.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/BucketCard.d.ts +0 -13
- package/types/main/components/modules/listing/components/BucketCard.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/BucketCardInfoSection.d.ts +0 -11
- package/types/main/components/modules/listing/components/BucketCardInfoSection.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/BundleCard.d.ts +0 -15
- package/types/main/components/modules/listing/components/BundleCard.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/BundleCardInfoSection.d.ts +0 -15
- package/types/main/components/modules/listing/components/BundleCardInfoSection.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/CardDescriptionContent.d.ts +0 -8
- package/types/main/components/modules/listing/components/CardDescriptionContent.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/ConfigView.d.ts +0 -8
- package/types/main/components/modules/listing/components/ConfigView.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/MetaCard.d.ts +0 -8
- package/types/main/components/modules/listing/components/MetaCard.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/SlotView.d.ts +0 -5
- package/types/main/components/modules/listing/components/SlotView.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/styles/index.d.ts +0 -118
- package/types/main/components/modules/listing/components/styles/index.d.ts.map +0 -1
- package/types/main/components/modules/listing/hooks/useListing.d.ts +0 -15
- package/types/main/components/modules/listing/hooks/useListing.d.ts.map +0 -1
- package/types/main/components/modules/listing/index.d.ts.map +0 -1
- package/types/main/components/modules/listing/styles.d.ts +0 -21
- package/types/main/components/modules/listing/styles.d.ts.map +0 -1
- package/types/main/components/modules/prod/index.d.ts +0 -3
- package/types/main/components/modules/prod/index.d.ts.map +0 -1
- package/types/main/components/modules/prod/prod.d.ts +0 -4
- package/types/main/components/modules/prod/prod.d.ts.map +0 -1
- package/types/main/components/modules/prod/styles/index.d.ts +0 -25
- package/types/main/components/modules/prod/styles/index.d.ts.map +0 -1
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { DS_COLORS, DS_MONO_FONT, DS_RADII, DS_SPACING, DS_TOGGLE } from '../../../../../constants/designTokens';
|
|
3
|
+
const styles = StyleSheet.create({
|
|
4
|
+
/* ---------------------------------------------------------------- *
|
|
5
|
+
* Chip — 11 / 700, pill, tinted
|
|
6
|
+
* ---------------------------------------------------------------- */
|
|
7
|
+
chip: {
|
|
8
|
+
paddingVertical: 3,
|
|
9
|
+
paddingHorizontal: 8,
|
|
10
|
+
borderRadius: DS_RADII.pill
|
|
11
|
+
},
|
|
12
|
+
chipIndigo: {
|
|
13
|
+
backgroundColor: DS_COLORS.indigoTint
|
|
14
|
+
},
|
|
15
|
+
chipGreen: {
|
|
16
|
+
backgroundColor: DS_COLORS.greenTint
|
|
17
|
+
},
|
|
18
|
+
chipText: {
|
|
19
|
+
fontSize: 11,
|
|
20
|
+
fontWeight: '700'
|
|
21
|
+
},
|
|
22
|
+
chipTextIndigo: {
|
|
23
|
+
color: DS_COLORS.indigo
|
|
24
|
+
},
|
|
25
|
+
chipTextGreen: {
|
|
26
|
+
color: DS_COLORS.green
|
|
27
|
+
},
|
|
28
|
+
/* ---------------------------------------------------------------- *
|
|
29
|
+
* ActionButton — 13 / 700
|
|
30
|
+
* ---------------------------------------------------------------- */
|
|
31
|
+
button: {
|
|
32
|
+
borderRadius: DS_RADII.button,
|
|
33
|
+
alignItems: 'center',
|
|
34
|
+
justifyContent: 'center'
|
|
35
|
+
},
|
|
36
|
+
buttonFilled: {
|
|
37
|
+
paddingVertical: 8,
|
|
38
|
+
paddingHorizontal: 16
|
|
39
|
+
},
|
|
40
|
+
buttonOutline: {
|
|
41
|
+
// 1px border + 7px padding keeps the same outer box as the filled button.
|
|
42
|
+
paddingVertical: 7,
|
|
43
|
+
paddingHorizontal: 15,
|
|
44
|
+
borderWidth: 1,
|
|
45
|
+
borderColor: DS_COLORS.outlineBorder,
|
|
46
|
+
backgroundColor: DS_COLORS.cardBg
|
|
47
|
+
},
|
|
48
|
+
buttonPrimary: {
|
|
49
|
+
backgroundColor: DS_COLORS.indigo
|
|
50
|
+
},
|
|
51
|
+
buttonPrimaryPressed: {
|
|
52
|
+
backgroundColor: DS_COLORS.indigoPressed
|
|
53
|
+
},
|
|
54
|
+
buttonSuccess: {
|
|
55
|
+
backgroundColor: DS_COLORS.green
|
|
56
|
+
},
|
|
57
|
+
buttonSuccessPressed: {
|
|
58
|
+
backgroundColor: DS_COLORS.greenPressed
|
|
59
|
+
},
|
|
60
|
+
buttonOutlinePressed: {
|
|
61
|
+
backgroundColor: DS_COLORS.segmentTrack
|
|
62
|
+
},
|
|
63
|
+
buttonText: {
|
|
64
|
+
fontSize: 13,
|
|
65
|
+
fontWeight: '700'
|
|
66
|
+
},
|
|
67
|
+
buttonTextFilled: {
|
|
68
|
+
color: DS_COLORS.white
|
|
69
|
+
},
|
|
70
|
+
buttonTextOutline: {
|
|
71
|
+
color: DS_COLORS.textSecondary
|
|
72
|
+
},
|
|
73
|
+
buttonDisabled: {
|
|
74
|
+
opacity: 0.55
|
|
75
|
+
},
|
|
76
|
+
// Holds the "Download" footprint so the button does not jump as the
|
|
77
|
+
// percentage counts up.
|
|
78
|
+
buttonProgress: {
|
|
79
|
+
minWidth: 92
|
|
80
|
+
},
|
|
81
|
+
// Clips the fill to the button's rounded corners.
|
|
82
|
+
buttonProgressTrack: {
|
|
83
|
+
overflow: 'hidden'
|
|
84
|
+
},
|
|
85
|
+
// Sits behind the label and grows left to right as the download advances.
|
|
86
|
+
buttonProgressFill: {
|
|
87
|
+
position: 'absolute',
|
|
88
|
+
top: 0,
|
|
89
|
+
bottom: 0,
|
|
90
|
+
left: 0,
|
|
91
|
+
backgroundColor: DS_COLORS.indigoTint
|
|
92
|
+
},
|
|
93
|
+
/* ---------------------------------------------------------------- *
|
|
94
|
+
* SectionLabel — 12 / 700 / ls 1.2 / uppercase
|
|
95
|
+
* ---------------------------------------------------------------- */
|
|
96
|
+
sectionLabel: {
|
|
97
|
+
fontSize: 12,
|
|
98
|
+
fontWeight: '700',
|
|
99
|
+
letterSpacing: 1.2,
|
|
100
|
+
color: DS_COLORS.textMuted,
|
|
101
|
+
textTransform: 'uppercase',
|
|
102
|
+
marginBottom: DS_SPACING.labelGap
|
|
103
|
+
},
|
|
104
|
+
/* ---------------------------------------------------------------- *
|
|
105
|
+
* ModeToggle — off is Production, on is Testing
|
|
106
|
+
* ---------------------------------------------------------------- */
|
|
107
|
+
toggleRow: {
|
|
108
|
+
flexDirection: 'row',
|
|
109
|
+
alignItems: 'center',
|
|
110
|
+
justifyContent: 'space-between'
|
|
111
|
+
},
|
|
112
|
+
toggleTextBlock: {
|
|
113
|
+
flex: 1,
|
|
114
|
+
marginRight: 16
|
|
115
|
+
},
|
|
116
|
+
toggleLabel: {
|
|
117
|
+
fontSize: 17,
|
|
118
|
+
fontWeight: '700',
|
|
119
|
+
color: DS_COLORS.textPrimary
|
|
120
|
+
},
|
|
121
|
+
toggleCaption: {
|
|
122
|
+
fontSize: 12,
|
|
123
|
+
lineHeight: 17,
|
|
124
|
+
// The caption wraps to two lines on narrow screens.
|
|
125
|
+
color: DS_COLORS.textMuted,
|
|
126
|
+
marginTop: 6
|
|
127
|
+
},
|
|
128
|
+
toggleTrack: {
|
|
129
|
+
width: DS_TOGGLE.width,
|
|
130
|
+
height: DS_TOGGLE.height,
|
|
131
|
+
borderRadius: DS_RADII.pill,
|
|
132
|
+
justifyContent: 'center'
|
|
133
|
+
},
|
|
134
|
+
toggleTrackOff: {
|
|
135
|
+
backgroundColor: DS_TOGGLE.trackOff
|
|
136
|
+
},
|
|
137
|
+
toggleTrackOn: {
|
|
138
|
+
backgroundColor: DS_TOGGLE.trackOn
|
|
139
|
+
},
|
|
140
|
+
toggleThumb: {
|
|
141
|
+
width: DS_TOGGLE.thumb,
|
|
142
|
+
height: DS_TOGGLE.thumb,
|
|
143
|
+
borderRadius: DS_RADII.pill,
|
|
144
|
+
backgroundColor: DS_COLORS.white,
|
|
145
|
+
marginLeft: DS_TOGGLE.inset,
|
|
146
|
+
// Soft lift so the thumb reads as a control, not a flat disc.
|
|
147
|
+
shadowColor: '#000',
|
|
148
|
+
shadowOffset: {
|
|
149
|
+
width: 0,
|
|
150
|
+
height: 1
|
|
151
|
+
},
|
|
152
|
+
shadowOpacity: 0.18,
|
|
153
|
+
shadowRadius: 1.5,
|
|
154
|
+
elevation: 2
|
|
155
|
+
},
|
|
156
|
+
/* ---------------------------------------------------------------- *
|
|
157
|
+
* Headers
|
|
158
|
+
* ---------------------------------------------------------------- */
|
|
159
|
+
appHeader: {
|
|
160
|
+
paddingTop: 18,
|
|
161
|
+
paddingHorizontal: DS_SPACING.screen,
|
|
162
|
+
paddingBottom: 10,
|
|
163
|
+
flexDirection: 'row',
|
|
164
|
+
alignItems: 'center',
|
|
165
|
+
justifyContent: 'space-between'
|
|
166
|
+
},
|
|
167
|
+
wordmarkRow: {
|
|
168
|
+
flexDirection: 'row',
|
|
169
|
+
alignItems: 'center'
|
|
170
|
+
},
|
|
171
|
+
// Full horse + wordmark lockup — sized close to the previous header logo
|
|
172
|
+
// (HEADER_SLAB_HEIGHT × 2 wide) so it reads as a brand mark, not a chip.
|
|
173
|
+
wordmarkLogo: {
|
|
174
|
+
width: 100,
|
|
175
|
+
height: 32
|
|
176
|
+
},
|
|
177
|
+
wordmarkDiamond: {
|
|
178
|
+
width: 12,
|
|
179
|
+
height: 12,
|
|
180
|
+
backgroundColor: DS_COLORS.indigo,
|
|
181
|
+
borderRadius: 2,
|
|
182
|
+
transform: [{
|
|
183
|
+
rotate: '45deg'
|
|
184
|
+
}],
|
|
185
|
+
marginRight: 8
|
|
186
|
+
},
|
|
187
|
+
wordmarkText: {
|
|
188
|
+
fontSize: 17,
|
|
189
|
+
fontWeight: '800',
|
|
190
|
+
letterSpacing: 1.5,
|
|
191
|
+
color: DS_COLORS.textPrimary
|
|
192
|
+
},
|
|
193
|
+
// Bundle history is reachable from Testing only, so its header always wears
|
|
194
|
+
// the same white slab as the rest of the menu.
|
|
195
|
+
detailHeader: {
|
|
196
|
+
backgroundColor: DS_COLORS.cardBg,
|
|
197
|
+
borderBottomWidth: 1,
|
|
198
|
+
borderBottomColor: DS_COLORS.headerHairline,
|
|
199
|
+
paddingVertical: 18,
|
|
200
|
+
paddingHorizontal: DS_SPACING.screen,
|
|
201
|
+
flexDirection: 'row',
|
|
202
|
+
alignItems: 'center'
|
|
203
|
+
},
|
|
204
|
+
backButton: {
|
|
205
|
+
width: 36,
|
|
206
|
+
height: 36,
|
|
207
|
+
marginLeft: -8,
|
|
208
|
+
marginRight: 12,
|
|
209
|
+
borderRadius: DS_RADII.button,
|
|
210
|
+
alignItems: 'center',
|
|
211
|
+
justifyContent: 'center'
|
|
212
|
+
},
|
|
213
|
+
detailTitleBlock: {
|
|
214
|
+
flex: 1,
|
|
215
|
+
marginRight: 12
|
|
216
|
+
},
|
|
217
|
+
detailTitle: {
|
|
218
|
+
fontSize: 17,
|
|
219
|
+
fontWeight: '700',
|
|
220
|
+
color: DS_COLORS.textPrimary
|
|
221
|
+
},
|
|
222
|
+
detailSubtitle: {
|
|
223
|
+
fontSize: 12,
|
|
224
|
+
color: DS_COLORS.textFaint
|
|
225
|
+
},
|
|
226
|
+
/* ---------------------------------------------------------------- *
|
|
227
|
+
* Cards
|
|
228
|
+
* ---------------------------------------------------------------- */
|
|
229
|
+
card: {
|
|
230
|
+
backgroundColor: DS_COLORS.cardBg,
|
|
231
|
+
borderWidth: 1,
|
|
232
|
+
borderColor: DS_COLORS.cardBorder,
|
|
233
|
+
borderRadius: DS_RADII.card,
|
|
234
|
+
paddingVertical: DS_SPACING.cardVertical,
|
|
235
|
+
paddingHorizontal: DS_SPACING.cardHorizontal
|
|
236
|
+
},
|
|
237
|
+
// The Production bundle card pads evenly on all four sides.
|
|
238
|
+
cardPaddedEven: {
|
|
239
|
+
paddingVertical: DS_SPACING.cardHorizontal
|
|
240
|
+
},
|
|
241
|
+
cardHighlightIndigo: {
|
|
242
|
+
borderWidth: 1.5,
|
|
243
|
+
borderColor: DS_COLORS.indigo
|
|
244
|
+
},
|
|
245
|
+
cardHighlightGreen: {
|
|
246
|
+
borderWidth: 1.5,
|
|
247
|
+
borderColor: DS_COLORS.green
|
|
248
|
+
},
|
|
249
|
+
cardTopRow: {
|
|
250
|
+
flexDirection: 'row',
|
|
251
|
+
alignItems: 'center',
|
|
252
|
+
justifyContent: 'space-between'
|
|
253
|
+
},
|
|
254
|
+
cardTitleRow: {
|
|
255
|
+
flexDirection: 'row',
|
|
256
|
+
alignItems: 'center',
|
|
257
|
+
flexShrink: 1,
|
|
258
|
+
marginRight: 12
|
|
259
|
+
},
|
|
260
|
+
cardTitle: {
|
|
261
|
+
fontSize: 17,
|
|
262
|
+
fontWeight: '700',
|
|
263
|
+
color: DS_COLORS.textPrimary,
|
|
264
|
+
marginRight: 8
|
|
265
|
+
},
|
|
266
|
+
cardTitleLarge: {
|
|
267
|
+
fontSize: 20
|
|
268
|
+
},
|
|
269
|
+
cardMeta: {
|
|
270
|
+
fontSize: 12,
|
|
271
|
+
color: DS_COLORS.textFaint,
|
|
272
|
+
marginTop: 10
|
|
273
|
+
},
|
|
274
|
+
/* ---------------------------------------------------------------- *
|
|
275
|
+
* Release note + Read more
|
|
276
|
+
* ---------------------------------------------------------------- */
|
|
277
|
+
noteWrapper: {
|
|
278
|
+
marginTop: 10
|
|
279
|
+
},
|
|
280
|
+
note: {
|
|
281
|
+
fontSize: 13,
|
|
282
|
+
lineHeight: 19,
|
|
283
|
+
// 13 × 1.45
|
|
284
|
+
color: DS_COLORS.textBody
|
|
285
|
+
},
|
|
286
|
+
noteTight: {
|
|
287
|
+
marginTop: 6
|
|
288
|
+
},
|
|
289
|
+
// Off-screen copy used purely to count the unclamped line count.
|
|
290
|
+
noteMeasure: {
|
|
291
|
+
position: 'absolute',
|
|
292
|
+
top: 0,
|
|
293
|
+
left: 0,
|
|
294
|
+
right: 0,
|
|
295
|
+
opacity: 0,
|
|
296
|
+
zIndex: -1
|
|
297
|
+
},
|
|
298
|
+
readMore: {
|
|
299
|
+
fontSize: 12,
|
|
300
|
+
fontWeight: '700',
|
|
301
|
+
color: DS_COLORS.indigo,
|
|
302
|
+
marginTop: 4
|
|
303
|
+
},
|
|
304
|
+
/* ---------------------------------------------------------------- *
|
|
305
|
+
* Bucket row
|
|
306
|
+
* ---------------------------------------------------------------- */
|
|
307
|
+
bucketRow: {
|
|
308
|
+
flexDirection: 'row',
|
|
309
|
+
alignItems: 'center',
|
|
310
|
+
justifyContent: 'space-between'
|
|
311
|
+
},
|
|
312
|
+
bucketTextBlock: {
|
|
313
|
+
flex: 1,
|
|
314
|
+
marginRight: 12
|
|
315
|
+
},
|
|
316
|
+
bucketName: {
|
|
317
|
+
fontSize: 17,
|
|
318
|
+
fontWeight: '700',
|
|
319
|
+
color: DS_COLORS.textPrimary,
|
|
320
|
+
marginBottom: 3
|
|
321
|
+
},
|
|
322
|
+
bucketMeta: {
|
|
323
|
+
fontSize: 13,
|
|
324
|
+
color: DS_COLORS.textMuted
|
|
325
|
+
},
|
|
326
|
+
/* ---------------------------------------------------------------- *
|
|
327
|
+
* This device card
|
|
328
|
+
* ---------------------------------------------------------------- */
|
|
329
|
+
deviceRow: {
|
|
330
|
+
flexDirection: 'row',
|
|
331
|
+
alignItems: 'center',
|
|
332
|
+
justifyContent: 'space-between'
|
|
333
|
+
},
|
|
334
|
+
deviceLabel: {
|
|
335
|
+
fontSize: 14,
|
|
336
|
+
color: DS_COLORS.textMuted,
|
|
337
|
+
marginRight: 12
|
|
338
|
+
},
|
|
339
|
+
deviceValue: {
|
|
340
|
+
fontSize: 14,
|
|
341
|
+
fontWeight: '600',
|
|
342
|
+
color: DS_COLORS.textPrimary,
|
|
343
|
+
flexShrink: 1,
|
|
344
|
+
textAlign: 'right'
|
|
345
|
+
},
|
|
346
|
+
deviceValueMono: {
|
|
347
|
+
fontSize: 13,
|
|
348
|
+
fontWeight: '400',
|
|
349
|
+
fontFamily: DS_MONO_FONT,
|
|
350
|
+
color: DS_COLORS.textPrimary
|
|
351
|
+
},
|
|
352
|
+
deviceDivider: {
|
|
353
|
+
height: 1,
|
|
354
|
+
backgroundColor: DS_COLORS.divider,
|
|
355
|
+
marginVertical: 12
|
|
356
|
+
},
|
|
357
|
+
/* ---------------------------------------------------------------- *
|
|
358
|
+
* Dashed state card (empty / error)
|
|
359
|
+
* ---------------------------------------------------------------- */
|
|
360
|
+
stateCard: {
|
|
361
|
+
borderWidth: 1,
|
|
362
|
+
borderStyle: 'dashed',
|
|
363
|
+
borderColor: DS_COLORS.outlineBorder,
|
|
364
|
+
borderRadius: DS_RADII.card,
|
|
365
|
+
paddingVertical: 28,
|
|
366
|
+
paddingHorizontal: DS_SPACING.screen,
|
|
367
|
+
alignItems: 'center'
|
|
368
|
+
},
|
|
369
|
+
stateTitle: {
|
|
370
|
+
fontSize: 15,
|
|
371
|
+
fontWeight: '600',
|
|
372
|
+
color: DS_COLORS.textSecondary,
|
|
373
|
+
textAlign: 'center'
|
|
374
|
+
},
|
|
375
|
+
stateSubtitle: {
|
|
376
|
+
fontSize: 13,
|
|
377
|
+
lineHeight: 20,
|
|
378
|
+
// 13 × 1.5
|
|
379
|
+
color: DS_COLORS.textFaint,
|
|
380
|
+
textAlign: 'center',
|
|
381
|
+
marginTop: 6
|
|
382
|
+
},
|
|
383
|
+
stateAction: {
|
|
384
|
+
marginTop: 16
|
|
385
|
+
},
|
|
386
|
+
/* ---------------------------------------------------------------- *
|
|
387
|
+
* Error banner
|
|
388
|
+
* ---------------------------------------------------------------- */
|
|
389
|
+
errorBanner: {
|
|
390
|
+
backgroundColor: DS_COLORS.errorTint,
|
|
391
|
+
borderWidth: 1,
|
|
392
|
+
borderColor: DS_COLORS.errorBorder,
|
|
393
|
+
borderRadius: DS_RADII.button,
|
|
394
|
+
paddingVertical: 10,
|
|
395
|
+
paddingHorizontal: 12
|
|
396
|
+
},
|
|
397
|
+
errorBannerText: {
|
|
398
|
+
fontSize: 12,
|
|
399
|
+
color: DS_COLORS.errorText
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
export default styles;
|
|
403
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","DS_COLORS","DS_MONO_FONT","DS_RADII","DS_SPACING","DS_TOGGLE","styles","create","chip","paddingVertical","paddingHorizontal","borderRadius","pill","chipIndigo","backgroundColor","indigoTint","chipGreen","greenTint","chipText","fontSize","fontWeight","chipTextIndigo","color","indigo","chipTextGreen","green","button","alignItems","justifyContent","buttonFilled","buttonOutline","borderWidth","borderColor","outlineBorder","cardBg","buttonPrimary","buttonPrimaryPressed","indigoPressed","buttonSuccess","buttonSuccessPressed","greenPressed","buttonOutlinePressed","segmentTrack","buttonText","buttonTextFilled","white","buttonTextOutline","textSecondary","buttonDisabled","opacity","buttonProgress","minWidth","buttonProgressTrack","overflow","buttonProgressFill","position","top","bottom","left","sectionLabel","letterSpacing","textMuted","textTransform","marginBottom","labelGap","toggleRow","flexDirection","toggleTextBlock","flex","marginRight","toggleLabel","textPrimary","toggleCaption","lineHeight","marginTop","toggleTrack","width","height","toggleTrackOff","trackOff","toggleTrackOn","trackOn","toggleThumb","thumb","marginLeft","inset","shadowColor","shadowOffset","shadowOpacity","shadowRadius","elevation","appHeader","paddingTop","screen","paddingBottom","wordmarkRow","wordmarkLogo","wordmarkDiamond","transform","rotate","wordmarkText","detailHeader","borderBottomWidth","borderBottomColor","headerHairline","backButton","detailTitleBlock","detailTitle","detailSubtitle","textFaint","card","cardBorder","cardVertical","cardHorizontal","cardPaddedEven","cardHighlightIndigo","cardHighlightGreen","cardTopRow","cardTitleRow","flexShrink","cardTitle","cardTitleLarge","cardMeta","noteWrapper","note","textBody","noteTight","noteMeasure","right","zIndex","readMore","bucketRow","bucketTextBlock","bucketName","bucketMeta","deviceRow","deviceLabel","deviceValue","textAlign","deviceValueMono","fontFamily","deviceDivider","divider","marginVertical","stateCard","borderStyle","stateTitle","stateSubtitle","stateAction","errorBanner","errorTint","errorBorder","errorBannerText","errorText"],"sourceRoot":"../../../../../../../../src","sources":["main/components/modules/devMenu/components/styles/index.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SACEC,SAAS,EACTC,YAAY,EACZC,QAAQ,EACRC,UAAU,EACVC,SAAS,QACJ,uCAAuC;AAE9C,MAAMC,MAAM,GAAGN,UAAU,CAACO,MAAM,CAAC;EAC/B;AACF;AACA;EACEC,IAAI,EAAE;IACJC,eAAe,EAAE,CAAC;IAClBC,iBAAiB,EAAE,CAAC;IACpBC,YAAY,EAAER,QAAQ,CAACS;EACzB,CAAC;EACDC,UAAU,EAAE;IACVC,eAAe,EAAEb,SAAS,CAACc;EAC7B,CAAC;EACDC,SAAS,EAAE;IACTF,eAAe,EAAEb,SAAS,CAACgB;EAC7B,CAAC;EACDC,QAAQ,EAAE;IACRC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACDC,cAAc,EAAE;IACdC,KAAK,EAAErB,SAAS,CAACsB;EACnB,CAAC;EACDC,aAAa,EAAE;IACbF,KAAK,EAAErB,SAAS,CAACwB;EACnB,CAAC;EAED;AACF;AACA;EACEC,MAAM,EAAE;IACNf,YAAY,EAAER,QAAQ,CAACuB,MAAM;IAC7BC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDC,YAAY,EAAE;IACZpB,eAAe,EAAE,CAAC;IAClBC,iBAAiB,EAAE;EACrB,CAAC;EACDoB,aAAa,EAAE;IACb;IACArB,eAAe,EAAE,CAAC;IAClBC,iBAAiB,EAAE,EAAE;IACrBqB,WAAW,EAAE,CAAC;IACdC,WAAW,EAA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ER,QAAQ,CAACuB,MAAM;IAC7BjB,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE;EACrB,CAAC;EACD8I,eAAe,EAAE;IACfrI,QAAQ,EAAE,EAAE;IACZG,KAAK,EAAErB,SAAS,CAACwJ;EACnB;AACF,CAAC,CAAC;AAEF,eAAenJ,MAAM"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import AppHeader from './components/AppHeader';
|
|
4
|
+
import DetailHeader from './components/DetailHeader';
|
|
5
|
+
import ErrorBanner from './components/ErrorBanner';
|
|
6
|
+
import ModeToggle from './components/ModeToggle';
|
|
7
|
+
import BundleHistory from './screens/BundleHistory';
|
|
8
|
+
import Production from './screens/Production';
|
|
9
|
+
import TestingBuckets from './screens/TestingBuckets';
|
|
10
|
+
import styles from './styles';
|
|
11
|
+
const DevMenu = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
isTesting,
|
|
14
|
+
isBundleHistory,
|
|
15
|
+
bucketTitle,
|
|
16
|
+
bucketSubtitle,
|
|
17
|
+
downloadError,
|
|
18
|
+
onBackPress,
|
|
19
|
+
onClosePress,
|
|
20
|
+
onTabChange
|
|
21
|
+
} = _ref;
|
|
22
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
23
|
+
style: styles.root
|
|
24
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
25
|
+
style: styles.headerSafeArea
|
|
26
|
+
}, isBundleHistory ? /*#__PURE__*/React.createElement(DetailHeader, {
|
|
27
|
+
title: bucketTitle,
|
|
28
|
+
subtitle: bucketSubtitle,
|
|
29
|
+
onBackPress: onBackPress,
|
|
30
|
+
onClosePress: onClosePress
|
|
31
|
+
}) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(AppHeader, {
|
|
32
|
+
onClosePress: onClosePress
|
|
33
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
34
|
+
style: styles.toggleArea
|
|
35
|
+
}, /*#__PURE__*/React.createElement(ModeToggle, {
|
|
36
|
+
isTesting: isTesting,
|
|
37
|
+
onChange: onTabChange
|
|
38
|
+
})))), downloadError ? /*#__PURE__*/React.createElement(View, {
|
|
39
|
+
style: styles.bannerWrapper
|
|
40
|
+
}, /*#__PURE__*/React.createElement(ErrorBanner, {
|
|
41
|
+
message: downloadError
|
|
42
|
+
})) : null, /*#__PURE__*/React.createElement(View, {
|
|
43
|
+
style: styles.content
|
|
44
|
+
}, isBundleHistory ? /*#__PURE__*/React.createElement(BundleHistory, null) : isTesting ? /*#__PURE__*/React.createElement(TestingBuckets, null) : /*#__PURE__*/React.createElement(Production, null)));
|
|
45
|
+
};
|
|
46
|
+
export default DevMenu;
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","AppHeader","DetailHeader","ErrorBanner","ModeToggle","BundleHistory","Production","TestingBuckets","styles","DevMenu","_ref","isTesting","isBundleHistory","bucketTitle","bucketSubtitle","downloadError","onBackPress","onClosePress","onTabChange","createElement","style","root","headerSafeArea","title","subtitle","Fragment","toggleArea","onChange","bannerWrapper","message","content"],"sourceRoot":"../../../../../../src","sources":["main/components/modules/devMenu/index.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AAEnC,OAAOC,SAAS,MAAM,wBAAwB;AAC9C,OAAOC,YAAY,MAAM,2BAA2B;AACpD,OAAOC,WAAW,MAAM,0BAA0B;AAClD,OAAOC,UAAU,MAAM,yBAAyB;AAEhD,OAAOC,aAAa,MAAM,yBAAyB;AACnD,OAAOC,UAAU,MAAM,sBAAsB;AAC7C,OAAOC,cAAc,MAAM,0BAA0B;AAErD,OAAOC,MAAM,MAAM,UAAU;AAa7B,MAAMC,OAA2B,GAAGC,IAAA;EAAA,IAAC;IACnCC,SAAS;IACTC,eAAe;IACfC,WAAW;IACXC,cAAc;IACdC,aA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AED,eAAeG,OAAO"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
+
import { ActivityIndicator, FlatList, RefreshControl, View } from 'react-native';
|
|
3
|
+
import BundleHistoryCard from '../components/BundleHistoryCard';
|
|
4
|
+
import StateCard from '../components/StateCard';
|
|
5
|
+
import { EMPTY_BUNDLES_SUBTITLE, EMPTY_BUNDLES_TITLE, EMPTY_ERROR_MESSAGE_BUNDLE, END_REACH_THRESHOLD, GENERIC_ERROR_TITLE } from '../../../../constants/appConstants';
|
|
6
|
+
import { DS_COLORS } from '../../../../constants/designTokens';
|
|
7
|
+
import { GlobalContext } from '../../../../state';
|
|
8
|
+
import { BUNDLE_STATUS } from '../../../../../types/bundle.types';
|
|
9
|
+
import { restart } from '../../../../utils/StallionNativeUtils';
|
|
10
|
+
import styles from '../styles';
|
|
11
|
+
const Separator = () => /*#__PURE__*/React.createElement(View, {
|
|
12
|
+
style: styles.cardSeparator
|
|
13
|
+
});
|
|
14
|
+
const BundleHistory = () => {
|
|
15
|
+
var _downloadState$data2;
|
|
16
|
+
const {
|
|
17
|
+
bundleState,
|
|
18
|
+
metaState,
|
|
19
|
+
downloadState,
|
|
20
|
+
actions: {
|
|
21
|
+
fetchBundles,
|
|
22
|
+
downloadBundle
|
|
23
|
+
}
|
|
24
|
+
} = useContext(GlobalContext);
|
|
25
|
+
const [expandedNotes, setExpandedNotes] = useState({});
|
|
26
|
+
const [downloadingId, setDownloadingId] = useState(null);
|
|
27
|
+
const wasDownloading = useRef(false);
|
|
28
|
+
const selectedBucketId = bundleState.selectedBucketId;
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
if (selectedBucketId) {
|
|
31
|
+
fetchBundles(selectedBucketId);
|
|
32
|
+
}
|
|
33
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
34
|
+
}, [selectedBucketId]);
|
|
35
|
+
|
|
36
|
+
// The download reducer is global, so pair it with the bundle we kicked off.
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
if (wasDownloading.current && !downloadState.isLoading) {
|
|
39
|
+
setDownloadingId(null);
|
|
40
|
+
}
|
|
41
|
+
wasDownloading.current = !!downloadState.isLoading;
|
|
42
|
+
}, [downloadState.isLoading]);
|
|
43
|
+
const bundles = useMemo(() => bundleState.data || [], [bundleState.data]);
|
|
44
|
+
const latestBundleId = useMemo(() => {
|
|
45
|
+
var _bundles$reduce;
|
|
46
|
+
return (_bundles$reduce = bundles.reduce((latest, bundle) => !latest || bundle.version > latest.version ? bundle : latest, null)) === null || _bundles$reduce === void 0 ? void 0 : _bundles$reduce.id;
|
|
47
|
+
}, [bundles]);
|
|
48
|
+
const getStatus = useCallback(bundleId => {
|
|
49
|
+
const stageSlot = metaState === null || metaState === void 0 ? void 0 : metaState.stageSlot;
|
|
50
|
+
if ((stageSlot === null || stageSlot === void 0 ? void 0 : stageSlot.newHash) === bundleId) return BUNDLE_STATUS.ACTIVE;
|
|
51
|
+
if ((stageSlot === null || stageSlot === void 0 ? void 0 : stageSlot.tempHash) === bundleId) return BUNDLE_STATUS.DOWNLOADED;
|
|
52
|
+
if (downloadingId === bundleId && downloadState.isLoading) return BUNDLE_STATUS.DOWNLOADING;
|
|
53
|
+
return BUNDLE_STATUS.AVAILABLE;
|
|
54
|
+
}, [metaState === null || metaState === void 0 ? void 0 : metaState.stageSlot, downloadingId, downloadState.isLoading]);
|
|
55
|
+
const handleDownload = useCallback(bundleId => {
|
|
56
|
+
if (downloadState.isLoading) return;
|
|
57
|
+
const bundle = bundles.find(item => item.id === bundleId);
|
|
58
|
+
if (!bundle) return;
|
|
59
|
+
setDownloadingId(bundleId);
|
|
60
|
+
downloadBundle(bundle.downloadUrl, bundleId);
|
|
61
|
+
}, [bundles, downloadBundle, downloadState.isLoading]);
|
|
62
|
+
const handleRestart = useCallback(() => {
|
|
63
|
+
requestAnimationFrame(() => restart());
|
|
64
|
+
}, []);
|
|
65
|
+
const handleToggleExpand = useCallback(bundleId => {
|
|
66
|
+
setExpandedNotes(previous => ({
|
|
67
|
+
...previous,
|
|
68
|
+
[bundleId]: !previous[bundleId]
|
|
69
|
+
}));
|
|
70
|
+
}, []);
|
|
71
|
+
const handleRefresh = useCallback(() => fetchBundles(selectedBucketId), [fetchBundles, selectedBucketId]);
|
|
72
|
+
const handleEndReached = useCallback(() => {
|
|
73
|
+
if (bundleState.pageOffset && !bundleState.isLoading && !bundleState.isNextPageLoading) {
|
|
74
|
+
fetchBundles(selectedBucketId, bundleState.pageOffset);
|
|
75
|
+
}
|
|
76
|
+
}, [fetchBundles, selectedBucketId, bundleState.pageOffset, bundleState.isLoading, bundleState.isNextPageLoading]);
|
|
77
|
+
const renderItem = useCallback(_ref => {
|
|
78
|
+
var _item$author, _downloadState$data;
|
|
79
|
+
let {
|
|
80
|
+
item
|
|
81
|
+
} = _ref;
|
|
82
|
+
const isDownloading = downloadingId === item.id;
|
|
83
|
+
return /*#__PURE__*/React.createElement(BundleHistoryCard, {
|
|
84
|
+
id: item.id,
|
|
85
|
+
version: item.version,
|
|
86
|
+
releaseNote: item.releaseNote,
|
|
87
|
+
author: (_item$author = item.author) === null || _item$author === void 0 ? void 0 : _item$author.fullName,
|
|
88
|
+
updatedAt: item.updatedAt,
|
|
89
|
+
size: item.size,
|
|
90
|
+
isLatest: item.id === latestBundleId,
|
|
91
|
+
status: getStatus(item.id)
|
|
92
|
+
// Only the active download row receives progress so memo can skip
|
|
93
|
+
// the rest of the list on each tick.
|
|
94
|
+
,
|
|
95
|
+
progress: isDownloading ? ((_downloadState$data = downloadState.data) === null || _downloadState$data === void 0 ? void 0 : _downloadState$data.currentProgress) || 0 : undefined,
|
|
96
|
+
expanded: !!expandedNotes[item.id],
|
|
97
|
+
onToggleExpand: handleToggleExpand,
|
|
98
|
+
onDownload: handleDownload,
|
|
99
|
+
onRestart: handleRestart
|
|
100
|
+
});
|
|
101
|
+
}, [latestBundleId, downloadingId, getStatus, (_downloadState$data2 = downloadState.data) === null || _downloadState$data2 === void 0 ? void 0 : _downloadState$data2.currentProgress, expandedNotes, handleToggleExpand, handleDownload, handleRestart]);
|
|
102
|
+
if (bundleState.isLoading && !bundles.length) {
|
|
103
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
104
|
+
style: styles.centeredFill
|
|
105
|
+
}, /*#__PURE__*/React.createElement(ActivityIndicator, {
|
|
106
|
+
color: DS_COLORS.indigo
|
|
107
|
+
}));
|
|
108
|
+
}
|
|
109
|
+
if (!bundles.length) {
|
|
110
|
+
const isEmpty = bundleState.error === EMPTY_ERROR_MESSAGE_BUNDLE;
|
|
111
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
112
|
+
style: styles.screenPadding
|
|
113
|
+
}, /*#__PURE__*/React.createElement(StateCard, {
|
|
114
|
+
title: isEmpty ? EMPTY_BUNDLES_TITLE : GENERIC_ERROR_TITLE,
|
|
115
|
+
subtitle: isEmpty ? EMPTY_BUNDLES_SUBTITLE : bundleState.error || undefined,
|
|
116
|
+
onRetry: handleRefresh
|
|
117
|
+
}));
|
|
118
|
+
}
|
|
119
|
+
return /*#__PURE__*/React.createElement(FlatList, {
|
|
120
|
+
style: styles.content,
|
|
121
|
+
contentContainerStyle: styles.screenPadding,
|
|
122
|
+
data: bundles,
|
|
123
|
+
keyExtractor: item => item.id,
|
|
124
|
+
renderItem: renderItem,
|
|
125
|
+
ItemSeparatorComponent: Separator,
|
|
126
|
+
refreshControl: /*#__PURE__*/React.createElement(RefreshControl, {
|
|
127
|
+
refreshing: bundleState.isLoading,
|
|
128
|
+
onRefresh: handleRefresh,
|
|
129
|
+
tintColor: DS_COLORS.indigo,
|
|
130
|
+
colors: [DS_COLORS.indigo]
|
|
131
|
+
}),
|
|
132
|
+
onEndReached: handleEndReached,
|
|
133
|
+
onEndReachedThreshold: END_REACH_THRESHOLD,
|
|
134
|
+
ListFooterComponent: bundleState.isNextPageLoading ? /*#__PURE__*/React.createElement(View, {
|
|
135
|
+
style: styles.listFooter
|
|
136
|
+
}, /*#__PURE__*/React.createElement(ActivityIndicator, {
|
|
137
|
+
color: DS_COLORS.indigo
|
|
138
|
+
})) : null
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
export default BundleHistory;
|
|
142
|
+
//# sourceMappingURL=BundleHistory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useContext","useEffect","useMemo","useRef","useState","ActivityIndicator","FlatList","RefreshControl","View","BundleHistoryCard","StateCard","EMPTY_BUNDLES_SUBTITLE","EMPTY_BUNDLES_TITLE","EMPTY_ERROR_MESSAGE_BUNDLE","END_REACH_THRESHOLD","GENERIC_ERROR_TITLE","DS_COLORS","GlobalContext","BUNDLE_STATUS","restart","styles","Separator","createElement","style","cardSeparator","BundleHistory","_downloadState$data2","bundleState","metaState","downloadState","actions","fetchBundles","downloadBundle","expandedNotes","setExpandedNotes","downloadingId","setDownloadingId","wasDownloading","selectedBucketId","current","isLoading","bundles","data","latestBundleId","_bundles$reduce","reduce","latest","bundle","version","id","getStatus","bundleId","stageSlot","newHash","ACTIVE","tempHash","DOWNLOADED","DOWNLOADING","AVAILABLE","handleDownload","find","item","downloadUrl","handleRestart","requestAnimationFrame","handleToggleExpand","previous","handleRefresh","handleEndReached","pageOffset","isNextPageLoading","renderItem","_ref","_item$author","_downloadState$data","isDownloading","releaseNote","author","fullName","updatedAt","size","isLatest","status","progress","currentProgress","undefined","expanded","onToggleExpand","onDownload","onRestart","length","centeredFill","color","indigo","isEmpty","error","screenPadding","title","subtitle","onRetry","content","contentContainerStyle","keyExtractor","ItemSeparatorComponent","refreshControl","refreshing","onRefresh","tintColor","colors","onEndReached","onEndReachedThreshold","ListFooterComponent","listFooter"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/devMenu/screens/BundleHistory.tsx"],"mappings":"AAAA,OAAOA,KAAK,IACVC,WAAW,EACXC,UAAU,EACVC,SAAS,EACTC,OAAO,EACPC,MAAM,EACNC,QAAQ,QACH,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