-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-15] [HOLD for payment 2024-02-14] [$1000] HIGH: Show "Room description" everywhere (2/2, external) #32615
Comments
ProposalPlease re-state the problem we are trying to solveUpdate the room description to be shown in the header and make it editable for admins What is the root cause of this problemN/A (New feature) What changes should be made to fix this?
const roomDescription = lodashGet(props.report, 'description');
...
{isChatRoom && (
<>
{!_.isEmpty(roomDescription) ? <RenderHTML html={roomDescription} /> : (
<>
<Text>{roomWelcomeMessage.phrase1}</Text>
{roomWelcomeMessage.showReportName && (
<Text
style={[styles.textStrong]}
onPress={() => Navigation.navigate(ROUTES.REPORT_WITH_ID_DETAILS.getRoute(props.report.reportID))}
suppressHighlighting
>
{ReportUtils.getReportName(props.report)}
</Text>
)}
{roomWelcomeMessage.phrase2 !== undefined && <Text>{roomWelcomeMessage.phrase2}</Text>}
</>
)}
</>
)}
function getReportDescription(report: Report) {
if (!report.description) {
return '';
}
// return after removing the html.
const parser = new ExpensiMark();
return parser.htmlToText(report.description);
} const reportDescription = ReportUtils.getReportDescription(props.report);
const policyName = ReportUtils.getPolicyName(props.report);
const policyDescription = ReportUtils.getPolicyDescription(props.report.policyID); // need to add this function for policy expense chats
const reportDescription = isPolicyExpenseChat ? policyDescription : reportDescription;
...
<View style={[styles.flex1, styles.flexColumn]}>
<View style={[styles.flex1, styles.flexRow, styles.gap1, styles.alignItemsBaseline]}> // add this row wrapper
<DisplayNames
fullTitle={title}
displayNamesWithTooltips={displayNamesWithTooltips}
tooltipEnabled
numberOfLines={1}
textStyles={[styles.headerText, styles.pre]}
shouldUseFullTitle={isChatRoom || isPolicyExpenseChat || isChatThread || isTaskReport}
/>
{!_.isEmpty(policyName) && !_.isEmpty(reportDescription) && ( // code for the policyName display
<>
<Text
style={[styles.sidebarLinkText, styles.textLabelSupporting]}
numberOfLines={1}
>
in {/* A translation can obviously be added. */}
</Text>
<Text
style={[styles.sidebarLinkText, styles.textLabelSupporting, styles.textStrong]}
numberOfLines={1}
>
{policyName}
</Text>
</>
)}
</View>
... {!_.isEmpty(reportDescription) && (
<Text
style={[styles.sidebarLinkText, styles.optionAlternateText, styles.textLabelSupporting]}
numberOfLines={1}
>
{reportDescription}
</Text>
)} Result
<MenuItemWithTopDescription
shouldShowRightIcon={isPolicyAdmin}
title={props.report.description}
shouldRenderAsHTML
description={translate('common.description')}
onPress={() => Navigation.navigate(ROUTES.REPORT_DESCRIPTION.getRoute(props.report.reportID))}
/> Final Result Screen.Recording.2023-12-28.at.8.34.41.AM.mov(The thing pending is to rename all the |
Eep! 4 days overdue now. Issues have feelings too... |
Still overdue 6 days?! Let's take care of this! |
Job added to Upwork: https://www.upwork.com/jobs/~01ce65d2b9e9db71e4 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
@rushatgabhane looks like we already have one proposal. Please give it a review when you have a chance. And let me know if anything about the requirements is unclear. |
@puneetlath i think this is pure implementation. We can assign @esh-g because they have demonstrated a working solution. 🎀 👀 🎀 |
Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
|
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.37-7 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-14. 🎊 For reference, here are some details about the assignees on this issue:
|
@puneetlath Can you please assign me to this PR, so i can track this for payment. |
📣 @ishpaul777 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.38-6 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-15. 🎊 For reference, here are some details about the assignees on this issue:
|
@esh-g has been paid. @ishpaul777 can you suggest regression test steps here? Once done, I'll pay you out too. Thanks! |
Regression Test Proposal
Do we agree 👍 or 👎? |
Great, thanks. All paid. Thanks y'all! |
This is held on #32953 because we want to refactor the confusing naming of "Room welcome message" to "Room description" before changing where that description shows up.
Strategy:
Chat is the highest-frequency action that happens inside of a company -- whoever owns a company's chat, has the strategic high ground to cross-sell everything else, as that's the stickiest use case. Part of chat involves getting a company to capture all its conversations on the platform, split up into a bunch of room. Each room is devoted to a different topic, and the "room welcome message" is how the admin explains what that topic is. It is currently delivered via a whisper when someone joins the room.
Problem:
When the admin configures the "room welcome message", they currently don't see it anywhere in product (because it's only delivered via whisper to new people when they are added, and by definition they are already in it because they created it. So, this just feels broken. Additionally, there's no way an admin would guess that it's going to be secretly delivered to new users when they join, which is confusing.
Solution:
Update room welcome message to be room description and put the description at the top of the chat, in addition to delivering it via a whisper to those who join a room that already has enough content that the top has scrolled off the screen. Specifically, a chat has:
<#room name> in <workspace name>
- pressing opens the chat details<workspace description; truncated>
- pressing opens the description editor in the RHPWelcome to <#roomname>
<room description, full>
- pressing opens the description editor in the RHP<#room name>
- Any member can press to rename the report<workspace name>
<room description>
- Shows the first 5 lines truncated, with amore
control to expand fully;UpdateWelcomeMessage
API callsupdateRoomDescription
API callsMockups:
More discussion in Slack here.
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: