feat(frontend): upgrade report dialog experience
Replace manual report links with automatic target association, improve validation and evidence uploads, and remove retired report UI code. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
59ddf677b6
commit
80aecab586
10 files changed
+1121
-462
No files matched your search
@@ -300,6 +300,13 @@ trait ScriptsPart1b {
|
||||
if (is_singular() || $is_profile_page) {
|
||||
$report_js_path = get_template_directory() . '/assets/js/report.js';
|
||||
if (file_exists($report_js_path)) {
|
||||
$report_css_path = get_template_directory() . '/assets/css/frontend/report.css';
|
||||
wp_enqueue_style(
|
||||
'aksrt-report',
|
||||
$base_uri . '/assets/css/frontend/report.css',
|
||||
[$core_dep],
|
||||
file_exists($report_css_path) ? (string) filemtime($report_css_path) : $version
|
||||
);
|
||||
wp_enqueue_script(
|
||||
'aksrt-report',
|
||||
$base_uri . '/assets/js/report.js',
|
||||
|
||||
Reference in new issue
Block a user