Post Web Assets v2 upgrade UI fixes and improvements #114

Merged
Márton Lente merged 35 commits from martonlente/extensions-website:ui/issue105 into main 2024-05-07 16:33:28 +02:00

35 Commits

Author SHA1 Message Date
73e98b0234 UI: Add template extensions submit noscript behaviour
Add template extensions submit noscript behaviour to enable extensions' upload when JavaScript is disabled in the browser.
2024-05-07 15:19:11 +02:00
9e11c79a3d Merge remote-tracking branch 'upstream/main' into ui/issue105 2024-05-06 18:57:52 +02:00
d14e2ab248 Fix: Fix template common base notifications icon colour unread 2024-05-06 15:53:04 +02:00
401cdac634 Fix: Fix template notification_list link absolute url 2024-05-06 15:52:29 +02:00
3d884a37f7 Chore: Update git submodule web-assets to v2.0.0-alpha.9 2024-05-06 15:05:58 +02:00
3b88b0b95a Merge remote-tracking branch 'upstream/main' into ui/issue105 2024-05-06 14:53:44 +02:00
4b907e6c80 Fix: Fix js app function commentFormSelect btn state changes 2024-05-06 14:30:37 +02:00
e31955d146 Fix: Fix add template notification_list form btn mar all as read csrf token 2024-05-06 14:21:40 +02:00
8859fb4af3 Chore: Add template notification_list todo back-end add notification detail link 2024-05-06 14:20:07 +02:00
67f98f3e6e UI: Add component notifications dropdown item View user 2024-05-06 14:17:05 +02:00
0303de2f13 UI: Add style component notifications is-read overrides 2024-05-06 12:00:16 +02:00
5bd05da3c9 UI: Improve style forms invalid-feedback list indenting 2024-05-06 11:50:01 +02:00
14abe5d1bf UI: Improve style form control file sizing 2024-05-06 11:43:01 +02:00
a443c098ad UI: Improve template component blender_version input layout 2024-05-03 19:30:11 +02:00
e0a900a745 UI: Add template new_version_finalise field release notes placeholder 2024-05-03 19:23:52 +02:00
66a5950a4d UI: Improve template components box and cards paddings consistency 2024-05-03 18:59:11 +02:00
f1a2692ec1 Fix: Fix js app funcion agreeWithTerms console errors on other pages 2024-05-03 18:26:29 +02:00
2a1b11c245 UI: Improve js app function agreeWithTerms selector specificity 2024-05-03 18:21:42 +02:00
def0943c44 UI: Add templates components form fields placeholders
Add templates components form fields placeholders. Placeholder texts' are as specific as possible based on templates' architecture (so that shared fields have generic placeholder texts).
2024-05-03 18:20:42 +02:00
10078a42af Add test for blender_version_max in manifest (#97) 2024-05-03 17:27:56 +02:00
47fcc56480 Report compatibility issue: link to a prefilled comment (#97) 2024-05-03 17:27:56 +02:00
9cb16ac16b Report rating: remove version field from the form 2024-05-03 17:27:56 +02:00
84ba9c7c9f Fix KeyError: 'type' for extensions without meaningful statuses in approval queue
Normally this shouldn't happen, but due to an incomplete data migration #94
we currently have extensions that have only CMT items and miss the AWR one.
2024-05-03 17:27:56 +02:00
9715c5a8b9 Approval queue: sort by status (#89) 2024-05-03 17:27:56 +02:00
9fa54ff9ae Convert to draft (Closes #98) 2024-05-03 17:27:56 +02:00
4c5c0bf0bc Forms: remove cols,rows; add classes and placeholder in the template
This should help with UI improvements listed in
#105
2024-05-03 17:27:56 +02:00
3d239ab426 Admin: only show notification email previews in DEBUG 2024-05-03 17:27:56 +02:00
5e26f46969 Revert "Deps: install faker and factory in prod too (used in the admin)"
This reverts commit bddbcd3ad9.
2024-05-03 17:27:56 +02:00
6a720cd700 Deps: install faker and factory in prod too (used in the admin) 2024-05-03 17:27:56 +02:00
566368a421 Basic email template for notifications (#96)
Based on the proposal #93

Email subjects change to the following:

```
Add-on approved: "Genuinely Disgusting"
New comment on Add-on "Genuinely Disgusting"
Add-on rated: "Genuinely Disgusting"
Add-on reported: "Genuinely Disgusting"
Add-on rating reported: "Genuinely Disgusting"
Add-on changes requested: "Genuinely Disgusting"
Add-on review requested: "Genuinely Disgusting"
```

Notification emails can also be viewed in the admin `Email previews` section (with fake objects constructed and passed into email template contexts).

Indicating why the email was sent is not in this change because we currently don't store why **precisely** (can only guess it's either because of `moderators` group or extension follow, the state of either can change after the notification was generated). This can be part of the `Notification` records however, after that the reason can be included in the email.

Reviewed-on: #96
Reviewed-by: Oleg-Komarov <oleg-komarov@noreply.localhost>
2024-05-03 17:27:56 +02:00
1c80c59176 Chore: Update git submodule assets_shared 2024-05-03 10:33:28 +02:00
6a80284386 UI: Update template notification_list to web-assets component base 2024-05-02 19:13:23 +02:00
c40caf1b8f Chore: Update git submodule assets_shared 2024-05-02 19:09:49 +02:00
4b274407c5 UI: Add js app function agreeWithTerms
Add JavaScript app function agreeWith terms to enable button submit if agree with terms button is checked.
2024-05-02 14:33:51 +02:00
f27fd7678d Refactor: Wrap js theme into an IIFE to avoid global namespace pollution 2024-05-02 13:06:50 +02:00