test(admin-panel): add product context to AI trace warnings
- Added `productName` field to `AdminAiWarning` in test data - Updated warning test cases to include product context for better traceability
This commit is contained in:
@@ -86,16 +86,17 @@ void main() {
|
|||||||
durationMs: 1880,
|
durationMs: 1880,
|
||||||
retryCount: 1,
|
retryCount: 1,
|
||||||
chunkCount: 3,
|
chunkCount: 3,
|
||||||
warnings: const [
|
warnings: const [
|
||||||
AdminAiWarning(
|
AdminAiWarning(
|
||||||
code: 'low_confidence',
|
code: 'low_confidence',
|
||||||
kind: 'parse',
|
kind: 'parse',
|
||||||
title: 'Låg parsningskvalitet',
|
title: 'Låg parsningskvalitet',
|
||||||
message: 'Modellens säkerhet är låg, granska raden manuellt.',
|
message: 'Modellens säkerhet är låg, granska raden manuellt.',
|
||||||
severity: 'warning',
|
severity: 'warning',
|
||||||
location: 'Steg: AI-parser',
|
location: 'Steg: AI-parser',
|
||||||
itemIndex: 5,
|
itemIndex: 5,
|
||||||
),
|
productName: 'Test Product',
|
||||||
|
),
|
||||||
AdminAiWarning(
|
AdminAiWarning(
|
||||||
code: 'no_match',
|
code: 'no_match',
|
||||||
kind: 'match',
|
kind: 'match',
|
||||||
@@ -105,6 +106,7 @@ void main() {
|
|||||||
severity: 'warning',
|
severity: 'warning',
|
||||||
location: 'Steg: matchning mot dina produkter',
|
location: 'Steg: matchning mot dina produkter',
|
||||||
itemIndex: 7,
|
itemIndex: 7,
|
||||||
|
productName: 'Another Test Product',
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
legacyWarnings: const ['parse:low_confidence', 'match:no_match'],
|
legacyWarnings: const ['parse:low_confidence', 'match:no_match'],
|
||||||
|
|||||||
Reference in New Issue
Block a user