-
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-04-05 [$500] Workspace - Error message is left and bottom aligned in WS menus #37770
Comments
Triggered auto assignment to @laurenreidexpensify ( |
@laurenreidexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue.Error message is left and bottom aligned in WS menus What is the root cause of that problem?We always add bottom margin to the list item: Lines 4270 to 4279 in a509234
although the bottom margin should be on the outermost What changes do you think we should make in order to solve the problem?We should introduce a new prop in By this, we can make sure the error looks "stick" to its corresponding item and the error looks more horizontally aligned with the item. Before After What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace - Error message is left and bottom aligned in WS menus What is the root cause of that problem?We have margin bottom applied to Line 4276 in a509234
What changes do you think we should make in order to solve the problem?We need to remove bottom margin from We might also want to reduce padding horizontal from
PS: I think the left alignment is fine, we have similar alignment in multiple places, we might want to just centre or move to top those error messages. If we need some more margin, it can be added to ResultAlternativelyWe will remove bottom margin from const hasErrors = !isEmptyObject(item.errors);
pressableStyle={[[...otherstyles, !hasErrors && styles.mb3]]} Result with vertical margin of 4px on error row:Bug 2There is also a bug in App/src/pages/workspace/WorkspacesListPage.tsx Lines 173 to 187 in e3b10f7
bug_2_error_text.mp4Solution for bug 2I prefer to use my alternative solution fir this bug stylings also, apart from that we need to move After fixbug_2_fix.mp4 |
|
Job added to Upwork: https://www.upwork.com/jobs/~015595ed66487a0e2e |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
@Expensify/design can you confirm this is a bug and not expected behaviour? It definitely sounds like an inconsistency |
@lanitochka17 can you elaborate more on your bug report, specifically this part here:
Just want to clarify what "match the rest of the UI" means, and if this might have failed a certain test, etc? |
I agree though, we could probably just add some bottom margin to the error message and we should be good to go here. Do we want to have this as an external bug fix, or @luacmartins should we just have this fixed by whoever implemented it in the first place? |
This view was introduced as part of ideal nav a few weeks ago and it's past the regression period, so I think we can keep it external. |
@shawnborton Now we have two approaches for the error message to show as you can see in our proposal screenshots.I proposed to make the error more "stick" to the corresponding item. The other proposed to keep the space evenly between the items and errors. |
I think this is what you're looking for (from my proposal: |
Not quite - I think the width of the error message in the other proposal might be better. I see where this one aligns with the content a little more, but I feel like we should avoid trying to be too crafty with these messages and just use the same standard style everywhere. |
Updated my proposal to reflect the latest expectation since the solutions in both proposals are the same, just differ in CSS styling. |
PS: Initially, I identified the correct styles, aiming to ensure consistency with the rest of the UI. Consequently, I invested time in exploring the similar UIs to determine the appropriate stylings, resulting in the addition of multiple different styles for demo. Additionally, during this exploration, I uncovered another bug that requires attention. I've included a fix for this issue in the 'Bug 2' section of my proposal. |
That's not completely correct as per feedback here. My styles cover one aspect of the expectation while yours cover the other. We both had incomplete styles but the implementation idea was similar. Let's see what C+ weigh in here. |
Next step: @rushatgabhane to review |
@gijoe0295's proposal was first and it looks fine. I think we should hire @Krishna2323 because they have explained the implementation in more details 🎀 👀 🎀 |
Payment Summary
BugZero Checklist (@laurenreidexpensify)
|
Payment Summary -
@rushatgabhane please confirm if a regression test is required thanks |
@laurenreidexpensify, there were a few issues with the merged PR. We have a follow-up PR that has just been approved by an internal engineer. IG we should hold. |
on Hold, not overdue |
|
$500 approved for @rushatgabhane |
@rushatgabhane @Krishna2323 can you confirm status of regression? Thanks |
all resolved! |
Great - updated payment summary Payment Summary - C+ @rushatgabhane requires payment through NewDot Manual Requests $500 @rushatgabhane please confirm if a regression test is required thanks |
@laurenreidexpensify applied on Upwork :) |
Payment Summary -
@rushatgabhane please confirm if a regression test is required thanks |
$500 approved for @rushatgabhane |
Remaining step to close: @rushatgabhane please confirm if a regression test is required thanks |
Remaining step to close: @rushatgabhane please confirm if a regression test is required thanks |
No regression tests required |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.47-2
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): applausetester+emilio@applause.expensifail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
account
user and then turn the internet back on
Another way to simulate this error message is by simply turning on "Simulate failing network requests" in Troubleshooting. This will work on any account and is much simpler to reproduce
Expected Result:
User expects the error message to match the rest of the UI
Actual Result:
The error message seems too much aligned to the left and also aligned to the bottom
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
The text was updated successfully, but these errors were encountered: