Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX: update admin popular theme list #23134

Merged
merged 2 commits into from Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
39 changes: 24 additions & 15 deletions app/assets/javascripts/discourse-common/addon/lib/popular-themes.js
@@ -1,4 +1,11 @@
export const POPULAR_THEMES = [
{
name: "Air",
value: "https://github.com/discourse/discourse-air",
preview: "https://discourse.theme-creator.io/theme/awesomerobot/air-theme",
description: "A clean and modern theme for Discourse.",
meta_url: "https://meta.discourse.org/t/discourse-air-theme/197703",
},
{
name: "Graceful",
value: "https://github.com/discourse/graceful",
Expand All @@ -12,16 +19,17 @@ export const POPULAR_THEMES = [
value: "https://github.com/discourse/material-design-stock-theme",
preview: "https://discourse.theme-creator.io/theme/tshenry/material-design",
description:
"Inspired by Material Design, this theme comes with several color palettes (incl. a dark one).",
"Inspired by Material Design, this theme comes with several color palettes.",
meta_url: "https://meta.discourse.org/t/material-design-stock-theme/47142",
},
{
name: "Minima",
value: "https://github.com/discourse/minima",
preview: "https://discourse.theme-creator.io/theme/awesomerobot/minima",
description: "A minimal theme with reduced UI elements and focus on text.",
name: "Mint",
value: "https://github.com/discourse/discourse-mint-theme",
preview: "https://discourse.theme-creator.io/theme/awesomerobot/mint",
description:
"A minty colored theme with featured homepage categories and a search banner.",
meta_url:
"https://meta.discourse.org/t/minima-a-minimal-theme-for-discourse/108178",
"https://meta.discourse.org/t/mint-a-modern-theme-for-discourse/202822",
},
{
name: "Sam's Simple Theme",
Expand Down Expand Up @@ -52,7 +60,7 @@ export const POPULAR_THEMES = [
component: true,
},
{
name: "Gifs Search",
name: "GIFs Search",
value: "https://github.com/discourse/discourse-gifs",
description: "Adds a button to easily search and insert GIFs in posts.",
meta_url: "https://meta.discourse.org/t/discourse-gifs-component/158738",
Expand All @@ -68,6 +76,15 @@ export const POPULAR_THEMES = [
meta_url: "https://meta.discourse.org/t/discourse-category-banners/86241",
component: true,
},
{
name: "Tag Banners",
value: "https://github.com/discourse/discourse-tag-banners",
preview:
"https://discourse.theme-creator.io/theme/awesomerobot/tag-banners",
description: "Show banners on tag pages using your existing tag details.",
meta_url: "https://meta.discourse.org/t/tag-banners/124240",
component: true,
},
{
name: "Kanban Board",
value: "https://github.com/discourse/discourse-kanban-theme",
Expand All @@ -77,14 +94,6 @@ export const POPULAR_THEMES = [
"https://meta.discourse.org/t/kanban-board-theme-component/118164",
component: true,
},
{
name: "Hamburger Theme Selector",
value: "https://github.com/discourse/discourse-hamburger-theme-selector",
description:
"Displays a theme selector in the hamburger menu provided there is more than one user-selectable theme.",
meta_url: "https://meta.discourse.org/t/hamburger-theme-selector/61210",
component: true,
},
{
name: "Sidebar Theme Toggle",
value: "https://github.com/discourse/discourse-sidebar-theme-toggle",
Expand Down
Expand Up @@ -111,7 +111,7 @@ acceptance("Admin - Themes - Install modal", function (needs) {

assert.ok(
query(
'.popular-theme-item[data-name="Minima"] .popular-theme-buttons button'
'.popular-theme-item[data-name="Mint"] .popular-theme-buttons button'
),
"install button is shown for not installed themes"
);
Expand Down