-
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-07-26] [Closed & Archived] Extra spacing between last message and archived banner #45422
Comments
Triggered auto assignment to @trjExpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Extra spacing between last message and archived banner What is the root cause of that problem?Margin top used as App/src/pages/home/report/ReportFooter.tsx Line 171 in b4b376e
What changes do you think we should make in order to solve the problem?Decrease the margin at the top App/src/pages/home/report/ReportFooter.tsx Line 171 in b4b376e
|
@DylanDylann you can reproduce by replacing this with
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Extra spacing between last message and archived banner What is the root cause of that problem?
App/src/pages/home/report/ReportFooter.tsx Line 106 in dc5d06b
What changes do you think we should make in order to solve the problem?
const [isBlockedFromChat] = useOnyx(ONYXKEYS.NVP_BLOCKED_FROM_CHAT, {
selector: (dateString) => {
if (!dateString) {
return false;
}
try {
return new Date(dateString) >= new Date();
} catch (error) {
// If the NVP is malformed, we'll assume the user is not blocked from chat. This is not expected, so if it happens we'll log an alert.
Log.alert(`[${CONST.ERROR.ENSURE_BUGBOT}] Found malformed ${ONYXKEYS.NVP_BLOCKED_FROM_CHAT} nvp`, dateString);
return false;
}
},
});
const [isAnonymousUser = false] = useOnyx(ONYXKEYS.SESSION, {selector: (session) => session?.authTokenType === CONST.AUTH_TOKEN_TYPES.ANONYMOUS});
const shouldShowComposerOptimistically = !isAnonymousUser && ReportUtils.isPublicRoom(report) && !!reportMetadata?.isLoadingInitialReportActions;
const shouldHideComposer = (!ReportUtils.canUserPerformWriteAction(report, reportNameValuePairs) && !shouldShowComposerOptimistically) || isBlockedFromChat;
What alternative solutions did you explore? (Optional) |
Is @DylanDylann implementing this as a follow-up to his PR? |
Yes, that's the goal. It was a bug I found from the PR but thought it would be better to handle as a follow up so that we could merge without conflicts. |
Great! @DylanDylann can you raise the PR please? |
Yeah, The PR will be ready soon |
Did we get a PR up for this? |
I am working on it |
@srikarparsi After investigating, It seems this bug isn't regression from my PR The RCA: In #40661, we add My solution: Removing |
@srikarparsi The PR is up #45588 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.9-5 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-07-26. 🎊 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:
|
The payment for this will be taken care of in this issue since it was brought up in this comment. Does that sound right @DylanDylann? |
Yes. Let's close this one |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Follow up issue from here. More info in this comment.
You can reproduce by replacing this with return false so that the isArchivedRoom check doesn't rely on the fallback (which will be removed in a future PR).
Version Number:
Reproducible in staging?:
Reproducible in production?:
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:
Slack conversation:
Action Performed:
Break down in numbered steps
Expected Result:
Describe what you think should've happened
There should be the right spacing between the last message and the archived banner in the footer
Actual Result:
Describe what actually happened
There is too much spacing between the last message and the archived banner in the footer
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
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
Issue Owner
Current Issue Owner: @trjExpensifyThe text was updated successfully, but these errors were encountered: