You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD #53760][$250] Create expense - No animation when submitting expenses as a new user #54470
Version Number: v9.0.77-6 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Email or phone of affected tester (no customers): N/A Issue reported by: Applause Internal Team
A fun illustration (with short and clear directions) should be displayed to the empty state “Submits to” screen if the user does not have any recent contacts (as in PR #42413). If there are any recents in the list, the illustration shouldn't be displayed.
Actual Result:
No animation when submitting expenses as a new user, just empty page.
The problem occurs because CONST.IOU.TYPE.CREATE is not included in the CONTENT_TYPES list. Without this, the EmptySelectionListContent component cannot find a matching translation or animation for the CREATE type.
What changes do you think we should make in order to solve the problem?
Add CONST.IOU.TYPE.CREATE to the CONTENT_TYPES list in EmptySelectionListContent.
Update the translation file to include an entry for CONST.IOU.TYPE.CREATE, similar to how CONST.IOU.TYPE.SUBMIT is handled.
If style changes are needed we can apply discussing with the design team
Note: We are still using submit in submit it to someone whisper action from tracked expense so we can't remove submit.
Note: The comment here suggesting invoice should not be included is based on a wrong assumption that at the time the user send invoice there would be at least on contact to be shown in the participants list but that is wrong. If we send invoice after creating a workspace and enabling invoice before contacting anyone blank page is displayed as clearly seen in the below video.
2024-12-24.01-21-13.mp4
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We can test EmptySelectionListContent displays correctly for iouTypes INVOICE and CREATE
What alternative solutions did you explore? (Optional)
According to this discussion, invoices should not be included in the list so focusing on the current issue that's why i didn't include it in the proposal... but in case it's needed after discussion, the changes should be the same as the main solution.
We can in fact enable it for all IOU types by removing the whitelist validation. then, we should add tests to ensure that all IOU types have their respective translations.
This way, if a new IOU type is introduced without existing translation, the test will fail .. therefore we will prevent such issues to happen in the future
changed the title [-]Create expense - No animation when submitting expenses as a new user[/-][+][$250] Create expense - No animation when submitting expenses as a new user[/+]on Dec 24, 2024
Activity
melvin-bot commentedon Dec 23, 2024
Triggered auto assignment to @sakluger (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.abzokhattab commentedon Dec 23, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
When a new user submits an expense, no empty animation is shown
What is the root cause of that problem?
The issue is caused by how the
EmptySelectionListContentcomponent determines which animation and translation to display. Here’s the breakdown:MoneyRequestParticipantsSelectorcomponent, theiouTypeis passed as the contentTypeEmptySelectionListContentcomponent checks if thecontentTypeis included in theCONTENT_TYPESlistApp/src/components/EmptySelectionListContent.tsx
Lines 26 to 36 in 9e4ffac
contentTypeis valid, theEmptySelectionListContentcomponent uses it to fetch the corresponding translation and animation.App/src/components/EmptySelectionListContent.tsx
Line 19 in 9e4ffac
The problem occurs because
CONST.IOU.TYPE.CREATEis not included in theCONTENT_TYPESlist. Without this, theEmptySelectionListContentcomponent cannot find a matching translation or animation for theCREATEtype.What changes do you think we should make in order to solve the problem?
Add
CONST.IOU.TYPE.CREATEto theCONTENT_TYPESlist inEmptySelectionListContent.Update the translation file to include an entry for
CONST.IOU.TYPE.CREATE, similar to howCONST.IOU.TYPE.SUBMITis handled.App/src/languages/en.ts
Lines 587 to 606 in ba6168a
Or alternatively, replace the translation for
CONST.IOU.TYPE.SUBMITwith one forCONST.IOU.TYPE.CREATE, as the submit button was changed to create.(Optional) Adjust the blockingview styles to ensure the empty animation is vertically centered in the modal.
POC
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
EmptySelectionListContentcomponent displays the correct animation and translation forCONST.IOU.TYPE.CREATE.What alternative solutions did you explore? (Optional)
FitseTLT commentedon Dec 23, 2024
Edited by proposal-police: This proposal was edited at 2024-12-23 22:09:38 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Create expense - No animation when submitting expenses as a new user
What is the root cause of that problem?
We are only handling split, pay, and submit in EmptySelectionListContent
App/src/components/EmptySelectionListContent.tsx
Line 21 in 126d92a
App/src/components/EmptySelectionListContent.tsx
Lines 32 to 34 in 126d92a
so blank is displayed for iouType create (create expense from global FAB) and also invoice (from send invoice)
What changes do you think we should make in order to solve the problem?
We need to add cases of
INVOICEandCREATE:If style changes are needed we can apply discussing with the design team
Note: We are still using submit in submit it to someone whisper action from tracked expense so we can't remove submit.
Note: The comment here suggesting invoice should not be included is based on a wrong assumption that at the time the user send invoice there would be at least on contact to be shown in the participants list but that is wrong. If we send invoice after creating a workspace and enabling invoice before contacting anyone blank page is displayed as clearly seen in the below video.
2024-12-24.01-21-13.mp4
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We can test EmptySelectionListContent displays correctly for iouTypes
INVOICEandCREATEWhat alternative solutions did you explore? (Optional)
abzokhattab commentedon Dec 23, 2024
According to this discussion, invoices should not be included in the list so focusing on the current issue that's why i didn't include it in the proposal... but in case it's needed after discussion, the changes should be the same as the main solution.
#42227 (comment)
We can in fact enable it for all IOU types by removing the whitelist validation. then, we should add tests to ensure that all IOU types have their respective translations.
This way, if a new IOU type is introduced without existing translation, the test will fail .. therefore we will prevent such issues to happen in the future
App/src/components/EmptySelectionListContent.tsx
Lines 30 to 32 in 9e4ffac
[-]Create expense - No animation when submitting expenses as a new user[/-][+][$250] Create expense - No animation when submitting expenses as a new user[/+]melvin-bot commentedon Dec 24, 2024
Job added to Upwork: https://www.upwork.com/jobs/~021871676942933585608
melvin-bot commentedon Dec 24, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (
External)54 remaining items
sakluger commentedon Feb 6, 2025
Paid! Thanks again everyone.
thesahindia commentedon Feb 6, 2025
@sakluger, am I eligible for 50% compensation?
melvin-bot commentedon Feb 6, 2025
Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.
thesahindia commentedon Feb 17, 2025
bump @sakluger
sakluger commentedon Feb 18, 2025
Whoops, sorry I missed this! And thanks @puneetlath for reopening.
@huult I've sent an Upwork offer for 50% payment: https://www.upwork.com/nx/wm/offer/106176094. Please let me know once you've accepted. Thanks!
huult commentedon Feb 18, 2025
@sakluger
@thesahindia is asking you #54470 (comment) . I have already received your payment.
thesahindia commentedon Feb 19, 2025
@sakluger, I just need the payment summary for making a request on ND.
sakluger commentedon Feb 21, 2025
Sorry about that, I got mixed up. Payment summary incoming.
sakluger commentedon Feb 21, 2025
Summarizing payment on this issue:
Contributor: @huult $250, paid via Upwork
Contributor+: @thesahindia $125, please request on Newdot
garrettmknight commentedon Apr 22, 2025
$125 approved for @thesahindia