From e25b5ed41b544e457d5e2fb70d75846fbfbd8042 Mon Sep 17 00:00:00 2001 From: Khuder Khalti Date: Thu, 27 Aug 2026 18:33:57 +0200 Subject: [PATCH] fix(patents): einheitliches Patent-Icon + redundanten 'Patentdetails anzeigen'-Button entfernt --- .../institution-patents.component.html | 13 ------ .../institution-patents.component.scss | 39 ---------------- .../institution-patents.component.ts | 7 --- .../keywords-patents.component.html | 13 ------ .../keywords-patents.component.scss | 45 ------------------- .../keywords-patents.component.ts | 26 +---------- .../person-patents.component.html | 13 ------ .../person-patents.component.scss | 39 ---------------- .../person-patents.component.ts | 13 +----- .../app-institution-card.component.html | 2 +- .../app-institution-card.component.ts | 4 +- 11 files changed, 6 insertions(+), 208 deletions(-) diff --git a/webapp/src/app/modules/institution-patents/institution-patents.component.html b/webapp/src/app/modules/institution-patents/institution-patents.component.html index ed0ff933..7644456b 100644 --- a/webapp/src/app/modules/institution-patents/institution-patents.component.html +++ b/webapp/src/app/modules/institution-patents/institution-patents.component.html @@ -147,19 +147,6 @@ ) {

{{ abstractPreview }}

} - - -

- Abstract, Erfinder, Anmelder und IPC/CPC-Klassifikation -

} @else {
diff --git a/webapp/src/app/modules/institution-patents/institution-patents.component.scss b/webapp/src/app/modules/institution-patents/institution-patents.component.scss index 2a14be28..d578ba42 100644 --- a/webapp/src/app/modules/institution-patents/institution-patents.component.scss +++ b/webapp/src/app/modules/institution-patents/institution-patents.component.scss @@ -261,45 +261,6 @@ app-query-param-paginator { color: var(--sg-text-muted); } -.patent-detail-action { - display: flex; - align-items: center; - justify-content: space-between; - gap: 8px; - width: 100%; - margin-top: 16px; - padding: 12px 14px; - border: 1px solid var(--sg-border); - border-radius: 10px; - background: var(--sg-surface-soft); - color: var(--sg-blue-highlight); - font-size: 14px; - font-weight: 600; - cursor: pointer; - transition: - border-color 0.15s, - background 0.15s, - box-shadow 0.15s; - - &:hover { - border-color: var(--sg-blue-highlight); - background: var(--sg-primary-soft); - box-shadow: var(--sg-shadow-sm); - } - - .material-icons { - font-size: 20px; - } -} - -.patent-detail-hint { - margin: 8px 0 0; - font-size: 12px; - line-height: 1.4; - color: var(--sg-text-muted); - text-align: center; -} - .patent-full-detail { flex: 1; border: 1px solid var(--sg-border); diff --git a/webapp/src/app/modules/institution-patents/institution-patents.component.ts b/webapp/src/app/modules/institution-patents/institution-patents.component.ts index 2ddbf314..1adc76f8 100644 --- a/webapp/src/app/modules/institution-patents/institution-patents.component.ts +++ b/webapp/src/app/modules/institution-patents/institution-patents.component.ts @@ -19,7 +19,6 @@ import { AppAuthorTooltipComponent } from '../../shared/ui/app-author-tooltip/ap import { PatentTableComponent } from '../../shared/ui/patent-table/patent-table.component'; import { SourceFilterComponent } from '../../shared/ui/source-filter/source-filter.component'; import { - CHEVRON_RIGHT_ICON, FILTER_ICON, PATENT_ICON, RULE_ICON, @@ -53,7 +52,6 @@ export class InstitutionPatentsComponent implements OnInit { readonly RULE_ICON = RULE_ICON; readonly FILTER_ICON = FILTER_ICON; readonly SORT_ICON = SORT_ICON; - readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON; readonly AuthorTooltipComponent = AppAuthorTooltipComponent; private route = inject(ActivatedRoute); @@ -155,11 +153,6 @@ export class InstitutionPatentsComponent implements OnInit { this.updateQueryParams(); } - openDetail(): void { - if (!this.selectedPatent) return; - this.router.navigate(['/patent', this.selectedPatent.patent_id]); - } - onPatentPageChange(event: PageEvent): void { this.pageIndex = event.pageIndex; this.pageSize = event.pageSize; diff --git a/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.html b/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.html index 881779e9..0759945c 100644 --- a/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.html +++ b/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.html @@ -81,19 +81,6 @@ @if (getAbstractPreview(match.patent.abstract); as abstractPreview) {

{{ abstractPreview }}

} - - -

- Abstract, Erfinder, Anmelder und IPC/CPC-Klassifikation -

} @else {
diff --git a/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.scss b/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.scss index 3e7b56a1..ad6709fa 100644 --- a/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.scss +++ b/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.scss @@ -266,51 +266,6 @@ app-query-param-paginator { color: var(--sg-text); } -.patent-detail-action { - display: flex; - align-items: center; - justify-content: space-between; - gap: 8px; - width: 100%; - margin-top: 12px; - padding: 10px 12px; - border: 0; - border-radius: 8px; - background: var(--sg-primary); - color: var(--sg-card-bg); - margin-top: 16px; - padding: 12px 14px; - border: 1px solid #bdd4ff; - border-radius: 10px; - background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%); - color: #0b63ce; - font-size: 14px; - font-weight: 600; - cursor: pointer; - transition: - border-color 0.15s, - background 0.15s, - box-shadow 0.15s; - - &:hover { - border-color: #0b63ce; - background: #f0f6ff; - box-shadow: 0 2px 8px rgba(11, 99, 206, 0.12); - } - - .material-icons { - font-size: 20px; - } -} - -.patent-detail-hint { - margin: 8px 0 0; - font-size: 12px; - line-height: 1.4; - color: #888; - text-align: center; -} - @media (max-width: 960px) { .patents-content { flex-direction: column; diff --git a/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.ts b/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.ts index 504d8af5..9686eb5b 100644 --- a/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.ts +++ b/webapp/src/app/modules/keywords-search/keywords-patents/keywords-patents.component.ts @@ -1,16 +1,8 @@ -import { - Component, - computed, - inject, - input, - output, - signal, -} from '@angular/core'; +import { Component, computed, input, output, signal } from '@angular/core'; import { MatFormFieldModule } from '@angular/material/form-field'; import { MatIconModule } from '@angular/material/icon'; import { MatSelectModule } from '@angular/material/select'; import { PageEvent } from '@angular/material/paginator'; -import { Router } from '@angular/router'; import { PatentEntry } from '../../../api/model/patentEntry'; import { KeywordPatentMatch } from '../../../api/model/keywordPatentMatch'; import { LoadingComponent } from '../../../shared/ui/loading/loading.component'; @@ -28,12 +20,7 @@ import { SourceFilterComponent, SourceFilterValue, } from '../../../shared/ui/source-filter/source-filter.component'; -import { - CHEVRON_RIGHT_ICON, - FILTER_ICON, - PATENT_ICON, - SORT_ICON, -} from '../../../shared/ui/icons'; +import { FILTER_ICON, PATENT_ICON, SORT_ICON } from '../../../shared/ui/icons'; export type PatentSourceFilter = SourceFilterValue; export type PatentSortColumn = 'title' | 'publication_year' | 'source'; @@ -68,9 +55,6 @@ export class KeywordsPatentsComponent { readonly PATENT_ICON = PATENT_ICON; readonly FILTER_ICON = FILTER_ICON; readonly SORT_ICON = SORT_ICON; - readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON; - - private readonly router = inject(Router); readonly matches = input([]); readonly totalCount = input(0); @@ -162,12 +146,6 @@ export class KeywordsPatentsComponent { this.selectedMatch.set(item); } - openDetail(): void { - const match = this.selectedMatch(); - if (!match) return; - void this.router.navigate(['/patent', match.patent.patent_id]); - } - formatDate(date: string | null | undefined): string { return formatPatentDate(date); } diff --git a/webapp/src/app/modules/person-patents/person-patents.component.html b/webapp/src/app/modules/person-patents/person-patents.component.html index 99b99ab9..174b6455 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.html +++ b/webapp/src/app/modules/person-patents/person-patents.component.html @@ -89,19 +89,6 @@ ) {

{{ abstractPreview }}

} - - -

- Abstract, Erfinder, Anmelder und IPC/CPC-Klassifikation -

} @else {
diff --git a/webapp/src/app/modules/person-patents/person-patents.component.scss b/webapp/src/app/modules/person-patents/person-patents.component.scss index 4c0cfaf6..2386e13e 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.scss +++ b/webapp/src/app/modules/person-patents/person-patents.component.scss @@ -238,45 +238,6 @@ app-query-param-paginator { color: var(--sg-text-muted); } -.patent-detail-action { - display: flex; - align-items: center; - justify-content: space-between; - gap: 8px; - width: 100%; - margin-top: 16px; - padding: 12px 14px; - border: 1px solid var(--sg-border); - border-radius: 10px; - background: var(--sg-primary-soft); - color: var(--sg-blue-highlight); - font-size: 14px; - font-weight: 600; - cursor: pointer; - transition: - border-color 0.15s, - background 0.15s, - box-shadow 0.15s; - - &:hover { - border-color: var(--sg-blue-highlight); - background: var(--sg-surface-soft); - box-shadow: var(--sg-shadow-sm); - } - - mat-icon { - font-size: 20px; - } -} - -.patent-detail-hint { - margin: 8px 0 0; - font-size: 12px; - line-height: 1.4; - color: var(--sg-text-muted); - text-align: center; -} - .patent-full-detail { flex: 1; border: 1px solid var(--sg-border); diff --git a/webapp/src/app/modules/person-patents/person-patents.component.ts b/webapp/src/app/modules/person-patents/person-patents.component.ts index 25440423..a70e254b 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.ts +++ b/webapp/src/app/modules/person-patents/person-patents.component.ts @@ -18,12 +18,7 @@ import { PageEvent } from '@angular/material/paginator'; import { QueryParamInputComponent } from '../../shared/ui/query-param-input/query-param-input.component'; import { QueryParamPaginatorComponent } from '../../shared/ui/query-param-paginator/query-param-paginator.component'; import { PatentTableComponent } from '../../shared/ui/patent-table/patent-table.component'; -import { - CHEVRON_RIGHT_ICON, - FILTER_ICON, - PATENT_ICON, - SORT_ICON, -} from '../../shared/ui/icons'; +import { FILTER_ICON, PATENT_ICON, SORT_ICON } from '../../shared/ui/icons'; import { SourceFilterComponent } from '../../shared/ui/source-filter/source-filter.component'; type SortColumn = 'title' | 'publication_year' | 'source'; @@ -50,7 +45,6 @@ export class PersonPatentsComponent { readonly PATENT_ICON = PATENT_ICON; readonly FILTER_ICON = FILTER_ICON; readonly SORT_ICON = SORT_ICON; - readonly CHEVRON_RIGHT_ICON = CHEVRON_RIGHT_ICON; private route = inject(ActivatedRoute); private router = inject(Router); @@ -174,11 +168,6 @@ export class PersonPatentsComponent { this.updateQueryParams(); } - openDetail(): void { - if (!this.selectedPatent) return; - this.router.navigate(['/patent', this.selectedPatent.patent_id]); - } - private applyFilter(): void { let patents = this.patents; diff --git a/webapp/src/app/shared/ui/app-institution-card/app-institution-card.component.html b/webapp/src/app/shared/ui/app-institution-card/app-institution-card.component.html index fdd4c0d2..dc2034da 100644 --- a/webapp/src/app/shared/ui/app-institution-card/app-institution-card.component.html +++ b/webapp/src/app/shared/ui/app-institution-card/app-institution-card.component.html @@ -114,7 +114,7 @@ ]" matButton="outlined" (click)="$event.stopPropagation()"> - {{ VERIFIED_ICON }} + {{ PATENT_ICON }} Patente } diff --git a/webapp/src/app/shared/ui/app-institution-card/app-institution-card.component.ts b/webapp/src/app/shared/ui/app-institution-card/app-institution-card.component.ts index 7b3c166c..bc47b1bc 100644 --- a/webapp/src/app/shared/ui/app-institution-card/app-institution-card.component.ts +++ b/webapp/src/app/shared/ui/app-institution-card/app-institution-card.component.ts @@ -19,10 +19,10 @@ import { CountryFlagComponent } from '../country-flag/country-flag.component'; import { CITATION_ICON, INFO_ICON, + PATENT_ICON, PROJECT_ICON, PUBLICATION_ICON, TRENDING_UP_ICON, - VERIFIED_ICON, } from '../icons'; @Component({ @@ -43,7 +43,7 @@ export class AppInstitutionCardComponent { readonly PUBLICATION_ICON = PUBLICATION_ICON; readonly CITATION_ICON = CITATION_ICON; readonly PROJECT_ICON = PROJECT_ICON; - readonly VERIFIED_ICON = VERIFIED_ICON; + readonly PATENT_ICON = PATENT_ICON; readonly INFO_ICON = INFO_ICON; readonly TRENDING_UP_ICON = TRENDING_UP_ICON; -- 2.56.1