Skip to content

Commit

Permalink
Merge pull request #15074 from Expensify/update-staging-from-main
Browse files Browse the repository at this point in the history
Update version to 1.2.70-1 on staging
  • Loading branch information
OSBotify authored Feb 11, 2023
2 parents 78a3f6b + 8c30656 commit d5ff4d0
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 19 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001027000
versionName "1.2.70-0"
versionCode 1001027001
versionName "1.2.70-1"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()

if (isNewArchitectureEnabled()) {
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<resources>
<color name="bootsplash_background">#061B09</color>
<color name="white">#FFFFFF</color>
<color name="accent">#0185ff</color>
<color name="accent">#03D47C</color>
<color name="dark">#0b1b34</color>
<color name="gray4">#7D8B8F</color>
</resources>
1 change: 0 additions & 1 deletion android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

<!-- Base application theme. Applied to all Android versions -->
<style name="BaseAppTheme" parent="Theme.AppCompat.NoActionBar">
<item name="android:textColor">@color/dark</item>
<item name="android:colorEdgeEffect">@color/gray4</item>
<item name="android:statusBarColor">#061B09</item>
<item name="colorAccent">@color/accent</item>
Expand Down
2 changes: 1 addition & 1 deletion ios/NewExpensify/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.2.70.0</string>
<string>1.2.70.1</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
Expand Down
2 changes: 1 addition & 1 deletion ios/NewExpensifyTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.2.70.0</string>
<string>1.2.70.1</string>
</dict>
</plist>
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "new.expensify",
"version": "1.2.70-0",
"version": "1.2.70-1",
"author": "Expensify, Inc.",
"homepage": "https://new.expensify.com",
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",
Expand Down
14 changes: 11 additions & 3 deletions src/components/Picker.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ const propTypes = {
// eslint-disable-next-line react/forbid-prop-types
containerStyles: PropTypes.arrayOf(PropTypes.object),

/** Customize the Picker background color */
backgroundColor: PropTypes.string,

/** The ID used to uniquely identify the input in a Form */
inputID: PropTypes.string,

Expand Down Expand Up @@ -79,6 +82,7 @@ const defaultProps = {
isDisabled: false,
errorText: '',
containerStyles: [],
backgroundColor: undefined,
inputID: undefined,
shouldSaveDraft: false,
value: undefined,
Expand All @@ -88,7 +92,7 @@ const defaultProps = {
<Icon
src={Expensicons.DownArrow}
// eslint-disable-next-line react/jsx-props-no-spreading
{...(size === 'small' ? {width: styles.pickerSmall.icon.width, height: styles.pickerSmall.icon.height} : {})}
{...(size === 'small' ? {width: styles.pickerSmall().icon.width, height: styles.pickerSmall().icon.height} : {})}
/>
),
onBlur: () => {},
Expand Down Expand Up @@ -162,14 +166,18 @@ class Picker extends PureComponent {
]}
>
{this.props.label && (
<Text style={[styles.pickerLabel, styles.textLabelSupporting]}>{this.props.label}</Text>
<Text pointerEvents="none" style={[styles.pickerLabel, styles.textLabelSupporting]}>
{this.props.label}
</Text>
)}
<RNPickerSelect
onValueChange={this.onInputChange}

// We add a text color to prevent white text on white background dropdown items on Windows
items={_.map(this.props.items, item => ({...item, color: themeColors.pickerOptionsTextColor}))}
style={this.props.size === 'normal' ? styles.picker(this.props.isDisabled) : styles.pickerSmall}
style={this.props.size === 'normal'
? styles.picker(this.props.isDisabled, this.props.backgroundColor)
: styles.pickerSmall(this.props.backgroundColor)}
useNativeAndroidPickerStyle={false}
placeholder={this.placeholder}
value={this.props.value}
Expand Down
2 changes: 2 additions & 0 deletions src/pages/workspace/reimburse/WorkspaceReimburseView.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import TextInput from '../../../components/TextInput';
import Picker from '../../../components/Picker';
import Text from '../../../components/Text';
import styles from '../../../styles/styles';
import themeColors from '../../../styles/themes/default';
import withLocalize, {withLocalizePropTypes} from '../../../components/withLocalize';
import * as Expensicons from '../../../components/Icon/Expensicons';
import * as Illustrations from '../../../components/Icon/Illustrations';
Expand Down Expand Up @@ -277,6 +278,7 @@ class WorkspaceReimburseView extends React.Component {
items={this.getUnitItems()}
value={this.state.unitValue}
onInputChange={value => this.setUnit(value)}
backgroundColor={themeColors.cardBG}
/>
</View>
</View>
Expand Down
34 changes: 29 additions & 5 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ const styles = {
height: 140,
},

pickerSmall: {
pickerSmall: (backgroundColor = themeColors.highlightBG) => ({
inputIOS: {
fontFamily: fontFamily.EXP_NEUE,
fontSize: variables.fontSizeSmall,
Expand All @@ -574,6 +574,16 @@ const styles = {
opacity: 1,
backgroundColor: 'transparent',
},
done: {
color: themeColors.text,
},
modalViewMiddle: {
backgroundColor: themeColors.border,
borderTopWidth: 0,
},
modalViewBottom: {
backgroundColor: themeColors.highlightBG,
},
inputWeb: {
fontFamily: fontFamily.EXP_NEUE,
fontSize: variables.fontSizeSmall,
Expand All @@ -588,7 +598,7 @@ const styles = {
height: 26,
opacity: 1,
cursor: 'pointer',
backgroundColor: 'transparent',
backgroundColor,
},
inputAndroid: {
fontFamily: fontFamily.EXP_NEUE,
Expand All @@ -602,6 +612,7 @@ const styles = {
color: themeColors.text,
height: 26,
opacity: 1,
backgroundColor: 'transparent',
},
iconContainer: {
top: 7,
Expand All @@ -611,7 +622,7 @@ const styles = {
width: variables.iconSizeExtraSmall,
height: variables.iconSizeExtraSmall,
},
},
}),

badge: {
backgroundColor: themeColors.border,
Expand Down Expand Up @@ -839,6 +850,7 @@ const styles = {
justifyContent: 'center',
backgroundColor: 'transparent',
height: variables.inputHeight,
overflow: 'hidden',
},

pickerContainerSmall: {
Expand All @@ -849,24 +861,36 @@ const styles = {
position: 'absolute',
left: 0,
top: 6,
zIndex: 1,
},

picker: (disabled = false) => ({
picker: (disabled = false, backgroundColor = themeColors.appBG) => ({
iconContainer: {
top: Math.round(variables.inputHeight * 0.5) - 11,
right: 0,
zIndex: -1,
...pointerEventsNone,
},

inputWeb: {
appearance: 'none',
cursor: disabled ? 'not-allowed' : 'pointer',
...picker,
backgroundColor,
},

inputIOS: {
...picker,
},
done: {
color: themeColors.text,
},
modalViewMiddle: {
backgroundColor: themeColors.border,
borderTopWidth: 0,
},
modalViewBottom: {
backgroundColor: themeColors.highlightBG,
},

inputAndroid: {
...picker,
Expand Down
2 changes: 1 addition & 1 deletion src/styles/themes/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const darkTheme = {
dropUIBG: 'rgba(6,27,9,0.92)',
dropTransparentOverlay: 'rgba(255,255,255,0)',
checkBox: colors.green,
pickerOptionsTextColor: colors.midnight,
pickerOptionsTextColor: colors.white,
imageCropBackgroundColor: colors.greenIcons,
};

Expand Down
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
height: 100% !important;
}
:root {
color-scheme: dark;
color-scheme: dark !important;
}
body {
overflow: hidden;
Expand Down

0 comments on commit d5ff4d0

Please sign in to comment.