Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit ae80494

Browse files
UX: Improve rough edges of AI usage page (#1014)
* UX: Improve rough edges of AI usage page * Ensure all text uses I18n * Change from <button> usage to <DButton> * Use <AdminConfigAreaCard> in place of custom card styles * Format numbers nicely using our number format helper, show full values on hover using title attr * Ensure 0 is always shown for counters, instead of being blank * FEATURE: Load usage data after page load Use ConditionalLoadingSpinner to hide load of usage data, this prevents us hanging on page load with a white screen. * UX: Split users table, and add empty placeholders and page subheader * DEV: Test fix
1 parent a4440c5 commit ae80494

File tree

7 files changed

+391
-245
lines changed

7 files changed

+391
-245
lines changed

app/controllers/discourse_ai/admin/ai_usage_controller.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ class AiUsageController < ::Admin::AdminController
66
requires_plugin "discourse-ai"
77

88
def show
9+
end
10+
11+
def report
912
render json: AiUsageSerializer.new(create_report, root: false)
1013
end
1114

0 commit comments

Comments
 (0)