addons
addons copied to clipboard
Convert ReportAbuseButton to setUIState
For QA: ensure the Report abuse button on the add-on detail page still works without regressions.
The ReportAbuseButton
relies on custom actions to set internal state. These actions should be removed and replaced with setUIState
.
In https://github.com/mozilla/addons/issues/2059, we will potentially have two Report abuse buttons on the same page. To support that we would need to enhance the current actions/reducers or just switch to setUIState()
and set the component ID appropriately. Let's do the latter.
┆Issue is synchronized with this Jira Task
Some complimentary clean-up will happen in https://github.com/mozilla/addons/issues/12655
hello @kumar303 , I'd like to take this up. Is this issue still available?
Hi @ruchikabgosain, thanks for your interest. This isn't a good issue to work on because abuse reporting might move away from https://addons.mozilla.org/ and into Firefox itself (see https://bugzilla.mozilla.org/show_bug.cgi?id=1540175). However, we aren't sure yet. I suggest looking at contrib: welcome
patches as those are mostly ready to go.
Okay @kumar303! Will do that 🙇
Old Jira Ticket: https://mozilla-hub.atlassian.net/browse/ADDFRNT-154