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 for payment 2024-02-26] HIGH: Show "Workspace description" everywhere (2/2, external) #32955

Closed
quinthar opened this issue Dec 13, 2023 · 38 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item.

Comments

@quinthar
Copy link
Contributor

quinthar commented Dec 13, 2023

Note: This is held on #32954 to fix a confusing name before we build on it further, as well as on #32615 to provide the foundation for room descriptions and description editing

Problem:
We have a "workspace welcome message" that is confusingly named (and will be renamed to "workspace description") and used unpredictably:

  1. It is saved for the next invite, but cannot be edited outside of the invite flow
  2. It is sent a standalone workspace invite email
  3. It is sent again in a whisper in the new workspace chat

It's a strangely important and yet hidden feature.

Solution:
Let's show this important information in more places:

  1. Similar to what is proposed for editing the room description, show the "workspace description" as an HTML output (ie, with hyperlinks) that can be tapped to edit via push-to-page. This will not only make it more obvious how to set it, but also show it to members looking at the workspace.
+-------------------------+
| < Workspace             |
|           +----+        |
|           |    |        |
|           |    |        |
|           +----+        |
|       Expensify Chat    |
|                         |
| (workspace description) | <- Show HTML description; push to page to edit
|                         |
| S Settings              |
| C Cards                 |
| R Reimbursements        |
| B Bills                 |
| I Invoices              |
| T Travel                |
| M Members               |
| B Bank account          |
| D Delete workspace      |
|                         |
|                         |
|                         |
+-------------------------+
  1. This description will live in the description field on the policy in Onyx and be updated via the UpdateWorkspaceDescription API command

  2. We should support the POLICYCHANGELOG_UPDATE_DESCRIPTION reportAction for displaying the changelog for the description in the #admins room

  3. Let's remove the "add message" page from the invite flow altogether.

image
  1. Let's se the workspace description as the room description for the workspace chat. So replace this message:

Collaboration between David Barrett and Expensify Inc. (NewDot Test Workspace) starts here! 🎉 This is the place to chat, request money and settle up.

With the workspace description:

Welcome to our NewDot test policy. You have been invited to submit ...

In this image:

image

This should reuse the the new room description feature code, so it'll appear both in the room description, as well as in the header:

image
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01172a1898d99f6e20
  • Upwork Job ID: 1747013547396116480
  • Last Price Increase: 2024-01-15
  • Automatic offers:
    • jjcoffee | Reviewer | 28108605
    • esh-g | Contributor | 28108607
@quinthar quinthar converted this from a draft issue Dec 13, 2023
@melvin-bot melvin-bot bot added the Monthly KSv2 label Dec 18, 2023
@quinthar quinthar moved this from HIGH to CRITICAL in [#whatsnext] #vip-vsb Dec 19, 2023
@quinthar quinthar moved this from CRITICAL to HIGH in [#whatsnext] #vip-vsb Dec 19, 2023
@quinthar quinthar changed the title HIGH: Show "Workspace description" everywhere HIGH: Show "Workspace description" everywhere (2/2, external) Dec 26, 2023
@quinthar quinthar changed the title HIGH: Show "Workspace description" everywhere (2/2, external) [HOLD ON #32954] HIGH: Show "Workspace description" everywhere (2/2, external) Dec 26, 2023
@quinthar quinthar changed the title [HOLD ON #32954] HIGH: Show "Workspace description" everywhere (2/2, external) [HOLD ON #32954, 32615] HIGH: Show "Workspace description" everywhere (2/2, external) Dec 26, 2023
@esh-g
Copy link
Contributor

esh-g commented Dec 28, 2023

Proposal

Please re-state the problem we are trying to solve?

Change 'workspace welcome message' to 'workspace description` and implement design

What is the root cause of the problem?

N/A (New feature)

What changes should be made to fix this?

  1. To add the Description menu field to the WorkspaceInitialPage we can just add a MenuItemWithTopDescription just like I proposed for the roomDescription page here: [HOLD for payment 2024-02-15] [HOLD for payment 2024-02-14] [$1000] HIGH: Show "Room description" everywhere (2/2, external) #32615 (comment)
    We would also need to add a WORKSPACE_DESCRIPTION route and page for that route which can be just like the WelcomeMessage page for room description using the utilities that will be implemented in the internal issue.
<MenuItemWithTopDescription
      shouldShowRightIcon={isPolicyAdmin}
      description={translate('common.description')}
      title={policy.description}
      shouldRenderAsHTML
      onPress={() => Navigation.navigate(ROUTES.WORKSPACE_DESCRIPTION.getRoute(policyID))}
  />
Screenshot 2023-12-28 at 8 11 53 PM
  1. As for displaying the header, I have already included it my proposal for roomDescription
Screenshot 2023-12-28 at 8 10 54 PM
  1. Now for the Welcome message text, we can once again use the same approach used in my proposal for roomDescription here:
    {isPolicyExpenseChat && (
    <>
    <Text>{props.translate('reportActionsView.beginningOfChatHistoryPolicyExpenseChatPartOne')}</Text>
    <Text style={[styles.textStrong]}>{ReportUtils.getDisplayNameForParticipant(props.report.ownerAccountID)}</Text>
    <Text>{props.translate('reportActionsView.beginningOfChatHistoryPolicyExpenseChatPartTwo')}</Text>
    <Text style={[styles.textStrong]}>{ReportUtils.getPolicyName(props.report)}</Text>
    <Text>{props.translate('reportActionsView.beginningOfChatHistoryPolicyExpenseChatPartThree')}</Text>
    </>
{policy.description ? <RenderHTML html={policy.description} /> : (

@melvin-bot melvin-bot bot added Daily KSv2 and removed Monthly KSv2 labels Dec 28, 2023
Copy link

melvin-bot bot commented Jan 1, 2024

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

@melvin-bot melvin-bot bot added the Overdue label Jan 1, 2024
Copy link

melvin-bot bot commented Jan 2, 2024

Huh... This is 4 days overdue. Who can take care of this?

Copy link

melvin-bot bot commented Jan 4, 2024

Still overdue 6 days?! Let's take care of this!

Copy link

melvin-bot bot commented Jan 8, 2024

10 days overdue. I'm getting more depressed than Marvin.

Copy link

melvin-bot bot commented Jan 10, 2024

12 days overdue. Walking. Toward. The. Light...

Copy link

melvin-bot bot commented Jan 15, 2024

This issue has not been updated in over 14 days. eroding to Weekly issue.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Overdue labels Jan 15, 2024
@puneetlath puneetlath self-assigned this Jan 15, 2024
@puneetlath puneetlath added the External Added to denote the issue can be worked on by a contributor label Jan 15, 2024
@melvin-bot melvin-bot bot changed the title [HOLD ON #32954, 32615] HIGH: Show "Workspace description" everywhere (2/2, external) [$500] [HOLD ON #32954, 32615] HIGH: Show "Workspace description" everywhere (2/2, external) Jan 15, 2024
Copy link

melvin-bot bot commented Jan 15, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01172a1898d99f6e20

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 15, 2024
Copy link

melvin-bot bot commented Jan 15, 2024

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

@puneetlath
Copy link
Contributor

@esh-g I believe you said you expect to have a PR for this one ready today, is that right?

@melvin-bot melvin-bot bot removed the Overdue label Feb 7, 2024
@esh-g esh-g mentioned this issue Feb 7, 2024
50 tasks
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Feb 7, 2024
@esh-g
Copy link
Contributor

esh-g commented Feb 7, 2024

Made the PR here: #36058
Some polishing and adding test steps is left. I'll add the steps ASAP.

@jjcoffee
Copy link
Contributor

jjcoffee commented Feb 8, 2024

Just double checking, are we all aligned that we shouldn't be removing the "add message" page from the invite flow, per this comment? cc @quinthar @puneetlath

@puneetlath
Copy link
Contributor

Yes, sounds good. We can always decide to do that after. It doesn't need to be a blocking decision for this PR for sure.

@puneetlath
Copy link
Contributor

PR was merged.

Putting this from @jjcoffee here, so we don't forget:

@puneetlath Just wanted to flag a few issues that haven't been fixed here.
Bug: Android Native: The description text input doesn't immediately render at the correct size. - we decided this is most likely unrelated to this PR and should be fixed either separately or on a followup.
Bug: Sign out and sign in again, open a workspace chat with a description set. The chat initially shows "Workspace chat" before the actual description loads. (I couldn't replicate the same thing for room descriptions). - this seems like a BE issue
Bug: refreshing after navigating to the settings page to edit the description will display the chat in the background, rather than the settings page. - we've agreed on Slack that this shouldn't be a blocker (I believe this should be fixed at some point though!)

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Feb 19, 2024
@melvin-bot melvin-bot bot changed the title HIGH: Show "Workspace description" everywhere (2/2, external) [HOLD for payment 2024-02-26] HIGH: Show "Workspace description" everywhere (2/2, external) Feb 19, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 19, 2024
Copy link

melvin-bot bot commented Feb 19, 2024

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

Copy link

melvin-bot bot commented Feb 19, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.42-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-02-26. 🎊

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

Copy link

melvin-bot bot commented Feb 19, 2024

BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@jjcoffee] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.
  • [@puneetlath] Link the GH issue for creating/updating the regression test once above steps have been agreed upon.

This comment was marked as resolved.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Feb 26, 2024
@jjcoffee
Copy link
Contributor

Regression Test Proposal

  1. Navigate to the settings tab for any workspace and add a description
  2. Verify that the description is saved
  3. Go to the policy expense chat
  4. Verify that the added description is shown both in header and chat masthead
  5. Verify that clicking on the header description or chat masthead description opens the description edit page
  6. Update the description
  7. Verify that the #admins workspace room has the updated description report action

Do we agree 👍 or 👎

@jjcoffee
Copy link
Contributor

@puneetlath Friendly bump for payment on this 🙇

@puneetlath
Copy link
Contributor

Updated regression test issue here: https://github.com/Expensify/Expensify/issues/374200

@puneetlath
Copy link
Contributor

Sorry for the delay. All paid. Thanks y'all!

@github-project-automation github-project-automation bot moved this from HIGH to CRITICAL in [#whatsnext] #vip-vsb Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item.
Projects
No open projects
Status: CRITICAL
Development

No branches or pull requests

5 participants