Skip to content
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 #20841][$1000] IOS - Assign task - Multiline description is displayed as one line #21825

Closed
1 of 6 tasks
lanitochka17 opened this issue Jun 28, 2023 · 18 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 28, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Issue found when executing PR #21371

Action Performed:

  1. Login to NewDot iOS app
  2. Assign a task with multi-line description
  3. Task chat is displayed

Expected Result:

There should be indication, that description has additional lines except first one, which are not displayed until you expand it

Actual Result:

Multiline description is displayed as one line (there is no any indication that there are any more line except for the first one)
Only iOS. Android has "..." and web shows all description

Workaround:

Unknown

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.3.34.
1
Reproducible in staging?: Yes

Reproducible in production?: Yes

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

Bug6109883_IMG_1625.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01cab68f81113415f5
  • Upwork Job ID: 1674777522394394624
  • Last Price Increase: 2023-06-30
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 28, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 28, 2023

Triggered auto assignment to @sonialiap (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Jun 28, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@manjesh-yadav
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Assign task - Multiline description is displayed as one line

What is the root cause of that problem?

Here we are using MenuItemWithTopDescription component which is generally used for one-line or two-line headings that is why multiline descriptions are displayed as one line

What changes do you think we should make in order to solve the problem?

We should redesign our description text in src/components/TaskHeader.js and not change in MenuItemWithTopDescription as this component use many places

<MenuItemWithTopDescription
title={lodashGet(props.report, 'description', '')}
description={props.translate('newTaskPage.description')}
onPress={() => Navigation.navigate(ROUTES.getTaskReportDescriptionRoute(props.report.reportID))}
disabled={!isOpen}
interactive={isOpen}
/>
</View>

change this with the below initial design

<PressableWithFeedback
                onPress={() => Navigation.navigate(ROUTES.getTaskReportDescriptionRoute(props.report.reportID))}
                disabled={!isOpen}
                accessibilityRole="button"
            >
                    <View style={[styles.ph5, styles.pb5]}>
                        <Text
                            style={[styles.pre, styles.textLabelSupporting]}
                        >
                           {props.translate('newTaskPage.description')}
                        </Text>
                        <Text
                            style={[styles.headerText, styles.pre]}
                        >
                           {lodashGet(props.report, 'description', '')}
                        </Text>
                    </View>
            </PressableWithFeedback>
Result

IMG_0501

@melvin-bot
Copy link

melvin-bot bot commented Jun 28, 2023

Looks like something related to react-navigation may have been mentioned in this issue discussion.

As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our DeprecatedCustomActions.js files should not be accepted.

Feel free to drop a note in #expensify-open-source with any questions.

@sonialiap
Copy link
Contributor

Reproducible, triaging to external

@sonialiap sonialiap added the External Added to denote the issue can be worked on by a contributor label Jun 30, 2023
@melvin-bot melvin-bot bot changed the title IOS - Assign task - Multiline description is displayed as one line [$1000] IOS - Assign task - Multiline description is displayed as one line Jun 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 30, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01cab68f81113415f5

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 30, 2023

Current assignee @sonialiap is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jun 30, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh (External)

@sonialiap
Copy link
Contributor

@fedirjh we have a proposal above, could you take a look to see if we can move forward with it?

@melvin-bot melvin-bot bot removed the Overdue label Jul 3, 2023
@fedirjh
Copy link
Contributor

fedirjh commented Jul 3, 2023

@sonialiap There is a refactor for the task detailed view in #20841 and I think it will fix this issue. Let's hold it until the PR is merged

@thienlnam
Copy link
Contributor

Agreed with @fedirjh

@melvin-bot melvin-bot bot added the Overdue label Jul 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

@sonialiap, @fedirjh Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@sonialiap
Copy link
Contributor

Sounds good, adding hold to title

@melvin-bot melvin-bot bot removed the Overdue label Jul 6, 2023
@sonialiap sonialiap changed the title [$1000] IOS - Assign task - Multiline description is displayed as one line [Hold #20841][$1000] IOS - Assign task - Multiline description is displayed as one line Jul 6, 2023
@melvin-bot melvin-bot bot added the Overdue label Jul 10, 2023
@Christinadobrzyn
Copy link
Contributor

Hi @fedirjh @sonialiap would you be able to confirm if this issue is a dupe of this one? (I think so?)
#22453

@melvin-bot
Copy link

melvin-bot bot commented Jul 10, 2023

@sonialiap, @fedirjh Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@fedirjh
Copy link
Contributor

fedirjh commented Jul 11, 2023

Hey @Christinadobrzyn, the issue appears to be similar, but it affects different pages. The one currently being addressed is the description within the task report, which will be fixed with #20841. However, the other issue pertains to the description within the create task modal, and it should be addressed separately since #20841 will not resolve it.

@melvin-bot melvin-bot bot removed the Overdue label Jul 11, 2023
@fedirjh
Copy link
Contributor

fedirjh commented Jul 11, 2023

@sonialiap I believe we can consider this issue resolved and proceed with closing it. It has been fixed.

@melvin-bot melvin-bot bot added the Overdue label Jul 13, 2023
@sonialiap
Copy link
Contributor

Sounds good, closing

@melvin-bot melvin-bot bot removed the Overdue label Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

6 participants