refactor(search): extract ChipType to chip-types.ts; audit NL fixtures

Pre-implementation step for #743: ChipType union extracted from
InterpretationChipRow and +page.svelte into shared chip-types.ts;
resolvedTags/tagsApplied neutral defaults added to test fixtures.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-06-06 22:49:54 +02:00
committed by marcel
parent 5a09cd4cb4
commit 39ff63921d
5 changed files with 9 additions and 4 deletions

View File

@@ -13,8 +13,10 @@ const interpretation = {
dateFrom: '1914-01-01',
dateTo: '1918-12-31',
keywords: ['krieg'],
resolvedTags: [{ id: '33333333-3333-3333-3333-333333333333', name: 'Weltkrieg', color: 'sage' }],
rawQuery: 'Was hat Walter an Emma im Krieg geschrieben?',
keywordsApplied: true
keywordsApplied: true,
tagsApplied: true
};
const nlResponse = {