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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user