fix(helpdesk): reset card margin-bottom and tighten risk level thresholds

- margin-bottom: 0 on cards to override article shell default
- Level thresholds stricter: high >= 55 (was 70), medium >= 25 (was 40)
  so fewer customers appear as 'low risk' and issues surface earlier

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-06 00:55:41 +02:00
parent 4dfe98f40a
commit 97dbc7f57b
3 changed files with 5 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ class RiskRadarServiceTest extends TestCase
$result = RiskRadarService::buildRiskRadar($tickets, [], 90);
$this->assertSame('high', $result['customers'][0]['risk_level']);
$this->assertGreaterThanOrEqual(70, $result['customers'][0]['risk_score']);
$this->assertGreaterThanOrEqual(55, $result['customers'][0]['risk_score']);
}
public function testLowRiskLevel(): void
@@ -100,7 +100,7 @@ class RiskRadarServiceTest extends TestCase
$result = RiskRadarService::buildRiskRadar($tickets, [], 90);
$this->assertSame('low', $result['customers'][0]['risk_level']);
$this->assertLessThan(40, $result['customers'][0]['risk_score']);
$this->assertLessThan(25, $result['customers'][0]['risk_score']);
}
public function testSlaOverdueDetection(): void