Skip to content

Commit

Permalink
Merge branch 'Expensify:main' into arrow-feature-signed
Browse files Browse the repository at this point in the history
  • Loading branch information
JediWattson authored Jan 15, 2023
2 parents d286d16 + 7ca2979 commit 77eb354
Show file tree
Hide file tree
Showing 92 changed files with 915 additions and 627 deletions.
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ This is a checklist for PR authors. Please make sure to complete all tasks and c
- [ ] I verified that comments were added to code that is not self explanatory
- [ ] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
- [ ] I verified any copy / text shown in the product is localized by adding it to `src/languages/*` files and using the [translation method](https://github.com/Expensify/App/blob/4bd99402cebdf4d7394e0d1f260879ea238197eb/src/components/withLocalize.js#L60)
- [ ] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
- [ ] I verified all numbers, amounts, dates and phone numbers shown in the product are using the [localization methods](https://github.com/Expensify/App/blob/4bd99402cebdf4d7394e0d1f260879ea238197eb/src/components/withLocalize.js#L60-L68)
- [ ] I verified any copy / text that was added to the app is correct English and approved by marketing by adding the `Waiting for Copy` label for a copy review on the original GH to get the correct copy.
- [ ] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
Expand Down
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 1001025204
versionName "1.2.52-4"
versionCode 1001025402
versionName "1.2.54-2"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()

if (isNewArchitectureEnabled()) {
Expand Down
2 changes: 2 additions & 0 deletions contributingGuides/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ Please be aware that compensation for any support in solving an issue is provide
- Merged PR within 9 business days - 50% **penalty**
- No PR within 12 business days - **Contract terminated**

If the PR causes a regression within 7 days of being deployed to production, contributors are not eligible for the 50% bonus.

## Finding Jobs
A job could be fixing a bug or working on a new feature. There are two ways you can find a job that you can contribute to:

Expand Down
8 changes: 5 additions & 3 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ GEM
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.16.2)
nokogiri (1.13.6-x86_64-darwin)
nokogiri (1.13.10-arm64-darwin)
racc (~> 1.4)
nokogiri (1.13.10-x86_64-darwin)
racc (~> 1.4)
octokit (4.25.1)
faraday (>= 1, < 3)
Expand Down Expand Up @@ -253,7 +255,7 @@ GEM
zeitwerk (2.6.0)

PLATFORMS
ruby
arm64-darwin-22
x86_64-darwin-20
x86_64-darwin-21

Expand All @@ -268,4 +270,4 @@ DEPENDENCIES
webrick (~> 1.7)

BUNDLED WITH
2.3.17
2.4.3
2 changes: 1 addition & 1 deletion docs/_includes/lhn-article-link.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<li>
<a href="/articles/{{ include.hub }}/{{ include.href }}">
<a href="/articles/{{ include.hub }}/{{ include.href }}" class="link">
{{ include.title }}
</a>
</li>
6 changes: 3 additions & 3 deletions docs/_includes/lhn-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% if page.url == "/" %}
<div class="selected">Home</div>
{% else %}
<a href="/">Home</a>
<a href="/" class="link">Home</a>
{% endif %}
</li>

Expand All @@ -20,7 +20,7 @@
<!-- First display sections with nested articles -->
{% for section in hub.sections %}
<li>
<a href="#{{ section.href }}">{{ section.title }}</a>
<a href="#{{ section.href }}" class="link">{{ section.title }}</a>
<ul>
{% for article in section.articles %}
{% include lhn-article-link.html hub=hub.href href=article.href title=article.title %}
Expand All @@ -37,7 +37,7 @@
</li>
{% else %}
<li>
<a href="/hubs/{{ hub.href }}" class="icon-with-link">
<a href="/hubs/{{ hub.href }}" class="icon-with-link link">
<i class="fa-solid fa-angle-right icon"></i>
{{ hub.title }}
</a>
Expand Down
3 changes: 3 additions & 0 deletions docs/_sass/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ $color-dark-green: #1B5744;
$color-darker-green: #002E22;
$color-super-dark-green: #061B09;
$color-light-blue: #8DC8FF;

$color-link: #5AB0FF;
$color-link-hovered: #B0D9FF;
14 changes: 14 additions & 0 deletions docs/_sass/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@
src: url('/assets/fonts/ExpensifyNeue-Bold.woff2') format('woff2'), url('/assets/fonts/ExpensifyNeue-Bold.woff') format('woff');
}

@font-face {
font-family: ExpensifyNewKansas;
font-weight: 500;
font-style: normal;
src: url('/assets/fonts/ExpensifyNewKansas-Medium.woff2') format('woff2'), url('/assets/fonts/ExpensifyNewKansas-Medium.woff') format('woff');
}

@font-face {
font-family: ExpensifyNewKansas;
font-weight: 500;
font-style: italic;
src: url('/assets/fonts/ExpensifyNewKansas-MediumItalic.woff2') format('woff2'), url('/assets/fonts/ExpensifyNewKansas-MediumItalic.woff') format('woff');
}

* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
Expand Down
13 changes: 10 additions & 3 deletions docs/_sass/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ h6 {
}

h1 {
font-family: "ExpensifyNewKansas", "Helvetica Neue", "Helvetica", Arial, sans-serif;
font-weight: 500;
font-size: larger;
}

Expand Down Expand Up @@ -350,8 +352,12 @@ button {

.link {
display: inline;
color: $color-light-blue;
color: $color-link;
cursor: pointer;

&:hover {
color: $color-link-hovered;
}
}

.lhn-items {
Expand Down Expand Up @@ -395,13 +401,13 @@ button {
padding-bottom: 20px;

@include breakpoint($breakpoint-desktop) {
grid-template-columns: auto auto;
grid-template-columns: 50% 50%;
}
}

.card {
display: flex;
flex-wrap: wrap;
flex-wrap: nowrap;
border-radius: 16px;
padding: 28px;
font-weight: 700;
Expand Down Expand Up @@ -569,6 +575,7 @@ button {
}

.get-help {
flex-wrap: wrap;
margin-top: auto;
}

Expand Down
Binary file added docs/assets/fonts/ExpensifyNewKansas-Medium.woff
Binary file not shown.
Binary file added docs/assets/fonts/ExpensifyNewKansas-Medium.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.52</string>
<string>1.2.54</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -30,7 +30,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.2.52.4</string>
<string>1.2.54.2</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.52</string>
<string>1.2.54</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.2.52.4</string>
<string>1.2.54.2</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.52-4",
"version": "1.2.54-2",
"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 @@ -69,7 +69,7 @@
"babel-polyfill": "^6.26.0",
"dom-serializer": "^0.2.2",
"domhandler": "^4.3.0",
"expensify-common": "git+https://github.com/Expensify/expensify-common.git#55c208315e04246b548a4009d35466c100d9de7c",
"expensify-common": "git+https://github.com/Expensify/expensify-common.git#6657a014d9c295c998d98562806b4df8bc9fd17e",
"fbjs": "^3.0.2",
"file-loader": "^6.0.0",
"html-entities": "^1.3.1",
Expand Down
2 changes: 2 additions & 0 deletions src/CONST.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const CONST = {
DATE: {
MOMENT_FORMAT_STRING: 'YYYY-MM-DD',
UNIX_EPOCH: '1970-01-01 00:00:00.000',
MAX_DATE: '9999-12-31',
},
SMS: {
DOMAIN: '@expensify.sms',
Expand Down Expand Up @@ -253,6 +254,7 @@ const CONST = {
FEES_URL: `${USE_EXPENSIFY_URL}/fees`,
CFPB_PREPAID_URL: 'https://cfpb.gov/prepaid',
STAGING_NEW_EXPENSIFY_URL: 'https://staging.new.expensify.com',
NEWHELP_URL: 'https://help.expensify.com',

// Use Environment.getEnvironmentURL to get the complete URL with port number
DEV_NEW_EXPENSIFY_URL: 'http://localhost:',
Expand Down
21 changes: 8 additions & 13 deletions src/Expensify.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,23 +120,18 @@ class Expensify extends PureComponent {
this.appStateChangeListener = AppState.addEventListener('change', this.initializeClient);
}

componentDidUpdate(prevProps) {
const previousAccountID = lodashGet(prevProps, 'session.accountID', null);
const currentAccountID = lodashGet(this.props, 'session.accountID', null);

if (currentAccountID && (currentAccountID !== previousAccountID)) {
PushNotification.register(currentAccountID);
componentDidUpdate() {
if (!this.state.isNavigationReady || !this.state.isSplashShown) {
return;
}

if (this.state.isNavigationReady && this.state.isSplashShown) {
const shouldHideSplash = !this.isAuthenticated() || this.props.isSidebarLoaded;
const shouldHideSplash = !this.isAuthenticated() || this.props.isSidebarLoaded;

if (shouldHideSplash) {
BootSplash.hide();
if (shouldHideSplash) {
BootSplash.hide();

// eslint-disable-next-line react/no-did-update-set-state
this.setState({isSplashShown: false});
}
// eslint-disable-next-line react/no-did-update-set-state
this.setState({isSplashShown: false});
}
}

Expand Down
3 changes: 0 additions & 3 deletions src/ONYXKEYS.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ export default {
// Stores information about additional details form entry
WALLET_ADDITIONAL_DETAILS: 'walletAdditionalDetails',

// Stores values put into the additional details step of the wallet KYC flow
WALLET_ADDITIONAL_DETAILS_DRAFT: 'walletAdditionalDetailsDraft',

// Object containing Wallet terms step state
WALLET_TERMS: 'walletTerms',

Expand Down
Loading

0 comments on commit 77eb354

Please sign in to comment.