Implement Web Assets' theme system and selection, and add 'light' theme #118

Merged
Márton Lente merged 97 commits from martonlente/extensions-website:ui/theme-light into main 2024-05-08 14:20:07 +02:00

97 Commits

Author SHA1 Message Date
5b65c0de92 Merge remote-tracking branch 'upstream/main' into ui/theme-light 2024-05-08 14:09:04 +02:00
fa31cceb03 UI: Move btn toggle theme to nav global links starts 2024-05-08 14:04:54 +02:00
58c6497039 UI: Map style component stars bg colour to design system colour
Map style component stars bg colour to design system colour so that it improves consistency, and work with both dark and light themes.
2024-05-07 13:10:16 +02:00
0bffac51a9 UI: Change component list filter bg colour
Change component list filter background colour for better contrast with dark and light themes.
2024-05-07 12:51:22 +02:00
abc44fd83d UI: Improve component hero style text is-flatpage
Improve component hero styles when the component is applied on a flatpage. This reolves contrast issues with dark and light themes too.
2024-05-07 12:42:19 +02:00
e59400be69 UI: Redo improve web-assets v2 theme light contrast for component hero 2024-05-07 12:34:22 +02:00
f8580c4584 UI: Improve template base toggle theme btn base 2024-05-07 12:11:18 +02:00
1d00ba5d8b Merge branch 'ui/issue105' into ui/theme-light 2024-05-07 12:05:17 +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
d0e5dff9b0 Merge branch 'ui/web-assets-v2-upgrade' into ui/theme-light 2024-05-02 10:11:50 +02:00
1e5f401b1f Merge remote-tracking branch 'upstream/main' into ui/web-assets-v2-upgrade 2024-04-30 12:42:02 +02:00
539c7cc461 Fix: Fix template extensions_review_detail missing endif 2024-04-30 12:01:46 +02:00
71ea4889d8 UI: Improve template users tabs and and nav pills styles
Improve template users tabs and and nav pills styles to match UI patterns that are present in Web Assets.
2024-04-30 11:54:42 +02:00
756f77b9ff Fix: Fix template component users settings tabs icon teams 2024-04-30 10:59:39 +02:00
a4ad95e2a7 Fix: Fix template abusereport_detail status badges display
Fixes Abuse Report status in detail page looked like an alert, not a badge.
2024-04-30 10:56:47 +02:00
22b5f6f1ea Fix: Fix template component card post-merge issues 2024-04-29 14:50:11 +02:00
fb59373324 Merge remote-tracking branch 'upstream/main' into ui/web-assets-v2-upgrade 2024-04-29 14:49:07 +02:00
972dc822c7 Fix: Fix post web-assets v2 upgrade template home cards items per row responsive 2024-04-29 14:37:24 +02:00
d5e96618cc Fix: Fix style variable lh-sm 2024-04-26 17:03:16 +02:00
e3a4ad45ae Merge remote-tracking branch 'upstream/main' into ui/web-assets-v2-upgrade 2024-04-26 16:57:17 +02:00
7c98bc87b0 UI: Improve template component rating vertical spacings 2024-04-26 12:29:54 +02:00
952abb26ce UI: Improve style mixin style-rich-text vertical spacing 2024-04-26 12:13:34 +02:00
6e6cceade5 UI: Change template flatpage default padding 2024-04-26 11:34:09 +02:00
f4e4ee9459 Refactor: Change post web-assets v2 upgrade explicit size values to variable based sizing
Change post web-assets v2 upgrade explicit size values to variable based sizing for modularity.
2024-04-26 11:32:14 +02:00
945848af63 Refactor: Organize style post web-assets v2 upgrade partials
Refactor and organize style partials and rules after web-assets v2 upgrade.
2024-04-26 11:24:49 +02:00
b9fbb187c9 UI: Improve style post web-assets v2 upgrade comments vertical spacings 2024-04-26 11:23:32 +02:00
6dd96705bf Fix: Fix template post web-assets v2 upgrade component rating vertical spacings 2024-04-26 11:22:00 +02:00
0eb26e7fa8 Refactor: Cleanup and remove post web-assets v2 upgrade project styles ext-card
Cleanup and remove redundant project-specific styles ext-card after web-assets v2 upgrade.
2024-04-25 18:06:38 +02:00
f8fe358397 UI: Improve post web-assets v2 upgrade template manage component cards layout and style 2024-04-25 17:09:12 +02:00
c0625ce0cf Fix: Fix post web-assets upgrade v2 template list layout 2024-04-25 17:07:43 +02:00
7a06add6f0 Refactor: Change template and style component card to web-assets base
Refactor template card to use web-assets component markup and styles.
2024-04-23 18:57:30 +02:00
b36a6109e0 Chore: Update git submodule web-assets to v2.0.0-alpha.8 2024-04-23 15:40:54 +02:00
c533b69e0c Fix: Fix post web-assets upgrade v2 icon name i-image 2024-04-23 15:32:04 +02:00
1099d40664 UI: Improve style extensions previews-list-item-thumbnail vertical spacing 2024-04-23 15:30:23 +02:00
9d4d248ebd UI: Add style rating-form select set stars colours to warning 2024-04-23 15:26:59 +02:00
38d60a5939 UI: Improve component add_previews thumbnail sizing to match fields height 2024-04-23 15:06:03 +02:00
1d7fb4e986 UI: Add template detail condition check if description exists 2024-04-23 14:53:09 +02:00
952ffc484c Fix: Fix style cards tags gaps horizontal layout 2024-04-23 14:43:03 +02:00
de847a348d UI: Improve style activity comment-form btn submit sizing 2024-04-23 14:24:41 +02:00
f651cb01e4 UI: Improve post web-assets upgrade v2 style profile-avatar sizing 2024-04-23 14:23:01 +02:00
f881a655c9 UI: Improve post web-assets upgrade v2 style details padding 2024-04-23 14:22:28 +02:00
d03d345d2b UI: Fix post web-assets upgrade v2 style activity icons position 2024-04-23 14:21:50 +02:00
70e288448d UI: Improve web-assets v2 theme light contrast for component hero 2024-04-22 18:50:15 +02:00
1b808dfc39 UI: Implement web-assets v2 theme switcher
Implement web-assets v2 theme switcher, and initialize a light-theme for the UI.
2024-04-22 18:13:51 +02:00
32131a10ce UI: Improve post web-assets upgrade v2 cards p vertical spacing 2024-04-22 18:02:45 +02:00
f7f84aeeeb Chore: Run post web-assets v2 upgrade script bash helper units conversion and cleanup
Run post web-assets v2 upgrade script bash helper for converting sizes and units to new rem sizing, and implement 4 px based sizing.
2024-04-22 17:45:59 +02:00
3900a6c718 UI: Improve post web-assets upgrade v2 site-release-badge positon 2024-04-22 17:02:22 +02:00
c9450a9232 UI: Fix post web-assets v2 upgrade style utiltity color-accent 2024-04-22 16:54:33 +02:00
0a8baa76b0 UI: Fix post web-assets v2 upgrade badges sizings 2024-04-22 16:36:18 +02:00
fd1a36b3d0 UI: Improve style ext detail description pre vertical spacing 2024-04-22 16:32:42 +02:00
3ec67bdfd5 UI: Improve post web-assets v2 upgrade style form-control type file height 2024-04-22 16:11:46 +02:00
ef6af9fb9d UI: Change template draft_finalise btn save draft type 2024-04-22 16:07:38 +02:00
69c7c7d655 UI: Improve post web-assets v2 upgrade component add_previews layout 2024-04-22 16:05:21 +02:00
f9975ce593 UI: Fix post web-assets v2 upgrade component extension edit_detail_card layout 2024-04-22 15:59:07 +02:00
75c389634a UI: Fix post web-assets v2 upgrade forms checkbox layout 2024-04-22 15:47:36 +02:00
d3b885ab27 UI: Fix post web-assets v2 upgrade stars vertical spacings 2024-04-22 15:47:25 +02:00
ced22901c4 Chore: Update git submodule web-assets to v2.0.0-alpha.7 2024-04-19 16:38:12 +02:00
78bca26239 Merge remote-tracking branch 'upstream/main' into web-assets-v2-upgrade 2024-04-19 16:26:08 +02:00
21c8b1b823 UI: Add style extension detail aside post web-assets v2 upgrade changes 2024-03-11 18:29:06 +01:00
c096a8eec2 UI: Add style navigation global post web-assets v2 upgrade changes 2024-03-11 17:36:53 +01:00
43ca92d5f9 Chore: Run post web-assets v2 upgrade script bash helper 2024-03-11 15:58:52 +01:00
0622f388f4 Chore: Change post web-assets v2 upgrade style main imports 2024-03-11 15:35:32 +01:00
6b6a71c698 Chore: Update git submodule web-assets branch v2 2024-03-11 15:31:59 +01:00
30144cc535 Config: Init git submodule web-assets branch v2 upgrade 2024-03-11 15:18:10 +01:00