discourse/app/assets/stylesheets/admin
Alan Guo Xiang Tan 87e695fc53
FEATURE: Add site traffic dashboard section (#40023)
Makes the redesigned dashboard Site traffic section real for the core
traffic summary.

- In scope: live pageview headline, comparison trend, logged-in share
KPI, and stacked traffic chart.
- Out of scope: top referrers, top countries, and narrative traffic
insights. Those remain placeholder UI for a follow-up.
- Reuses the existing report stacked chart for both the dashboard
section and `/admin/reports/site_traffic`.
- Extends the existing site traffic report data contract instead of
introducing a dashboard-only chart shape.
- Keeps traffic aggregation, KPI calculation, and trend eligibility on
the backend.
- Supports dashboard preset and custom date ranges with inclusive date
windows.
- Ships traffic data in this section payload shape:

```json
{
  "id": "traffic",
  "data": {
    "kpis": {
      "browser_pageviews": {
        "value": 30,
        "percent_change": 900,
        "comparison_period": {
          "start_date": "2026-04-28",
          "end_date": "2026-04-30"
        }
      },
      "logged_in_share": {
        "value": 33
      }
    },
    "pageview_series": [
      {
        "req": "page_view_logged_in_browser",
        "label": "Logged in",
        "color": "#4B3CE0",
        "data": [
          { "x": "2026-05-01", "y": 10 }
        ]
      }
    ]
  }
}
```
2026-05-19 14:08:21 +08:00
..
admin-dashboard-skeleton.scss UI: Loading skeleton for dashboard (#39989) 2026-05-14 12:42:52 +08:00
admin_base.scss UI: Loading skeleton for dashboard (#39989) 2026-05-14 12:42:52 +08:00
admin_bulk_users_delete_modal.scss
admin_config_area.scss UX: Formkit fixes (#39526) 2026-04-27 16:29:49 +02:00
admin_config_color_palettes.scss FEATURE: Enable new color palette edit page (#34566) 2025-09-01 05:37:34 +03:00
admin_config_components.scss DEV: Use reusable d-table instead of admin-only styles (#33531) 2025-07-10 19:58:04 -06:00
admin_dashboard.scss FEATURE: Add site traffic dashboard section (#40023) 2026-05-19 14:08:21 +08:00
admin_filter.scss DEV: Replace all @breakpoint with @viewport.* (#32649) 2025-05-12 12:52:45 +01:00
admin_filter_controls.scss FEATURE: Upcoming changes part 1 (#34617) 2025-10-30 10:46:14 +10:00
admin_intro.scss DEV: Replace all @breakpoint with @viewport.* (#32649) 2025-05-12 12:52:45 +01:00
admin_new_category_setup.scss A11Y: switch category card to focus-within (#38836) 2026-03-25 12:25:04 -04:00
admin_report.scss UX: refactor User Visit report and layout for all reports (#37627) 2026-03-06 08:53:17 +08:00
admin_report_chart.scss UX: Use DSegmentedControl for new report page period selector (#39570) 2026-04-27 12:34:46 +10:00
admin_report_counters.scss DEV: Introduce postcss minmax transform (#31885) 2025-03-18 19:28:52 +00:00
admin_report_inline_table.scss
admin_report_radar.scss
admin_report_stacked_chart.scss UX: refactor User Visit report and layout for all reports (#37627) 2026-03-06 08:53:17 +08:00
admin_report_stacked_line_chart.scss
admin_report_table.scss UX: minor tweaks to table columns (#37845) 2026-02-16 17:21:02 +01:00
admin_reports.scss UX: refactor User Visit report and layout for all reports (#37627) 2026-03-06 08:53:17 +08:00
admin_section_landing_page.scss UX: Admin dashboard & reports improvements (#37598) 2026-02-24 09:20:38 +08:00
admin_table.scss UX: make admin list item headings clickable (#34772) 2025-09-15 09:08:50 -04:00
admin_user_fields.scss FEATURE: Allow hiding user fields on signup form (#34672) 2025-09-15 10:42:07 +08:00
api.scss FEATURE: improve UX of API key generation (#37789) 2026-02-17 12:03:13 +11:00
backups.scss UX: fix width on hidden-upload-field on the admin backup btn (#34103) 2025-08-06 10:08:29 +02:00
badges.scss FEATURE: Show editable category type settings in tab(s) (#38143) 2026-03-05 11:44:43 +10:00
color-palette-editor.scss FIX: Use valid CSS value for border-radius (#37431) 2026-02-02 16:07:35 +11:00
color_palettes.scss UX: make admin list item headings clickable (#34772) 2025-09-15 09:08:50 -04:00
customize-install-theme.scss UX: Install theme modal tweaks (#39855) 2026-05-08 12:47:41 -04:00
customize.scss FEATURE: Translate theme component translatable fields (#39282) 2026-04-15 21:12:14 +08:00
customize_show_schema.scss FEATURE: porting type object to site settings (#32706) 2025-05-13 14:30:24 -03:00
dashboard.scss UX: refactor User Visit report and layout for all reports (#37627) 2026-03-06 08:53:17 +08:00
discourse_id.scss FEATURE: Discourse ID setting page (#36316) 2025-12-11 16:04:09 +01:00
emails.scss UX: minor improvements to the admin email log layout (#34735) 2025-09-05 10:11:45 -04:00
flags.scss DEV: Move mobile-specific admin styles to admin css bundle (#31529) 2025-02-27 17:20:55 +00:00
json_schema_editor.scss UX: Content border color (#33908) 2025-07-28 16:17:06 -05:00
mini_profiler.scss
penalty.scss DEV: Update linting (#32836) 2025-05-21 12:02:52 +02:00
plugins.scss UX: on plugin index, unlink preinstall, simplify install banner (#33910) 2025-07-29 09:04:07 -04:00
schema_field.scss UX: improve schema setting editor layout (#37058) 2026-01-14 14:50:23 +01:00
schema_setting_editor.scss UX: improve schema setting editor layout (#37058) 2026-01-14 14:50:23 +01:00
search.scss UX: Improve admin search padding (#34280) 2025-08-13 17:00:53 +10:00
settings.scss FEATURE: Allow upcoming changes to control site setting defaults (#38815) 2026-04-08 13:05:44 +10:00
sidebar.scss UX: Fix token issues with admin sidebar (#39946) 2026-05-12 15:50:18 -05:00
site-settings.scss UX: replace old slide-in admin menu behavior with DMenu (#39334) 2026-04-17 09:16:06 -04:00
staff_logs.scss UX: refactor admin action logs buttons (#38292) 2026-03-06 09:11:51 -05:00
upcoming-changes.scss FEATURE: Allow upcoming changes to control site setting defaults (#38815) 2026-04-08 13:05:44 +10:00
users.scss UX: refactor user delete button to dropdown (#39413) 2026-05-04 09:38:39 -04:00