Skip to content

[HOLD for payment 2024-04-15] [$125] Change the order of items in the global create #38950

Closed

Description

@thienlnam

https://expensify.slack.com/archives/C066HJM2CAZ/p1711236684276869

Currently:
image

Should be:
Start chat
Track expense
Request money (soon to be Submit expense)
Send money (soon to be Pay someone)
Assign task

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01935b1cfdaa846be8
  • Upwork Job ID: 1773048936208711680
  • Last Price Increase: 2024-03-27
  • Automatic offers:
    • akinwale | Reviewer | 0
    • ShridharGoel | Contributor | 0

Activity

  1. self-assigned this
    on Mar 25, 2024
  2. ShridharGoel commented on Mar 25, 2024

    @ShridharGoel
    Contributor

    Proposal

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

    Change the order of items in the global create.

    What is the root cause of that problem?

    New change.

    This is the order currently:

    menuItems={[
    {
    icon: Expensicons.ChatBubble,
    text: translate('sidebarScreen.fabNewChat'),
    onSelected: () => interceptAnonymousUser(() => Navigation.navigate(ROUTES.NEW)),
    },
    {
    icon: Expensicons.MoneyCircle,
    text: translate('iou.requestMoney'),
    onSelected: () =>
    interceptAnonymousUser(() =>
    IOU.startMoneyRequest(
    CONST.IOU.TYPE.REQUEST,
    // When starting to create a money request from the global FAB, there is not an existing report yet. A random optimistic reportID is generated and used
    // for all of the routes in the creation flow.
    ReportUtils.generateReportID(),
    ),
    ),
    },
    {
    icon: Expensicons.Send,
    text: translate('iou.sendMoney'),
    onSelected: () =>
    interceptAnonymousUser(() =>
    IOU.startMoneyRequest(
    CONST.IOU.TYPE.SEND,
    // When starting to create a send money request from the global FAB, there is not an existing report yet. A random optimistic reportID is generated and used
    // for all of the routes in the creation flow.
    ReportUtils.generateReportID(),
    ),
    ),
    },
    ...(canUseTrackExpense
    ? [
    {
    icon: Expensicons.DocumentPlus,
    text: translate('iou.trackExpense'),
    onSelected: () =>
    interceptAnonymousUser(() =>
    IOU.startMoneyRequest(
    CONST.IOU.TYPE.TRACK_EXPENSE,
    // When starting to create a track expense from the global FAB, we need to retrieve selfDM reportID.
    // If it doesn't exist, we generate a random optimistic reportID and use it for all of the routes in the creation flow.
    ReportUtils.findSelfDMReportID() || ReportUtils.generateReportID(),
    ),
    ),
    },
    ]
    : []),
    {
    icon: Expensicons.Task,
    text: translate('newTaskPage.assignTask'),
    onSelected: () => interceptAnonymousUser(() => Task.clearOutTaskInfoAndNavigate()),
    },
    {
    icon: Expensicons.Heart,
    text: translate('sidebarScreen.saveTheWorld'),
    onSelected: () => interceptAnonymousUser(() => Navigation.navigate(ROUTES.TEACHERS_UNITE)),
    },
    ...(!props.isLoading && !Policy.hasActiveChatEnabledPolicies(props.allPolicies)
    ? [
    {
    displayInDefaultIconColor: true,
    contentFit: 'contain',
    icon: Expensicons.NewWorkspace,
    iconWidth: 46,
    iconHeight: 40,
    text: translate('workspace.new.newWorkspace'),
    description: translate('workspace.new.getTheExpensifyCardAndMore'),
    onSelected: () => interceptAnonymousUser(() => App.createWorkspaceWithPolicyDraftAndNavigateToIt()),
    },
    ]
    : []),
    ]}

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

    We can change it to this:

    menuItems={[
      {
          icon: Expensicons.ChatBubble,
          text: translate('sidebarScreen.fabNewChat'),
          onSelected: () => interceptAnonymousUser(() => Navigation.navigate(ROUTES.NEW)),
      },
      ...(canUseTrackExpense
          ? [
              {
                  icon: Expensicons.DocumentPlus,
                  text: translate('iou.trackExpense'),
                  onSelected: () =>
                      interceptAnonymousUser(() =>
                          IOU.startMoneyRequest(
                              CONST.IOU.TYPE.TRACK_EXPENSE,
                              // When starting to create a track expense from the global FAB, we need to retrieve selfDM reportID.
                              // If it doesn't exist, we generate a random optimistic reportID and use it for all of the routes in the creation flow.
                              ReportUtils.findSelfDMReportID() || ReportUtils.generateReportID(),
                          ),
                      ),
              },
          ]
          : []),
      {
          icon: Expensicons.MoneyCircle,
          text: translate('iou.requestMoney'),
          onSelected: () =>
              interceptAnonymousUser(() =>
                  IOU.startMoneyRequest(
                      CONST.IOU.TYPE.REQUEST,
                      // When starting to create a money request from the global FAB, there is not an existing report yet. A random optimistic reportID is generated and used
                      // for all of the routes in the creation flow.
                      ReportUtils.generateReportID(),
                  ),
              ),
      },
      {
          icon: Expensicons.Send,
          text: translate('iou.sendMoney'),
          onSelected: () =>
              interceptAnonymousUser(() =>
                  IOU.startMoneyRequest(
                      CONST.IOU.TYPE.SEND,
                      // When starting to create a send money request from the global FAB, there is not an existing report yet. A random optimistic reportID is generated and used
                      // for all of the routes in the creation flow.
                      ReportUtils.generateReportID(),
                  ),
              ),
      },
      {
          icon: Expensicons.Task,
          text: translate('newTaskPage.assignTask'),
          onSelected: () => interceptAnonymousUser(() => Task.clearOutTaskInfoAndNavigate()),
      },
      {
          icon: Expensicons.Heart,
          text: translate('sidebarScreen.saveTheWorld'),
          onSelected: () => interceptAnonymousUser(() => Navigation.navigate(ROUTES.TEACHERS_UNITE)),
      },
      ...(!props.isLoading && !Policy.hasActiveChatEnabledPolicies(props.allPolicies)
          ? [
                {
                    displayInDefaultIconColor: true,
                    contentFit: 'contain',
                    icon: Expensicons.NewWorkspace,
                    iconWidth: 46,
                    iconHeight: 40,
                    text: translate('workspace.new.newWorkspace'),
                    description: translate('workspace.new.getTheExpensifyCardAndMore'),
                    onSelected: () => interceptAnonymousUser(() => App.createWorkspaceWithPolicyDraftAndNavigateToIt()),
                },
            ]
          : []),
    ]}
    
  3. habasefa commented on Mar 25, 2024

    @habasefa

    Proposal

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

    Changing the the order to the new order of items in the global create

    What is the root cause of that problem?

    New order of items in the global create

    The current ordering is like this:

    menuItems={[
    {
    icon: Expensicons.ChatBubble,
    text: translate('sidebarScreen.fabNewChat'),
    onSelected: () => interceptAnonymousUser(() => Navigation.navigate(ROUTES.NEW)),
    },
    {
    icon: Expensicons.MoneyCircle,
    text: translate('iou.requestMoney'),
    onSelected: () =>
    interceptAnonymousUser(() =>
    IOU.startMoneyRequest(
    CONST.IOU.TYPE.REQUEST,
    // When starting to create a money request from the global FAB, there is not an existing report yet. A random optimistic reportID is generated and used
    // for all of the routes in the creation flow.
    ReportUtils.generateReportID(),
    ),
    ),
    },
    {
    icon: Expensicons.Send,
    text: translate('iou.sendMoney'),
    onSelected: () =>
    interceptAnonymousUser(() =>
    IOU.startMoneyRequest(
    CONST.IOU.TYPE.SEND,
    // When starting to create a send money request from the global FAB, there is not an existing report yet. A random optimistic reportID is generated and used
    // for all of the routes in the creation flow.
    ReportUtils.generateReportID(),
    ),
    ),
    },
    ...(canUseTrackExpense
    ? [
    {
    icon: Expensicons.DocumentPlus,
    text: translate('iou.trackExpense'),
    onSelected: () =>
    interceptAnonymousUser(() =>
    IOU.startMoneyRequest(
    CONST.IOU.TYPE.TRACK_EXPENSE,
    // When starting to create a track expense from the global FAB, we need to retrieve selfDM reportID.
    // If it doesn't exist, we generate a random optimistic reportID and use it for all of the routes in the creation flow.
    ReportUtils.findSelfDMReportID() || ReportUtils.generateReportID(),
    ),
    ),
    },
    ]
    : []),
    {
    icon: Expensicons.Task,
    text: translate('newTaskPage.assignTask'),
    onSelected: () => interceptAnonymousUser(() => Task.clearOutTaskInfoAndNavigate()),
    },
    {
    icon: Expensicons.Heart,
    text: translate('sidebarScreen.saveTheWorld'),
    onSelected: () => interceptAnonymousUser(() => Navigation.navigate(ROUTES.TEACHERS_UNITE)),
    },
    ...(!props.isLoading && !Policy.hasActiveChatEnabledPolicies(props.allPolicies)
    ? [
    {
    displayInDefaultIconColor: true,
    contentFit: 'contain',
    icon: Expensicons.NewWorkspace,
    iconWidth: 46,
    iconHeight: 40,
    text: translate('workspace.new.newWorkspace'),
    description: translate('workspace.new.getTheExpensifyCardAndMore'),
    onSelected: () => interceptAnonymousUser(() => App.createWorkspaceWithPolicyDraftAndNavigateToIt()),
    },
    ]
    : []),
    ]}

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

    We have to change the ordering on FloatingActionButtonAndPopover.js (If Save the world is intentionally left from the list)
    Screenshot from 2024-03-25 22-48-23

    menuItems={[

    {
    icon: Expensicons.ChatBubble,
    text: translate('sidebarScreen.fabNewChat'),
    onSelected: () => interceptAnonymousUser(() => Navigation.navigate(ROUTES.NEW)),
    },
    ...(canUseTrackExpense
    ? [
    {
    icon: Expensicons.DocumentPlus,
    text: translate('iou.trackExpense'),
    onSelected: () =>
    interceptAnonymousUser(() =>
    IOU.startMoneyRequest(
    CONST.IOU.TYPE.TRACK_EXPENSE,
    // When starting to create a track expense from the global FAB, we need to retrieve selfDM reportID.
    // If it doesn't exist, we generate a random optimistic reportID and use it for all of the routes in the creation flow.
    ReportUtils.findSelfDMReportID() || ReportUtils.generateReportID(),
    ),
    ),
    },
    ]
    : []),
    {
    icon: Expensicons.MoneyCircle,
    text: translate('iou.requestMoney'),
    onSelected: () =>
    interceptAnonymousUser(() =>
    IOU.startMoneyRequest(
    CONST.IOU.TYPE.REQUEST,
    // When starting to create a money request from the global FAB, there is not an existing report yet. A random optimistic reportID is generated and used
    // for all of the routes in the creation flow.
    ReportUtils.generateReportID(),
    ),
    ),
    },
    {
    icon: Expensicons.Send,
    text: translate('iou.sendMoney'),
    onSelected: () =>
    interceptAnonymousUser(() =>
    IOU.startMoneyRequest(
    CONST.IOU.TYPE.SEND,
    // When starting to create a send money request from the global FAB, there is not an existing report yet. A random optimistic reportID is generated and used
    // for all of the routes in the creation flow.
    ReportUtils.generateReportID(),
    ),
    ),
    },
    {
    icon: Expensicons.Task,
    text: translate('newTaskPage.assignTask'),
    onSelected: () => interceptAnonymousUser(() => Task.clearOutTaskInfoAndNavigate()),
    },
    ...(!props.isLoading && !Policy.hasActiveChatEnabledPolicies(props.allPolicies)
    ? [
    {
    displayInDefaultIconColor: true,
    contentFit: 'contain',
    icon: Expensicons.NewWorkspace,
    iconWidth: 46,
    iconHeight: 40,
    text: translate('workspace.new.newWorkspace'),
    description: translate('workspace.new.getTheExpensifyCardAndMore'),
    onSelected: () => interceptAnonymousUser(() => App.createWorkspaceWithPolicyDraftAndNavigateToIt()),
    },
    ]
    : []),
    ]}

    What alternative solutions did you explore? (Optional)

  4. ShridharGoel commented on Mar 27, 2024

    @ShridharGoel
    Contributor

    @thienlnam Can this be made external? We can keep the bounty minimal since the change is small.

  5. thienlnam commented on Mar 27, 2024

    @thienlnam
    ContributorAuthor

    Yup, was confirming this change but going to make external now

  6. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Mar 27, 2024
  7. changed the title [-]Change the order of items in the global create[/-] [+][$500] Change the order of items in the global create[/+] on Mar 27, 2024
  8. melvin-bot commented on Mar 27, 2024

    @melvin-bot
  9. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Mar 27, 2024
  10. melvin-bot commented on Mar 27, 2024

    @melvin-bot

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

  11. changed the title [-][$500] Change the order of items in the global create[/-] [+][$125] Change the order of items in the global create[/+] on Mar 27, 2024
  12. melvin-bot commented on Mar 27, 2024

    @melvin-bot

    Upwork job price has been updated to $125

  13. 10 remaining items

  14. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed on Apr 8, 2024
  15. changed the title [-][$125] Change the order of items in the global create[/-] [+][HOLD for payment 2024-04-15] [$125] Change the order of items in the global create[/+] on Apr 8, 2024
  16. melvin-bot commented on Apr 8, 2024

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  17. melvin-bot commented on Apr 8, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.60-13 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-04-15. 🎊

    For reference, here are some details about the assignees on this issue:

  18. melvin-bot commented on Apr 15, 2024

    @melvin-bot

    Issue is ready for payment but no BZ is assigned. @isabelastisser you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks!

  19. isabelastisser commented on Apr 15, 2024

    @isabelastisser
    Contributor

    All set in Upwork. Closing!

  20. ShridharGoel commented on Apr 15, 2024

    @ShridharGoel
    Contributor

    @isabelastisser I've accepted the offer.

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions