Skip to content

[Hold #20841][$1000] IOS - Assign task - Multiline description is displayed as one line #21825

Closed

Description

@lanitochka17

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com 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

Activity

  1. added
    Daily
    Bug
    on Jun 28, 2023
  2. melvin-bot commented on Jun 28, 2023

    @melvin-bot

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

  3. melvin-bot commented on Jun 28, 2023

    @melvin-bot

    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
  4. manjesh-yadav commented on Jun 28, 2023

    @manjesh-yadav
    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

  5. melvin-bot commented on Jun 28, 2023

    @melvin-bot

    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.

  6. sonialiap commented on Jun 30, 2023

    @sonialiap
    Contributor

    Reproducible, triaging to external

  7. added
    External
    on Jun 30, 2023
  8. changed the title [-]IOS - Assign task - Multiline description is displayed as one line[/-] [+][$1000] IOS - Assign task - Multiline description is displayed as one line[/+] on Jun 30, 2023
  9. melvin-bot commented on Jun 30, 2023

    @melvin-bot
  10. added
    Help Wanted
    on Jun 30, 2023
  11. melvin-bot commented on Jun 30, 2023

    @melvin-bot

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

  12. melvin-bot commented on Jun 30, 2023

    @melvin-bot

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

  13. 5 remaining items

  14. melvin-bot commented on Jul 6, 2023

    @melvin-bot

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

  15. sonialiap commented on Jul 6, 2023

    @sonialiap
    Contributor

    Sounds good, adding hold to title

  16. 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[/+] on Jul 6, 2023
  17. Christinadobrzyn commented on Jul 10, 2023

    @Christinadobrzyn
    Contributor

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

  18. melvin-bot commented on Jul 10, 2023

    @melvin-bot

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

  19. fedirjh commented on Jul 11, 2023

    @fedirjh
    Contributor

    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.

  20. fedirjh commented on Jul 11, 2023

    @fedirjh
    Contributor

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

  21. sonialiap commented on Jul 14, 2023

    @sonialiap
    Contributor

    Sounds good, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyExternalHelp Wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions