-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2024-06-06] [$250] mWeb - Taxes - Buttons on the top not filing the space evenly #41048
Comments
Triggered auto assignment to @jliexpensify ( |
I'm down for |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace - Taxes - Buttons on the top not filing the space evenly What is the root cause of that problem?The stylings applied to the container and button isn't correct. The buttons takes App/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx Lines 225 to 243 in 42d4ed7
What changes do you think we should make in order to solve the problem?Instead of setting 50% width, we should use What alternative solutions did you explore? (Optional)Resultspacing_between_btns.mp4 |
Proposal Updated
|
Job added to Upwork: https://www.upwork.com/jobs/~018c24cec1ff92c41b |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann ( |
@shawnborton not sure of the complexity of this issue (it feels easy, but I could be wrong), but if you feel like it should be less than $250, feel free to adjust the price! |
Hi Expensify team, I want to contribute in this issue. Please add me in your Slack Channel. Email- [email protected] I already sent the email to [email protected] but still not received any invitation. Looking to learn, collaborate, and contribute. |
@shawnborton @dubielzyk-expensify I'm not sure about adjusting the spacing. When I measure the gap in the product, it looks like it's Here's a comparison of actually 12px vs. 8px Honestly both feel fine to me though. I just want to make sure we're making adjustments based on how things should be, not just based on how they look in the product (because that might be not quite right). |
ProposalPlease re-state the problem that we are trying to solve in this issue.Taxes - Buttons on the top not filing the space evenly What is the root cause of that problem?on
What changes do you think we should make in order to solve the problem?We need to clean the style. 1- replace the styles.w50 with styles.flex1We need to allow button to stretch to the spaces availabe without passing border 2- replace margin between buttons with flex gap on the containerFlex gap will do the spacing when there's more than one div inside the container. 3- fix the button when row selectedWe need also to set styles.flex1 for this button
4- move
|
<View style={[styles.w100, styles.flexRow, isSmallScreenWidth && styles.mb3]}> |
and
https://github.com/Expensify/App/blob/d0c2551d0ae354438972e2c97b014e98dbd92664/src/pages/workspace/taxes/WorkspaceTaxesPage.tsx#L236C77-L236C87
to
{isSmallScreenWidth && <View style={[styles.pl5, styles.pr5]}>{headerButtons}</View>} |
Those updates need to be applied to all top-right buttons like workspace pages.
@shawnborton when you select one of the options, the new button "1 selected", I think it should be stretched on all the screen width. What do you think? |
@shawnborton on the same screen, the table header "Status" is not aligned correctly |
@shawnborton here'is another non-consistent point. The header on those workspace pages, the space between top and buttons,, is defined by height value and it's equal to 80px instead, on the report pages, it's 72px |
@shawnborton Sorry for all those comments, just wanna share the UI bugs to make the best consistency For buttons with icons, the spacing on the left is not equal to the spacing on the right, there's a 4-pixel difference So the (text+icon) inside the button are not well aligned. |
Yeah. They both look good. Personally probably prefer 8px visually, but given our footer button has 12px, maybe we go with that? I don't mind either way |
Not overdue, still discussing! |
@dragnoir replying to your comments:
Agree, it should be full width. I think we have a separate issue somewhere to update this button to be a dropdown button though, is that right @luacmartins?
Yes, this is a separate inconsistency that we've talked about and will handle in a separate issue. One weird thing I noticed though is that there is padding on the left/right sides of the header, which is strange to me.
This is correct, the Status header is right-aligned. So the alignment is happening on the right side.
This is also intentional. |
I am totally down for |
@DylanDylann, PR ready for review. |
Do you have a link to the PR so I can test it out? |
@dubielzyk-expensify, I forgot to tag design team on the PR, PR here. |
The @marcaaron, could you please help clarify the use case for the padding? |
Whoa, that is a weird change. I feel like we should undo that 1px padding hack personally. |
Agree! Let's remove that 1px of weirdo padding if we can. That explains why I was measuring 14px instead of 12px a bit ago. |
This issue has not been updated in over 15 days. @tylerkaraszewski, @jliexpensify, @Krishna2323, @DylanDylann eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.77-11 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-06-06. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Payment Summry
Just waiting on the checklist. |
Bump @DylanDylann to complete the checklist please |
SIGH I have to create a new job because it's expired. @DylanDylann and @Krishna2323 pleas accept: https://www.upwork.com/jobs/~013b50ebeebd734f43 |
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed: [@DylanDylann] The PR that introduced the bug has been identified. Link to the PR: NA Regression Test Proposal
Do we agree 👍 or 👎 |
Paid and job closed, thanks everyone! |
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: 1.4.66-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1714046529643169
Action Performed:
Expected Result:
The two buttons at the top should fill the space evenly
Actual Result:
The two buttons are too wide and cause overflow from the wrapping container.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence


View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @jliexpensifyThe text was updated successfully, but these errors were encountered: