Add report abuse on Codebridge lab share view #70047
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the report abuse button on the share view of Web Lab 2 and Python Lab projects.
I wanted to use
LinkButton, but this made the code more complicated since the the browser blocksdocument.referrerfrom being set in the new tab (security measure). However,document.referreris allowed with JS navigation so I went with usingButtonto keep code change more simple. See 65e389aAfter update
Screencast of clicking on report abuse button in Python Lab (light):
pythonlab-light-click-button.mov
Screenshot of report abuse button in Python Lab (dark):

Screencast of clicking on report abuse button in Web Lab 2 (dark):
weblab2-dark-click-button.mov
Links
Testing story
Tested locally on
weblab2andpythonlabstandalone projects.Deployment strategy
Follow-up work
Privacy
Security
Caching
PR Creation Checklist: