fix(patents): einheitliches Patent-Icon + redundanten 'Patentdetails anzeigen'-Button entfernt #307

Merged
khalti merged 1 commits from ts-136-patent-to-researchers-v2 into dev 2026-08-27 18:38:57 +02:00
11 changed files with 6 additions and 208 deletions
@@ -147,19 +147,6 @@
) {
<p class="patent-detail-preview">{{ abstractPreview }}</p>
}
<button
type="button"
class="patent-detail-action"
(click)="openDetail()">
<span class="patent-detail-action__label"
>Patentdetails anzeigen</span
>
<mat-icon aria-hidden="true">{{ CHEVRON_RIGHT_ICON }}</mat-icon>
</button>
<p class="patent-detail-hint">
Abstract, Erfinder, Anmelder und IPC/CPC-Klassifikation
</p>
</div>
} @else {
<div class="patent-detail overview">
@@ -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);
@@ -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;
@@ -81,19 +81,6 @@
@if (getAbstractPreview(match.patent.abstract); as abstractPreview) {
<p class="patent-detail-preview">{{ abstractPreview }}</p>
}
<button
type="button"
class="patent-detail-action"
(click)="openDetail()">
<span class="patent-detail-action__label"
>Patentdetails anzeigen</span
>
<mat-icon aria-hidden="true">{{ CHEVRON_RIGHT_ICON }}</mat-icon>
</button>
<p class="patent-detail-hint">
Abstract, Erfinder, Anmelder und IPC/CPC-Klassifikation
</p>
</div>
} @else {
<div class="patent-detail overview">
@@ -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;
@@ -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<KeywordPatentMatch[]>([]);
readonly totalCount = input<number>(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);
}
@@ -89,19 +89,6 @@
) {
<p class="patent-detail-preview">{{ abstractPreview }}</p>
}
<button
type="button"
class="patent-detail-action"
(click)="openDetail()">
<span class="patent-detail-action__label"
>Patentdetails anzeigen</span
>
<mat-icon aria-hidden="true">{{ CHEVRON_RIGHT_ICON }}</mat-icon>
</button>
<p class="patent-detail-hint">
Abstract, Erfinder, Anmelder und IPC/CPC-Klassifikation
</p>
</div>
} @else {
<div class="patent-detail overview">
@@ -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);
@@ -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;
@@ -114,7 +114,7 @@
]"
matButton="outlined"
(click)="$event.stopPropagation()">
<mat-icon>{{ VERIFIED_ICON }}</mat-icon>
<mat-icon>{{ PATENT_ICON }}</mat-icon>
Patente
</a>
}
@@ -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;