From 84747b9efb004ae0b8df48449ade3906c8297cb2 Mon Sep 17 00:00:00 2001 From: Kazgatari <56477241+Kazgatari@users.noreply.github.com> Date: Sun, 21 Jun 2026 20:39:04 +0200 Subject: [PATCH] refactor frontend (changed old decorator Input, Output to modern signals. Added URL parameters to safe topic filer) --- .../person-card/person-card.component.html | 66 ++++----- .../person-card/person-card.component.scss | 22 ++- .../person-card/person-card.component.ts | 125 ++++++++++-------- .../person-list/person-list.component.html | 40 ++++-- .../person-list/person-list.component.scss | 27 +++- .../person-list/person-list.component.ts | 72 +++++++--- .../topic-hierarchy.component.html | 10 +- .../topic-hierarchy.component.ts | 65 +++------ 8 files changed, 256 insertions(+), 171 deletions(-) diff --git a/webapp/src/app/modules/person-card/person-card.component.html b/webapp/src/app/modules/person-card/person-card.component.html index df244ae9..725b6617 100644 --- a/webapp/src/app/modules/person-card/person-card.component.html +++ b/webapp/src/app/modules/person-card/person-card.component.html @@ -1,8 +1,8 @@
- + -
- {{ getInitials(person.display_name) }} +
+ {{ initials() }}
@@ -11,41 +11,43 @@ (click)=" toggleBookmark(); $event.stopPropagation(); $event.preventDefault() " - [class.bookmarked]="isBookmarked" + [class.bookmarked]="isBookmarked()" aria-label="Bookmark person"> {{ - isBookmarked ? 'bookmark' : 'bookmark_border' + isBookmarked() ? 'bookmark' : 'bookmark_border' }}

- {{ person.display_name ?? '' }} + [title]="person().display_name ?? ''"> + {{ person().display_name ?? '' }}

-

- {{ getDistinguishingId(person) }} +

+ {{ distinguishingId() }}

-

- {{ getStatsString() }} +

+ {{ statsString() }}

-

- {{ getHIndexString() }} +

+ {{ hIndexString() }}

- @if (institution(person); as inst) { + @if (institution(); as inst) {
- + "> {{ inst.display_name ?? '' }} - @if (inst.country_code && !loading) { + @if (inst.country_code && !loading()) { {{ inst.country_code.toUpperCase() }} } - +
}
- @for (topic of topics(person); track topic.id) { - {{ topic.display_name }} + "> + {{ topic.display_name }} + }
@@ -56,14 +60,18 @@
Sortierung:
- - @@ -132,19 +140,23 @@ @if (topicSearchControl.value) { }
@@ -158,6 +170,7 @@ type="text" [formControl]="institutionControl" [matAutocomplete]="auto" + aria-label="Institution suchen" placeholder="Institution suchen..." (keyup.enter)="applySidebarFilters()" /> + (click)="clearInstitutionFilter()" + aria-label="Institution zurücksetzen"> close } @@ -198,7 +212,8 @@ "> + (change)="applySidebarFilters()" + aria-label="Zusammenarbeit nach Jahr filtern"> Zusammenarbeit nach Jahr filtern + style="display: flex; gap: 16px" + aria-label="Modus für Jahresfilter"> Genau in @if (filterYearControl.hasError('min')) { Jahr muss ≥ 1900 sein @@ -255,7 +272,10 @@