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 <martin@discourse.org>
This commit is contained in:
Ella E.
2024-09-04 20:18:23 -06:00
committed by GitHub
parent 06d749eadd
commit be5c37a6d4
10 changed files with 78 additions and 84 deletions

View File

@@ -7017,9 +7017,10 @@ en:
name: Name
badge: Badge
display_name: Display Name
description: Description
description: Badges reward users for their activities, contributions, and achievements to recognize, validate, and encourage positive behavior and engagement within the community.
long_description: Long description
badge_type: Badge type
group_settings: Group Settings
badge_grouping: Group
badge_groupings:
modal_title: Badge Groupings
@@ -7084,9 +7085,8 @@ en:
with_post_time: <span class="username">%{username}</span> for post in %{link} at <span class="time">%{time}</span>
with_time: <span class="username">%{username}</span> at <span class="time">%{time}</span>
badge_intro:
title: "Select an existing badge or create a new one to get started"
what_are_badges_title: "What are badges?"
badge_query_examples_title: "Badge query examples"
title: "Choose a badge or create a new one"
description: "Start by selecting an existing badge to customize, or create a brand new badge"
mass_award:
title: Bulk Award
description: Award the same badge to many users at once.