Skip to content

Commit ec3976c

Browse files
committed
merge main into form-migration/workspace-rate-and-unit-page
1 parent 35253b0 commit ec3976c

File tree

557 files changed

+14019
-6662
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

557 files changed

+14019
-6662
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ module.exports = {
174174
'rulesdir/prefer-underscore-method': 'off',
175175
'rulesdir/prefer-import-module-contents': 'off',
176176
'react/require-default-props': 'off',
177+
'react/prop-types': 'off',
177178
'no-restricted-syntax': [
178179
'error',
179180
{

.github/PULL_REQUEST_TEMPLATE.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ $ https://github.com/Expensify/App/issues/<issueID(comment)>
1818
1919
Do NOT only link the issue number like this: $ #<issueID>
2020
--->
21-
$
22-
PROPOSAL:
21+
$
22+
PROPOSAL:
2323

2424

2525
### Tests
@@ -98,7 +98,7 @@ This is a checklist for PR authors. Please make sure to complete all tasks and c
9898
- [ ] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
9999
- [ ] If a new CSS style is added I verified that:
100100
- [ ] A similar style doesn't already exist
101-
- [ ] The style can't be created with an existing [StyleUtils](https://github.com/Expensify/App/blob/main/src/styles/StyleUtils.js) function (i.e. `StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)`)
101+
- [ ] The style can't be created with an existing [StyleUtils](https://github.com/Expensify/App/blob/main/src/styles/utils/index.ts) function (i.e. `StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)`)
102102
- [ ] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
103103
- [ ] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like `Avatar` is modified, I verified that `Avatar` is working as expected in all cases)
104104
- [ ] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.

.github/actions/composite/setupGitForOSBotifyApp/action.yml

+5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ runs:
6060
if: runner.debug == '1'
6161
run: echo "GIT_TRACE=true" >> "$GITHUB_ENV"
6262

63+
- name: Sync clock
64+
shell: bash
65+
run: sudo sntp -sS time.windows.com
66+
if: runner.os == 'macOS'
67+
6368
- name: Generate a token
6469
id: generateToken
6570
uses: actions/create-github-app-token@9d97a4282b2c51a2f4f0465b9326399f53c890d4

.github/workflows/createNewVersion.yml

+2-10
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,6 @@ on:
3232
OS_BOTIFY_COMMIT_TOKEN:
3333
description: OSBotify personal access token, used to workaround committing to protected branch
3434
required: true
35-
OS_BOTIFY_APP_ID:
36-
description: Application ID for OS Botify App
37-
required: true
38-
OS_BOTIFY_PRIVATE_KEY:
39-
description: OSBotify private key
40-
required: true
4135

4236
jobs:
4337
validateActor:
@@ -76,18 +70,16 @@ jobs:
7670
token: ${{ secrets.OS_BOTIFY_COMMIT_TOKEN }}
7771

7872
- name: Setup git for OSBotify
79-
uses: ./.github/actions/composite/setupGitForOSBotifyApp
73+
uses: ./.github/actions/composite/setupGitForOSBotify
8074
id: setupGitForOSBotify
8175
with:
8276
GPG_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }}
83-
OS_BOTIFY_APP_ID: ${{ secrets.OS_BOTIFY_APP_ID }}
84-
OS_BOTIFY_PRIVATE_KEY: ${{ secrets.OS_BOTIFY_PRIVATE_KEY }}
8577

8678
- name: Generate version
8779
id: bumpVersion
8880
uses: ./.github/actions/javascript/bumpVersion
8981
with:
90-
GITHUB_TOKEN: ${{ steps.setupGitForOSBotify.outputs.OS_BOTIFY_API_TOKEN }}
82+
GITHUB_TOKEN: ${{ secrets.OS_BOTIFY_COMMIT_TOKEN }}
9183
SEMVER_LEVEL: ${{ inputs.SEMVER_LEVEL }}
9284

9385
- name: Commit new version

.github/workflows/reassurePerformanceTests.yml

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ jobs:
1717
- name: Setup NodeJS
1818
uses: ./.github/actions/composite/setupNode
1919

20+
- name: Set dummy git credentials
21+
run: |
22+
git config --global user.email "test@test.com"
23+
git config --global user.name "Test"
24+
2025
- name: Run performance testing script
2126
shell: bash
2227
run: |
@@ -27,6 +32,7 @@ jobs:
2732
npm install --force
2833
npx reassure --baseline
2934
git switch --force --detach -
35+
git merge --no-commit --allow-unrelated-histories "$BASELINE_BRANCH" -X ours
3036
npm install --force
3137
npx reassure --branch
3238

.imgbotconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"ignoredFiles": [
3-
"assets/images/empty-state_background-fade-dark.png", // Caused an issue with colour gradients, https://github.com/Expensify/App/issues/30499
4-
"assets/images/empty-state_background-fade-light.png"
3+
"assets/images/themeDependent/empty-state_background-fade-dark.png", // Caused an issue with colour gradients, https://github.com/Expensify/App/issues/30499
4+
"assets/images/themeDependent/empty-state_background-fade-light.png"
55
],
66
"aggressiveCompression": "false"
77
}

.storybook/public/index.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ a.sidebar-item[data-selected="true"], a.sidebar-item[data-selected="true"]:focus
2424
}
2525

2626
.sidebar-container {
27-
background: #07271f;
27+
background: #072419;
2828
}

.storybook/theme.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ export default create({
77
fontBase: 'ExpensifyNeue-Regular',
88
fontCode: 'monospace',
99
base: 'dark',
10-
appBg: colors.darkHighlightBackground,
11-
colorPrimary: colors.darkDefaultButton,
10+
appBg: colors.productDark200,
11+
colorPrimary: colors.productDark400,
1212
colorSecondary: colors.green,
13-
appContentBg: colors.darkAppBackground,
14-
textColor: colors.darkPrimaryText,
15-
barTextColor: colors.darkPrimaryText,
13+
appContentBg: colors.productDark100,
14+
textColor: colors.productDark900,
15+
barTextColor: colors.productDark900,
1616
barSelectedColor: colors.green,
17-
barBg: colors.darkAppBackground,
18-
appBorderColor: colors.darkBorders,
19-
inputBg: colors.darkHighlightBackground,
20-
inputBorder: colors.darkBorders,
17+
barBg: colors.productDark100,
18+
appBorderColor: colors.productDark400,
19+
inputBg: colors.productDark200,
20+
inputBorder: colors.productDark400,
2121
appBorderRadius: 8,
2222
inputBorderRadius: 8,
2323
});

android/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ android {
9191
minSdkVersion rootProject.ext.minSdkVersion
9292
targetSdkVersion rootProject.ext.targetSdkVersion
9393
multiDexEnabled rootProject.ext.multiDexEnabled
94-
versionCode 1001040902
95-
versionName "1.4.9-2"
94+
versionCode 1001041200
95+
versionName "1.4.12-0"
9696
}
9797

9898
flavorDimensions "default"
Binary file not shown.
Binary file not shown.
-8.73 KB
Binary file not shown.
-8.71 KB
Binary file not shown.

assets/images/home-background--android.svg

+1-1
Loading

assets/images/home-background--mobile.svg

+1-1
Loading
Loading

assets/images/home-fade-gradient.svg

+1-1
Loading
Loading
Loading
Loading
Loading
Loading
Loading

assets/images/thumbs-up.svg

+8
Loading

config/webpack/webpack.common.js

+15-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,21 @@ const webpackConfig = ({envFile = '.env', platform = 'web'}) => ({
211211
// This is also why we have to use .website.js for our own web-specific files...
212212
// Because desktop also relies on "web-specific" module implementations
213213
// This also skips packing web only dependencies to desktop and vice versa
214-
extensions: ['.web.js', platform === 'web' ? '.website.js' : '.desktop.js', '.js', '.jsx', '.web.ts', platform === 'web' ? '.website.ts' : '.desktop.ts', '.ts', '.web.tsx', '.tsx'],
214+
extensions: [
215+
'.web.js',
216+
...(platform === 'desktop' ? ['.desktop.js'] : []),
217+
'.website.js',
218+
'.js',
219+
'.jsx',
220+
'.web.ts',
221+
...(platform === 'desktop' ? ['.desktop.ts'] : []),
222+
'.website.ts',
223+
...(platform === 'desktop' ? ['.desktop.tsx'] : []),
224+
'.website.tsx',
225+
'.ts',
226+
'.web.tsx',
227+
'.tsx',
228+
],
215229
fallback: {
216230
'process/browser': require.resolve('process/browser'),
217231
},

contributingGuides/NAVIGATION.md

+14-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,17 @@ When creating RHP flows, you have to remember a couple things:
4040

4141
An example of adding `Settings_Workspaces` page:
4242

43-
1. Add path to `ROUTES.ts`: https://github.com/Expensify/App/blob/main/src/ROUTES.ts
43+
1. Add the page name to `SCREENS.ts` which will be reused throughout the app (linkingConfig, navigators, etc.):
44+
45+
```ts
46+
const SCREENS = {
47+
SETTINGS: {
48+
WORKSPACES: 'Settings_Workspaces',
49+
},
50+
} as const;
51+
```
52+
53+
2. Add path to `ROUTES.ts`: https://github.com/Expensify/App/blob/main/src/ROUTES.ts
4454

4555
```ts
4656
export const ROUTES = {
@@ -55,11 +65,11 @@ export const ROUTES = {
5565

5666
```
5767

58-
2. Add `Settings_Workspaces` page to proper RHP flow in `linkingConfig.ts`: https://github.com/Expensify/App/blob/3531af22dcadaa94ed11eccf370517dca0b8c305/src/libs/Navigation/linkingConfig.js#L40-L42
68+
3. Add `Settings_Workspaces` page to proper RHP flow in `linkingConfig.ts`: https://github.com/Expensify/App/blob/fbc11ca729ffa4676fb3bc8cd110ac3890debff6/src/libs/Navigation/linkingConfig.ts#L47-L50
5969

60-
3. Add your page to proper navigator (it should be aligned with where you've put it in the previous step) https://github.com/Expensify/App/blob/3531af22dcadaa94ed11eccf370517dca0b8c305/src/libs/Navigation/AppNavigator/ModalStackNavigators.js#L334-L338
70+
4. Add your page to proper navigator (it should be aligned with where you've put it in the previous step) https://github.com/Expensify/App/blob/fbc11ca729ffa4676fb3bc8cd110ac3890debff6/src/libs/Navigation/AppNavigator/ModalStackNavigators.js#L141
6171

62-
4. Make sure `HeaderWithBackButton` leads to the previous page in navigation flow of your page: https://github.com/Expensify/App/blob/3531af22dcadaa94ed11eccf370517dca0b8c305/src/pages/workspace/WorkspacesListPage.js#L186
72+
5. Make sure `HeaderWithBackButton` leads to the previous page in navigation flow of your page: https://github.com/Expensify/App/blob/3531af22dcadaa94ed11eccf370517dca0b8c305/src/pages/workspace/WorkspacesListPage.js#L186
6373

6474
## Performance solutions
6575

contributingGuides/REVIEWER_CHECKLIST.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
- [ ] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
4747
- [ ] If a new CSS style is added I verified that:
4848
- [ ] A similar style doesn't already exist
49-
- [ ] The style can't be created with an existing [StyleUtils](https://github.com/Expensify/App/blob/main/src/styles/StyleUtils.js) function (i.e. `StyleUtils.getBackgroundAndBorderStyle(theme.componentBG`)
49+
- [ ] The style can't be created with an existing [StyleUtils](https://github.com/Expensify/App/blob/main/src/utils/index.ts) function (i.e. `StyleUtils.getBackgroundAndBorderStyle(theme.componentBG`)
5050
- [ ] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
5151
- [ ] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like `Avatar` is modified, I verified that `Avatar` is working as expected in all cases)
5252
- [ ] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.

desktop/package-lock.json

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

desktop/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"electron-context-menu": "^2.3.0",
88
"electron-log": "^4.4.7",
99
"electron-serve": "^1.0.0",
10-
"electron-updater": "^6.1.4",
10+
"electron-updater": "^6.1.6",
1111
"node-machine-id": "^1.1.12"
1212
},
1313
"author": "Expensify, Inc.",

docs/_includes/floating-concierge-button.html

-5
This file was deleted.

docs/_includes/footer.html

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ <h3>Get Started</h3>
111111
</div>
112112
</div>
113113

114+
<p class="page-footer__fine-print">The Expensify Visa® Commercial Card is issued by The Bancorp Bank, N.A., Member FDIC, pursuant to a license from Visa U.S.A. Inc. and may not be used at all merchants that accept Visa cards. Apple® and the Apple logo® are trademarks of Apple Inc., registered in the U.S. and other countries. App Store is a service mark of Apple Inc. Google Play and the Google Play logo are trademarks of Google LLC.</p>
115+
114116
<div class="page-footer__logo">
115117
<img src="/assets/images/expensify-footer-logo.svg" alt="Expensify" />
116118
</div>

docs/_includes/platform.html

-5
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,4 @@ <h1 class="title">{{ platform.hub-title }}</h1>
1010
{% include hub-card.html hub=hub platform=selectedPlatform %}
1111
{% endfor %}
1212
</div>
13-
14-
<div class="cards-group">
15-
<!-- Concierge button anchored globally (rendered on narrow screens) -->
16-
{% include floating-concierge-button.html id="floating-concierge-button-global" %}
17-
</div>
1813
</div>

docs/_layouts/default.html

-3
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@
5757
<div class="article-toc"></div>
5858
{% endif %}
5959
</div>
60-
61-
<!-- Concierge button anchored at the bottom of the LHN (rendered on wider screens) -->
62-
{% include floating-concierge-button.html id="floating-concierge-button-lhn" %}
6360
</div>
6461

6562
<div id="content-area">

0 commit comments

Comments
 (0)