UX: Look and feel changes (#29245)

This PR:

- Removes components from being displayed in the card
- Adds a DMenu to house previous footer actions
- Allows themes to be updated from this grid, with an animation and different border to show the update is happening
- Stops position of cards changing when default changes
- Fixes outline colour not changing when default changes
- Show a global notice on the page when previewing a theme
- Allows updating a theme from the grid, and showing an indicator of what theme needs to be updated
- Moves "Set as default" to the dropdown for the theme
- Show screenshot for theme if it is available
- Prevent page reloading when updating the theme
- Fixes theme install modal on grid page
- Temporarily remove sorting of default theme to the top
This commit is contained in:
Jordan Vidrine
2024-10-28 21:25:17 -05:00
committed by GitHub
parent 4d7f70b923
commit f902e0fdd7
12 changed files with 296 additions and 195 deletions

View File

@@ -4740,6 +4740,8 @@ en:
safe_mode:
enabled: "Safe mode is enabled, to exit safe mode close this browser window"
theme_preview_notice: "You are currently previewing a theme, close this browser tab or window to return to your normal site configuration."
image_removed: "(image removed)"
pause_notifications:
@@ -5694,8 +5696,8 @@ en:
move_up: "Move up"
move_down: "Move down"
look_and_feel:
title: "Look & feel"
description: "Themes, components, and color schemes can be used to customise and brand your Discourse site, giving it a distinctive style."
title: "Look and feel"
description: "Customize and brand your Discourse site, giving it a distinctive style."
themes:
title: "Themes"
themes_intro: "Install a new theme to get started, or create your own from scratch using these resources."
@@ -5929,12 +5931,14 @@ en:
set_default_theme: "Set default"
default_theme: "Default theme"
set_default_success: "Default theme set to %{theme}"
install_success: "%{theme} installed successfully!"
inactive_components: "Unused components:"
selected:
one: "%{count} selected"
other: "%{count} selected"
cancel: "Cancel"
broken_theme_tooltip: "This theme has errors in its CSS, HTML or YAML"
broken_theme: "Disable broken theme"
disabled_component_tooltip: "This component has been disabled"
default_theme_tooltip: "This theme is the site's default theme"
updates_available_tooltip: "Updates are available for this theme"
@@ -6001,6 +6005,7 @@ en:
update_to_latest: "Update to Latest"
check_for_updates: "Check for Updates"
updating: "Updating…"
update_success: "%{theme} Update complete"
up_to_date: "Theme is up-to-date, last checked:"
has_overwritten_history: "Current theme version no longer exists because the Git history has been overwritten by a force push."
add: "Add"