Skip to content

Commit

Permalink
Merge pull request #14882 from Expensify/update-staging-from-main
Browse files Browse the repository at this point in the history
Update version to 1.2.66-0 on staging
  • Loading branch information
OSBotify authored Feb 6, 2023
2 parents 6ff8f43 + f4f0930 commit baf9bee
Show file tree
Hide file tree
Showing 26 changed files with 468 additions and 207 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 1001026502
versionName "1.2.65-2"
versionCode 1001026600
versionName "1.2.66-0"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()

if (isNewArchitectureEnabled()) {
Expand Down
4 changes: 2 additions & 2 deletions ios/NewExpensify/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2.65</string>
<string>1.2.66</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -30,7 +30,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.2.65.2</string>
<string>1.2.66.0</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
Expand Down
4 changes: 2 additions & 2 deletions ios/NewExpensifyTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.2.65</string>
<string>1.2.66</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.2.65.2</string>
<string>1.2.66.0</string>
</dict>
</plist>
16 changes: 8 additions & 8 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "new.expensify",
"version": "1.2.65-2",
"version": "1.2.66-0",
"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 Expand Up @@ -94,7 +94,7 @@
"react-native-document-picker": "^8.0.0",
"react-native-fast-image": "^8.6.3",
"react-native-gesture-handler": "2.6.0",
"react-native-google-places-autocomplete": "git+https://github.com/Expensify/react-native-google-places-autocomplete.git#3bbd17d63e6c38d38d857b50f6037c1c0376ff06",
"react-native-google-places-autocomplete": "git+https://github.com/Expensify/react-native-google-places-autocomplete.git#e12768f1542e7982d90f6449798f0d6b7f18f192",
"react-native-haptic-feedback": "^1.13.0",
"react-native-image-pan-zoom": "^2.1.12",
"react-native-image-picker": "^5.0.1",
Expand Down
2 changes: 2 additions & 0 deletions src/ROUTES.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ export default {
SETTINGS_TIMEZONE_SELECT: 'settings/profile/timezone/select',
SETTINGS_PRONOUNS: 'settings/profile/pronouns',
SETTINGS_PREFERENCES: 'settings/preferences',
SETTINGS_PRIORITY_MODE: 'settings/preferences/priority-mode',
SETTINGS_LANGUAGE: 'settings/preferences/language',
SETTINGS_WORKSPACES: 'settings/workspaces',
SETTINGS_SECURITY: 'settings/security',
SETTINGS_CLOSE: 'settings/security/closeAccount',
Expand Down
3 changes: 3 additions & 0 deletions src/components/AddressSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import lodashGet from 'lodash/get';
import CONFIG from '../CONFIG';
import withLocalize, {withLocalizePropTypes} from './withLocalize';
import styles from '../styles/styles';
import themeColors from '../styles/themes/default';
import TextInput from './TextInput';
import Log from '../libs/Log';
import * as GooglePlacesUtils from '../libs/GooglePlacesUtils';
Expand Down Expand Up @@ -228,6 +229,8 @@ const AddressSearch = (props) => {
description: [styles.googleSearchText],
separator: [styles.googleSearchSeparator],
}}
listHoverColor={themeColors.border}
listUnderlayColor={themeColors.buttonPressedBG}
onLayout={(event) => {
// We use the height of the element to determine if we should hide the border of the listView dropdown
// to prevent a lingering border when there are no address suggestions.
Expand Down
6 changes: 3 additions & 3 deletions src/components/LocalePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ const defaultProps = {
const localesToLanguages = {
default: {
value: 'en',
label: Localize.translate('en', 'preferencesPage.languages.english'),
label: Localize.translate('en', 'languagePage.languages.en.label'),
},
es: {
value: 'es',
label: Localize.translate('es', 'preferencesPage.languages.spanish'),
label: Localize.translate('es', 'languagePage.languages.es.label'),
},
};

Expand All @@ -49,7 +49,7 @@ const LocalePicker = (props) => {

return (
<Picker
label={props.size === 'normal' ? props.translate('preferencesPage.language') : null}
label={props.size === 'normal' ? props.translate('languagePage.language') : null}
onInputChange={(locale) => {
if (locale === props.preferredLocale) {
return;
Expand Down
6 changes: 5 additions & 1 deletion src/components/OptionRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ const propTypes = {
/** Whether to show a line separating options in list */
shouldHaveOptionSeparator: PropTypes.bool,

/** Whether to remove the lateral padding and align the content with the margins */
shouldDisableRowInnerPadding: PropTypes.bool,

style: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.object), PropTypes.object]),

...withLocalizePropTypes,
Expand All @@ -74,6 +77,7 @@ const defaultProps = {
optionIsFocused: false,
style: null,
shouldHaveOptionSeparator: false,
shouldDisableRowInnerPadding: false,
};

class OptionRow extends Component {
Expand Down Expand Up @@ -173,7 +177,7 @@ class OptionRow extends Component {
styles.alignItemsCenter,
styles.justifyContentBetween,
styles.sidebarLink,
styles.sidebarLinkInner,
this.props.shouldDisableRowInnerPadding ? null : styles.sidebarLinkInner,
this.props.optionIsFocused ? styles.sidebarLinkActive : null,
hovered && !this.props.optionIsFocused ? this.props.hoverStyle : null,
this.props.isDisabled && styles.cursorDisabled,
Expand Down
1 change: 1 addition & 0 deletions src/components/OptionsList/BaseOptionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ class BaseOptionsList extends Component {
boldStyle={this.props.boldStyle}
isDisabled={isDisabled}
shouldHaveOptionSeparator={index > 0 && this.props.shouldHaveOptionSeparator}
shouldDisableRowInnerPadding={this.props.shouldDisableRowInnerPadding}
/>
);
}
Expand Down
4 changes: 4 additions & 0 deletions src/components/OptionsList/optionsListPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ const propTypes = {

/** Whether to show a line separating options in list */
shouldHaveOptionSeparator: PropTypes.bool,

/** Whether to disable the inner padding in rows */
shouldDisableRowInnerPadding: PropTypes.bool,
};

const defaultProps = {
Expand All @@ -90,6 +93,7 @@ const defaultProps = {
isDisabled: false,
onLayout: undefined,
shouldHaveOptionSeparator: false,
shouldDisableRowInnerPadding: false,
};

export {propTypes, defaultProps};
27 changes: 21 additions & 6 deletions src/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,16 +493,31 @@ export default {
defaultPaymentMethod: 'Default',
},
preferencesPage: {
mostRecent: 'Most recent',
mostRecentModeDescription: 'This will display all chats by default, sorted by most recent, with pinned items at the top.',
focus: '#focus',
focusModeDescription: '#focus – This will only display unread and pinned chats, all sorted alphabetically.',
receiveRelevantFeatureUpdatesAndExpensifyNews: 'Receive relevant feature updates and Expensify news',
},
priorityModePage: {
priorityMode: 'Priority mode',
explainerText: 'Choose whether to show all chats by default sorted with most recent with pinned items at the top, or #focus on unread pinned items, sorted alphabetically.',
priorityModes: {
default: {
label: 'Most recent',
description: 'Show all chats sorted by most recent',
},
gsd: {
label: '#focus',
description: 'Only show unread sorted alphabetically',
},
},
},
languagePage: {
language: 'Language',
languages: {
english: 'English',
spanish: 'Spanish',
en: {
label: 'English',
},
es: {
label: 'Spanish',
},
},
},
signInPage: {
Expand Down
27 changes: 21 additions & 6 deletions src/languages/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,16 +493,31 @@ export default {
defaultPaymentMethod: 'Predeterminado',
},
preferencesPage: {
mostRecent: 'Más recientes',
mostRecentModeDescription: 'Esta opción muestra por defecto todos los chats, ordenados a partir del más reciente, con los chats destacados arriba de todo.',
focus: '#concentración',
focusModeDescription: '#concentración – Muestra sólo los chats no leídos y destacados ordenados alfabéticamente.',
receiveRelevantFeatureUpdatesAndExpensifyNews: 'Recibir noticias sobre Expensify y actualizaciones del producto',
},
priorityModePage: {
priorityMode: 'Modo prioridad',
explainerText: 'Elija si desea mostrar por defecto todos los chats ordenados desde el más reciente y con los elementos anclados en la parte superior, o elija el modo #concentración, con los elementos no leídos anclados en la parte superior y ordenados alfabéticamente.',
priorityModes: {
default: {
label: 'Más recientes',
description: 'Mostrar todos los chats ordenados desde el más reciente',
},
gsd: {
label: '#concentración',
description: 'Mostrar sólo los no leídos ordenados alfabéticamente',
},
},
},
languagePage: {
language: 'Idioma',
languages: {
english: 'Inglés',
spanish: 'Español',
en: {
label: 'Inglés',
},
es: {
label: 'Español',
},
},
},
signInPage: {
Expand Down
16 changes: 15 additions & 1 deletion src/libs/Navigation/AppNavigator/ModalStackNavigators.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,25 @@ const SettingsModalStackNavigator = createModalStackNavigator([
},
{
getComponent: () => {
const SettingsPreferencesPage = require('../../../pages/settings/PreferencesPage').default;
const SettingsPreferencesPage = require('../../../pages/settings/Preferences/PreferencesPage').default;
return SettingsPreferencesPage;
},
name: 'Settings_Preferences',
},
{
getComponent: () => {
const SettingsPreferencesPriorityModePage = require('../../../pages/settings/Preferences/PriorityModePage').default;
return SettingsPreferencesPriorityModePage;
},
name: 'Settings_Preferences_PriorityMode',
},
{
getComponent: () => {
const SettingsPreferencesLanguagePage = require('../../../pages/settings/Preferences/LanguagePage').default;
return SettingsPreferencesLanguagePage;
},
name: 'Settings_Preferences_Language',
},
{
getComponent: () => {
const SettingsPasswordPage = require('../../../pages/settings/PasswordPage').default;
Expand Down
8 changes: 8 additions & 0 deletions src/libs/Navigation/linkingConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ export default {
path: ROUTES.SETTINGS_PREFERENCES,
exact: true,
},
Settings_Preferences_PriorityMode: {
path: ROUTES.SETTINGS_PRIORITY_MODE,
exact: true,
},
Settings_Preferences_Language: {
path: ROUTES.SETTINGS_LANGUAGE,
exact: true,
},
Settings_Close: {
path: ROUTES.SETTINGS_CLOSE,
exact: true,
Expand Down
1 change: 1 addition & 0 deletions src/libs/actions/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ function updateChatPriorityMode(mode) {
API.write('UpdateChatPriorityMode', {
value: mode,
}, {optimisticData});
Navigation.navigate(ROUTES.SETTINGS_PREFERENCES);
}

/**
Expand Down
2 changes: 2 additions & 0 deletions src/pages/GetAssistancePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const GetAssistancePage = (props) => {
onPress: () => Link.openExternalLink(CONST.NEWHELP_URL),
icon: Expensicons.QuestionMark,
shouldShowRightIcon: true,
iconRight: Expensicons.NewWindow,
wrapperStyle: [styles.cardMenuItem],
}];

Expand All @@ -54,6 +55,7 @@ const GetAssistancePage = (props) => {
onPress: () => Linking.openURL(guideCalendarLink),
icon: Expensicons.Phone,
shouldShowRightIcon: true,
iconRight: Expensicons.NewWindow,
wrapperStyle: [styles.cardMenuItem],
});
}
Expand Down
3 changes: 3 additions & 0 deletions src/pages/settings/InitialSettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ class InitialSettingsPage extends React.Component {
translationKey: 'initialSettingsPage.help',
icon: Expensicons.QuestionMark,
action: () => { Link.openExternalLink(CONST.NEWHELP_URL); },
shouldShowRightIcon: true,
iconRight: Expensicons.NewWindow,
},
{
translationKey: 'initialSettingsPage.about',
Expand Down Expand Up @@ -204,6 +206,7 @@ class InitialSettingsPage extends React.Component {
iconStyles={item.iconStyles}
iconFill={item.iconFill}
shouldShowRightIcon
iconRight={item.iconRight}
badgeText={this.getWalletBalance(isPaymentItem)}
fallbackIcon={item.fallbackIcon}
brickRoadIndicator={item.brickRoadIndicator}
Expand Down
Loading

0 comments on commit baf9bee

Please sign in to comment.