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 for payment 2023-07-10] [$1000] Different sections opened clicking on empty space in thread header #21215
Click on the blank space next to the thread header name
Obsereve that the details sidebar is opened
Close the sidebar & click on a blank space next to 'From user name' link
Expected Result:
Details sidebar should be opened counting all the blank parts of the header as part of the header to avoid confusion. And clicking only the link should navigate user to main chat
Actual Result:
User is navigate back to main chat
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?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.2.30-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 Notes/Photos/Videos: Any additional supporting documentation
Please re-state the problem that we are trying to solve in this issue.
Different sections open when user clicks on empty space in thread header. When space next to parent chat is clicked, it opens the parent chat and not chat details.
What is the root cause of that problem?
Subtitle expands to full width here because of flex: 1 which is set on its parent.
What changes do you think we should make in order to solve the problem?
If we just remove styles.flex1 or only flex-grow: 1 then parent chat won't be truncated on phone.
If we add styles.alignSelfStart on View or PressableWithoutFeedback then also parent chat won't be truncated on phone.
See video
Screen.Recording.2023-06-23.at.3.44.46.PM.mov
We need to add new property in sizing.js for max-width either set to max-content or fit-content and then pass this style in PressableWithoutFeedback like -
Add new style prop to -
Please re-state the problem that we are trying to solve in this issue.
Different sections opened clicking on empty space in thread header
What is the root cause of that problem?
By default the align-items is stretch which will makes the subtitle to takes full available width and that is the reason for the issue.
What changes do you think we should make in order to solve the problem?
Pass style prop here for PressableWithoutFeedback with style={styles.alignSelfStart} which will restrict the stretching and takes only required width. To avoid the overflow when the text is longer we need to also provide styles.mw100.
changed the title [-]Different sections opened clicking on empty space in thread header[/-][+][$1000] Different sections opened clicking on empty space in thread header[/+]on Jun 23, 2023
The offending PR is #20484. I've posted the comment in the PR. I think the issue occurred because we copy pasted the Text content, which didn't have the click behavior earlier.
I don't see any action needed here. I also don't think we need a regression test here as it's not something that would change often. @MariaHCD wdyt?
@Pujan92 - some patience would be good here - payments are manually processed so I have to wait until you accept the offer in order to pay you - and there are other pieces of work I am doing!
I actually accepted the offer earlier. Usually, GH issue gets closed after the payment so thought of putting a message here. Sorry but didn't mean to rush here for payment.
Activity
melvin-bot commentedon Jun 21, 2023
Triggered auto assignment to @sophiepintoraetz (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 21, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)Nikhil-Vats commentedon Jun 21, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Different sections open when user clicks on empty space in thread header. When space next to parent chat is clicked, it opens the parent chat and not chat details.
What is the root cause of that problem?
Subtitle expands to full width here because of flex: 1 which is set on its parent.
App/src/pages/home/HeaderView.js
Lines 180 to 198 in 0b7455f
What changes do you think we should make in order to solve the problem?
If we just remove
styles.flex1or onlyflex-grow: 1then parent chat won't be truncated on phone.If we add
styles.alignSelfStartonVieworPressableWithoutFeedbackthen also parent chat won't be truncated on phone.See video
Screen.Recording.2023-06-23.at.3.44.46.PM.mov
We need to add new property in
sizing.jsformax-widtheither set tomax-contentorfit-contentand then pass this style inPressableWithoutFeedbacklike -Add new style prop to -
We can use
fit-contentsince it calculates the value based on available space like -What alternative solutions did you explore? (Optional)
NA
Result -
Screen.Recording.2023-06-23.at.3.46.01.PM.mov
Pujan92 commentedon Jun 21, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Different sections opened clicking on empty space in thread header
What is the root cause of that problem?
By default the align-items is stretch which will makes the subtitle to takes full available width and that is the reason for the issue.
What changes do you think we should make in order to solve the problem?
Pass style prop here for
PressableWithoutFeedbackwithstyle={styles.alignSelfStart}which will restrict the stretching and takes only required width. To avoid the overflow when the text is longer we need to also providestyles.mw100.App/src/pages/home/HeaderView.js
Lines 192 to 198 in 0b7455f
sophiepintoraetz commentedon Jun 22, 2023
Will look into this tomorrow - overrun with some other chores.
sophiepintoraetz commentedon Jun 23, 2023
I can replicate - I think this may have come from PR #20484 (cc @chiragsalian)
[-]Different sections opened clicking on empty space in thread header[/-][+][$1000] Different sections opened clicking on empty space in thread header[/+]melvin-bot commentedon Jun 23, 2023
Job added to Upwork: https://www.upwork.com/jobs/~01e25a8a95ef65423b
melvin-bot commentedon Jun 23, 2023
Current assignee @sophiepintoraetz is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jun 23, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (
External)22 remaining items
sophiepintoraetz commentedon Jul 5, 2023
@mananjadhav - if you can complete the checklist, that would be great!
mananjadhav commentedon Jul 6, 2023
@sophiepintoraetz thanks for the bump, I'll finish this over the weekend.
mananjadhav commentedon Jul 10, 2023
The offending PR is #20484. I've posted the comment in the PR. I think the issue occurred because we copy pasted the Text content, which didn't have the click behavior earlier.
I don't see any action needed here. I also don't think we need a regression test here as it's not something that would change often. @MariaHCD wdyt?
sophiepintoraetz commentedon Jul 11, 2023
Thanks @mananjadhav - I agree if it was lack of attention to detail, there's no update needed here. Thanks for posting the FYI - contracts are out!
Pujan92 commentedon Jul 11, 2023
@sophiepintoraetz payment is yet to be received for the contract. Can you plz check once? Thanks!
sophiepintoraetz commentedon Jul 11, 2023
@Pujan92 - some patience would be good here - payments are manually processed so I have to wait until you accept the offer in order to pay you - and there are other pieces of work I am doing!
Pujan92 commentedon Jul 11, 2023
I actually accepted the offer earlier. Usually, GH issue gets closed after the payment so thought of putting a message here. Sorry but didn't mean to rush here for payment.
mananjadhav commentedon Jul 12, 2023
@sophiepintoraetz I've requested the payout via NewDot.
Thanks for the patience here @Pujan92. Have you accepted the offer and paid out now?
sophiepintoraetz commentedon Jul 12, 2023
Yep, he should have been paid! And yes - I realise that change has just gone live, Anu should be taking care of that.
mananjadhav commentedon Jul 12, 2023
Yes thats right. Thanks for your help here.
Pujan92 commentedon Jul 12, 2023
Yes, I got paid. Thanks!
anmurali commentedon Jul 13, 2023
Paid Manan after confirming here.