-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$250] Web - Expensify Card - Expensify Card page in empty state has two scoll bars #56690
Comments
Triggered auto assignment to @jliexpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Expensify Card - Expensify Card page in empty state has two scoll bars What is the root cause of that problem?We are adding unnecessary scroll view in here
What changes do you think we should make in order to solve the problem?We should remove it as there is a scroll view in the parent component What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N / A What alternative solutions did you explore? (Optional) |
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Expensify Card page in empty state has two scoll bars What is the root cause of that problem?We do not pass App/src/pages/workspace/expensifyCard/EmptyCardView.tsx Lines 32 to 34 in 5b05237
This causes us to show double scrollbar What changes do you think we should make in order to solve the problem?We should pass
![]()
App/src/pages/workspace/expensifyCard/EmptyCardView.tsx Lines 53 to 54 in 5b05237
So we need I think we can totally disable the scroll inside
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A This is a UI bug What alternative solutions did you explore? (Optional)
Replace the use of scrollview with a View
<ScrollView>
<EmptyCardView isBankAccountVerified={isBankAccountVerified} />
</ScrollView> App/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardListPage.tsx Lines 138 to 140 in a0a2609
Result: Screen.Recording.2025-02-13.at.8.26.57.AM.mov |
Woah, weird! @Expensify/design - just confirming: is this an |
Oh boy—I honestly don't know. @shawnborton you have any ideas? It seems to be somehow related to the empty state + disclaimer message combo. |
I would think this can be fixed Externally. No idea why it is happening, but we should definitely fix it! |
cc @fabioh8010 as I think you worked on some of the empty state stuff? I could be making that up though! |
Thanks Danny + Shawn, gonna drop the |
Job added to Upwork: https://www.upwork.com/jobs/~021889430675865762724 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-02-12 19:03:39 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.The Expensify Card page in empty state currently displays two scroll bars, which creates a poor user experience and violates UI/UX best practices. This issue appears on the workspace settings > Expensify Card page when no card is assigned. What is the root cause of that problem?The root cause is the unnecessary addition of a What changes do you think we should make in order to solve the problem?We should remove the What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)No alternative solutions were explored as the issue has a clear cause and straightforward fix - removing redundant scrolling functionality. |
@FitseTLT Thanks for posting proposal.
Can you clarify it? Or link me to the LOC of scroll view in the parent component. Thank you. Btw, your solution doesn't work properly, it doesn't show "disclaimer" text at the bottom although I already scroll to bottom |
@twilight2294 Thanks for posting proposal. I tried your solution but it seems sometimes it's hard to scroll to the bottom of the page. Click here to view recording of your solutionScreen.Recording.2025-02-12.at.20.19.54.mov |
@mosesbabu Thanks for posting proposal. Please ensure your proposal follows the template here https://github.com/Expensify/App/blob/main/contributingGuides/PROPOSAL_TEMPLATE.md |
ProposalPlease re-state the problem that we are trying to solve in this issue.Expensify Card page in empty state has two scoll bars What is the root cause of that problem?We are utilizing two ScrollViews in this section
What changes do you think we should make in order to solve the problem?We should use only one ScrollView to improve the user experience. remove the ScrollView and View here App/src/pages/workspace/expensifyCard/EmptyCardView.tsx Lines 30 to 31 in 5b05237
remove this footer
we will pass two new props to the EmptyStateComponent
update the EmptyStateComponent accordingly.
Screen.Recording.2025-02-12.at.20.52.48.movWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)N/A |
Hey @shawnborton I don't remember working on this xD but I'm checking internally if someone had in the past. |
@hoangzinh thanks for the feedback, I have updated my proposal, can you please review it again? thanks |
@cretadn22 @twilight2294 thanks for update & posting proposals. I'm still considering proposals. Btw, do we know why it happened? It used to work in the beginning #45690 (comment) |
@hoangzinh Based on the initial idea, we don't want to display "The Expensify Visa® Commercial Card is..." upfront, requiring users to scroll down to see the disclaimer. That's why we use a scroll view in EmptyCardView. |
With my proposal, we only need to use a scroll view but it will still function properly |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Expensify Card - Expensify Card page in empty state has two scroll bars What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A -- UI issue What alternative solutions did you explore? (Optional)
|
sorry i don't have the complete idea here, but my proposed solution makes a single use of scrollview which is better to maintain in long term IMO, what do you think ? |
@hoangzinh EmptyStateComponent is a shared component used in multiple places. Removing the ScrollView from it would require adding ScrollView manually to all instances where this component is used. |
With my solution, EmptyStateComponent becomes more versatile, as it now supports displaying footer content as well. |
Yep, I did consider your suggestion @cretadn22. But I think that what if we need to put another component/view in the top of |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
friendly bump for assignment @robertjchen |
friendly bump for assignment @robertjchen , summary here |
Have DM-ed Robert as well, thanks @twilight2294! |
Reviewed, let's go with @twilight2294 's approach 👍 |
📣 @twilight2294 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Will raise the PR tomorrow |
was this resolved or can i take it up
…On Sun, Feb 23, 2025 at 7:17 PM Rutika Pawar ***@***.***> wrote:
Will raise the PR tomorrow
—
Reply to this email directly, view it on GitHub
<#56690 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKQTBI5SDFIJGZS634YWVZL2RHYB7AVCNFSM6AAAAABW5NCRPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZWHE3DONRYGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
[image: twilight2294]*twilight2294* left a comment (Expensify/App#56690)
<#56690 (comment)>
Will raise the PR tomorrow
—
Reply to this email directly, view it on GitHub
<#56690 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKQTBI5SDFIJGZS634YWVZL2RHYB7AVCNFSM6AAAAABW5NCRPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNZWHE3DONRYGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This has already been assigned @mosesbabu - you'll need to search for jobs with the |
PR will be up tomorrow morning, Draft here |
Draft PR is ^, Facing a little delay because we would need to update all places where we use |
@hoangzinh Eep! 4 days overdue now. Issues have feelings too... |
how is it going? @twilight2294 |
sorry for not updating here, ready almost, i am testing for the components related to the empty state , should i open it up for review now? |
No, you can open the PR when everything is ready for review. |
Done with testing, I will upload videos and open up the PR tomorrow morning IST |
PR is ready for your review @hoangzinh , apologies for this delay: |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.96-0
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): [email protected]
Issue reported by: Applause Internal Team
Device used: Windows 11 / Chrome
App Component: Workspace Settings
Action Performed:
Precondition:
Expected Result:
There will be one scroll bar in Expensify Card page in empty state.
Actual Result:
There are two scroll bars in Expensify Card page in empty state.
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @hoangzinhThe text was updated successfully, but these errors were encountered: