-
Notifications
You must be signed in to change notification settings - Fork 3k
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 2023-09-20] [$1000] Web -Workspace - Inconsistency in Workspace Notification for HTML Character-Based Workspace Names #24427
Comments
Triggered auto assignment to @alexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.When a workspace name is set using HTML character codes "Hello", it changes to "Hello" in the canceled workspace notification. This inconsistency in the display of the workspace name can create confusion and incongruity for users. What is the root cause of that problem?HTML characters are not escaped in ArchivedReportFooter What changes do you think we should make in order to solve the problem?We need to escape policyName in ArchivedReportFooter.js: policyName: `<strong>${_.escape(ReportUtils.getPolicyName(props.report))}</strong>`, What alternative solutions did you explore? (Optional) |
📣 @kursat! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.In the workspace archived report footer, the workspace name is decoded. What is the root cause of that problem?When we close a workspace, the archive reason will be CONST.REPORT.ARCHIVE_REASON.POLICY_DELETED App/src/components/ArchivedReportFooter.js Lines 64 to 73 in 29e6b61
If it's not CONST.REPORT.ARCHIVE_REASON.DEFAULT, we will render the text as HTML (using RenderHTML). Because the workspace name contains HTML entity characters, it will be decoded when rendered as HTML (for example & to &). What changes do you think we should make in order to solve the problem?Encode (Str.htmlEncode/_.escape) the policy name only if |
I ran out of time to test this one yesterday but will review it on Monday. |
Tomorrow, I will test more. |
Job added to Upwork: https://www.upwork.com/jobs/~01ce586e8be7aadd12 |
Current assignee @alexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan ( |
@situchan - when you get a chance, can you review the proposals and identify if one will help address this error? Thanks! |
ProposalPlease re-state the problem that we are trying to solve in this issue.When a workspace name is set using HTML character codes "Hello", it changes to "Hello" in the canceled workspace notification. This also happens if the What is the root cause of that problem?If the workspace archive reason is not What changes do you think we should make in order to solve the problem?We should What alternative solutions did you explore? (Optional)Instead of |
No update yet, these proposals need to go through a review. |
@situchan - can we get an update here regarding the proposal and if one will work for this GH? Thanks! |
@situchan any update here? |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Testing proposals with various cases. Will update soon |
@alexpensify Could you please adjust the offer from $50 to $250, as the issue was created before August 31st when the offer letters were set at $250? Thank you. |
@tewodrosGirmaA - I've not completed the process since the payment date is tomorrow. Sorry for the confusion, but it looks like the automation got the amount wrong. I've already flagged that I will add the remaining amount as a bonus. |
@alexpensify The Contributor compensation should be split between me and @kursat as confirmed in here and here. Could you send me the offer as well? |
@alexpensify I have not yet accepted the offer and I was wondering if it would be possible to accept the offer along with an additional bonus, or if an alternate offer could be presented. I would appreciate your thoughts on this matter. |
@tienifr thanks for flagging, I've updated the compensation amounts here: Please apply for the job here: |
@tewodrosGirmaA - please accept as is, I think I can apply the bonus amount when I close the job. If I can't, then I've already noted there is a remaining $200, I can create a new job to cover the missing amount. I will take care of this tomorrow. |
I accept it, Thank you |
@alexpensify I applied, thanks! |
@alexpensify I've already applied, thanks |
Alright, @tewodrosGirmaA as promised you were paid $250 via Upwork -- Done! @tienifr and @kursat - please accept and we should be all set @allroundexperts -- please complete the checklist and we can close this GH. Thanks! |
@alexpensify Thank you so much |
Alright, @tienifr and @kursat - you have been paid via Upwork. @allroundexperts please submit a request in Chat and complete the Checklist. After, we can close this GH. Thanks! |
I think we are just waiting for payment here. |
@marcaaron no, this is open because the checklist is not completed yet. @allroundexperts -- please complete the checklist and we can close this GH. Thanks! |
@allroundexperts bumping again, we need to complete the checklist before I can close -- thanks! |
Apologies for the delay. I'll complete this today! |
Thank you @allroundexperts! |
Reviewer Checklist
Regression test
Do we 👍 or 👎? |
@allroundexperts - thanks for completing this task. @marcaaron - can you review the regression test and confirm if you agree? Thanks! |
LGTM |
Closing - the regression test has been created for this case. |
Thanks @alexpensify 🙇 |
$1,500 payment approved for @allroundexperts based on BZ summary. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The canceled workspace notification should display the original HTML character code-based name ""Hello"". It should show the same name as observed in the admin room, maintaining consistency and avoiding confusion for users.
Actual Result:
When a workspace name is set using HTML character codes "Hello", it changes to "Hello" in the canceled workspace notification. This inconsistency in the display of the workspace name can create confusion and incongruity for users.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.53-1
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
Notes/Photos/Videos: Any additional supporting documentation
screen-capture.-.2023-08-03T073415.177.mp4
Recording.1173.mp4
Expensify/Expensify Issue URL:
Issue reported by: @tewodrosGirmaA
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1691073090566039
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: