diff --git a/app/templates/admin/code-quality-dashboard.html b/app/templates/admin/code-quality-dashboard.html index af59241c..f15e5ef6 100644 --- a/app/templates/admin/code-quality-dashboard.html +++ b/app/templates/admin/code-quality-dashboard.html @@ -2,6 +2,7 @@ {% extends "admin/base.html" %} {% from 'shared/macros/alerts.html' import loading_state, error_state, alert_dynamic %} {% from 'shared/macros/headers.html' import page_header_flex, refresh_button %} +{% from 'shared/macros/dropdowns.html' import action_dropdown, dropdown_item %} {% block title %}Code Quality Dashboard{% endblock %} @@ -14,44 +15,18 @@ {% block content %} {% call page_header_flex(title='Code Quality Dashboard', subtitle='Unified code quality tracking: architecture, security, and performance') %} {{ refresh_button(variant='secondary') }} - {# Custom dropdown: disabled state + template switching not supported by macro #} -
+ Dropdown Macros: Use macros from shared/macros/dropdowns.html for consistent dropdown styling.
+
Standard dropdown with items. Uses its own Alpine.js state.
+Dropdown that supports disabled/loading state. Uses external Alpine.js state from parent component.
+Icon-only dropdown commonly used for row actions in tables.
+Primary, secondary, and ghost variants.
+