Skip to content

Conversation

@fisher-alice
Copy link
Contributor

@fisher-alice fisher-alice commented Dec 16, 2025

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 blocks document.referrer from being set in the new tab (security measure). However, document.referrer is allowed with JS navigation so I went with using Button to keep code change more simple. See 65e389a

After 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):
pythonlab-dark

Screencast of clicking on report abuse button in Web Lab 2 (dark):

weblab2-dark-click-button.mov

Links

Testing story

Tested locally on weblab2 and pythonlab standalone projects.

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Creation Checklist:

  • Tests provide adequate coverage
  • Privacy impacts have been documented
  • Security impacts have been documented
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Follow-up work items (including potential tech debt) are tracked and linked

@fisher-alice fisher-alice marked this pull request as ready for review December 16, 2025 17:53
@fisher-alice fisher-alice requested a review from a team December 16, 2025 17:54
@fisher-alice fisher-alice merged commit a1b7d5c into staging Dec 16, 2025
6 checks passed
@fisher-alice fisher-alice deleted the alice/report-abuse-codebridge branch December 16, 2025 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants