Closed trjExpensify closed 1 month ago
Triggered auto assignment to @zanyrenney (NewFeature
), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.
Triggered auto assignment to @dannymcclain (Design
), see these Stack Overflow questions for more details.
Also just for added clarity: this should be a global change to all tasks (not just the onboarding tasks).
Yep, all tasks!
Show assignee avatar instead of the email for task preview.
New redesign.
In TaskPreview,
Get the assignee avatar
const [assigneeAvatar] = useOnyx(ONYXKEYS.PERSONAL_DETAILS_LIST, {selector: personalDetails => personalDetails?.[taskAssigneeAccountID]?.avatar});
Replace the assignee mention with the avatar + task title https://github.com/Expensify/App/blob/e60b8210a1f5a2471d8aa9d84d0e461774b791d6/src/components/ReportActionItem/TaskPreview.tsx#L113
{taskAssigneeAccountID > 0 && <Avatar
containerStyles={[styles.mr2, styles.taskCheckboxWrapper]}
source={assigneeAvatar}
size={CONST.AVATAR_SIZE.SUBSCRIPT}
avatarID={taskAssigneeAccountID}
type={CONST.ICON_TYPE_AVATAR}
/>}
<Text style={styles.flex1}>{taskTitle}</Text>
Job added to Upwork: https://www.upwork.com/jobs/~01c485c16de75a6534
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dukenv0307 (External
)
Assigned tasks include a mention of the assigned user in the task preview, but it makes it very difficult to avoid navigating to the assigned user's profile when clicking the task.
When the task has assignee we'll render the mention
We should render the avatar when taskAssigneeAccountID>0
instead of mention and preserve the task preview style (strike through when task is done)
const [avatar] = useOnyx(ONYXKEYS.PERSONAL_DETAILS_LIST, {selector: personalDetails => personalDetails?.[taskAssigneeAccountID]?.avatar});
const htmlForTaskPreview = `<comment>${taskTitle}</comment>`;
...
{taskAssigneeAccountID > 0 && <Avatar
containerStyles={[styles.mr2]}
source={avatar}
size={CONST.AVATAR_SIZE.SUBSCRIPT}
avatarID={taskAssigneeAccountID}
type={CONST.ICON_TYPE_AVATAR}
/>}
<RenderHTML html={isTaskCompleted ? `<completed-task>${htmlForTaskPreview}</completed-task>` : htmlForTaskPreview} />
since the taskTitle is just the plain text, so we can use taskTitle
instead of htmlForTaskPreview
None
@dominictb's proposal LGTM. We should keep the completed task style
πππ C+ reviewed
Triggered auto assignment to @blimpich, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
π£ @dukenv0307 π An offer has been automatically sent to your Upwork account for the Reviewer role π Thanks for contributing to the Expensify app!
π£ @dominictb π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
@zanyrenney This hit production but not sure when, no deploy message in PR https://github.com/Expensify/App/pull/48552.
@zanyrenney This hit production but not sure when, no deploy message in PR https://github.com/Expensify/App/pull/48552.
Strange. Sorry about that @dominictb. @zanyrenney looks like this is ready for payment.
@dannymcclain, @blimpich, @zanyrenney, @dukenv0307, @dominictb Eep! 4 days overdue now. Issues have feelings too...
@zanyrenney we should process payment. Thanks
payment summary
paid $250 π£ @dukenv0307 π via UW. paid $250 π£ @dominictb π via UW.
If you havenβt already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: v9.0.27-0 Reproducible in staging?: Y Reproducible in production?: Y 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 Expensify/Expensify Issue URL: Issue reported by: @trjExpensify Slack conversation: https://expensify.slack.com/archives/C07HPDRELLD/p1725028109496029 (Internal)
Action Performed:
Actual Result:
Assigned tasks include a mention of the assigned user in the task preview, but it makes it very difficult to avoid navigating to the assigned user's profile when clicking the task.
https://github.com/user-attachments/assets/14a29fd9-b33b-4450-9aa5-37b8d97105c3
Expected Result:
This is working as expected, but we want to change all assigned task previews to:
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround? Yes, click the right caret.
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
See above in-line.
View all open jobs on GitHub
CC: @Expensify/design @JmillsExpensify @anmurali @danielrvidal @puneetlath
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @zanyrenney