From be5c37a6d41716dbc26b06b476e20b49a42537a4 Mon Sep 17 00:00:00 2001 From: "Ella E." Date: Wed, 4 Sep 2024 20:18:23 -0600 Subject: [PATCH] UX: Apply admin UI to Badges (#28724) * UX: Add a description about badges * WIP: Apply admin UI guidelines * FIX: Add routeModels to dbutton Allows routeModels to be passed to a DButton along with route, so we can use them as a LinkTo replacement in more places. Also fix up badges admin page header. * UX: Reorder action buttons * UX: Change header hierarchy to better align page's content structure * UX: Update copy and remove unnecessary UI elements * UX: Adjust header's icon spacing * UX: Fix the header action buttons on mobile * Apply prettier --------- Co-authored-by: Martin Brennan --- .../components/admin-page-action-button.gjs | 4 ++ .../admin/addon/routes/admin-badges/index.js | 14 ----- .../admin/addon/templates/admin-badges.hbs | 55 +++++++++++-------- .../addon/templates/admin-badges/award.hbs | 2 +- .../addon/templates/admin-badges/index.hbs | 23 +------- .../addon/templates/admin-badges/show.hbs | 4 +- .../discourse/app/components/d-button.gjs | 11 +++- .../common/admin/admin_page_header.scss | 22 +++++++- .../stylesheets/common/admin/badges.scss | 19 +------ config/locales/client.en.yml | 8 +-- 10 files changed, 78 insertions(+), 84 deletions(-) diff --git a/app/assets/javascripts/admin/addon/components/admin-page-action-button.gjs b/app/assets/javascripts/admin/addon/components/admin-page-action-button.gjs index e593d447d83..fe9edd1cecf 100644 --- a/app/assets/javascripts/admin/addon/components/admin-page-action-button.gjs +++ b/app/assets/javascripts/admin/addon/components/admin-page-action-button.gjs @@ -6,6 +6,7 @@ export const AdminPageActionButton =