Currently, mentions are purely login based. They take the form of <mention-user>@blah@test.com</mention-user>. Let's update mentions to support accountIDs. That means:
- If an accountID is present as an attribute (e.g.
<mention-user accountID=1234>@blah@test.com</mention-user> or <mention-user accountID=1234 />) then we should use the accountID to render the mention. We should look at the personalDetailsList in Onyx and render the mention using the information for that accountID.
- For example, if the email address for accountID=1234 is hi@test.com then we should render the mention as
@hi@test.com instead of @blah@test.com.
- If the accountID is present in the personalDetailsList, but there is no login available for that user, we should use the display name. For example, if the display name for accountID=1234 was "Bob Smith" we should render the mention as
@Bob Smith
- If the accountID is not present in the personalDetailsList then we should render the mention as
@Hidden
- When rendering a mention with an accountID, clicking on it should lead to the accountID-based profile page at the path
/a/1234
- If there is no accountID present (e.g.
<mention-user>@blah@test.com</mention-user>) then we should continue to render the mention just as we do today.
Currently the API does not send the accountID as part of the mention, so you will need to use mock data to test and build this functionality.
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~01544767e1c8edfd0d
- Upwork Job ID: 1696915578109919232
- Last Price Increase: 2023-08-30
- Automatic offers:
- samh-nl | Contributor | 26456828
- situchan | Contributor | 26658771
Currently, mentions are purely login based. They take the form of
<mention-user>@blah@test.com</mention-user>. Let's update mentions to support accountIDs. That means:<mention-user accountID=1234>@blah@test.com</mention-user>or<mention-user accountID=1234 />) then we should use the accountID to render the mention. We should look at the personalDetailsList in Onyx and render the mention using the information for that accountID.@hi@test.cominstead of@blah@test.com.@Bob Smith@Hidden/a/1234<mention-user>@blah@test.com</mention-user>) then we should continue to render the mention just as we do today.Currently the API does not send the accountID as part of the mention, so you will need to use mock data to test and build this functionality.
Upwork Automation - Do Not Edit