From 73315457a6403c927998dea98ccd138dd6034d78 Mon Sep 17 00:00:00 2001 From: genja Date: Sun, 5 Jul 2026 02:19:38 +0200 Subject: [PATCH 01/13] fixed resonsiveness issue --- .../ui/topic-autocomplete/topic-autocomplete.component.html | 1 + .../ui/topic-autocomplete/topic-autocomplete.component.scss | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.html b/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.html index e7a2f20f..d23c2dc0 100644 --- a/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.html +++ b/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.html @@ -9,6 +9,7 @@ (click)="$event.preventDefault()" (keydown.enter)="submitCurrentValue(); $event.preventDefault()" (keydown.tab)="onKeydownTab($any($event))" /> + Füge ein Keyword hinzu @if (searchControl.value.trim()) { + } @else { + + } + +
+ + + + text_fields + Extrahierte Keywords + + + account_tree + Topic Mapping + + +
+ +
+ +
+ +
+ +
+ + } +
Breite Keywords
Coarse Keywords
-
Fine Keywords
+
+ Fine Keywords +
Eigene Keywords
@@ -70,121 +151,146 @@
@if (broadKeywords().length > 0) { - - @for (keyword of broadKeywords(); track keyword) { - - {{ keyword }} - +
+ + @for ( + keyword of broadKeywords(); + track keyword.llm_keyword.keyword + ) { + + } - +
} @else { -

–

+

Nichts extrahiert

}
@if (coarseKeywords().length > 0) { - - @for (keyword of coarseKeywords(); track keyword) { - - {{ keyword }} - +
+ @for ( + keyword of coarseKeywords(); + track keyword.llm_keyword.keyword + ) { + + } - +
} @else { -

–

+

Nichts extrahiert

}
@if (fineKeywords().length > 0) { - - @for (keyword of fineKeywords(); track keyword) { - - {{ keyword }} - +
+ @for ( + keyword of fineKeywords(); + track keyword.llm_keyword.keyword + ) { + + } - +
} @else { -

–

+

Nichts extrahiert

}
-
- - +
@if (manualKeywords().length > 0) { - @for (keyword of manualKeywords(); track keyword) { - - {{ keyword }} - cancel - + @for ( + keyword of manualKeywords(); + track keyword.llm_keyword.keyword + ) { +
+ + + +
} + } @else if (loadingNewKeyword()) { +
+ + +
+ } @else { +

Nichts hinzugefügt

} - +
- - @if (extractedKeywordsExist()) { -
- @if (areAllExtractedSelected()) { - - } @else { - - } - -
- } - @if (isExtracting()) {
search diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.scss b/webapp/src/app/modules/keywords-search/keywords-search.component.scss index 3162536f..d92e54be 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.scss +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.scss @@ -6,25 +6,135 @@ } .tab-content { - padding: 0.5rem 0; display: grid; + margin-top: 0.5rem; grid-template-columns: 5fr 1fr; gap: 0.5rem; + align-items: start; } - .full-width { width: 100%; } +.extract-btn { + white-space: nowrap; +} + .actions { display: flex; justify-content: center; } +.keywords-toolbar { + display: flex; + flex-direction: column; + background: var(--sg-background-muted, #f4f5f7); + + ::ng-deep app-topic-legend .topic-legend { + width: 100%; + margin: 0; + } +} + +.toolbar-controls { + display: flex; + align-items: center; + justify-content: space-between; + gap: 0.75rem; + flex-wrap: wrap; + padding: 0.5rem 0.75rem; + background: var(--sg-background-muted, #f4f5f7); +} +.toolbar-wrapper { + display: grid; + grid-template-columns: 3fr 1.3fr; + border-left: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.08)); +} +.toolbar-group { + display: flex; + align-items: center; + gap: 0.6rem; +} + +.toolbar-group--select button { + display: flex; + align-items: center; + gap: 0.35rem; + font-size: 0.8rem; + line-height: 30px; + border-radius: 20px; + padding: 0 14px; + + mat-icon { + font-size: 20px; + width: 20px; + height: 20px; + } +} + +.toolbar-divider { + width: 1px; + align-self: stretch; + background: var(--sg-divider, rgba(0, 0, 0, 0.12)); + display: none; +} + +@media (min-width: 640px) { + .toolbar-divider { + display: block; + } +} + +mat-button-toggle-group { + border-radius: 20px; + overflow: hidden; +} + +/* Tablet / phone: stack the toolbar and go full-width */ +@media (max-width: 768px) { + .toolbar-controls { + flex-direction: column; + align-items: stretch; + } + + .toolbar-group { + justify-content: center; + } + + .toolbar-group--select button { + width: 100%; + justify-content: center; + } + + .toolbar-group--view { + justify-content: center; + } +} + +/* Phone: icon-only buttons to save space */ +@media (max-width: 480px) { + .btn-label { + display: none; + } + + .toolbar-group--select button { + width: auto; + padding: 0 10px; + } +} +mat-button-toggle-group { + flex-wrap: wrap; +} + +.toggle-text { + margin-left: 0.35rem; +} + .extraction-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; + border: 0; } .keyword-card { @@ -44,22 +154,23 @@ .keyword-table { display: flex; flex-direction: column; - gap: 0.5rem; - margin: 0.5rem 0; } .table-head { + border-top: 2px solid var(--sg-divider, rgba(0, 0, 0, 0.12)); + padding-top: 0.5rem; display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; grid-template-rows: auto; column-gap: 1rem; border-bottom: 2px solid var(--sg-divider, rgba(0, 0, 0, 0.12)); padding-bottom: 0.5rem; + background: var(--sg-background-muted, #f4f5f7); } .head-cell { min-width: 0; - text-align: center; /* Center header text */ + text-align: center; } .extracted-header { @@ -71,21 +182,6 @@ align-self: end; } -.own-header { - grid-column: 4; - grid-row: 1 / span 2; - display: flex; - flex-direction: column; - gap: 0.35rem; -} - -.own-header-title { - font-size: 0.95rem; - font-weight: 600; - color: var(--sg-text-primary); - text-align: center; /* Center own header title */ -} - .sub-cell { font-weight: 500; color: var(--sg-text-secondary); @@ -94,7 +190,7 @@ letter-spacing: 0.05em; align-self: end; grid-row: 2; - text-align: center; /* Center sub-cell text */ + text-align: center; } .broad-sub { @@ -109,6 +205,7 @@ .manual-sub { grid-column: 4; } + .keyword-input-row { margin-left: 0.5rem; width: 100%; @@ -121,30 +218,23 @@ &.compact { .small-field { flex: 10; - // collapse the outline field to a compact, chip-like height ::ng-deep .mat-mdc-text-field-wrapper { padding: 0 0.6rem; } - ::ng-deep .mat-mdc-form-field-flex { min-height: 8px; align-items: center; } - ::ng-deep .mat-mdc-form-field-infix { min-height: 8px; padding: 1rem 0; } - - // hide the hint/error subscript strip to remove extra height ::ng-deep .mat-mdc-form-field-subscript-wrapper { display: none; } - ::ng-deep input.mat-mdc-input-element { font-size: 0.8rem; } - ::ng-deep .mat-mdc-form-field-label, ::ng-deep mat-label { font-size: 1rem; @@ -159,15 +249,10 @@ flex: 1; .mat-icon { - font-size: 18px; - width: 18px; - height: 18px; - line-height: 18px; - } - - ::ng-deep .mat-mdc-button-touch-target { - width: 28px; - height: 28px; + font-size: 26px; + width: 26px; + height: 26px; + line-height: 26px; } } } @@ -179,10 +264,10 @@ column-gap: 1rem; row-gap: 0.4rem; align-items: start; - border-left: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.08)); /* Left border for columns */ + border-left: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.08)); + //background: var(--sg-background-muted, #f4f5f7); } -/* Add vertical separators between columns */ .table-col { display: flex; flex-direction: column; @@ -195,16 +280,44 @@ border-right: none; } &:nth-child(3) { - border-right: 5px solid var(--sg-divider, rgba(0, 0, 0, 0.08)); + border-right: 5px solid var(--sg-divider, rgba(0, 0, 0, 0.1)); } - mat-chip-listbox { + ::ng-deep app-topic-chip { width: 100%; - margin-top: 0.5rem; + } + + ::ng-deep app-topic-chip:not(.topic-chip--active) { + width: 100%; + opacity: 0.4; + } +} +.thick-border { + border-right: 5px solid var(--sg-divider, rgba(0, 0, 0, 0.1)); +} +.keyword-chip-stack { + display: flex; + flex-direction: column; + gap: 0.5rem; + margin-top: 0.5rem; + width: 100%; +} + +.manual-chip-row { + display: flex; + align-items: center; + width: 100%; + + app-topic-chip { + flex: 1 1 auto; + min-width: 0; + } + + button[mat-icon-button] { + flex: 0 0 auto; } } -/* Make chips removable and add hover effect */ .compact-chip { font-size: 1rem; padding: 0.2rem 0.6rem; @@ -215,11 +328,9 @@ animation: popIn 0.2s ease-in-out; cursor: default; - // Add removable indicator and hover effect &.mat-mdc-chip-option { .mat-mdc-chip-action { padding: 0 4px; - .mat-mdc-chip-action-label { padding: 0 4px; display: flex; @@ -227,8 +338,6 @@ gap: 4px; } } - - // Show remove button on hover for removable chips &:hover { ::ng-deep .mat-mdc-chip-remove { opacity: 1; @@ -236,7 +345,6 @@ } } - // Style for removable chips ::ng-deep .mat-mdc-chip-remove { opacity: 0; transition: opacity 0.2s ease; @@ -287,17 +395,19 @@ display: flex; flex-wrap: wrap; gap: 0.5rem; - justify-content: flex-end; + justify-content: space-between; margin-top: 0.5rem; button { + display: flex; + justify-content: center; font-size: 0.75rem; padding: 0 12px; line-height: 30px; mat-icon { - font-size: 18px; - width: 18px; - height: 18px; + font-size: 26px; + width: 26px; + height: 26px; } } } @@ -308,13 +418,77 @@ margin-top: 0.5rem; } -/* Responsive: stack columns on small screens */ +/* ============================================================ + RESPONSIVE BREAKPOINTS + ============================================================ */ + +/* Tablet: soften columns, keep 4 columns but tighter */ +@media (max-width: 1024px) { + .table-head, + .table-body { + column-gap: 0.5rem; + } + + .table-col { + padding: 0.4rem; + } + + .compact-chip { + width: 100%; + } +} + +/* Small tablet / large phone: stack columns */ @media (max-width: 768px) { + .content { + padding: 0.75rem; + } + + .tab-content { + grid-template-columns: 1fr; + } + + .extract-btn { + width: 100%; + justify-content: center; + } + .table-head, .table-body { grid-template-columns: 1fr; } + .table-head { + display: none; /* labels are redundant once stacked; see column titles below */ + } + + .table-col { + border-right: none; + border-bottom: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.08)); + padding: 0.75rem 0.25rem; + + &:nth-child(3) { + border-right: none; + border-bottom: 3px solid var(--sg-divider, rgba(0, 0, 0, 0.08)); + } + + &:last-child { + border-bottom: none; + } + + /* Re-introduce a column label since .table-head is hidden */ + &::before { + content: attr(data-col-label); + font-weight: 500; + font-size: 0.85rem; + text-transform: uppercase; + letter-spacing: 0.05em; + color: var(--sg-text-secondary); + margin-bottom: 0.35rem; + display: block; + } + } + .extracted-header { grid-column: 1; grid-row: 1; @@ -325,37 +499,66 @@ grid-row: 2; } - .broad-sub { - grid-column: 1; - grid-row: 3; - } - .coarse-sub { - grid-column: 1; - grid-row: 4; - } - .fine-sub { - grid-column: 1; - grid-row: 5; - } - .actions { align-self: center; justify-content: flex-start; } - .search-container { - justify-content: flex-start; + .search-container, + .select-all-container { + justify-content: stretch; + flex-direction: column; } - .table-col { - border-right: none; /* Remove column borders on mobile */ - border-bottom: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.08)); + .search-btn, + .select-all-container button { + width: 100%; + } - &:last-child { - border-bottom: none; + .view-toggle-row { + justify-content: center; + text-align: center; + } + + mat-button-toggle-group { + width: 100%; + + ::ng-deep .mat-button-toggle { + flex: 1; } } } + +/* Phone: tighten further, reduce chip/font sizes */ +@media (max-width: 480px) { + .content { + padding: 0.5rem; + gap: 0.5rem; + } + + .keyword-card { + padding: 0.35rem; + } + + .sub-cell, + .toggle-text { + font-size: 0.8rem; + } + + .compact-chip { + font-size: 0.85rem; + min-height: 24px; + } + + .empty-state { + font-size: 0.8rem; + } + + .status-message { + font-size: 0.8rem; + } +} + /* Source expansion panel */ .source-expansion { margin: 0.75rem 0; @@ -406,22 +609,19 @@ background: rgba(0, 0, 0, 0.03); } } + .progress-container { margin-top: 1rem; padding: 0.5rem 0; - // Make the progress bar container relative for the shimmer overlay mat-progress-bar { position: relative; - overflow: hidden; // keeps the shimmer inside the bar + overflow: hidden; - // --- Set the bar fill to a constant blue --- - // Using the primary blue (adjust to your preferred "hell blue") ::ng-deep .mat-progress-bar-fill::after { - background-color: #2196f3; // bright blue + background-color: #2196f3; } - // --- Shimmer overlay (a moving highlight) --- &::after { content: ''; position: absolute; @@ -429,7 +629,7 @@ left: 0; width: 100%; height: 100%; - pointer-events: none; // allow clicks to pass through + pointer-events: none; background: linear-gradient( 105deg, transparent 0%, diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.ts b/webapp/src/app/modules/keywords-search/keywords-search.component.ts index 03a02061..e2dcc526 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.ts +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.ts @@ -9,7 +9,6 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { FormBuilder, ReactiveFormsModule } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; import { MatCardModule } from '@angular/material/card'; -import { MatChipListboxChange, MatChipsModule } from '@angular/material/chips'; import { MatDividerModule } from '@angular/material/divider'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatIconModule } from '@angular/material/icon'; @@ -28,10 +27,27 @@ import { TopicsService } from '../../api/api/topics.service'; import { KeywordsTopicsRequest } from '../../api/model/keywordsTopicsRequest'; import { KeywordEntryWithTopic } from '../../api/model/keywordEntryWithTopic'; import { TopicAutocompleteComponent } from '../../shared/ui/topic-autocomplete/topic-autocomplete.component'; - +import { TopicChipComponent } from '../../shared/ui/topic-chip/topic-chip.component'; +import { TopicLegendComponent } from '../../shared/ui/topic-legend/topic-legend.component'; +import { Topic } from '../../api/model/topic'; +import { + MatButtonToggleModule, + MatButtonToggleGroup, +} from '@angular/material/button-toggle'; +import { + topicHierarchyColor, + TopicHierarchyColorInput, +} from '../../resolvers/utils/topic-colors'; +import { + buildTopicLegendGroups, + TopicLegendGroup, + TopicLegendTopic, +} from '../../resolvers/utils/topic-legend'; +import { MatTooltipModule } from '@angular/material/tooltip'; +import { A11yModule } from '@angular/cdk/a11y'; type InputMode = 'url' | 'text'; type KeywordCategory = 'broad' | 'coarse' | 'fine' | 'manual'; - +type KeywordView = 'llm' | 'topic'; @Component({ selector: 'app-keywords-search', imports: [ @@ -41,12 +57,17 @@ type KeywordCategory = 'broad' | 'coarse' | 'fine' | 'manual'; MatInputModule, MatButtonModule, MatIconModule, - MatChipsModule, MatDividerModule, MatCardModule, MatExpansionModule, MatProgressBarModule, TopicAutocompleteComponent, + TopicChipComponent, + TopicLegendComponent, + MatButtonToggleModule, + MatButtonToggleGroup, + MatTooltipModule, + A11yModule, ], templateUrl: './keywords-search.component.html', styleUrl: './keywords-search.component.scss', @@ -67,50 +88,16 @@ export class KeywordsSearchComponent { private readonly fineKeywordEntries = signal([]); private readonly manualKeywordEntries = signal([]); - readonly broadKeywords = computed(() => - this.broadKeywordEntries().map((item) => this.getKeywordLabel(item)), - ); - readonly coarseKeywords = computed(() => - this.coarseKeywordEntries().map((item) => this.getKeywordLabel(item)), - ); - readonly fineKeywords = computed(() => - this.fineKeywordEntries().map((item) => this.getKeywordLabel(item)), - ); - readonly manualKeywords = computed(() => - this.manualKeywordEntries().map((item) => this.getKeywordLabel(item)), - ); + readonly broadKeywords = computed(() => this.broadKeywordEntries()); + readonly coarseKeywords = computed(() => this.coarseKeywordEntries()); + readonly fineKeywords = computed(() => this.fineKeywordEntries()); + readonly manualKeywords = computed(() => this.manualKeywordEntries()); readonly selectedKeywords = signal([]); readonly isExtracting = signal(false); + readonly loadingNewKeyword = signal(false); readonly extractionSource = signal(null); - // Single place mapping a category name to its label signal and its - // backing entries signal. Replaces four near-identical computed()s and - // a category switch statement that used to live below. - private readonly categoryKeywordsMap: Record< - KeywordCategory, - Signal - > = { - broad: this.broadKeywords, - coarse: this.coarseKeywords, - fine: this.fineKeywords, - manual: this.manualKeywords, - }; - private readonly categoryEntriesMap: Record< - KeywordCategory, - WritableSignal - > = { - broad: this.broadKeywordEntries, - coarse: this.coarseKeywordEntries, - fine: this.fineKeywordEntries, - manual: this.manualKeywordEntries, - }; - - readonly selectedBroadKeywords = this.selectedInCategory('broad'); - readonly selectedCoarseKeywords = this.selectedInCategory('coarse'); - readonly selectedFineKeywords = this.selectedInCategory('fine'); - readonly selectedManualKeywords = this.selectedInCategory('manual'); - readonly extractedKeywordsExist = computed( () => this.broadKeywords().length > 0 || @@ -133,6 +120,23 @@ export class KeywordsSearchComponent { readonly progress = signal(0); readonly statusMessage = signal(''); + readonly keywordView = signal('llm'); + readonly subfieldLegendVisible = signal(true); + readonly subfieldLegendExpanded = signal(false); + + get topicLegendGroups(): TopicLegendGroup[] { + const topics = [ + ...this.broadKeywordEntries(), + ...this.coarseKeywordEntries(), + ...this.fineKeywordEntries(), + ...this.manualKeywordEntries(), + ] + .map((entry) => entry.topic_mapping?.topic) + .filter((topic): topic is Topic => Boolean(topic)) + .map((topic) => this.toTopicLegendTopic(topic)); + + return buildTopicLegendGroups(topics); + } constructor( private readonly formBuilder: FormBuilder, @@ -188,6 +192,7 @@ export class KeywordsSearchComponent { this.handleStatusEvent(event); break; case 'keywords': + console.log(event.keywords); if (event.keywords) this.addExtractedKeyword(event.keywords); break; case 'completed': @@ -220,9 +225,12 @@ export class KeywordsSearchComponent { this.fineKeywordEntries.set([]); this.websocketService.close(); this.isExtracting.set(false); + this.loadingNewKeyword.set(false); // Keep manual, but remove selected that are not in manual this.selectedKeywords.set( - this.selectedKeywords().filter((k) => this.manualKeywords().includes(k)), + this.selectedKeywords().filter((k) => + this.getKeywordLabels(this.manualKeywords()).includes(k), + ), ); this.updateQueryParams(); } @@ -295,15 +303,17 @@ export class KeywordsSearchComponent { private keywordExists(keyword: string): boolean { const normalized = this.normalizeKeyword(keyword); return [ - ...this.broadKeywords(), - ...this.coarseKeywords(), - ...this.fineKeywords(), - ...this.manualKeywords(), + ...this.getKeywordLabels(this.broadKeywords()), + ...this.getKeywordLabels(this.coarseKeywords()), + ...this.getKeywordLabels(this.fineKeywords()), + ...this.getKeywordLabels(this.manualKeywords()), ].some((k) => this.normalizeKeyword(k) === normalized); } // Add manually from Keywords tab addKeywordFromInput(keyword: string): void { + this.loadingNewKeyword.set(true); + const normalizedKeyword = keyword.trim(); if (!normalizedKeyword) return; @@ -335,7 +345,7 @@ export class KeywordsSearchComponent { ...this.selectedKeywords(), normalizedKeyword, ]); - + this.loadingNewKeyword.set(false); // Explicit enrichment trigger for new keywords this.enrichManualKeywordsWithTopics([normalizedKeyword]); this.updateQueryParams(); @@ -350,29 +360,40 @@ export class KeywordsSearchComponent { this.updateQueryParams(); } - onCategoryChange( - category: KeywordCategory, - event: MatChipListboxChange, - ): void { - const newSelection = (event.value as string[]) || []; - const otherCategories = ( - Object.keys(this.categoryKeywordsMap) as KeywordCategory[] - ).filter((c) => c !== category); - const otherSelected = otherCategories.flatMap((c) => { - const keywords = this.categoryKeywordsMap[c](); - return this.selectedKeywords().filter((k) => keywords.includes(k)); - }); - const updated = [...otherSelected, ...newSelection]; - this.selectedKeywords.set(this.uniqueKeywords(updated)); + toggleKeywordSelection(keyword: KeywordEntryWithTopic): void { + const label = this.getKeywordLabel(keyword); + const nextSelection = this.selectedKeywords().includes(label) + ? this.selectedKeywords().filter((value) => value !== label) + : [...this.selectedKeywords(), label]; + + this.selectedKeywords.set(this.uniqueKeywords(nextSelection)); + this.updateQueryParams(); + } + + isKeywordSelected(keyword: KeywordEntryWithTopic): boolean { + const normalized = this.normalizeKeyword(this.getKeywordLabel(keyword)); + return this.selectedKeywords().some( + (value) => this.normalizeKeyword(value) === normalized, + ); + } + + removeManualKeyword(keyword: KeywordEntryWithTopic): void { + const label = this.getKeywordLabel(keyword); + this.manualKeywordEntries.set( + this.filterKeywordEntries(this.manualKeywordEntries(), label), + ); + this.selectedKeywords.set( + this.selectedKeywords().filter((value) => value !== label), + ); this.updateQueryParams(); } selectAllExtracted(): void { const all = [ - ...this.selectedManualKeywords(), - ...this.broadKeywords(), - ...this.coarseKeywords(), - ...this.fineKeywords(), + ...this.getKeywordLabels(this.manualKeywords()), + ...this.getKeywordLabels(this.broadKeywords()), + ...this.getKeywordLabels(this.coarseKeywords()), + ...this.getKeywordLabels(this.fineKeywords()), ]; this.selectedKeywords.set(this.uniqueKeywords(all)); this.updateQueryParams(); @@ -380,7 +401,7 @@ export class KeywordsSearchComponent { deselectAllExtracted(): void { this.selectedKeywords.set( - this.uniqueKeywords(this.selectedManualKeywords()), + this.uniqueKeywords(this.getKeywordLabels(this.manualKeywords())), ); this.updateQueryParams(); } @@ -393,7 +414,7 @@ export class KeywordsSearchComponent { this.sourceUrl.set(null); // Keep only selected keywords that are in the manual list - const manualSet = new Set(this.manualKeywords()); + const manualSet = new Set(this.getKeywordLabels(this.manualKeywords())); this.selectedKeywords.set( this.selectedKeywords().filter((k) => manualSet.has(k)), ); @@ -409,9 +430,9 @@ export class KeywordsSearchComponent { areAllExtractedSelected(): boolean { const allExtracted = [ - ...this.broadKeywords(), - ...this.coarseKeywords(), - ...this.fineKeywords(), + ...this.getKeywordLabels(this.broadKeywords()), + ...this.getKeywordLabels(this.coarseKeywords()), + ...this.getKeywordLabels(this.fineKeywords()), ]; return allExtracted.every((k) => this.selectedKeywords().includes(k)); } @@ -432,16 +453,6 @@ export class KeywordsSearchComponent { this.applyExtractedKeywords(keywords); } - onKeywordRemoved(category: KeywordCategory, keyword: string): void { - const entries = this.categoryEntriesMap[category]; - entries.set(this.filterKeywordEntries(entries(), keyword)); - - this.selectedKeywords.set( - this.selectedKeywords().filter((k) => k !== keyword), - ); - this.updateQueryParams(); - } - processExtractedKeywords(result: ExtractedKeywordsResponse): void { if (result === undefined || !result.results) return; @@ -454,10 +465,10 @@ export class KeywordsSearchComponent { // Keep only selected keywords that still exist in any category (including manual) const allExtracted = [ - ...this.broadKeywords(), - ...this.coarseKeywords(), - ...this.fineKeywords(), - ...this.manualKeywords(), + ...this.getKeywordLabels(this.broadKeywords()), + ...this.getKeywordLabels(this.coarseKeywords()), + ...this.getKeywordLabels(this.fineKeywords()), + ...this.getKeywordLabels(this.manualKeywords()), ]; this.selectedKeywords.set( this.selectedKeywords().filter((k) => allExtracted.includes(k)), @@ -516,17 +527,11 @@ export class KeywordsSearchComponent { // --- Helpers -------------------------------------------------------------- - private selectedInCategory(category: KeywordCategory): Signal { - return computed(() => - this.selectedKeywords().filter((k) => - this.categoryKeywordsMap[category]().includes(k), - ), - ); - } - private applyExtractedKeywords(keywords: ExtractedKeywords): void { const seenKeywords = new Set( - this.manualKeywords().map((keyword) => this.normalizeKeyword(keyword)), + this.getKeywordLabels(this.manualKeywords()).map((keyword) => + this.normalizeKeyword(keyword), + ), ); this.broadKeywordEntries.set( this.uniqueKeywordEntries(keywords.broad_keywords, seenKeywords), @@ -572,8 +577,93 @@ export class KeywordsSearchComponent { ); } + onViewToggleChange(value: KeywordView): void { + if (this.keywordView() !== value) { + this.keywordView.set(value); + } + this.updateQueryParams(); + } + + onSubfieldLegendVisibleChange(visible: boolean): void { + this.subfieldLegendVisible.set(visible); + this.updateQueryParams(); + } + + onSubfieldLegendExpandedChange(expanded: boolean): void { + this.subfieldLegendExpanded.set(expanded); + this.updateQueryParams(); + } + + // Use this instead of directly binding keyword.topic_mapping?.topic?.display_name + getChipLabel(keyword: KeywordEntryWithTopic): string { + if (this.keywordView() == 'llm') { + return keyword.llm_keyword?.keyword ?? ''; + } + return ( + keyword.topic_mapping?.topic?.display_name ?? + keyword.llm_keyword?.keyword ?? + '' + ); + } private getKeywordLabel(item: KeywordEntryWithTopic): string { - return item.llm_keyword.keyword.trim(); + return item.llm_keyword.keyword; + } + + private getKeywordLabels(items: KeywordEntryWithTopic[]): string[] { + return items.map((item) => this.getKeywordLabel(item)); + } + + private getTopic(item: KeywordEntryWithTopic) { + return item.topic_mapping?.topic ?? null; + } + + getChipDescription(item: KeywordEntryWithTopic): string | null { + return this.getTopic(item)?.description ?? null; + } + + getChipSubfieldName(item: KeywordEntryWithTopic): string | null { + return this.getTopic(item)?.subfield?.display_name ?? null; + } + + getChipFieldName(item: KeywordEntryWithTopic): string | null { + return this.getTopic(item)?.field?.display_name ?? null; + } + + getChipDomainName(item: KeywordEntryWithTopic): string | null { + return this.getTopic(item)?.domain?.display_name ?? null; + } + + getChipCount(item: KeywordEntryWithTopic): number | null { + const topic = this.getTopic(item); + return topic?.works_count ?? null; + } + + private toTopicLegendTopic(topic: Topic): TopicLegendTopic { + return { + id: topic.id ?? topic.display_name ?? '', + name: topic.display_name ?? '', + field_id: topic.field?.id ?? null, + field_name: topic.field?.display_name ?? null, + field_description: null, + domain_id: topic.domain?.id ?? null, + domain_name: topic.domain?.display_name ?? null, + domain_description: null, + subfield_id: topic.subfield?.id ?? null, + subfield_name: topic.subfield?.display_name ?? null, + subfield_description: null, + }; + } + + getTopicColor(topic: Topic | undefined | null): string { + const topicInput: TopicHierarchyColorInput = { + id: topic?.id ?? null, + name: topic?.display_name ?? null, + field_id: topic?.field?.id ?? null, + field_name: topic?.field?.display_name ?? null, + domain_id: topic?.domain?.id ?? null, + domain_name: topic?.domain?.display_name ?? null, + }; + return topicHierarchyColor(topicInput); } private keywordEntriesFromStrings( @@ -621,6 +711,9 @@ export class KeywordsSearchComponent { const manual = this.parseKeywordList(queryParams.get('manual')); const selected = this.parseKeywordList(queryParams.get('selected')); const source = queryParams.get('source') ?? ''; + const view = queryParams.get('view') ?? 'llm'; + const legend = queryParams.get('legend') ?? 'on'; + const legendExpanded = queryParams.get('legendExpanded') ?? 'off'; this.isRestoringState = true; @@ -628,7 +721,9 @@ export class KeywordsSearchComponent { { selectedInputType: mode, urlInput, textInput }, { emitEvent: false }, ); - + this.keywordView.set(view as KeywordView); + this.subfieldLegendVisible.set(legend === 'on'); + this.subfieldLegendExpanded.set(legendExpanded === 'on'); this.extractionSource.set(source as InputMode); this.restoreSourceFromSession(); @@ -649,16 +744,24 @@ export class KeywordsSearchComponent { // clean up the selection to only include keywords that actually exist in const manualKeywordSet = new Set( - this.manualKeywords().map((k) => this.normalizeKeyword(k)), + this.getKeywordLabels(this.manualKeywords()).map((k) => + this.normalizeKeyword(k), + ), ); const broadKeywordSet = new Set( - this.broadKeywords().map((k) => this.normalizeKeyword(k)), + this.getKeywordLabels(this.broadKeywords()).map((k) => + this.normalizeKeyword(k), + ), ); const coarseKeywordSet = new Set( - this.coarseKeywords().map((k) => this.normalizeKeyword(k)), + this.getKeywordLabels(this.coarseKeywords()).map((k) => + this.normalizeKeyword(k), + ), ); const fineKeywordSet = new Set( - this.fineKeywords().map((k) => this.normalizeKeyword(k)), + this.getKeywordLabels(this.fineKeywords()).map((k) => + this.normalizeKeyword(k), + ), ); const validSelected = selected.filter( (k) => @@ -684,10 +787,19 @@ export class KeywordsSearchComponent { mode: this.form.controls.selectedInputType.value, url: this.toNullableParam(this.form.controls.urlInput.value), text: this.toNullableParam(this.form.controls.textInput.value), - broad: this.serializeKeywords(this.broadKeywords()), - coarse: this.serializeKeywords(this.coarseKeywords()), - fine: this.serializeKeywords(this.fineKeywords()), - manual: this.serializeKeywords(this.manualKeywords()), + view: this.keywordView(), + legend: this.subfieldLegendVisible() ? 'on' : 'off', + legendExpanded: this.subfieldLegendExpanded() ? 'on' : 'off', + broad: this.serializeKeywords( + this.getKeywordLabels(this.broadKeywords()), + ), + coarse: this.serializeKeywords( + this.getKeywordLabels(this.coarseKeywords()), + ), + fine: this.serializeKeywords(this.getKeywordLabels(this.fineKeywords())), + manual: this.serializeKeywords( + this.getKeywordLabels(this.manualKeywords()), + ), selected: this.serializeKeywords(this.selectedKeywords()), }; @@ -806,7 +918,6 @@ export class KeywordsSearchComponent { seenKeywords.add(normalized); uniqueValues.push(value.trim()); } - return uniqueValues; } From 04eb0f0185f272f0d594ca4162cb2706e8b28727 Mon Sep 17 00:00:00 2001 From: genja Date: Sun, 5 Jul 2026 18:01:10 +0200 Subject: [PATCH 07/13] fixed bug with no url content --- service/src/main/inse/keywords/logic.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/service/src/main/inse/keywords/logic.py b/service/src/main/inse/keywords/logic.py index 81ba9f57..e329fb56 100644 --- a/service/src/main/inse/keywords/logic.py +++ b/service/src/main/inse/keywords/logic.py @@ -140,7 +140,11 @@ async def extract_keywords_stream_enriched( if mode == "url": await emit(KeywordsWsEvent(type="status", step="fetching_url", message=f"Extrahiere Inhalt von {query}").model_dump()) text = await _get_text_content(query) - await emit(KeywordsWsEvent(type="status", step="content_extracted", message=f"Extrahiert {len(text)} Zeichen").model_dump()) + if text: + await emit(KeywordsWsEvent(type="status", step="content_extracted", message=f"Extrahiert {len(text)} Zeichen").model_dump()) + else: + await emit(KeywordsWsEvent(type="error", message=f"Fehler beim Abrufen des Inhalts von {query}").model_dump()) + raise RuntimeError(f"Failed to fetch content from {query}") system_prompt = KeywordsPrompt.EXTRACT_WEBSITE_KEYWORDS_PROMPT else: text = query From 0c3db967b04530108507d85527e5b5c7ad65309e Mon Sep 17 00:00:00 2001 From: genja Date: Sun, 5 Jul 2026 18:01:54 +0200 Subject: [PATCH 08/13] added handling autocomplete topics ( no extra backend call anymore) --- .../topic-autocomplete.component.html | 4 +- .../topic-autocomplete.component.ts | 59 +++++++++++++------ 2 files changed, 45 insertions(+), 18 deletions(-) diff --git a/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.html b/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.html index d23c2dc0..5be3be18 100644 --- a/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.html +++ b/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.html @@ -45,7 +45,9 @@ } @for (topic of topics(); track topic) { - {{ topic }} + {{ + topic.display_name + }} } @if ( diff --git a/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.ts b/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.ts index 6b14edd7..9dbb3796 100644 --- a/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.ts +++ b/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.ts @@ -19,6 +19,7 @@ import { of, switchMap, } from 'rxjs'; +import { Topic } from '../../../api'; @Component({ selector: 'app-topic-autocomplete', @@ -42,10 +43,10 @@ export class TopicAutocompleteComponent { readonly minCharacters = input(2); readonly limit = input(12); - readonly topicSelected = output(); + readonly topicSelected = output(); readonly searchControl = new FormControl('', { nonNullable: true }); - readonly topics = signal([]); + readonly topics = signal([]); readonly loading = signal(false); constructor( @@ -60,12 +61,12 @@ export class TopicAutocompleteComponent { const normalizedQuery = query.trim(); if (normalizedQuery.length < this.minCharacters()) { this.loading.set(false); - return of([] as string[]); + return of([]); } this.loading.set(true); return this.topicsService - .autocompleteTopics( + .listTopics( normalizedQuery, undefined, undefined, @@ -73,21 +74,19 @@ export class TopicAutocompleteComponent { this.limit(), ) .pipe( - map((response) => - Array.from( - new Set( - (response.results ?? []) - .map((topic) => topic.display_name?.trim() ?? '') - .filter((topic) => !!topic), - ), - ), - ), + map(({ results }) => { + const seen = new Map(); + for (const topic of results ?? []) { + if (topic?.id != null) seen.set(String(topic.id), topic); + } + return Array.from(seen.values()); + }), catchError((error) => { console.error( 'Error fetching topic autocomplete options:', error, ); - return of([] as string[]); + return of([] as Topic[]); }), finalize(() => this.loading.set(false)), ); @@ -101,19 +100,45 @@ export class TopicAutocompleteComponent { selectTopic(topic: string): void { this.searchControl.setValue('', { emitEvent: false }); + const selectedTopic = this.getTopicByDisplayName(topic); this.topics.set([]); - this.topicSelected.emit(topic); + if (selectedTopic) { + this.topicSelected.emit(selectedTopic); + } else { + const newTopic: Topic = { + display_name: topic, + id: null, + }; + this.topicSelected.emit(newTopic); + } } onKeydownTab(event: KeyboardEvent): void { event.preventDefault(); - this.searchControl.setValue(this.topics()[0], { emitEvent: false }); + const first = this.topics()[0]; + if (!first) return; + this.searchControl.setValue(first.display_name ?? '', { emitEvent: false }); + } + getTopicByDisplayName(displayName: string): Topic | undefined { + const normalized = displayName.trim().toLowerCase(); + return this.topics().find( + (topic) => topic.display_name?.trim().toLowerCase() === normalized, + ); } submitCurrentValue(): void { const topic = this.searchControl.value.trim(); if (!topic) return; this.searchControl.setValue('', { emitEvent: false }); this.topics.set([]); - this.topicSelected.emit(topic); + const selectedTopic = this.getTopicByDisplayName(topic); + if (selectedTopic) { + this.topicSelected.emit(selectedTopic); + } else { + const newTopic: Topic = { + display_name: topic, + id: null, + }; + this.topicSelected.emit(newTopic); + } } clear(): void { From 1eaf8f8c8ffe4df6a7d14faf2ff6aea41cf1c1f8 Mon Sep 17 00:00:00 2001 From: genja Date: Sun, 5 Jul 2026 18:09:59 +0200 Subject: [PATCH 09/13] responsivness adjusted --- .../keywords-search.component.html | 381 ++++++++------- .../keywords-search.component.scss | 434 ++++++++---------- .../keywords-search.component.ts | 119 +++-- 3 files changed, 479 insertions(+), 455 deletions(-) diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.html b/webapp/src/app/modules/keywords-search/keywords-search.component.html index 5f4f27b9..e1de98d3 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.html +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.html @@ -71,27 +71,29 @@ (expandedChange)="onSubfieldLegendExpandedChange($event)"> } - @if (extractedKeywordsExist()) { -
+ + +
+ @if (keywordsExist()) {
-
- @if (areAllExtractedSelected()) { +
+ @if (areAllSelected()) { } @else { }
@@ -126,170 +128,216 @@
-
- -
+ } @else { + +
+ } + +
+
+
+
+ + + + @if (keywords.length > 0) { +
+ @for (keyword of keywords; track keyword.llm_keyword.keyword) { + + + } +
+ } @else { +

{{ emptyText }}

} -
- -
- -
-
Breite Keywords
-
Coarse Keywords
-
- Fine Keywords -
-
Eigene Keywords
+ + + +
+ @if (manualKeywords().length > 0) { + @for ( + keyword of manualKeywords(); + track keyword.llm_keyword.keyword + ) { +
+ + + +
+ } + } @else if (loadingNewKeyword()) { +
+ + +
+ } @else { +

Nichts hinzugefügt

+ }
+
- -
-
- @if (broadKeywords().length > 0) { -
- - @for ( - keyword of broadKeywords(); - track keyword.llm_keyword.keyword - ) { - - - } -
- } @else { -

Nichts extrahiert

- } + + @if (!isMobile()) { +
+
+
Breite Keywords
+
Coarse Keywords
+
+ Fine Keywords +
+
Eigene Keywords
-
- @if (coarseKeywords().length > 0) { -
- @for ( - keyword of coarseKeywords(); - track keyword.llm_keyword.keyword - ) { - - - } -
- } @else { -

Nichts extrahiert

- } -
+
+
+ +
-
- @if (fineKeywords().length > 0) { -
- @for ( - keyword of fineKeywords(); - track keyword.llm_keyword.keyword - ) { - - - } -
- } @else { -

Nichts extrahiert

- } -
-
-
- @if (manualKeywords().length > 0) { - @for ( - keyword of manualKeywords(); - track keyword.llm_keyword.keyword - ) { -
- - - -
- } - } @else if (loadingNewKeyword()) { -
- - -
- } @else { -

Nichts hinzugefügt

- } +
+ +
+ +
+ +
+ +
+
-
+ } @else { + + + + + Breit + {{ broadKeywords().length }} + +
+ +
+
+ + + + Coarse + {{ coarseKeywords().length }} + +
+ +
+
+ + + + Fine + {{ fineKeywords().length }} + +
+ +
+
+ + + + Eigene + {{ manualKeywords().length }} + +
+ +
+
+
+ } @if (isExtracting()) {
@@ -300,14 +348,13 @@
{{ statusMessage() }}
- } @else if ( - !extractedKeywordsExist() && manualKeywords().length === 0 - ) { + } @else if (!keywordsExist()) {

- Keine Keywords vorhanden. Extrahiere Keywords oder füge eigene - hinzu. + Noch keine Keywords vorhanden. Extrahiere Keywords aus URL/Text + oder füge oben eigene Keywords hinzu.

} + @if (sourceContent().length > 0) { diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.scss b/webapp/src/app/modules/keywords-search/keywords-search.component.scss index d92e54be..cfa3f8b9 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.scss +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.scss @@ -1,8 +1,21 @@ +/* ============================================================ + DESIGN TOKENS / LOCAL VARIABLES + ============================================================ */ +$phone: 599px; +$tablet: 900px; +$touch-target: 44px; + +/* ============================================================ + BASE LAYOUT — container becomes the responsive anchor + ============================================================ */ .content { + container-type: inline-size; + container-name: keyword-tool; + display: flex; flex-direction: column; - gap: 0.75rem; - padding: 1rem; + gap: clamp(0.5rem, 1.5vw, 0.75rem); + padding: clamp(0.5rem, 2vw, 1rem); } .tab-content { @@ -12,12 +25,14 @@ gap: 0.5rem; align-items: start; } + .full-width { width: 100%; } .extract-btn { white-space: nowrap; + min-height: $touch-target; } .actions { @@ -25,6 +40,9 @@ justify-content: center; } +/* ============================================================ + TOOLBAR + ============================================================ */ .keywords-toolbar { display: flex; flex-direction: column; @@ -39,9 +57,9 @@ .toolbar-controls { display: flex; align-items: center; - justify-content: space-between; + justify-content: center; gap: 0.75rem; - flex-wrap: wrap; + flex-wrap: nowrap; /* fixed: was invalid "no-wrap" */ padding: 0.5rem 0.75rem; background: var(--sg-background-muted, #f4f5f7); } @@ -50,13 +68,35 @@ grid-template-columns: 3fr 1.3fr; border-left: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.08)); } + +.toolbar-controls--placeholder { + /* invisible spacer, preserves grid column width/position */ + visibility: hidden; + pointer-events: none; +} + +.manual-input-controls { + min-width: 0; +} + +@container keyword-tool (max-width: #{$tablet}) { + .toolbar-wrapper { + grid-template-columns: 1fr; + border-left: none; + } + + .toolbar-controls--placeholder { + display: none; /* no need for a spacer once stacked */ + } +} + .toolbar-group { display: flex; align-items: center; gap: 0.6rem; } -.toolbar-group--select button { +.toolbar-group button { display: flex; align-items: center; gap: 0.35rem; @@ -64,6 +104,7 @@ line-height: 30px; border-radius: 20px; padding: 0 14px; + min-height: $touch-target; mat-icon { font-size: 20px; @@ -76,22 +117,29 @@ width: 1px; align-self: stretch; background: var(--sg-divider, rgba(0, 0, 0, 0.12)); - display: none; -} - -@media (min-width: 640px) { - .toolbar-divider { - display: block; - } } mat-button-toggle-group { border-radius: 20px; overflow: hidden; + justify-content: space-around; + + ::ng-deep .mat-button-toggle-label-content { + line-height: $touch-target; + } + ::ng-deep mat-button-toggle { + width: 100%; + } } -/* Tablet / phone: stack the toolbar and go full-width */ -@media (max-width: 768px) { +/* Container-query driven toolbar collapse (tablet/phone) */ +@container keyword-tool (min-width: #{$phone + 1}) { + .toolbar-divider { + display: block; + } +} + +@container keyword-tool (max-width: #{$tablet}) { .toolbar-controls { flex-direction: column; align-items: stretch; @@ -101,35 +149,38 @@ mat-button-toggle-group { justify-content: center; } - .toolbar-group--select button { + .toolbar-group button { width: 100%; justify-content: center; } - .toolbar-group--view { - justify-content: center; + .toolbar-wrapper { + grid-template-columns: 1fr; + border-left: none; + } + + .toolbar-wrapper .spacer { + width: 100%; } } -/* Phone: icon-only buttons to save space */ -@media (max-width: 480px) { +/* Phone: icon-only toolbar buttons to save space */ +@container keyword-tool (max-width: #{$phone}) { .btn-label { display: none; } - .toolbar-group--select button { + .toolbar-group button { width: auto; - padding: 0 10px; + padding: 0; + min-width: $touch-target; + justify-content: center; } } -mat-button-toggle-group { - flex-wrap: wrap; -} - -.toggle-text { - margin-left: 0.35rem; -} +/* ============================================================ + EXTRACTION GRID / CARD + ============================================================ */ .extraction-grid { display: grid; grid-template-columns: 1fr; @@ -150,7 +201,9 @@ mat-button-toggle-group { } } -/* === Table-like keyword grid === */ +/* ============================================================ + DESKTOP TABLE-LIKE KEYWORD GRID + ============================================================ */ .keyword-table { display: flex; flex-direction: column; @@ -161,7 +214,6 @@ mat-button-toggle-group { padding-top: 0.5rem; display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; - grid-template-rows: auto; column-gap: 1rem; border-bottom: 2px solid var(--sg-divider, rgba(0, 0, 0, 0.12)); padding-bottom: 0.5rem; @@ -173,91 +225,16 @@ mat-button-toggle-group { text-align: center; } -.extracted-header { - grid-column: 1 / span 3; - grid-row: 0; - font-size: 0.95rem; - font-weight: 600; - color: var(--sg-text-primary); - align-self: end; -} - .sub-cell { font-weight: 500; color: var(--sg-text-secondary); - font-size: 1rem; + font-size: clamp(0.8rem, 1.2vw, 1rem); text-transform: uppercase; letter-spacing: 0.05em; align-self: end; - grid-row: 2; text-align: center; } -.broad-sub { - grid-column: 1; -} -.coarse-sub { - grid-column: 2; -} -.fine-sub { - grid-column: 3; -} -.manual-sub { - grid-column: 4; -} - -.keyword-input-row { - margin-left: 0.5rem; - width: 100%; - display: grid; - grid-column: 1 / span 4; - display: flex; - align-items: center; - gap: 0.35rem; - - &.compact { - .small-field { - flex: 10; - ::ng-deep .mat-mdc-text-field-wrapper { - padding: 0 0.6rem; - } - ::ng-deep .mat-mdc-form-field-flex { - min-height: 8px; - align-items: center; - } - ::ng-deep .mat-mdc-form-field-infix { - min-height: 8px; - padding: 1rem 0; - } - ::ng-deep .mat-mdc-form-field-subscript-wrapper { - display: none; - } - ::ng-deep input.mat-mdc-input-element { - font-size: 0.8rem; - } - ::ng-deep .mat-mdc-form-field-label, - ::ng-deep mat-label { - font-size: 1rem; - } - } - - button.mat-mdc-icon-button { - width: 28px; - height: 28px; - padding: 0; - line-height: 28px; - flex: 1; - - .mat-icon { - font-size: 26px; - width: 26px; - height: 26px; - line-height: 26px; - } - } - } -} - .table-body { display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; @@ -265,7 +242,6 @@ mat-button-toggle-group { row-gap: 0.4rem; align-items: start; border-left: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.08)); - //background: var(--sg-background-muted, #f4f5f7); } .table-col { @@ -279,9 +255,6 @@ mat-button-toggle-group { &:last-child { border-right: none; } - &:nth-child(3) { - border-right: 5px solid var(--sg-divider, rgba(0, 0, 0, 0.1)); - } ::ng-deep app-topic-chip { width: 100%; @@ -292,9 +265,58 @@ mat-button-toggle-group { opacity: 0.4; } } + .thick-border { - border-right: 5px solid var(--sg-divider, rgba(0, 0, 0, 0.1)); + border-right: 5px solid var(--sg-divider, rgba(0, 0, 0, 0.1)) !important; } + +@container keyword-tool (max-width: #{$tablet}) { + .table-head, + .table-body { + column-gap: 0.5rem; + } + + .table-col { + padding: 0.4rem; + } +} + +/* ============================================================ + MOBILE KEYWORD TABS (structural replacement for stacked table) + ============================================================ */ +.mobile-keyword-tabs { + margin-top: 0.5rem; + + ::ng-deep .mat-mdc-tab-labels { + justify-content: stretch; + } + + ::ng-deep .mat-mdc-tab { + flex: 1; + min-height: $touch-target; + } +} + +.tab-count { + margin-left: 0.35rem; + font-size: 0.75rem; + font-weight: 600; + color: var(--sg-text-secondary); + background: var(--sg-background-muted, #eceff1); + border-radius: 10px; + padding: 0 6px; + min-width: 18px; + display: inline-block; + text-align: center; +} + +.mobile-tab-panel { + padding: 0.75rem 0.25rem; +} + +/* ============================================================ + CHIP STACKS + ============================================================ */ .keyword-chip-stack { display: flex; flex-direction: column; @@ -307,6 +329,7 @@ mat-button-toggle-group { display: flex; align-items: center; width: 100%; + gap: 0.25rem; app-topic-chip { flex: 1 1 auto; @@ -315,6 +338,8 @@ mat-button-toggle-group { button[mat-icon-button] { flex: 0 0 auto; + min-width: $touch-target; + min-height: $touch-target; } } @@ -370,12 +395,9 @@ mat-button-toggle-group { } } -::ng-deep .mat-mdc-chip-option.compact-chip { - .mat-mdc-chip-action-label { - padding: 0 4px; - } - .mat-mdc-chip-action { - padding: 0 4px; +@container keyword-tool (max-width: #{$tablet}) { + .compact-chip { + width: 100%; } } @@ -391,57 +413,44 @@ mat-button-toggle-group { } } -.select-all-container { - display: flex; - flex-wrap: wrap; - gap: 0.5rem; - justify-content: space-between; - margin-top: 0.5rem; - - button { - display: flex; - justify-content: center; - font-size: 0.75rem; - padding: 0 12px; - line-height: 30px; - mat-icon { - font-size: 26px; - width: 26px; - height: 26px; - } - } -} - +/* ============================================================ + SEARCH BUTTON (sticky on mobile — improves conversion/UX) + ============================================================ */ .search-container { display: flex; justify-content: flex-end; margin-top: 0.5rem; } -/* ============================================================ - RESPONSIVE BREAKPOINTS - ============================================================ */ +.search-btn { + min-height: $touch-target; +} -/* Tablet: soften columns, keep 4 columns but tighter */ -@media (max-width: 1024px) { - .table-head, - .table-body { - column-gap: 0.5rem; +@media (max-width: $phone) { + .search-container { + position: sticky; + bottom: 0; + z-index: 5; + background: var(--sg-background); + padding: 0.75rem 0.5rem; + box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08); } - .table-col { - padding: 0.4rem; - } - - .compact-chip { + .search-btn { width: 100%; } } -/* Small tablet / large phone: stack columns */ -@media (max-width: 768px) { - .content { - padding: 0.75rem; +/* ============================================================ + TABS (URL / Text) — stretch on smaller containers + ============================================================ */ +@container keyword-tool (max-width: #{$tablet}) { + .content ::ng-deep .mat-mdc-tab-labels { + justify-content: stretch; + } + + .content ::ng-deep .mat-mdc-tab { + flex: 1; } .tab-content { @@ -452,87 +461,13 @@ mat-button-toggle-group { width: 100%; justify-content: center; } - - .table-head, - .table-body { - grid-template-columns: 1fr; - } - - .table-head { - display: none; /* labels are redundant once stacked; see column titles below */ - } - - .table-col { - border-right: none; - border-bottom: 1px solid var(--sg-divider, rgba(0, 0, 0, 0.08)); - padding: 0.75rem 0.25rem; - - &:nth-child(3) { - border-right: none; - border-bottom: 3px solid var(--sg-divider, rgba(0, 0, 0, 0.08)); - } - - &:last-child { - border-bottom: none; - } - - /* Re-introduce a column label since .table-head is hidden */ - &::before { - content: attr(data-col-label); - font-weight: 500; - font-size: 0.85rem; - text-transform: uppercase; - letter-spacing: 0.05em; - color: var(--sg-text-secondary); - margin-bottom: 0.35rem; - display: block; - } - } - - .extracted-header { - grid-column: 1; - grid-row: 1; - } - - .own-header { - grid-column: 1; - grid-row: 2; - } - - .actions { - align-self: center; - justify-content: flex-start; - } - - .search-container, - .select-all-container { - justify-content: stretch; - flex-direction: column; - } - - .search-btn, - .select-all-container button { - width: 100%; - } - - .view-toggle-row { - justify-content: center; - text-align: center; - } - - mat-button-toggle-group { - width: 100%; - - ::ng-deep .mat-button-toggle { - flex: 1; - } - } } -/* Phone: tighten further, reduce chip/font sizes */ -@media (max-width: 480px) { +/* ============================================================ + PHONE-SPECIFIC FINE-TUNING + ============================================================ */ +@container keyword-tool (max-width: #{$phone}) { .content { - padding: 0.5rem; gap: 0.5rem; } @@ -540,8 +475,7 @@ mat-button-toggle-group { padding: 0.35rem; } - .sub-cell, - .toggle-text { + .sub-cell { font-size: 0.8rem; } @@ -559,7 +493,9 @@ mat-button-toggle-group { } } -/* Source expansion panel */ +/* ============================================================ + SOURCE EXPANSION PANEL + ============================================================ */ .source-expansion { margin: 0.75rem 0; background: var(--sg-background-muted, #f5f5f5); @@ -610,6 +546,9 @@ mat-button-toggle-group { } } +/* ============================================================ + PROGRESS BAR + ============================================================ */ .progress-container { margin-top: 1rem; padding: 0.5rem 0; @@ -625,10 +564,7 @@ mat-button-toggle-group { &::after { content: ''; position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; + inset: 0; pointer-events: none; background: linear-gradient( 105deg, @@ -657,3 +593,21 @@ mat-button-toggle-group { transform: translateX(100%); } } + +/* ============================================================ + ACCESSIBILITY + ============================================================ */ +@media (prefers-reduced-motion: reduce) { + .compact-chip, + .progress-container mat-progress-bar::after { + animation: none !important; + transition: none !important; + } +} + +button:focus-visible, +.mat-button-toggle:focus-visible, +::ng-deep .mat-mdc-tab:focus-visible { + outline: 2px solid var(--sg-primary, #1976d2); + outline-offset: 2px; +} diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.ts b/webapp/src/app/modules/keywords-search/keywords-search.component.ts index e2dcc526..1971ca12 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.ts +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.ts @@ -1,10 +1,5 @@ -import { - Component, - computed, - signal, - Signal, - WritableSignal, -} from '@angular/core'; +import { Component, computed, signal, inject } from '@angular/core'; +import { BreakpointObserver } from '@angular/cdk/layout'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { FormBuilder, ReactiveFormsModule } from '@angular/forms'; import { MatButtonModule } from '@angular/material/button'; @@ -30,6 +25,9 @@ import { TopicAutocompleteComponent } from '../../shared/ui/topic-autocomplete/t import { TopicChipComponent } from '../../shared/ui/topic-chip/topic-chip.component'; import { TopicLegendComponent } from '../../shared/ui/topic-legend/topic-legend.component'; import { Topic } from '../../api/model/topic'; +import { NgTemplateOutlet } from '@angular/common'; +import { map } from 'rxjs/operators'; +import { toSignal } from '@angular/core/rxjs-interop'; import { MatButtonToggleModule, MatButtonToggleGroup, @@ -68,6 +66,7 @@ type KeywordView = 'llm' | 'topic'; MatButtonToggleGroup, MatTooltipModule, A11yModule, + NgTemplateOutlet, ], templateUrl: './keywords-search.component.html', styleUrl: './keywords-search.component.scss', @@ -80,7 +79,15 @@ export class KeywordsSearchComponent { }); private readonly SESSION_KEY = 'keywords-search-source'; + // in component class: + private breakpointObserver = inject(BreakpointObserver); + isMobile = toSignal( + this.breakpointObserver + .observe('(max-width: 768px)') + .pipe(map((r) => r.matches)), + { initialValue: false }, + ); // Category signals - the full backend entries are the source of truth; // the *Keywords() computed signals below just project the label out of them. private readonly broadKeywordEntries = signal([]); @@ -98,11 +105,12 @@ export class KeywordsSearchComponent { readonly loadingNewKeyword = signal(false); readonly extractionSource = signal(null); - readonly extractedKeywordsExist = computed( + readonly keywordsExist = computed( () => this.broadKeywords().length > 0 || this.coarseKeywords().length > 0 || - this.fineKeywords().length > 0, + this.fineKeywords().length > 0 || + this.manualKeywords().length > 0, ); readonly sourceContent = signal(''); @@ -309,12 +317,8 @@ export class KeywordsSearchComponent { ...this.getKeywordLabels(this.manualKeywords()), ].some((k) => this.normalizeKeyword(k) === normalized); } - - // Add manually from Keywords tab - addKeywordFromInput(keyword: string): void { - this.loadingNewKeyword.set(true); - - const normalizedKeyword = keyword.trim(); + addKeywordFromInput(keyword: Topic): void { + const normalizedKeyword = keyword.display_name?.trim() ?? ''; if (!normalizedKeyword) return; if (this.keywordExists(normalizedKeyword)) { @@ -322,35 +326,54 @@ export class KeywordsSearchComponent { return; } - this.topicsService.vectorSearchTopics(normalizedKeyword).subscribe({ - next: ({ results }) => { - const newEntry: KeywordEntryWithTopic = { - llm_keyword: { - keyword: normalizedKeyword, - relevance_score: 1, - }, - topic_mapping: { - keyword: normalizedKeyword, - topic: results?.[0], - }, - }; + this.loadingNewKeyword.set(true); - const updated = this.uniqueKeywordEntries([ - ...this.manualKeywordEntries(), - newEntry, - ]); + if (keyword.id === null) { + console.log('Adding new keyword without topic:', normalizedKeyword); + this.topicsService.vectorSearchTopics(normalizedKeyword).subscribe({ + next: ({ results }) => { + const newEntry: KeywordEntryWithTopic = { + llm_keyword: { keyword: normalizedKeyword, relevance_score: 1 }, + topic_mapping: { keyword: normalizedKeyword, topic: results?.[0] }, + }; - this.manualKeywordEntries.set(updated); - this.selectedKeywords.set([ - ...this.selectedKeywords(), - normalizedKeyword, - ]); - this.loadingNewKeyword.set(false); - // Explicit enrichment trigger for new keywords - this.enrichManualKeywordsWithTopics([normalizedKeyword]); - this.updateQueryParams(); - }, - }); + this.manualKeywordEntries.set( + this.uniqueKeywordEntries([ + ...this.manualKeywordEntries(), + newEntry, + ]), + ); + this.selectedKeywords.set([ + ...this.selectedKeywords(), + normalizedKeyword, + ]); + this.loadingNewKeyword.set(false); + this.updateQueryParams(); // now fires after state is actually updated + }, + error: (err) => { + console.error('vectorSearchTopics failed', err); + this.loadingNewKeyword.set(false); + this.statusMessage.set( + `Fehler beim Hinzufügen von "${normalizedKeyword}".`, + ); + }, + }); + } else { + console.log('we dont search', keyword); + const newEntry: KeywordEntryWithTopic = { + llm_keyword: { keyword: normalizedKeyword, relevance_score: 1 }, + topic_mapping: { keyword: normalizedKeyword, topic: keyword }, + }; + this.manualKeywordEntries.set( + this.uniqueKeywordEntries([...this.manualKeywordEntries(), newEntry]), + ); + this.selectedKeywords.set([ + ...this.selectedKeywords(), + normalizedKeyword, + ]); + this.loadingNewKeyword.set(false); + this.updateQueryParams(); + } } removeSelectedKeyword(keyword: string): void { @@ -388,7 +411,7 @@ export class KeywordsSearchComponent { this.updateQueryParams(); } - selectAllExtracted(): void { + selectAll(): void { const all = [ ...this.getKeywordLabels(this.manualKeywords()), ...this.getKeywordLabels(this.broadKeywords()), @@ -399,10 +422,8 @@ export class KeywordsSearchComponent { this.updateQueryParams(); } - deselectAllExtracted(): void { - this.selectedKeywords.set( - this.uniqueKeywords(this.getKeywordLabels(this.manualKeywords())), - ); + deselectAll(): void { + this.selectedKeywords.set([]); this.updateQueryParams(); } @@ -410,6 +431,7 @@ export class KeywordsSearchComponent { this.broadKeywordEntries.set([]); this.coarseKeywordEntries.set([]); this.fineKeywordEntries.set([]); + this.manualKeywordEntries.set([]); this.sourceContent.set(''); this.sourceUrl.set(null); @@ -428,11 +450,12 @@ export class KeywordsSearchComponent { this.updateQueryParams(); } - areAllExtractedSelected(): boolean { + areAllSelected(): boolean { const allExtracted = [ ...this.getKeywordLabels(this.broadKeywords()), ...this.getKeywordLabels(this.coarseKeywords()), ...this.getKeywordLabels(this.fineKeywords()), + ...this.getKeywordLabels(this.manualKeywords()), ]; return allExtracted.every((k) => this.selectedKeywords().includes(k)); } From 86bed62ac0141d0655b7428cdd80b4fc8b2963ba Mon Sep 17 00:00:00 2001 From: genja Date: Sun, 5 Jul 2026 18:10:24 +0200 Subject: [PATCH 10/13] delete button removed for autocompletion field --- .../ui/topic-autocomplete/topic-autocomplete.component.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.html b/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.html index 5be3be18..91a2bdcc 100644 --- a/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.html +++ b/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.html @@ -23,7 +23,7 @@ } - @if (searchControl.value) { + Date: Sun, 5 Jul 2026 18:35:39 +0200 Subject: [PATCH 11/13] cleaned log outputs --- .../app/modules/keywords-search/keywords-search.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.ts b/webapp/src/app/modules/keywords-search/keywords-search.component.ts index 1971ca12..26a5f014 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.ts +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.ts @@ -200,7 +200,6 @@ export class KeywordsSearchComponent { this.handleStatusEvent(event); break; case 'keywords': - console.log(event.keywords); if (event.keywords) this.addExtractedKeyword(event.keywords); break; case 'completed': @@ -359,7 +358,7 @@ export class KeywordsSearchComponent { }, }); } else { - console.log('we dont search', keyword); + console.log('topic was already there', keyword); const newEntry: KeywordEntryWithTopic = { llm_keyword: { keyword: normalizedKeyword, relevance_score: 1 }, topic_mapping: { keyword: normalizedKeyword, topic: keyword }, From c38355c817f68462a7eb1f75966d46a9b6008724 Mon Sep 17 00:00:00 2001 From: genja Date: Sun, 5 Jul 2026 19:53:23 +0200 Subject: [PATCH 12/13] minor logic and layout adjustments --- .../keywords-search.component.html | 600 +++++++++--------- .../keywords-search.component.scss | 15 +- .../keywords-search.component.ts | 31 +- 3 files changed, 340 insertions(+), 306 deletions(-) diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.html b/webapp/src/app/modules/keywords-search/keywords-search.component.html index e1de98d3..dbb9f941 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.html +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.html @@ -43,10 +43,12 @@
@@ -54,134 +56,120 @@ + @if (isExtracting()) { +
+ + +
{{ statusMessage() }}
+
+ } -
- - - -
- @if (topicLegendGroups.length > 0) { - - - } - - -
- @if (keywordsExist()) { -
-
- @if (areAllSelected()) { - - } @else { - - } -
-
- - - - text_fields - Extrahierte Keywords - - - account_tree - Topic Mapping - - -
- -
- -
-
- } @else { - -
+ @if (keywordsExist()) { +
+ + + +
+ @if (topicLegendGroups.length > 0) { + + } -
- + +
+ @if (!isExtracting()) { +
+
+ @if (areAllSelected()) { + + } @else { + + } +
+
+ + + + text_fields + Extrahierte Keywords + + + account_tree + Topic Mapping + + +
+ +
+ +
+
+ } @else { + +
+ } + +
+ +
-
- - - @if (keywords.length > 0) { -
- @for (keyword of keywords; track keyword.llm_keyword.keyword) { - - - } -
- } @else { -

{{ emptyText }}

- } -
- - -
- @if (manualKeywords().length > 0) { - @for ( - keyword of manualKeywords(); - track keyword.llm_keyword.keyword - ) { -
+ + + @if (keywords.length > 0) { +
+ @for ( + keyword of keywords; + track keyword.llm_keyword.keyword + ) { - -
- } - } @else if (loadingNewKeyword()) { -
- - + }
} @else { -

Nichts hinzugefügt

+

{{ emptyText }}

} -
- + - - @if (!isMobile()) { -
-
-
Breite Keywords
-
Coarse Keywords
-
- Fine Keywords -
-
Eigene Keywords
+ +
+ @if (manualKeywords().length > 0) { + @for ( + keyword of manualKeywords(); + track keyword.llm_keyword.keyword + ) { +
+ + + +
+ } + } @else { +

Nichts hinzugefügt

+ } + @if (loadingNewKeyword()) { +
+ + + +
+ }
+
-
-
- + + @if (!isMobile()) { +
+
+
+ Breite Keywords +
+
+ Coarse Keywords +
+
+ Fine Keywords +
+
+ Eigene Keywords +
-
- -
+
+
+ +
-
- -
+
+ +
-
- +
+ +
+ +
+ +
-
- } @else { - - - - - Breit - {{ broadKeywords().length }} - -
- -
-
+ } @else { + + + + + Breit + {{ broadKeywords().length }} + +
+ +
+
- - - Coarse - {{ coarseKeywords().length }} - -
- -
-
+ + + Coarse + {{ coarseKeywords().length }} + +
+ +
+
- - - Fine - {{ fineKeywords().length }} - -
- -
-
+ + + Fine + {{ fineKeywords().length }} + +
+ +
+
- - - Eigene - {{ manualKeywords().length }} - -
- -
-
-
- } + + + Eigene + {{ manualKeywords().length }} + +
+ +
+
+
+ } - @if (isExtracting()) { -
- - -
{{ statusMessage() }}
-
- } @else if (!keywordsExist()) { -

- Noch keine Keywords vorhanden. Extrahiere Keywords aus URL/Text - oder füge oben eigene Keywords hinzu. -

- } + + @if (sourceContent().length > 0) { + + + + Quellentext: {{ sourceUrl() }} + +
{{ sourceContent() }}
+
+ } + + +
- - @if (sourceContent().length > 0) { - - - - Quellentext: {{ sourceUrl() }} - -
{{ sourceContent() }}
-
- } - - -
- - -
- -
+ +
+ +
+ }
diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.scss b/webapp/src/app/modules/keywords-search/keywords-search.component.scss index cfa3f8b9..15e6e6c5 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.scss +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.scss @@ -19,11 +19,11 @@ $touch-target: 44px; } .tab-content { - display: grid; + display: flex; + flex-direction: column; margin-top: 0.5rem; - grid-template-columns: 5fr 1fr; gap: 0.5rem; - align-items: start; + align-items: center; } .full-width { @@ -32,6 +32,7 @@ $touch-target: 44px; .extract-btn { white-space: nowrap; + min-width: 240px; min-height: $touch-target; } @@ -418,11 +419,13 @@ mat-button-toggle-group { ============================================================ */ .search-container { display: flex; - justify-content: flex-end; + justify-content: center; margin-top: 0.5rem; } .search-btn { + min-width: 240px; + align-self: center; min-height: $touch-target; } @@ -454,6 +457,7 @@ mat-button-toggle-group { } .tab-content { + display: grid; grid-template-columns: 1fr; } @@ -461,6 +465,9 @@ mat-button-toggle-group { width: 100%; justify-content: center; } + .search-btn { + width: 100%; + } } /* ============================================================ diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.ts b/webapp/src/app/modules/keywords-search/keywords-search.component.ts index 26a5f014..4870cd4b 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.ts +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.ts @@ -409,15 +409,27 @@ export class KeywordsSearchComponent { ); this.updateQueryParams(); } + allKeywordEntries = computed(() => [ + ...this.manualKeywords(), + ...this.broadKeywords(), + ...this.coarseKeywords(), + ...this.fineKeywords(), + ]); selectAll(): void { - const all = [ - ...this.getKeywordLabels(this.manualKeywords()), - ...this.getKeywordLabels(this.broadKeywords()), - ...this.getKeywordLabels(this.coarseKeywords()), - ...this.getKeywordLabels(this.fineKeywords()), - ]; - this.selectedKeywords.set(this.uniqueKeywords(all)); + const seen = new Set(); + const result: string[] = []; + + for (const entry of this.allKeywordEntries()) { + const label = entry.llm_keyword.keyword; + const normalized = this.normalizeKeyword(label); + if (!seen.has(normalized)) { + seen.add(normalized); + result.push(label); + } + } + + this.selectedKeywords.set(result); this.updateQueryParams(); } @@ -426,7 +438,7 @@ export class KeywordsSearchComponent { this.updateQueryParams(); } - clearExtractedKeywords(): void { + clearKeywords(): void { this.broadKeywordEntries.set([]); this.coarseKeywordEntries.set([]); this.fineKeywordEntries.set([]); @@ -502,7 +514,7 @@ export class KeywordsSearchComponent { } async extractKeywords(): Promise { - this.clearExtractedKeywords(); + this.clearKeywords(); const query = this.getCurrentExtractionQuery(); if (!query) return; @@ -564,6 +576,7 @@ export class KeywordsSearchComponent { this.fineKeywordEntries.set( this.uniqueKeywordEntries(keywords.fine_grained, seenKeywords), ); + this.selectAll(); } private getSelectedExtractedKeywordEntries(): KeywordEntryWithTopic[] { From a07fadc30e8ace7746c168d25271da020cec3169 Mon Sep 17 00:00:00 2001 From: genja Date: Sun, 5 Jul 2026 20:10:53 +0200 Subject: [PATCH 13/13] deleted unused TopicChipComponent from person-list --- webapp/src/app/modules/person-list/person-list.component.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/webapp/src/app/modules/person-list/person-list.component.ts b/webapp/src/app/modules/person-list/person-list.component.ts index d1ad59a8..e363e90f 100644 --- a/webapp/src/app/modules/person-list/person-list.component.ts +++ b/webapp/src/app/modules/person-list/person-list.component.ts @@ -23,7 +23,6 @@ import { import { TopicsService } from '../../api/api/topics.service'; import { TopicHierarchyComponent } from '../topic-hierarchy/topic-hierarchy.component'; import { PersonCardComponent } from '../person-card/person-card.component'; -import { TopicChipComponent } from '../../shared/ui/topic-chip/topic-chip.component'; import { topicHierarchyColor } from '../../resolvers/utils/topic-colors'; import { SharedStateService } from '../../shared/services/shared-state.service'; import { PaginationService } from '../../shared/services/pagination.service'; @@ -57,7 +56,6 @@ import { SkTextDirective } from '../../custom-directives/sk-text.directive'; MatRadioModule, TopicHierarchyComponent, PersonCardComponent, - TopicChipComponent, SkTextDirective, MatAutocompleteModule, ],