Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update version to 1.0.82-8 on staging #4446

Merged
merged 237 commits into from
Aug 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
237 commits
Select commit Hold shift + click to select a range
d060afc
define new state
rushatgabhane Jul 3, 2021
ff03921
toggle option b/w selected and unselected
rushatgabhane Jul 3, 2021
13af165
define formatting methods
rushatgabhane Jul 3, 2021
59a466f
format selectedParticipants on component mount
rushatgabhane Jul 3, 2021
15d4c93
add unselected section
rushatgabhane Jul 3, 2021
07e6faf
calculate amt based on selected participants
rushatgabhane Jul 3, 2021
edd87c9
get only selected options
rushatgabhane Jul 3, 2021
2ee299c
no row interactivity for single participant
rushatgabhane Jul 3, 2021
a1ef4c1
refactor, disable button on empty selection
rushatgabhane Jul 3, 2021
4f857a5
fix formatting for single participant
rushatgabhane Jul 4, 2021
e48b5b6
add createIOUSplitGroup()
rushatgabhane Jul 4, 2021
4bc85ee
cleanup
rushatgabhane Jul 4, 2021
231f9f7
call iouSplitGroup when split happens from a group
rushatgabhane Jul 4, 2021
ba82754
eslint
rushatgabhane Jul 4, 2021
c537b3d
cleanup
rushatgabhane Jul 5, 2021
aacbecb
capitalize comment
rushatgabhane Jul 8, 2021
028cc17
set split initiator as default user
rushatgabhane Jul 9, 2021
460c269
refactor
rushatgabhane Jul 9, 2021
1f17bff
fix comment style
rushatgabhane Jul 11, 2021
fe09e56
rm unused function
rushatgabhane Jul 11, 2021
06f79e8
change to one state
rushatgabhane Jul 11, 2021
8354514
rename formatting functions
rushatgabhane Jul 11, 2021
a0a38e5
fix comment style
rushatgabhane Jul 11, 2021
8105590
change to single state
rushatgabhane Jul 11, 2021
b997ce3
use setState callback for referencing prevState
rushatgabhane Jul 11, 2021
124e70c
eslint
rushatgabhane Jul 11, 2021
7590bff
refactor
rushatgabhane Jul 12, 2021
dc27691
refactor
rushatgabhane Jul 12, 2021
8ee203f
create new section for unselected participants
rushatgabhane Jul 12, 2021
2838480
use _.map, _.filter instead of native methods
rushatgabhane Jul 12, 2021
257213b
move regex to CONST.REGEX
rushatgabhane Jul 13, 2021
c730c42
add login prop to logged in user
rushatgabhane Jul 13, 2021
7fb8da8
subscribe to session, refactor check for self
rushatgabhane Jul 13, 2021
b04040b
Update copy to refer to new URL
tgolen Jul 15, 2021
51adf3c
Merge branch 'main' into tgolen-password-copy
tgolen Jul 16, 2021
ead2983
Taking another stab at the translations
tgolen Jul 16, 2021
17d344d
A few more corrections after slack discussions
tgolen Jul 19, 2021
da1724c
Correct the spanish welcome text
tgolen Jul 19, 2021
829f1c4
Redo translation of terms, not welcome
tgolen Jul 19, 2021
ecb0d48
fix merge conflicts
rushatgabhane Jul 24, 2021
898e295
Show verification modal instead of redirecting to concierge
pecanoro Jul 27, 2021
7afe7cd
Update src/languages/es.js
tgolen Jul 27, 2021
b63c3ef
Update src/languages/es.js
tgolen Jul 27, 2021
918d4b2
Merge branch 'main' of github.com:Expensify/App into rocio-VBAVerific…
pecanoro Jul 27, 2021
dc4f713
Create new step
pecanoro Jul 28, 2021
d2b43b7
Merge branch 'main' into tgolen-password-copy
tgolen Jul 28, 2021
c78cad6
Revert app name
tgolen Jul 28, 2021
5a990e0
Add "the" into the term
tgolen Jul 28, 2021
a56a430
Remove unused language
tgolen Jul 28, 2021
840d6ae
fix: urls for user details
parasharrajat Jul 28, 2021
58e9005
Add edit button for workspace name
HorusGoul Jul 29, 2021
529b62e
Add WorkspaceNameEditor modal
HorusGoul Jul 29, 2021
f172716
Remove debug statement
HorusGoul Jul 29, 2021
8f861f9
Add locales for the WorkspaceNameEditorPage
HorusGoul Jul 29, 2021
23208cc
More locale changes
HorusGoul Jul 29, 2021
dd0f53f
Add setName function in the Policy actions file
HorusGoul Jul 29, 2021
00619b4
Connect WorkspaceNameEditorPage with the backend
HorusGoul Jul 29, 2021
873a59b
Rename WorkspaceEditor routes and components
HorusGoul Jul 29, 2021
3d19750
Update locale key for the editor
HorusGoul Jul 29, 2021
16046ae
Update WorkspaceSidebar to only have 1 pencil icon
HorusGoul Jul 29, 2021
8b10e0b
Add Avatar selector to the WorkspaceEditorPage
HorusGoul Jul 29, 2021
6dc3caa
Upload avatars from the WorkspaceEditorPage correctly
HorusGoul Jul 29, 2021
7775758
Update locales and add an error message when the avatar upload fails
HorusGoul Jul 29, 2021
e0a793f
Apply edit button style changes
HorusGoul Jul 29, 2021
12d183d
Make pencil icon consistent between platforms
HorusGoul Jul 29, 2021
b35b17f
Directly create the workspace instead of navigating to the new worksp…
jasperhuangg Jul 29, 2021
876bf43
localizations
jasperhuangg Jul 29, 2021
9b82605
Setup navigation for EditWorkspacePage
jasperhuangg Jul 29, 2021
7295214
Create the EditWorkspacePage from the NewWorkspacePage
jasperhuangg Jul 29, 2021
062ab10
style
jasperhuangg Jul 29, 2021
c0aafd1
add uncommitted file
jasperhuangg Jul 29, 2021
00bba73
update translation
jasperhuangg Jul 29, 2021
d7a27fe
update translations
jasperhuangg Jul 29, 2021
2aefb5f
update translations
jasperhuangg Jul 29, 2021
22bf2e2
update translations
jasperhuangg Jul 29, 2021
eb631a3
Merge branch 'jasper-updateWorkspaceSpanishTranslations' of github.co…
jasperhuangg Jul 29, 2021
574fc67
update translations
jasperhuangg Jul 29, 2021
6df1232
Use activeComponentBG for Workspace menu items
Jul 29, 2021
b20f1df
Use formHint styles for the input help text
HorusGoul Jul 30, 2021
2f0d731
Revert conflicting changes
jasperhuangg Jul 30, 2021
c7f6b2e
Fix unnecessary changes
jasperhuangg Jul 30, 2021
76e16dd
Revert accidentally removed
jasperhuangg Jul 30, 2021
af8b07e
Revert accidentally added changes
jasperhuangg Jul 30, 2021
2d70658
Merge branch 'main' into jasper-editWorkspacePage
jasperhuangg Jul 30, 2021
0b0c49c
Update execSync command to run pre-defined string
Jag96 Jul 30, 2021
66612e1
Merge branch 'main' into tgolen-password-copy
tgolen Jul 30, 2021
517b2fd
rebuild actions
Jag96 Jul 30, 2021
f6c4615
add log line to output command
Jag96 Jul 30, 2021
abeb4a2
create context factory
marcaaron Jul 30, 2021
867dc60
add factory method for context
marcaaron Jul 30, 2021
5713a98
Update XCode to fix iOS deploy
Jag96 Jul 30, 2021
e1208d3
fix conflicts
marcaaron Jul 30, 2021
69320a4
Merge branch 'main' into rocio-VBAVerification
pecanoro Jul 30, 2021
7f63be8
update all workflows to macos-11
Jag96 Jul 30, 2021
89520d2
cocoapods version updated
Jag96 Jul 30, 2021
e7dbcff
Add OnyxProvider
marcaaron Jul 30, 2021
ed06e31
update runs-on value to match accepted schema
Jag96 Jul 30, 2021
451d061
fix propTypes
marcaaron Jul 30, 2021
454f96b
move Onyx.init() logic to the provider
marcaaron Jul 30, 2021
3be6b85
fix propTypes and displayName
marcaaron Jul 30, 2021
3e941ff
expensify-common hash update
mateusbra Jul 31, 2021
460e4c4
checks if allOptions is null before moving
rdjuric Jul 31, 2021
09650fb
pass file size
rushatgabhane Aug 1, 2021
cbea851
Wrap Workspace avatar and name in Pressable components to open the wo…
HorusGoul Aug 2, 2021
f62afb9
Merge remote-tracking branch 'origin/main' into horus-edit-workspace-…
HorusGoul Aug 2, 2021
c7d41df
Wrap User avatar and name with Pressable components to open the profi…
HorusGoul Aug 2, 2021
ed7b6fa
fix: timerow on language
parasharrajat Aug 2, 2021
6ffb1f8
use PureComponent instead
parasharrajat Aug 2, 2021
2a0115c
update E-common
parasharrajat Aug 2, 2021
d6aba3d
Merge pull request #4360 from parasharrajat/fixTime
nkuoch Aug 2, 2021
8033dc4
Merge pull request #4363 from parasharrajat/paste-html
Beamanator Aug 2, 2021
a57f9eb
Merge pull request #4091 from Expensify/tgolen-password-copy
iwiznia Aug 2, 2021
588700e
Merge pull request #4298 from Expensify/horus-edit-workspace-name
kevinksullivan Aug 2, 2021
1639a73
Merge pull request #4351 from rdjuric/fixArrowNavigationSearch
MariaHCD Aug 2, 2021
609826f
Merge pull request #4314 from Expensify/timszot_workspaceLHNHighlights
Gonals Aug 2, 2021
69fd992
fix: `withLocalize` does not trigger a rerender in children
kidroca Aug 2, 2021
0ac3627
change back to macos-11
Jag96 Aug 2, 2021
7efd1cd
Updating expensify-common hash
mateusbra Aug 2, 2021
95f5dba
Merge pull request #4246 from Expensify/rocio-VBAVerification
thienlnam Aug 2, 2021
777468d
Fix code style
kidroca Aug 2, 2021
8db44bc
Merge pull request #4339 from Expensify/joe-update-xcode-version
AndrewGable Aug 2, 2021
cc82f83
Merge pull request #4358 from rushatgabhane/fix-4356
iwiznia Aug 2, 2021
b9d9b3c
Update version to 1.0.82-1
Aug 2, 2021
8936678
Merge pull request #4368 from Expensify/version-BUILD-cc82f8377c021db…
OSBotify Aug 2, 2021
8af948e
helper function, changes to native
rdjuric Aug 2, 2021
60eb4be
Switch warnCPLabel trigger from pull_request to pull_request_target
roryabraham Aug 2, 2021
64b0f45
fix button text
luacmartins Jul 26, 2021
b4bd6f1
Update version to 1.0.82-2
Aug 2, 2021
dc79a3f
Merge pull request #4372 from Expensify/version-BUILD-89366788125f2dc…
OSBotify Aug 2, 2021
c87440b
implement wdyr
luacmartins Jul 27, 2021
cbbc75f
update readme
luacmartins Jul 27, 2021
6edc03c
add ReportActionItem
luacmartins Jul 27, 2021
e756696
remove env check
luacmartins Jul 28, 2021
14bfee9
track all components by default
luacmartins Jul 29, 2021
6128845
Switch warnCPLabel to use GITHUB_TOKEN
roryabraham Aug 2, 2021
7fb86db
fix(active-route): Navigation.isActiveRoute function updated to add t…
mananjadhav Aug 2, 2021
497a65e
Merge pull request #4237 from Expensify/cmartins-manage-card
marcaaron Aug 2, 2021
901acd2
change defaults
luacmartins Aug 2, 2021
769e6a9
IOU Error Handling, navigated back to Amount Page on error
Santhosh-Sellavel Aug 2, 2021
e511b1f
Merge pull request #4370 from Expensify/Rory-WarnCPLabelAsGithub
AndrewGable Aug 2, 2021
c49304c
remove unnecessary escaping
parasharrajat Aug 2, 2021
903d429
Meta Tweaks for #4275
aman-atg Aug 2, 2021
9797927
improvements
rdjuric Aug 2, 2021
14c061d
move this
marcaaron Aug 2, 2021
21ee227
update
aman-atg Aug 2, 2021
b451f3c
Merge branch 'main' into updated-expensify-common-hash
mateusbra Aug 2, 2021
9905d36
revert some changes, removes hardcoded prop
rdjuric Aug 2, 2021
41f5bad
handle navigation when reportID isn't valid
aman-atg Aug 2, 2021
9c871a5
use query params for login routes
parasharrajat Aug 2, 2021
0d8da7f
Updating hash in expensify-common
mateusbra Aug 2, 2021
8d8ce8d
Revert "Merge branch 'main' into updated-expensify-common-hash"
mateusbra Aug 2, 2021
22e7f0a
Merge pull request #3881 from rushatgabhane/split-deselect-attendees
Luke9389 Aug 3, 2021
553e9b8
Merge pull request #4371 from rdjuric/calculateIdealNumOfMessages
marcaaron Aug 3, 2021
dea2ec8
Merge pull request #4349 from mateusbra/updated-expensify-common-hash
AndrewGable Aug 3, 2021
c0012e3
Merge remote-tracking branch 'origin' into marcaaron-onyxContextFactory
marcaaron Aug 3, 2021
dd7072d
Fix dumb linter and add better propTypes
marcaaron Aug 3, 2021
e66626e
remove unnecessary comment
marcaaron Aug 3, 2021
7d842b9
Merge pull request #4366 from kidroca/kidroca/locale-perf-fix
iwiznia Aug 3, 2021
482c531
Update version to 1.0.82-3
Aug 3, 2021
96cd6ba
Merge pull request #4389 from Expensify/version-BUILD-7d842b9bea5e3df…
OSBotify Aug 3, 2021
b7658db
chore(is-active-route): Updated implementation comment
mananjadhav Aug 3, 2021
f26b5a0
style(lint-fixes): Split commment for lint max-len
mananjadhav Aug 3, 2021
e43b311
style(lint-fixes): Split commment for lint max-len
mananjadhav Aug 3, 2021
d15beee
Merge pull request #4310 from Expensify/jasper-editWorkspacePage
mountiny Aug 3, 2021
62c7bcd
Clarify situation of early proposals
Beamanator Aug 3, 2021
6d680da
Clarify `External` is a label
Beamanator Aug 3, 2021
e285a49
Merge pull request #4391 from Expensify/beaman-clarifyProposalTiming
Aug 3, 2021
829fd76
Merge pull request #4382 from mananjadhav/fix/auto-select-expensify-c…
luacmartins Aug 3, 2021
0f26898
remove changes to OptionsList
rdjuric Aug 3, 2021
33408b8
Fix propTypes and add transformValue
marcaaron Aug 3, 2021
285f3b5
Don't exclude a single participant DefaultChat room
yuwenmemon Aug 3, 2021
fabe26c
fixes hidden elem again
rdjuric Aug 3, 2021
2d689a8
Merge pull request #4393 from Expensify/yuwen-defaultRoomShow
madmax330 Aug 3, 2021
a4e40fe
Merge pull request #4383 from aman-atg/aman-atg-Patch#4275
tgolen Aug 3, 2021
b94812a
Catch http errors
stitesExpensify Aug 3, 2021
46ca7fe
styling changes to workspaceCardPge
rdjuric Aug 3, 2021
a697fff
IOU Error messages, Spansish translation updated
Santhosh-Sellavel Aug 3, 2021
b576a73
IOU transaction error handling, updated with proper promise rejection
Santhosh-Sellavel Aug 3, 2021
73702f1
Fix: Infinte loader on login
parasharrajat Aug 3, 2021
ce5d8d9
fix: inline messages
parasharrajat Aug 3, 2021
c24c83b
Merge pull request #4394 from rdjuric/fixHiddenElemAgain
Aug 3, 2021
353d57f
Don't show loading state
stitesExpensify Aug 3, 2021
92c8634
don't show localTime for Chronos
aman-atg Aug 3, 2021
f772837
Merge pull request #4399 from parasharrajat/ui
stitesExpensify Aug 4, 2021
4474fea
esacpe chars in param
parasharrajat Aug 4, 2021
eb9405e
#2430 remove app.relaunch on desktop update
dklymenk Aug 4, 2021
c8a4aeb
Merge pull request #4406 from dklymenk/2430-fix-desktop-notifications…
chiragsalian Aug 4, 2021
2591e8c
Merge pull request #4260 from Expensify/cmartins-wdyr
deetergp Aug 4, 2021
0b5d8a7
chore(password-form-header): Added phrases for welcomeText in Eng and…
mananjadhav Aug 4, 2021
8c06c02
Merge pull request #4291 from parasharrajat/userdetails
marcaaron Aug 4, 2021
559cea3
fix(password-form-header): Updated welcomeText to pick from props
mananjadhav Aug 4, 2021
1820646
fix(password-form-header): Fixed conditional welcomeText
mananjadhav Aug 4, 2021
e5adefc
fix(password-form-header): Fixed incorrect code to pick welcomeText
mananjadhav Aug 4, 2021
5958d48
use forwardRef + lodashGet
marcaaron Aug 4, 2021
7635fab
improvement
aman-atg Aug 4, 2021
526aeb0
Merge pull request #4378 from Santhosh-Sellavel/IOU_Error_Handling
thienlnam Aug 4, 2021
fdf1bc5
Method removed, as per changes requested
Santhosh-Sellavel Aug 4, 2021
9b1ea35
Merge pull request #4354 from rdjuric/changeValidationDisplay
thienlnam Aug 4, 2021
c2d21c0
Merge pull request #4401 from Expensify/stites-dontShowLoadingOnButton
Aug 4, 2021
36b86e9
Merge pull request #4412 from Santhosh-Sellavel/IOU_Error_Handling
thienlnam Aug 4, 2021
1eb3011
fix: loader
parasharrajat Aug 5, 2021
474a149
Merge pull request #4396 from rdjuric/workspaceButton
jasperhuangg Aug 5, 2021
3550518
Attempt at fixing race
chiragsalian Aug 5, 2021
eb49d80
oops, getting back withOnyx
chiragsalian Aug 5, 2021
a5661c7
Merge branch 'main' of https://github.com/mananjadhav/App into fix/pa…
mananjadhav Aug 5, 2021
98bbf57
refactor(password-form-header): Updated comments
mananjadhav Aug 5, 2021
fe5f77f
refactor(password-form-header): Updated translation references
mananjadhav Aug 5, 2021
c636f39
refactor(password-form-header): Updated multiple HoCs with compose
mananjadhav Aug 5, 2021
0413ce3
refactor(password-form-header): Removed unwanted eslint-disable comments
mananjadhav Aug 5, 2021
ac4c51b
Fix: incorrect prop name passed for locale
kidroca Aug 5, 2021
0b1b35c
Merge pull request #4403 from aman-atg/aman-atg-chronosTimezone
Beamanator Aug 5, 2021
f693233
Merge pull request #4397 from parasharrajat/queueUnlock
AndrewGable Aug 5, 2021
e88b7f9
Merge pull request #4348 from Expensify/marcaaron-onyxContextFactory
luacmartins Aug 5, 2021
db873de
Update src/languages/es.js
Aug 5, 2021
38707de
Update src/languages/es.js
Aug 5, 2021
b40dfc0
minor fix
aman-atg Aug 5, 2021
9fa8099
Merge pull request #4410 from mananjadhav/fix/password-title-label
Jag96 Aug 5, 2021
7374a3d
some code reverts testing if it helps with jest
chiragsalian Aug 5, 2021
918edfc
remove useless eslint
chiragsalian Aug 5, 2021
f4e86f3
Merge pull request #4387 from aman-atg/aman-atg-fixInfiniteLoadingBug
Jag96 Aug 5, 2021
969f9d2
Merge pull request #4416 from Expensify/chirag-race-fix-attempt
chiragsalian Aug 5, 2021
e767f65
Update version to 1.0.82-4
Aug 5, 2021
bead55c
Merge pull request #4427 from Expensify/version-BUILD-969f9d2a49090ba…
OSBotify Aug 5, 2021
a31c7a7
Update version to 1.0.82-5
Aug 5, 2021
28add77
Merge pull request #4429 from Expensify/version-BUILD-bead55c61932702…
OSBotify Aug 5, 2021
f117c99
Merge pull request #4400 from Expensify/stites-catchAPIFailures
stitesExpensify Aug 5, 2021
ec38ff9
Merge pull request #4419 from kidroca/kidroca/withLocalize-pass-locale
Luke9389 Aug 5, 2021
c59a8b5
Race fix attempt 2
chiragsalian Aug 5, 2021
515feb7
Merge pull request #4436 from Expensify/chirag-race-fix-attempt2
chiragsalian Aug 6, 2021
2d028c5
Update version to 1.0.82-6
Aug 6, 2021
439b830
Merge pull request #4438 from Expensify/version-BUILD-515feb70927bb92…
OSBotify Aug 6, 2021
27e9f06
Merge pull request #4336 from Expensify/joe-fix-cp-bug
AndrewGable Aug 6, 2021
22a826b
Update version to 1.0.82-7
Aug 6, 2021
6e8621d
Merge pull request #4441 from Expensify/version-BUILD-27e9f0691f965c3…
OSBotify Aug 6, 2021
fbf957a
Update version to 1.0.82-8
Aug 6, 2021
aa1ba3c
Merge pull request #4445 from Expensify/version-BUILD-6e8621d45494494…
OSBotify Aug 6, 2021
42d0e35
Merge branch 'main' into update-staging-from-main
Aug 6, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ SECURE_NGROK_URL=https://secure-expensify-user.ngrok.io/
NGROK_URL=https://expensify-user.ngrok.io/
USE_NGROK=false
USE_WEB_PROXY=false
USE_WDYR=false
4 changes: 2 additions & 2 deletions .github/workflows/warnCPLabel.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Explain Cherry-Pick label via OSBotify comment

on:
pull_request:
pull_request_target:
types:
- labeled

Expand All @@ -14,7 +14,7 @@ jobs:
- name: Comment on PR to explain the CP Staging label
uses: actions-ecosystem/action-create-comment@cd098164398331c50e7dfdd0dfa1b564a1873fac
with:
github_token: ${{ secrets.OS_BOTIFY_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
body: |
:warning: :warning: **Heads up! This pull request has the `CP Staging` label.** :warning: :warning:
Merging it will cause it to be immediately deployed to staging, _even if the [open `StagingDeployCash` deploy checklist](https://github.com/Expensify/Expensify.cash/issues?q=is%3Aopen+is%3Aissue+label%3AStagingDeployCash) is locked._
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ In this scenario, it’s possible that you found a bug or enhancement that we ha

#### Propose a solution for the job
4. After you reproduce the issue, make a proposal for your solution and post it as a comment in the corresponding GitHub issue (linked in the Upwork job). Your solution proposal should include a brief technical explanation of the changes you will make.
- Note: If you post a proposed solution in an issue that has not been tagged with the `External` label, Expensify has the right to use your proposal to fix said issue, without providing compensation for your solution.
5. Pause at this step until Expensify provides feedback on your proposal (do not begin coding or creating a pull request yet).
6. If your solution proposal is accepted, Expensify will hire you on Upwork and assign the GitHub issue to you.

Expand Down
9 changes: 9 additions & 0 deletions PERFORMANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@

**Suggested:** [Deep Dive with the React DevTools creator](https://www.youtube.com/watch?v=nySib7ipZdk)

### Why Did You Render?
- Why Did You Render (WDYR) sends console notifications about potentially avoidable component re-renders.
- It can also help to simply track when and why a certain component re-renders.
- To enable it, set `USE_WDYR=true` in your `.env` file.
- You can add or exclude tracked components by their `displayName` in `wdyr.js`.
- Open the browser console to see WDYR notifications.

**Suggested** [Why Did You Render docs](https://github.com/welldone-software/why-did-you-render)

## Reconciliation

React is pretty smart and in many cases is able to tell if something needs to update. The process by which React goes about updating the "tree" or view heirarchy is called reconciliation. If React thinks something needs to update it will render it again. React also assumes that if a parent component rendered then it's child should also re-render.
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
versionCode 1001008207
versionName "1.0.82-7"
versionCode 1001008208
versionName "1.0.82-8"
}
splits {
abi {
Expand Down
11 changes: 4 additions & 7 deletions desktop/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,13 @@ const quitAndInstallWithUpdate = () => {
if (!downloadedVersion) {
return;
}
app.relaunch({
args: [`${EXPECTED_UPDATE_VERSION_FLAG}=${downloadedVersion}`],
});
hasUpdate = true;
autoUpdater.quitAndInstall();
};

// Defines the system-level menu item for manually triggering an update after
const updateAppMenuItem = new MenuItem({
label: 'Update Expensify.cash',
label: 'Update New Expensify',
enabled: false,
click: quitAndInstallWithUpdate,
});
Expand Down Expand Up @@ -120,7 +117,7 @@ const mainWindow = (() => {
// Prod and staging set the icon in the electron-builder config, so only update it here for dev
if (isDev) {
app.dock.setIcon(`${__dirname}/icon-dev.png`);
app.setName('Expensify.cash');
app.setName('New Expensify');
}

return app.whenReady()
Expand All @@ -137,7 +134,7 @@ const mainWindow = (() => {

// Prod and staging overwrite the app name in the electron-builder config, so only update it here for dev
if (isDev) {
browserWindow.setTitle('Expensify.cash');
browserWindow.setTitle('New Expensify');
}

// List the Expensify Chat instance under the Window menu, even when it's hidden
Expand Down Expand Up @@ -172,7 +169,7 @@ const mainWindow = (() => {
const windowMenu = systemMenu.items.find(item => item.role === 'windowmenu');
windowMenu.submenu.append(new MenuItem({type: 'separator'}));
windowMenu.submenu.append(new MenuItem({
label: 'Expensify.cash',
label: 'New Expensify',
accelerator: 'CmdOrCtrl+1',
click: () => browserWindow.show(),
}));
Expand Down
2 changes: 1 addition & 1 deletion ios/ExpensifyCash/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.0.82.7</string>
<string>1.0.82.8</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
Expand Down
2 changes: 1 addition & 1 deletion ios/ExpensifyCashTests/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.0.82.7</string>
<string>1.0.82.8</string>
</dict>
</plist>
21 changes: 15 additions & 6 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "expensify.cash",
"version": "1.0.82-7",
"version": "1.0.82-8",
"author": "Expensify, Inc.",
"homepage": "https://new.expensify.com",
"description": "Expensify.cash is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",
Expand Down Expand Up @@ -60,7 +60,7 @@
"electron-log": "^4.3.5",
"electron-serve": "^1.0.0",
"electron-updater": "^4.3.4",
"expensify-common": "git://github.com/Expensify/expensify-common.git#e83c6998dac6837098745139cb2bdd4e18bf7134",
"expensify-common": "git://github.com/Expensify/expensify-common.git#4016a786d66ff38ed76a191edef31ebd737a0190",
"expo-haptics": "^10.0.0",
"file-loader": "^6.0.0",
"html-entities": "^1.3.1",
Expand Down Expand Up @@ -124,6 +124,7 @@
"@testing-library/jest-native": "^3.4.2",
"@testing-library/react-native": "^7.0.2",
"@vercel/ncc": "^0.27.0",
"@welldone-software/why-did-you-render": "^6.2.0",
"ajv-cli": "^5.0.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.2.2",
Expand Down
23 changes: 15 additions & 8 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import '../wdyr';
import React from 'react';
import {LogBox} from 'react-native';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import CustomStatusBar from './components/CustomStatusBar';
import ErrorBoundary from './components/ErrorBoundary';
import Expensify from './Expensify';
import {LocaleContextProvider} from './components/withLocalize';
import OnyxProvider from './components/OnyxProvider';
import ComposeProviders from './components/ComposeProviders';

LogBox.ignoreLogs([
// Basically it means that if the app goes in the background and back to foreground on Android,
Expand All @@ -17,14 +20,18 @@ LogBox.ignoreLogs([
]);

const App = () => (
<SafeAreaProvider>
<LocaleContextProvider>
<CustomStatusBar />
<ErrorBoundary errorMessage="E.cash crash caught by error boundary">
<Expensify />
</ErrorBoundary>
</LocaleContextProvider>
</SafeAreaProvider>
<ComposeProviders
components={[
OnyxProvider,
SafeAreaProvider,
LocaleContextProvider,
]}
>
<CustomStatusBar />
<ErrorBoundary errorMessage="E.cash crash caught by error boundary">
<Expensify />
</ErrorBoundary>
</ComposeProviders>
);

App.displayName = 'App';
Expand Down
2 changes: 1 addition & 1 deletion src/CONFIG.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default {
APP_KEY: lodashGet(Config, 'PUSHER_APP_KEY', '268df511a204fbb60884'),
CLUSTER: 'mt1',
},
SITE_TITLE: 'Expensify.cash',
SITE_TITLE: 'New Expensify',
FAVICON: {
DEFAULT: '/favicon.png',
UNREAD: '/favicon-unread.png',
Expand Down
3 changes: 3 additions & 0 deletions src/CONST.js

Large diffs are not rendered by default.

32 changes: 1 addition & 31 deletions src/Expensify.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@ import lodashGet from 'lodash/get';
import PropTypes from 'prop-types';
import React, {PureComponent} from 'react';
import {View, AppState} from 'react-native';
import Onyx, {withOnyx} from 'react-native-onyx';
import {withOnyx} from 'react-native-onyx';
import _ from 'underscore';

import BootSplash from './libs/BootSplash';
import listenToStorageEvents from './libs/listenToStorageEvents';
import * as ActiveClientManager from './libs/ActiveClientManager';
import ONYXKEYS from './ONYXKEYS';
import CONST from './CONST';
import NavigationRoot from './libs/Navigation/NavigationRoot';
import Log from './libs/Log';
import migrateOnyx from './libs/migrateOnyx';
import styles from './styles/styles';
import PushNotification from './libs/Notification/PushNotification';
Expand All @@ -24,33 +21,6 @@ import ROUTES from './ROUTES';
import StartupTimer from './libs/StartupTimer';
import {setRedirectToWorkspaceNewAfterSignIn} from './libs/actions/Session';

// Initialize the store when the app loads for the first time
Onyx.init({
keys: ONYXKEYS,
safeEvictionKeys: [ONYXKEYS.COLLECTION.REPORT_ACTIONS],
initialKeyStates: {

// Clear any loading and error messages so they do not appear on app startup
[ONYXKEYS.SESSION]: {loading: false, shouldShowComposeInput: true},
[ONYXKEYS.ACCOUNT]: CONST.DEFAULT_ACCOUNT_DATA,
[ONYXKEYS.NETWORK]: {isOffline: false},
[ONYXKEYS.IOU]: {
loading: false, error: false, creatingIOUTransaction: false, isRetrievingCurrency: false,
},
[ONYXKEYS.IS_SIDEBAR_LOADED]: false,
},
registerStorageEventListener: (onStorageEvent) => {
listenToStorageEvents(onStorageEvent);
},
});
Onyx.registerLogger(({level, message}) => {
if (level === 'alert') {
Log.alert(message, 0, {}, false);
} else {
Log.client(message);
}
});

const propTypes = {
/* Onyx Props */

Expand Down
12 changes: 8 additions & 4 deletions src/ROUTES.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ export default {
SEARCH: 'search',
SET_PASSWORD_WITH_VALIDATE_CODE: 'setpassword/:accountID/:validateCode',
DETAILS: 'details',
DETAILS_WITH_LOGIN: 'details/:login',
getDetailsRoute: login => `details/${login}`,
getDetailsRoute: login => `details?login=${encodeURIComponent(login)}`,
REPORT_PARTICIPANTS: 'r/:reportID/participants',
getReportParticipantsRoute: reportID => `r/${reportID}/participants`,
REPORT_PARTICIPANT: 'r/:reportID/participants/:login',
getReportParticipantRoute: (reportID, login) => `r/${reportID}/participants/${login}`,
REPORT_PARTICIPANT: 'r/:reportID/participants/details',
getReportParticipantRoute: (
reportID,
login,
) => `r/${reportID}/participants/details?login=${encodeURIComponent(login)}`,
REPORT_WITH_ID_DETAILS: 'r/:reportID/details',
getReportDetailsRoute: reportID => `r/${reportID}/details`,
VALIDATE_LOGIN: 'v',
Expand All @@ -80,6 +82,8 @@ export default {
getWorkspaceInviteRoute: policyID => `workspace/${policyID}/invite`,
WORKSPACE_INVITE: 'workspace/:policyID/invite',
REQUEST_CALL: 'request-call',
getWorkspaceEditorRoute: policyID => `workspace/${policyID}/edit`,
WORKSPACE_EDITOR: 'workspace/:policyID/edit',
VALIDATE_CODE_URL: (accountID, validateCode, exitTo = '') => {
const exitToURL = exitTo ? `?exitTo=${exitTo}` : '';
return `v/${accountID}/${validateCode}${exitToURL}`;
Expand Down
10 changes: 8 additions & 2 deletions src/components/AvatarWithImagePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import styles from '../styles/styles';
import themeColors from '../styles/themes/default';
import AttachmentPicker from './AttachmentPicker';
import withLocalize, {withLocalizePropTypes} from './withLocalize';
import variables from '../styles/variables';

const propTypes = {
/** Avatar URL to display */
Expand Down Expand Up @@ -114,10 +115,15 @@ class AvatarWithImagePicker extends React.Component {
{({openPicker}) => (
<>
<Pressable
style={[styles.smallEditIcon]}
style={[styles.smallEditIcon, styles.smallAvatarEditIcon]}
onPress={() => this.setState({isMenuVisible: true})}
>
<Icon src={Pencil} fill={themeColors.iconReversed} />
<Icon
src={Pencil}
width={variables.iconSizeSmall}
height={variables.iconSizeSmall}
fill={themeColors.iconReversed}
/>
</Pressable>
<PopoverMenu
isVisible={this.state.isMenuVisible}
Expand Down
22 changes: 22 additions & 0 deletions src/components/ComposeProviders.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react';
import PropTypes from 'prop-types';

const propTypes = {
/** Provider components go here */
components: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.object, PropTypes.func])).isRequired,

/** Rendered child component */
children: PropTypes.node.isRequired,
};

const ComposeProviders = props => (
<>
{props.components.reduceRight((memo, Component) => (
<Component>{memo}</Component>
), props.children)}
</>
);

ComposeProviders.propTypes = propTypes;
ComposeProviders.displayName = 'ComposeProviders';
export default ComposeProviders;
Loading