fix(tests): restore green contract suite

Drop the legacy credits_added message label per the hard-cut rule, switch
three remaining Font Awesome 4 icons to FA5 solid, and align two widget
contracts with the badge rule grouping and renderer list from fc04bf65.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Fable 5 committed 2026-10-31 14:18:01 +08:00
1 parent b32b56f8bc
commit 48e54dc115
7 files changed
+10 -15

No files matched your search

+1 -2
View File
@@ -34,7 +34,6 @@ final class MessageTypes {
'ban_appeal' => __('禁封申诉', 'aksrt'),
'report' => __('举报', 'aksrt'),
'withdraw' => __('提现', 'aksrt'),
'credits_added' => __('积分增加', 'aksrt'),
'ticket_new' => __('新工单', 'aksrt'),
'ticket_reply' => __('工单回复', 'aksrt'),
'ticket_urge' => __('工单催单', 'aksrt'),
@@ -58,7 +57,7 @@ final class MessageTypes {
if (in_array($type, ['report', 'ban_appeal', 'asset_balance_decrease', 'asset_points_decrease'], true)) {
return 'danger';
}
if (in_array($type, ['withdraw', 'level_up', 'medal', 'auth_apply_reply', 'download_ready', 'credits_added', 'asset_balance_increase', 'asset_points_increase'], true)) {
if (in_array($type, ['withdraw', 'level_up', 'medal', 'auth_apply_reply', 'download_ready', 'asset_balance_increase', 'asset_points_increase'], true)) {
return 'success';
}
if (in_array($type, ['system', 'notice'], true)) {
+1 -1
View File
@@ -103,7 +103,7 @@ final class WidgetDefinition {
'sidebar' => __('此模块只适合添加到侧边栏', 'aksrt'),
];
if (isset($reminders[$this->size])) {
$header[] = ['type' => 'submessage', 'style' => 'warning', 'content' => '<i class="fa fa-fw fa-info-circle"></i>' . esc_html($reminders[$this->size])];
$header[] = ['type' => 'submessage', 'style' => 'warning', 'content' => '<i class="fas fa-fw fa-info-circle"></i>' . esc_html($reminders[$this->size])];
}
$common = CommonFields::for_definition($this->common);
if ($common && $this->fields) {