Граф коммитов

1372 Коммитов

Автор SHA1 Сообщение Дата
Mathieu Pillard 2a1eb8b1c5
Add ability to harden / soften blocks in the admin (#22827)
* Add ability to harden / soften blocks in the admin
* Use extended-choices for BlocklistSubmission ACTIONS and SIGNOFF_STATES
2024-11-13 10:55:00 +01:00
Christina Lin f2047381d0
Fixed submission-field Button Disabling (#22825)
* Fixed buttons disabling when submission-field exists but does not have data-submissions-enabled;

* ===
2024-11-06 15:37:50 -05:00
Christina Lin 9709925cd1
Explicit Option to Remove Uploaded Pastebin File (#22814) 2024-11-05 13:16:52 -05:00
Christina Lin 0175d226d6
Show Pastebin Attachment if File/Input Already Uploaded (#22813)
* Show proper pastebin attachment input if it already contains data

* lint

* simplify
2024-11-01 09:32:46 -04:00
Christina Lin 7375f1e933
Modify Button Behaviour When enable-submissions Flag is Disabled (#22779) 2024-10-31 09:40:48 -04:00
Mathieu Pillard 97fe21c536
Allow adding, viewing information about and deleting soft-blocks in the admin (#22765)
* Allow adding, viewing information about and deleting soft-blocks in the admin

Like other blocklist operations, it goes through a BlocklistSubmission, which
gains a new "block_type" field to determine what kind of block to apply for
this particular submission.

Note: If a version is already soft-blocked or hard-blocked, that version won't
be selectable when creating a new BlocklistSubmission, even of another type.
Future actions will be added to soften or harden blocks.
2024-10-29 18:49:20 +01:00
Andrew Williamson 6628df7d22
add a queue for decision actions that are held (#22788)
* rename utils/CinderAction* to actions/ContentAction*

* CinderDecision to ContentDecison

* Add a basic admin to view ContentDecisions

* Add basic queue to show decisions where action has been held
2024-10-28 13:41:16 +00:00
Christina Lin 5130dd1889
Add Waffle Flag for Submissions (#22729) 2024-10-15 09:08:59 -04:00
Christina Lin 6580bb5db7
Use setCustomValidity for File Uploads (#22697)
* Use setCustomValidity for file uploads

* remove hardcoded 200mb

* ruff format

* extraneous space

* helper function

* prettier

* test

* review

* linting
2024-09-25 09:19:35 -04:00
Christina Lin 3c29830771
Allow Zip Files to be Uploaded as Attachment (#22670)
* Allow zip files to be uploaded as attachment

* lint

* error lint?

* old test fix

* large upload test

* make test rely on variable

* linting

* check filesize through js

* linting

* data attr

* 210mb error message?
2024-09-23 08:57:03 -04:00
Andrew Williamson ddc10704fb
rm sponsored, verified (#22671)
* rm sponsored, verified

* more clean-up

* still accept obsolete groups as search params, behind a gate

* add clean up migration
2024-09-20 10:04:17 +01:00
Christina Lin c7b2dc1042
DevHub Pastebin Re-implementation (#22664)
* Added view attachment link on DevHub in relation to  #22640

* lint

* renamed attachment_link to attachment_url

* js attachment_url

* test update

* doc

* test

* dont hardcode test

* lint

* limit queries

* Use correct pk in reverse
2024-09-17 13:21:44 -04:00
Christina Lin c6026f6d89
Reviewer Tools Pastebin Re-implementation (#22640)
* Added pastebin reimplementation on reviewer tools side

* make lint

* Moved attachment upload box to own section (and available for all actions)

* Fixed css for textareas, returned datetime-wrapper

* Missing assignment

* Updated naming for files, limited to .txt and .zip, temporarily updated query number assertion

* added waffle enable-activity-log-attachments for user facing menus;

* testing

* corrected test

* Removed zip allowance

* migration conflict

* test (temp)

* import

* remove git_extraction.py from pr

* ???

* numQueries

* review changes

* lint

* prettier

* review changes

* lol lint

* review comment
2024-09-13 13:58:33 -04:00
Mathieu Pillard e29adf662c
Replace AMO favicon with Firefox logo (#22650) 2024-09-09 17:47:30 +02:00
Kevin Meinhardt 2a64618e9d
Enable Production Mode via DEBUG or docker-compose.ci.yml (#22613)
* TMP: clean bake metadata file

* SPLIT: Log UWSGI in docker compose console

Remove PID

* SPLIT: Raise error in update_assets if file not found

* Enable Production mode via DEBUG and or docker-compose.ci.yml

* Option 1: Load node_modules from statifiles directory

* Option 2: Load node_modules via django-node-asset

* separate ./static from locally built static files

* Add docs for static file serving

* TMP: fixes from code review

* Update docs/topics/development/static-files.md

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

* TMP: update docs

---------

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-09-05 16:20:03 +02:00
Christina Lin cedcc4917e
Show All Current Authors on the Review Page (#22548)
* Show all current authors on the review page

* Removed extra style

* Added tests

* ruff formatting

* ruff format

* Changed to use class rather than inline style

* Updated tests, better conditional

* Dotted underline under unlisted authors

* Removed underline, modified conditional, removed sidebar Author

* Extra space

* 300 weight font
2024-08-19 13:09:02 +01:00
Christina Lin 91a4e2c70b
Add Submit Button to Review Due Date Changes (#22555)
* Changed due_date_update to update on blur rather than on change

* Add visual indicator (button) of status of date change

* prettier

* removed extra </li>

* moved inline style to class

* Submit on click rather than onblur
2024-08-09 13:07:12 -04:00
Andrew Williamson fe1a9e3ef9
Add a filter to the review queue for due date reasons (#22558)
* Add a filter to the review queue for due date reasons

* use cleaned values of due_date_reasons for safety
2024-08-09 17:01:28 +01:00
Andrew Williamson 9a628ac360
Expose all the reasons why there is a due_date to the extensions queue (queryset) (#22530)
* set due_date_reasons bitmask when setting due_date

* add no_transforms in Version.should_have_due_date

* Only annotate Version qs when nessecary

* refactor to make VersionManager.should_have_due_date efficient

* Add flags for newly exposed reasons for due_date

* get_due_date_reason_qs -> get_due_date_reason_q_objects; add docstring

* exclude has developer reply from needs_human_review_other

* fix linelength that ruff format didn't autofix
2024-08-06 15:06:58 +01:00
dependabot[bot] 4b76b7cee4
Bump django from 4.2.13 to 4.2.14 in /requirements (#22461)
* Bump django from 4.2.13 to 4.2.14 in /requirements

Bumps [django](https://github.com/django/django) from 4.2.13 to 4.2.14.
- [Commits](https://github.com/django/django/compare/4.2.13...4.2.14)

---
updated-dependencies:
- dependency-name: django
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* rm one-time fix_missing_icons command

* fix Storage tests to not save to absolute paths

* rm unused import

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Williamson <awilliamson@mozilla.com>
2024-07-17 09:43:09 +01:00
Andrew Williamson f85937b394
split appeal job action from abuse job action (#22406)
* split appeal job action from abuse job action

* don't localise hidden activity log format labels
2024-06-25 22:56:51 +01:00
Andrew Williamson 8d1d7d471d
split resolving jobs functionality into seperate action from comment (#22375) 2024-06-18 17:27:08 +01:00
Andrew Williamson c92e6a2910
Implement resolving jobs as invalid in reviewer tools (#22278)
* only clear abuse/appeal related NHR for resolving jobs

* Allow some policies to be selectable in reviewer tools

* reset due_date after setting NHR to inactive
2024-05-30 15:02:13 +01:00
Mathieu Pillard 686ad55a2d
Remove `fill="context-fill" and `fill-opacity="context-fill-opacity"` from Hero SVGs (#22267)
This was preventing them from being displayed when loaded as <img> in Chrome
and some image viewers. We are not using them as masks so that shouldn't matter.
2024-05-22 10:52:13 +02:00
Andrew Williamson 00d1e42275
show special flag for nhr from abuse reports in review queue (#22151)
* show special flag for nhr from abuse reports in review queue

* refactor NeedsHumanReview REASON constants into Choices

* split single flag into three types of abuse/appeal

* optimize queryset construction
2024-04-23 20:10:27 +01:00
Mathieu Pillard 229e8dab84
Handle "original" size icon being absent when disabling, falling back on largest size (#22126) 2024-04-18 17:54:15 +02:00
Kevin Meinhardt 26be57fcaf
Improve usability of verify email page when verification is pending or timedout (#22084)
* Remove code snippet filter for email history in verify email flow

* Improve UI usability for verify email flow with pending/timedout state

* Extend suppressed email verification timeout to 1 minute

* Update src/olympia/devhub/templates/devhub/verify_email.html

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

* Update src/olympia/devhub/templates/devhub/verify_email.html

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

* Update src/olympia/devhub/templates/devhub/verify_email.html

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

* Update src/olympia/devhub/templates/devhub/verify_email.html

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>

* Add css truncation to email history table cells

* Increase email verification timeout to 10 minutes and refresh rate to 30 seconds

* Add amo_devhub suffix to SUPPORT_EMAIL

* Fix support link test

* Improve confirmation delivered screen on email suppression flow:

- hide table if email is confirmed delivered
- add a "success" header to indicate it all went well

---------

Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
2024-04-02 10:05:38 +02:00
Kevin Meinhardt 56f6d9d370
Use proper css syntax for table styles on verify-email page (#22047) 2024-03-20 16:50:21 +01:00
Kevin Meinhardt 059193a3d3
Simplify socketlabs check for status and messaging when something goes wrong. (#22005)
* Simplify socketlabs check for status and messaging when something goes wrong.

* Fix comments

* Add more details and formatting to suppressed email status table.

* Copy fixes and updates

* Update src/olympia/devhub/templates/devhub/verify_email.html

Co-authored-by: Francesco Lodolo <flodolo@mozilla.com>

---------

Co-authored-by: Mozilla Add-ons Robot <addons-dev-automation+github@mozilla.com>
Co-authored-by: Francesco Lodolo <flodolo@mozilla.com>
2024-03-19 17:30:54 +01:00
Andrew Williamson ba5fdc81a4
Expose escalation reason in reviewer tools (#21929) 2024-02-28 11:38:34 +00:00
Kevin Meinhardt 4ca4686edd
Implement email verification flow (#21603)
* feat(): add email_verification property to UserProfile

* feat(users): add useful properties to SuppressedEmailVerification model

* feat(devhub): add email verification flow view logic

* chore(): use date only values for socketlabs recipient search
2024-01-08 13:13:41 +01:00
Kevin Meinhardt e6f7967539
feat(): add notification displaying suppressed emails (#21599) 2023-12-19 12:29:56 +01:00
dependabot[bot] ab9f944c57
Bump prettier from 3.0.3 to 3.1.0 (#21426)
* Bump prettier from 3.0.3 to 3.1.0

Bumps [prettier](https://github.com/prettier/prettier) from 3.0.3 to 3.1.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.0.3...3.1.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump that back

* Prettify

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mathieu Pillard <mpillard@mozilla.com>
2023-12-11 12:18:29 +01:00
Mathieu Pillard 7b136ae4e3
Fix stats menu items indentation (#21419) 2023-11-09 21:31:51 +01:00
Andrew Williamson 8a07cad47b
replace force disable/enable buttons with actions (#21382)
* replace force disable/enable buttons with actions

* update api docs

* move activity logging back to reviewer tools

* expose enable/disable activity log to developers

* correctly stringify activity log in reviewer tools important changes

* rm unused line

* review fixes
2023-11-07 17:30:58 +00:00
Mathieu Pillard e5de4ecc7c
Merge per-application categories, add command to merge and clean up obsolete ones (#21212)
Expose categories flat in API v5, add compatibility shim for previous versions.
2023-10-26 14:43:31 +02:00
Mathieu Pillard 562ce3dc2f
Appeal form & logic for abuse reports handled by Cinder (#21291)
* Appeal form & logic for abuse reports handled by Cinder
2023-10-11 15:30:15 +02:00
Mathieu Pillard ecaa646e82
Trigger change event to reset custom validity when Firefox for Android is checked (#21295)
The modal calls e.preventsDefault(), so the click never goes through,
preventing change event from firing normally, which in turn leaves our custom
validity enabled and triggers a validation error on submit. Manually triggering
change works around this
2023-10-10 14:45:38 +02:00
Mathieu Pillard 01ac2a3df3
Additional l10n tweaks to android modal / footer (#21284) 2023-10-05 23:30:51 +02:00
Mathieu Pillard 6654db6bbf
Fix modals to appear in fixed position, and ensure Android compat gets checked (#21279)
* Fix modals to appear in fixed position, and ensure Android compat gets checked

* No need to wrap this
2023-10-05 15:55:33 +02:00
Mathieu Pillard 3122b60698
Show modal warning at submission time when Android compatibility is checked (#21224)
* Show modal warning at submission time when Android compatibility is checked
2023-10-04 10:32:12 +02:00
Mathieu Pillard 8d00231f29
Harmonize footers across devhub (and frontend pages a bit more) (#21244)
* Harmonize footers across devhub (and frontend pages a bit more)

Changes:
- Copy over fonts from addons-frontend, use Inter everywhere
- Use photon-footer everywhere, adding a light blue margin before
  to make the transition less aggressive and match header
- Fix error pages block to align content correctly
- Translate strings in footer
2023-10-02 16:12:51 +02:00
Mathieu Pillard 0444929d2f
Center the site notice text in devhub new landing (#21200) 2023-09-15 14:42:57 +02:00
Andrew Williamson a02d62857f
fix reviewer warning message (#21199) 2023-09-15 11:52:21 +01:00
Andrew Williamson ffd40c0ada
call review watching endpoint on setinterval (#21178) 2023-09-13 15:56:56 +01:00
Mathieu Pillard 1d264b7bf8
Limit compatibility for Firefox for Android (#21152)
* Limit compatibility for Firefox for Android

- Extensions are either compatible with Fennec or Fenix >= 119.0a1, unless they are recommended/line.
- If they are compatible with Fennec, they strict compatibility is enabled.
2023-09-12 11:10:17 +02:00
Andrew Williamson fdc043d856
return usage_per_version adus as list to preserve order (#21066)
* return usage_per_version adus as list to preserve order

* prettier fix
2023-08-16 13:21:47 +01:00
Andrew Williamson 11cf428802
add canned reasons to blocksubmission admin (#20978)
* add canned reasons to blocksubmission admin

* build on ReviewActionReason for canned response instead

* Fix reviewers tests that didn't create a complete ReviewActionReason

* in migration default canned_block_reason field to '' for existing records
2023-07-13 13:55:46 +01:00
Mathieu Pillard 117dd81743
Split New Theme submission from the rest (#20968)
* Split New Theme Submission from the rest

For simplicity new version creation are not modified in this commit,
because we're already able to serve different content for them, or
gate them however we'd like, as we already have the add-on available.

* Display error message when trying to use theme submission flow to upload a non-theme

Note: this is not intended as a security measure, it's only to be
nice to users who accidentally ended up in the wrong flow.
2023-07-11 14:05:12 +02:00
Andrew Williamson 80bdb33b8f
allow reason & url to be changed/cleared on blocklistsubmission (#20941) 2023-07-07 18:13:24 +01:00