added to_person_profile navigation
This commit is contained in:
+10
-1
@@ -137,7 +137,16 @@
|
||||
<div class="card__head">
|
||||
<div>
|
||||
<span class="card__eyebrow">Ausgewählt</span>
|
||||
<h3>{{ row.name }}</h3>
|
||||
|
||||
<a
|
||||
class="author-name author-link"
|
||||
[routerLink]="['/person', selectedId(), 'overview']"
|
||||
[appComponentTooltip]="AuthorTooltipComponent"
|
||||
[tooltipInputs]="{ authorId: selectedId() }"
|
||||
tooltipMaxWidth="500px"
|
||||
[title]="row.name">
|
||||
<h3>{{ row.name }}</h3>
|
||||
</a>
|
||||
<div class="card__meta">
|
||||
<span
|
||||
class="card__career"
|
||||
|
||||
+11
-4
@@ -18,7 +18,9 @@ import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
||||
import { MatSliderModule } from '@angular/material/slider';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
|
||||
import { RouterLink } from '@angular/router';
|
||||
import { ComponentTooltipDirective } from '../../../directives/component-tooltip.directive';
|
||||
import { AppAuthorTooltipComponent } from '../../../shared/ui/app-author-tooltip/app-author-tooltip.component';
|
||||
import {
|
||||
FounderCandidate,
|
||||
FounderCandidatePage,
|
||||
@@ -51,7 +53,6 @@ import {
|
||||
import { CredentialService } from '../../../shared/services/credential.service';
|
||||
import { FounderExplainerPanelComponent } from './founder-explainer-panel/founder-explainer-panel.component';
|
||||
|
||||
|
||||
const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen';
|
||||
|
||||
/**
|
||||
@@ -84,11 +85,14 @@ interface FounderRow {
|
||||
DataTableComponent,
|
||||
DashboardStatisticCardComponent,
|
||||
PageContainerComponent,
|
||||
RouterLink,
|
||||
ComponentTooltipDirective,
|
||||
],
|
||||
templateUrl: './founder-dashboard.component.html',
|
||||
styleUrl: './founder-dashboard.component.scss',
|
||||
})
|
||||
export class FounderDashboardComponent {
|
||||
readonly AuthorTooltipComponent = AppAuthorTooltipComponent;
|
||||
readonly FOUNDER_ICON = FOUNDER_ICON;
|
||||
readonly HELP_OUTLINE_ICON = HELP_OUTLINE_ICON;
|
||||
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
|
||||
@@ -119,8 +123,11 @@ export class FounderDashboardComponent {
|
||||
initialValue: this.route.snapshot.queryParamMap,
|
||||
});
|
||||
|
||||
readonly threshold = computed(
|
||||
() => Math.max(50, Math.min(100, toNumber(this.queryParams().get('threshold')) ?? 90)),
|
||||
readonly threshold = computed(() =>
|
||||
Math.max(
|
||||
50,
|
||||
Math.min(100, toNumber(this.queryParams().get('threshold')) ?? 90),
|
||||
),
|
||||
);
|
||||
readonly screened = computed(
|
||||
() => this.queryParams().get('screened') === 'true',
|
||||
|
||||
+14
-1
@@ -1,9 +1,22 @@
|
||||
<app-page-container
|
||||
[eyebrow]="'Multiplikatoren · ' + universityName()"
|
||||
[title]="unavailable()?.title ?? name()"
|
||||
[subtitle]="unavailable()?.body ?? null"
|
||||
[titleTooltip]="unavailable() ? null : pageTooltip">
|
||||
<div pageMeta class="meta-block">
|
||||
<h3 class="author-name">
|
||||
@if (researcher()?.author_id; as authorId) {
|
||||
<a
|
||||
class="author-name__link"
|
||||
[routerLink]="['/person', authorId, 'overview']"
|
||||
[appComponentTooltip]="AuthorTooltipComponent"
|
||||
[tooltipInputs]="{ authorId: authorId }"
|
||||
tooltipMaxWidth="500px">
|
||||
{{ name() }}
|
||||
</a>
|
||||
} @else {
|
||||
{{ name() }}
|
||||
}
|
||||
</h3>
|
||||
@if (!unavailable()) {
|
||||
<div class="meta-line">
|
||||
@if (careerBucket()) {
|
||||
|
||||
+18
@@ -216,7 +216,25 @@
|
||||
line-height: 1.4;
|
||||
}
|
||||
}
|
||||
.author-name {
|
||||
margin: 0;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
.author-name__link {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
border-radius: 2px;
|
||||
outline: 2px solid var(--sg-blue-highlight);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
.metric-label {
|
||||
cursor: help;
|
||||
text-decoration: underline dotted;
|
||||
|
||||
+23
-8
@@ -1,6 +1,13 @@
|
||||
import { Component, computed, inject, input, TemplateRef, viewChild } from '@angular/core';
|
||||
import {
|
||||
Component,
|
||||
computed,
|
||||
inject,
|
||||
input,
|
||||
TemplateRef,
|
||||
viewChild,
|
||||
} from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Router, RouterModule } from '@angular/router';
|
||||
import { Router, RouterLink } from '@angular/router';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
@@ -38,6 +45,8 @@ import {
|
||||
PERSON_OFF_ICON,
|
||||
WARNING_ICON,
|
||||
} from '../../../shared/ui/icons';
|
||||
import { ComponentTooltipDirective } from '../../../directives/component-tooltip.directive';
|
||||
import { AppAuthorTooltipComponent } from '../../../shared/ui/app-author-tooltip/app-author-tooltip.component';
|
||||
|
||||
const ROLE_ORDER = ['ego', 'cohort', 'mentee', 'industry', 'external'];
|
||||
const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen';
|
||||
@@ -70,7 +79,6 @@ interface MetricGroup {
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
RouterModule,
|
||||
MatButtonModule,
|
||||
MatCardModule,
|
||||
MatIconModule,
|
||||
@@ -81,6 +89,8 @@ interface MetricGroup {
|
||||
ChipComponent,
|
||||
MultiplierRoleScoresComponent,
|
||||
PageContainerComponent,
|
||||
RouterLink,
|
||||
ComponentTooltipDirective,
|
||||
],
|
||||
templateUrl: './researcher-network.component.html',
|
||||
styleUrl: './researcher-network.component.scss',
|
||||
@@ -91,7 +101,7 @@ export class ResearcherNetworkComponent {
|
||||
readonly PERSON_OFF_ICON = PERSON_OFF_ICON;
|
||||
readonly HELP_OUTLINE_ICON = HELP_OUTLINE_ICON;
|
||||
readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON;
|
||||
|
||||
readonly AuthorTooltipComponent = AppAuthorTooltipComponent;
|
||||
readonly page = input.required<ResearcherPageState>();
|
||||
|
||||
private readonly router = inject(Router);
|
||||
@@ -146,10 +156,14 @@ export class ResearcherNetworkComponent {
|
||||
this.researcher()?.author_id ??
|
||||
'Unbekannt',
|
||||
);
|
||||
readonly careerBucket = computed(() => this.researcher()?.career_bucket ?? null);
|
||||
readonly careerBucket = computed(
|
||||
() => this.researcher()?.career_bucket ?? null,
|
||||
);
|
||||
readonly activeYears = computed(() => this.researcher()?.active_years ?? 0);
|
||||
readonly nWorks = computed(() => this.researcher()?.n_works ?? 0);
|
||||
readonly suspicious = computed(() => this.researcher()?.suspicious_profile ?? false);
|
||||
readonly suspicious = computed(
|
||||
() => this.researcher()?.suspicious_profile ?? false,
|
||||
);
|
||||
readonly tags = computed(() => this.researcher()?.tags ?? []);
|
||||
readonly tagLabel = tagLabel;
|
||||
readonly tagDescription = tagDescription;
|
||||
@@ -189,8 +203,9 @@ export class ResearcherNetworkComponent {
|
||||
|
||||
private readonly metricTemplate =
|
||||
viewChild.required<TemplateRef<MetricRow>>('metricTemplate');
|
||||
private readonly metricValueTemplate =
|
||||
viewChild.required<TemplateRef<MetricRow>>('metricValueTemplate');
|
||||
private readonly metricValueTemplate = viewChild.required<
|
||||
TemplateRef<MetricRow>
|
||||
>('metricValueTemplate');
|
||||
private readonly metricRankTemplate =
|
||||
viewChild.required<TemplateRef<MetricRow>>('metricRankTemplate');
|
||||
private readonly metricHeader =
|
||||
|
||||
Reference in New Issue
Block a user