This commit is contained in:
Javier Casares 2026-06-03 06:30:49 +00:00
commit 4402f3570d
2 changed files with 1683 additions and 382 deletions

View file

@ -117,6 +117,16 @@
color: #155724;
}
.mra-badge-alert {
background: #f8d7da;
color: #721c24;
}
.mra-badge-dismissed {
background: #e8e8e8;
color: #50575e;
}
.mra-badge-match-count {
background: #721c24;
color: #fff;
@ -398,3 +408,55 @@
display: block;
margin-bottom: 6px;
}
/* -----------------------------------------------------------------------
Alerts page
----------------------------------------------------------------------- */
/* Alert domain list in alerts table */
.mra-alert-domains {
margin: 0;
padding: 0;
list-style: none;
}
.mra-alert-domains li {
margin-bottom: 4px;
font-size: 13px;
}
.mra-alert-domains small {
color: #787c82;
}
/* Alerts table */
.mra-alerts-table {
margin-top: 12px;
}
.mra-alerts-table th {
font-weight: 600;
}
/* Dismiss inline form row */
.mra-dismiss-row td {
background: #f6f7f7;
padding: 12px 16px;
}
.mra-dismiss-form-inner {
max-width: 600px;
}
.mra-dismiss-form-inner label {
display: block;
font-weight: 600;
margin-bottom: 6px;
font-size: 13px;
}
.mra-dismiss-form-inner textarea {
display: block;
width: 100%;
box-sizing: border-box;
}

View file

@ -147,5 +147,21 @@
e.preventDefault();
openModal( $( this ).data( 'id' ) );
} );
// Dismiss toggle — Alerts page.
$( document ).on( 'click', '.mra-dismiss-toggle', function () {
var targetId = $( this ).data( 'target' );
var $row = $( '#' + targetId );
$row.prop( 'hidden', function ( i, v ) { return !v; } );
$( this ).text( $row.prop( 'hidden' ) ? 'Dismiss' : 'Cancel' );
} );
// Cancel button inside dismiss form row.
$( document ).on( 'click', '.mra-dismiss-cancel', function () {
var $row = $( this ).closest( 'tr.mra-dismiss-row' );
var rowId = $row.attr( 'id' );
$row.prop( 'hidden', true );
$( '[data-target="' + rowId + '"]' ).text( 'Dismiss' );
} );
} );
} ( jQuery ) );