polish founder and multiplier views: clarified percentile semantics, add a founder KPI funnel, group detail metrics by role, and replace model jargon with neutral labels. Add explicit multiplier sort controls, career ranges, graph edge tool
This commit is contained in:
+3
@@ -5,6 +5,9 @@
|
||||
<div>
|
||||
<span>{{ label() }}</span>
|
||||
<strong>{{ loading() ? '…' : ((value() | number) ?? '–') }}</strong>
|
||||
@if (detail()) {
|
||||
<small class="statistics-detail">{{ detail() }}</small>
|
||||
}
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
|
||||
+7
@@ -56,6 +56,13 @@
|
||||
font-size: clamp(1.7rem, 3vw, 2.3rem);
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.statistics-detail {
|
||||
display: block;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 11.5px;
|
||||
line-height: 1.35;
|
||||
}
|
||||
}
|
||||
|
||||
.statistics-icon {
|
||||
|
||||
+2
@@ -30,6 +30,8 @@ export type DashboardStatisticCardVariant =
|
||||
export class DashboardStatisticCardComponent {
|
||||
readonly label = input.required<string>();
|
||||
readonly value = input<number | null>();
|
||||
/** Optional secondary line below the value, e.g. a share or denominator. */
|
||||
readonly detail = input<string | null>(null);
|
||||
readonly loading = input(false);
|
||||
readonly icon = input.required<string>();
|
||||
readonly variant = input.required<DashboardStatisticCardVariant>();
|
||||
|
||||
+130
-55
@@ -1,25 +1,37 @@
|
||||
<app-page-container
|
||||
[eyebrow]="'Gründungspotenzial · ' + universityName()"
|
||||
[title]="'Wer an der Uni gründet?'"
|
||||
title="Wer hat Gründungspotenzial?"
|
||||
subtitle="Kandidat:innen für Gründungsgespräche und -angebote."
|
||||
[titleTooltip]="pageTooltip">
|
||||
<div class="founder-dashboard">
|
||||
@if (hasData()) {
|
||||
@if (hasData() && hasScores()) {
|
||||
<section class="statistics-grid" aria-label="Kennzahlen">
|
||||
<app-dashboard-statistic-card
|
||||
label="Forschende im Index"
|
||||
label="Forschende gesamt"
|
||||
[value]="kpis().total"
|
||||
[icon]="PERSONS_ICON"
|
||||
variant="founders"
|
||||
[ariaLabel]="'Forschende im Index: ' + fmtInt(kpis().total)"
|
||||
[tooltip]="totalTooltip" />
|
||||
variant="persons"
|
||||
[ariaLabel]="'Forschende gesamt: ' + fmtInt(kpis().total)"
|
||||
[tooltip]="totalTooltip"
|
||||
[detail]="'inkl. nicht bewertbarer Profile'" />
|
||||
|
||||
<app-dashboard-statistic-card
|
||||
label="Bestehen Datenqualität"
|
||||
label="Vom Modell bewertet"
|
||||
[value]="kpis().scoreable"
|
||||
[icon]="FOUNDER_ICON"
|
||||
variant="founders"
|
||||
[ariaLabel]="'Vom Modell bewertet: ' + fmtInt(kpis().scoreable)"
|
||||
[tooltip]="scoreableTooltip"
|
||||
[detail]="scoreableDetail()" />
|
||||
|
||||
<app-dashboard-statistic-card
|
||||
label="Unauffällige Profile"
|
||||
[value]="kpis().passed"
|
||||
[icon]="VERIFIED_ICON"
|
||||
variant="quality"
|
||||
[ariaLabel]="'Bestehen Datenqualität: ' + fmtInt(kpis().passed)"
|
||||
[tooltip]="qualityTooltip()" />
|
||||
[ariaLabel]="'Unauffällige Profile: ' + fmtInt(kpis().passed)"
|
||||
[tooltip]="qualityTooltip()"
|
||||
[detail]="qualityDetail()" />
|
||||
|
||||
<app-dashboard-statistic-card
|
||||
label="Auf der Shortlist"
|
||||
@@ -27,12 +39,13 @@
|
||||
[icon]="STAR_ICON"
|
||||
variant="shortlist"
|
||||
[ariaLabel]="'Auf der Shortlist: ' + fmtInt(kpis().shortlisted)"
|
||||
[tooltip]="shortlistTooltip()" />
|
||||
[tooltip]="shortlistTooltip()"
|
||||
[detail]="shortlistDetail()" />
|
||||
</section>
|
||||
|
||||
<section class="shortlist-section">
|
||||
<div class="section-heading">
|
||||
<h2>Shortlist</h2>
|
||||
<h2>Shortlist: Top-Kandidat:innen</h2>
|
||||
<mat-icon
|
||||
class="info-icon"
|
||||
[matTooltip]="shortlistSectionTooltip"
|
||||
@@ -44,7 +57,7 @@
|
||||
|
||||
<div class="controls">
|
||||
<span class="controls__range">
|
||||
Minimaler Score
|
||||
Mindestwert
|
||||
<mat-icon
|
||||
class="info-icon"
|
||||
[matTooltip]="thresholdTooltip"
|
||||
@@ -66,7 +79,7 @@
|
||||
(valueChange)="onSliderInput($event)"
|
||||
(dragEnd)="onSliderCommit($event.value)"
|
||||
(keyup)="onSliderCommit()"
|
||||
aria-label="Minimaler Score" />
|
||||
aria-label="Mindestwert für die Shortlist" />
|
||||
</mat-slider>
|
||||
<span class="controls__value">{{ thresholdDraft() }}</span>
|
||||
<mat-slide-toggle
|
||||
@@ -75,7 +88,7 @@
|
||||
[matTooltip]="screeningTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
Fehlerhafte Datensätze aussortieren
|
||||
Auffällige Profile ausblenden
|
||||
</mat-slide-toggle>
|
||||
<span class="controls__count">
|
||||
{{ fmtInt(total()) }} {{ total() === 1 ? 'Person' : 'Personen' }}
|
||||
@@ -89,33 +102,46 @@
|
||||
[columns]="columns()"
|
||||
[data]="rows()"
|
||||
[selectedRow]="selectedRow()"
|
||||
queryParamSortKey="sortBy"
|
||||
queryParamSortDirectionKey="sortOrder"
|
||||
(rowClick)="selectCandidate($event.candidate.author_id)" />
|
||||
} @else {
|
||||
<div class="list__empty">
|
||||
Niemand erreicht diesen Schwellenwert, sobald fehlerhafte
|
||||
Datensätze aussortiert sind. Senke den Schwellenwert für eine
|
||||
handlungsfähige Liste.
|
||||
<p>{{ emptyListMessage() }}</p>
|
||||
@if (threshold() > 50) {
|
||||
<button
|
||||
mat-stroked-button
|
||||
color="primary"
|
||||
type="button"
|
||||
(click)="onLowerThreshold()">
|
||||
Mindestwert auf {{ threshold() - 10 }} senken
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
<app-query-param-paginator
|
||||
[total]="total()"
|
||||
[pageSizeOptions]="[10, 25, 50]" />
|
||||
|
||||
@if (selectedRow(); as row) {
|
||||
<mat-card appearance="outlined" class="card">
|
||||
<mat-card-content>
|
||||
<div class="card__head">
|
||||
<div>
|
||||
<span class="card__eyebrow">Ausgewählt</span>
|
||||
<h3>{{ row.name }}</h3>
|
||||
<div class="card__meta">
|
||||
{{ row.candidate.career_bucket ?? '–' }}
|
||||
<span
|
||||
class="card__career"
|
||||
[matTooltip]="careerBucketTooltip(row.candidate.career_bucket)"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ row.candidate.career_bucket ?? '–' }}
|
||||
</span>
|
||||
@if (row.areaLabel) {
|
||||
· {{ row.areaLabel }}
|
||||
}
|
||||
· {{ fmtInt(row.candidate.active_years) }} aktive Jahre
|
||||
· {{ fmtInt(row.candidate.active_years) }} Jahre mit
|
||||
Publikationen
|
||||
@if (!row.candidate.screen.passed && row.flagLabel) {
|
||||
·
|
||||
<span
|
||||
@@ -130,13 +156,18 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="score-caption">
|
||||
Alle Werte sind Ränge von 0 bis 100 – keine Wahrscheinlichkeiten.
|
||||
90 heißt: stärker als 90 % der Vergleichsgruppe.
|
||||
</p>
|
||||
|
||||
<div class="score-tiles">
|
||||
<div
|
||||
class="score-tile score-tile--primary"
|
||||
[matTooltip]="scoreTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
<span class="score-tile__label">Score</span>
|
||||
<span class="score-tile__label">Potenzial</span>
|
||||
<strong>{{ fmt1(row.score) }}</strong>
|
||||
</div>
|
||||
<div
|
||||
@@ -144,7 +175,7 @@
|
||||
[matTooltip]="withinTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
<span class="score-tile__label">Innerhalb 1 Jahr</span>
|
||||
<span class="score-tile__label">Signal 1 Jahr</span>
|
||||
<strong>{{ fmt1(row.within[0]) }}</strong>
|
||||
</div>
|
||||
<div
|
||||
@@ -152,7 +183,7 @@
|
||||
[matTooltip]="withinTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
<span class="score-tile__label">Innerhalb 3 Jahre</span>
|
||||
<span class="score-tile__label">Signal 3 Jahre</span>
|
||||
<strong>{{ fmt1(row.within[1]) }}</strong>
|
||||
</div>
|
||||
<div
|
||||
@@ -160,47 +191,84 @@
|
||||
[matTooltip]="withinTooltip"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
<span class="score-tile__label">Innerhalb 5 Jahre</span>
|
||||
<span class="score-tile__label">Signal 5 Jahre</span>
|
||||
<strong>{{ fmt1(row.within[2]) }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="facts">
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Publikationen
|
||||
<app-chip
|
||||
variant="outlined"
|
||||
color="secondary"
|
||||
matTooltip="Zahl der Publikationen der Person."
|
||||
matTooltipClass="sg-tooltip-wide">
|
||||
Publikationen
|
||||
<b>{{
|
||||
fmtInt(row.candidate.founder_features?.publications)
|
||||
}}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Patente
|
||||
}}</b>
|
||||
</app-chip>
|
||||
<app-chip
|
||||
variant="outlined"
|
||||
color="secondary"
|
||||
matTooltip="Zahl der Patente mit Bezug zur Einrichtung."
|
||||
matTooltipClass="sg-tooltip-wide">
|
||||
Patente
|
||||
<b>{{
|
||||
fmtInt(row.candidate.founder_features?.patents)
|
||||
}}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Industrie-Publikationen
|
||||
}}</b>
|
||||
</app-chip>
|
||||
<app-chip
|
||||
variant="outlined"
|
||||
color="secondary"
|
||||
matTooltip="Arbeiten mit Beteiligung aus Unternehmen."
|
||||
matTooltipClass="sg-tooltip-wide">
|
||||
Arbeiten mit Industrie
|
||||
<b>{{
|
||||
fmtInt(
|
||||
row.candidate.founder_features?.industry_collab_papers
|
||||
)
|
||||
}}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Förderungen
|
||||
}}</b>
|
||||
</app-chip>
|
||||
<app-chip
|
||||
variant="outlined"
|
||||
color="secondary"
|
||||
matTooltip="Zahl der Förderprojekte."
|
||||
matTooltipClass="sg-tooltip-wide">
|
||||
Förderprojekte
|
||||
<b>{{
|
||||
fmtInt(row.candidate.founder_features?.grants)
|
||||
}}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>aktive Jahre
|
||||
<b>{{ fmtInt(row.candidate.active_years) }}</b></app-chip
|
||||
>
|
||||
}}</b>
|
||||
</app-chip>
|
||||
<app-chip
|
||||
variant="outlined"
|
||||
color="secondary"
|
||||
matTooltip="Jahre mit mindestens einer Publikation."
|
||||
matTooltipClass="sg-tooltip-wide">
|
||||
Aktive Jahre
|
||||
<b>{{ fmtInt(row.candidate.active_years) }}</b>
|
||||
</app-chip>
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
}
|
||||
|
||||
<app-query-param-paginator
|
||||
[total]="total()"
|
||||
[pageSizeOptions]="[10, 25, 50]" />
|
||||
</section>
|
||||
} @else if (hasData()) {
|
||||
<mat-card appearance="outlined" class="empty-state">
|
||||
<mat-card-content>
|
||||
<mat-icon class="empty-state__icon">{{ FOUNDER_ICON }}</mat-icon>
|
||||
<h2>Noch keine Gründungspotenzial-Scores</h2>
|
||||
<p>
|
||||
Für die <strong>{{ universityName() }}</strong> liegen Forschungsdaten
|
||||
vor, aber die Gründungspotenzial-Auswertung wurde noch nicht
|
||||
berechnet. Sobald sie vorliegt, erscheinen hier die Kandidat:innen und
|
||||
ihre Werte.
|
||||
</p>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
} @else {
|
||||
<mat-card appearance="outlined" class="empty-state">
|
||||
<mat-card-content>
|
||||
@@ -210,7 +278,7 @@
|
||||
Für die <strong>{{ universityName() }}</strong> wurde das
|
||||
Gründungspotenzial noch nicht berechnet. Sobald die Auswertung
|
||||
vorliegt, erscheinen hier die Kandidat:innen und ihre
|
||||
Gründungspotenzial-Scores.
|
||||
Gründungspotenzial-Werte.
|
||||
</p>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
@@ -222,7 +290,13 @@
|
||||
<span class="list__name">
|
||||
<span class="list__nm">{{ row.name }}</span>
|
||||
<span class="list__sub">
|
||||
{{ row.candidate.career_bucket ?? '–' }}
|
||||
<span
|
||||
class="list__career"
|
||||
[matTooltip]="careerBucketTooltip(row.candidate.career_bucket)"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ row.candidate.career_bucket ?? '–' }}
|
||||
</span>
|
||||
@if (row.areaLabel) {
|
||||
· {{ row.areaLabel }}
|
||||
}
|
||||
@@ -242,20 +316,21 @@
|
||||
|
||||
<ng-template #evidenceTemplate let-row>
|
||||
<span class="list__evidence">
|
||||
{{ fmtInt(row.candidate.founder_features?.publications) }} Publ.
|
||||
{{ fmtInt(row.candidate.founder_features?.publications) }} Publikationen
|
||||
@if (row.candidate.founder_features?.patents) {
|
||||
· {{ fmtInt(row.candidate.founder_features?.patents) }} Pat.
|
||||
· {{ fmtInt(row.candidate.founder_features?.patents) }} Patente
|
||||
}
|
||||
@if (row.candidate.founder_features?.industry_collab_papers) {
|
||||
·
|
||||
{{ fmtInt(row.candidate.founder_features?.industry_collab_papers) }} Ind.
|
||||
{{ fmtInt(row.candidate.founder_features?.industry_collab_papers) }} mit
|
||||
Industrie
|
||||
}
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #scoreHeader>
|
||||
<span class="th-help">
|
||||
Score
|
||||
Potenzial (0–100)
|
||||
<mat-icon
|
||||
class="th-help__icon"
|
||||
[matTooltip]="scoreTooltip"
|
||||
@@ -268,7 +343,7 @@
|
||||
|
||||
<ng-template #withinHeader>
|
||||
<span class="th-help">
|
||||
Innerhalb 1 / 3 / 5 J.
|
||||
Signal 1 / 3 / 5 Jahre
|
||||
<mat-icon
|
||||
class="th-help__icon"
|
||||
[matTooltip]="withinTooltip"
|
||||
@@ -281,7 +356,7 @@
|
||||
|
||||
<ng-template #evidenceHeader>
|
||||
<span class="th-help">
|
||||
Evidenz
|
||||
Signale
|
||||
<mat-icon
|
||||
class="th-help__icon"
|
||||
[matTooltip]="evidenceTooltip"
|
||||
|
||||
+26
-1
@@ -146,8 +146,9 @@
|
||||
width: 32%;
|
||||
}
|
||||
|
||||
.mat-column-score {
|
||||
.mat-column-external_percentile {
|
||||
width: 15%;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.mat-column-within {
|
||||
@@ -203,6 +204,13 @@
|
||||
font-size: 11.5px;
|
||||
}
|
||||
|
||||
.list__career,
|
||||
.card__career {
|
||||
cursor: help;
|
||||
text-decoration: underline dotted;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
.list__score-value {
|
||||
min-width: 34px;
|
||||
color: var(--sg-text);
|
||||
@@ -255,6 +263,16 @@
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.card__eyebrow {
|
||||
display: block;
|
||||
margin-bottom: 2px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.card__meta {
|
||||
margin-bottom: 16px;
|
||||
color: var(--sg-text-soft);
|
||||
@@ -266,6 +284,13 @@
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
.score-caption {
|
||||
margin: 0 0 12px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 12px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.score-tiles {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
||||
|
||||
+65
-22
@@ -12,6 +12,7 @@ import { CommonModule } from '@angular/common';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { toSignal } from '@angular/core/rxjs-interop';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
||||
import { MatSliderModule } from '@angular/material/slider';
|
||||
@@ -20,9 +21,15 @@ import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
import {
|
||||
FounderCandidate,
|
||||
FounderCandidatePage,
|
||||
FounderSortBy,
|
||||
FounderStatistics,
|
||||
} from '../../../api';
|
||||
import { SCREEN_REASON_LABELS, fmt1, fmtInt } from '../founder-potential.utils';
|
||||
import {
|
||||
SCREEN_REASON_LABELS,
|
||||
careerBucketDescription,
|
||||
fmt1,
|
||||
fmtInt,
|
||||
} from '../founder-potential.utils';
|
||||
import { QueryParamPaginatorComponent } from '../../../shared/ui/query-param-paginator/query-param-paginator.component';
|
||||
import { ChipComponent } from '../../../shared/ui/chip/chip.component';
|
||||
import {
|
||||
@@ -63,6 +70,7 @@ interface FounderRow {
|
||||
imports: [
|
||||
CommonModule,
|
||||
MatCardModule,
|
||||
MatButtonModule,
|
||||
MatIconModule,
|
||||
MatSlideToggleModule,
|
||||
MatSliderModule,
|
||||
@@ -106,7 +114,7 @@ export class FounderDashboardComponent {
|
||||
});
|
||||
|
||||
readonly threshold = computed(
|
||||
() => toNumber(this.queryParams().get('threshold')) ?? 90,
|
||||
() => Math.max(50, Math.min(100, toNumber(this.queryParams().get('threshold')) ?? 90)),
|
||||
);
|
||||
readonly screened = computed(
|
||||
() => this.queryParams().get('screened') === 'true',
|
||||
@@ -124,56 +132,87 @@ export class FounderDashboardComponent {
|
||||
// -- Explanations (tooltips only) --------------------------------------
|
||||
|
||||
readonly pageTooltip =
|
||||
'Das Modell vergleicht das Profil einer Person – Publikationen, Patente, Förderungen und Zusammenarbeit mit der Industrie – mit den Profilen von Forschenden, die bereits gegründet haben. Daraus entsteht ein Wert von 0 bis 100: Je höher, desto stärker ähnelt das Profil erfolgreichen Gründer:innen. Das ist eine Einschätzung, keine sichere Vorhersage.';
|
||||
'Das Modell schätzt, wie stark das Profil einer Person zu Forschenden passt, die gegründet haben. Grundlage sind Publikationen, Patente, Förderungen und gemeinsame Arbeiten mit Unternehmen. Der Wert ist ein Rang von 0 bis 100 im Vergleich zu rund 9.000 Wissenschaftler:innen anderer Universitäten: 90 heißt „stärker als 90 % dieser Vergleichsgruppe“. Das ist ein Hinweis, keine Vorhersage und keine Gründungswahrscheinlichkeit.';
|
||||
|
||||
readonly totalTooltip =
|
||||
'Alle Forschenden der Universität, die in der Auswertung berücksichtigt werden.';
|
||||
'Alle Forschenden der Universität im Datensatz. Nicht alle davon lassen sich bewerten – dafür braucht das Modell mindestens 4 Publikationen.';
|
||||
|
||||
readonly scoreableTooltip =
|
||||
'Nur diese Personen haben genug Publikationen (mindestens 4), um vom Modell bewertet zu werden. Für alle anderen gibt es keinen Score.';
|
||||
|
||||
readonly qualityTooltip = computed(
|
||||
() =>
|
||||
`${this.kpis().share} % der Forschenden haben ein ausreichend vollständiges und plausibles Profil und können verlässlich bewertet werden.`,
|
||||
`${this.kpis().passed.toLocaleString('de-DE')} von ${this.kpis().total.toLocaleString('de-DE')} Forschenden (${this.kpis().share} %) haben ein vollständiges und plausibles Profil. Nur diese Werte sind gut belastbar.`,
|
||||
);
|
||||
|
||||
readonly shortlistTooltip = computed(
|
||||
() =>
|
||||
`Personen mit dem stärksten Gründungspotenzial – also die, die laut Modell am wahrscheinlichsten gründen würden. Angezeigt werden alle ab einem Score von ${this.threshold()}. ${
|
||||
`Personen mit dem stärksten Gründungspotenzial. Angezeigt werden alle ab einem Rang von ${this.threshold()}. ${
|
||||
this.screened()
|
||||
? 'Unzuverlässige Profile sind ausgeblendet.'
|
||||
: 'Auch unzuverlässige Profile sind enthalten.'
|
||||
? 'Auffällige Profile sind ausgeblendet.'
|
||||
: 'Auffällige Profile sind enthalten.'
|
||||
}`,
|
||||
);
|
||||
|
||||
readonly shortlistSectionTooltip =
|
||||
'Hier stehen die Personen mit dem stärksten Gründungspotenzial. Der Regler legt fest, ab welchem Score jemand in die Liste kommt.';
|
||||
'Hier stehen die Personen mit dem stärksten Gründungspotenzial. Der Regler legt fest, ab welchem Rang jemand in die Liste kommt.';
|
||||
|
||||
readonly thresholdTooltip =
|
||||
'Nur Personen mit mindestens diesem Gründungspotenzial werden angezeigt.';
|
||||
'Legt fest, ab welchem Rang Personen in der Shortlist erscheinen. 90 ist streng und zeigt nur die obersten 10 % der Vergleichsgruppe; 50 zeigt die obere Hälfte.';
|
||||
|
||||
readonly screeningTooltip =
|
||||
'Blendet Personen aus, deren Profil vermutlich unvollständig, falsch datiert oder mit anderen Personen vermischt ist.';
|
||||
'Blendet Profile aus, die vermutlich unvollständig, falsch datiert oder mit anderen Personen vermischt sind. Die Scores dieser Personen sind weniger verlässlich.';
|
||||
|
||||
readonly scoreTooltip =
|
||||
'Wie stark das Gründungspotenzial im Vergleich zu anderen Forschenden ist. 100 ist der höchste Wert.';
|
||||
'Rang des Gründungspotenzials von 0 bis 100. 90 heißt: stärker als 90 % der rund 9.000 vergleichbaren Wissenschaftler:innen anderer Universitäten. Kein Wahrscheinlichkeitswert.';
|
||||
|
||||
readonly withinTooltip =
|
||||
'Wie wahrscheinlich eine Gründung aus Sicht des Modells in den nächsten 1, 3 oder 5 Jahren ist.';
|
||||
'Getrennte Modelle für die Frage, ob das Profil zu einer Gründung innerhalb von 1, 3 oder 5 Jahren nach dem Stichtag passt – wieder als Rang von 0 bis 100, kein Wahrscheinlichkeitswert. Die drei Werte können unterschiedlich hoch sein.';
|
||||
|
||||
readonly evidenceTooltip =
|
||||
'Worauf die Einschätzung beruht: Publikationen, Patente und gemeinsame Arbeiten mit der Industrie.';
|
||||
'Die Signale, auf denen die Einschätzung beruht: Publikationen, Patente, Förderungen und gemeinsame Arbeiten mit der Industrie. Die Werte sind Zählungen, keine Bewertung der Person.';
|
||||
|
||||
readonly flagTooltip =
|
||||
'Dieses Profil ist vermutlich nicht ganz zuverlässig, zum Beispiel weil mehrere Personen vermischt wurden. Bitte die Werte vorsichtig interpretieren.';
|
||||
'Möglicherweise wurden mehrere Personen mit gleichem Namen zusammengeführt oder die Karriereangaben sind unplausibel. Die Werte sind dann unsicher. Bitte Identität und Profil prüfen, bevor Sie die Person ansprechen.';
|
||||
|
||||
readonly careerBucketTooltip = careerBucketDescription;
|
||||
|
||||
// -- KPIs ---------------------------------------------------------------
|
||||
|
||||
readonly kpis = computed(() => {
|
||||
const stats = this.statistics();
|
||||
const total = stats.provenance?.document_count ?? 0;
|
||||
const scoreable = stats.overall?.in_population ?? 0;
|
||||
const passed = stats.overall?.screened ?? 0;
|
||||
const share = total ? Math.round((passed / total) * 100) : 0;
|
||||
const shortlisted = this.candidates().total ?? 0;
|
||||
return { total, passed, share, shortlisted };
|
||||
return { total, scoreable, passed, share, shortlisted };
|
||||
});
|
||||
|
||||
/** True when the pipeline has produced at least one score for this university. */
|
||||
readonly hasScores = computed(
|
||||
() => (this.statistics().overall?.in_population ?? 0) > 0,
|
||||
);
|
||||
|
||||
readonly scoreableShare = computed(() => {
|
||||
const { total, scoreable } = this.kpis();
|
||||
return total ? Math.round((scoreable / total) * 100) : 0;
|
||||
});
|
||||
|
||||
readonly qualityDetail = computed(
|
||||
() => `${this.kpis().share} % der Forschenden`,
|
||||
);
|
||||
readonly scoreableDetail = computed(
|
||||
() => `${this.scoreableShare()} % der Forschenden`,
|
||||
);
|
||||
readonly shortlistDetail = computed(() => `ab Rang ${this.threshold()}`);
|
||||
|
||||
readonly emptyListMessage = computed(() =>
|
||||
this.screened()
|
||||
? `Niemand erreicht den Mindestwert von ${this.threshold()} und hat zugleich ein unauffälliges Profil. Senken Sie den Mindestwert oder blenden Sie auffällige Profile wieder ein.`
|
||||
: `Niemand erreicht den Mindestwert von ${this.threshold()}. Senken Sie den Mindestwert, um mehr Personen zu sehen.`,
|
||||
);
|
||||
|
||||
// -- Shortlist ----------------------------------------------------------
|
||||
|
||||
private readonly nameTemplate =
|
||||
@@ -195,13 +234,12 @@ export class FounderDashboardComponent {
|
||||
{
|
||||
id: 'name',
|
||||
header: 'Forschende',
|
||||
type: 'accessor',
|
||||
type: 'display',
|
||||
cellTemplate: this.nameTemplate(),
|
||||
accessorKey: 'name',
|
||||
},
|
||||
{
|
||||
id: 'score',
|
||||
header: 'Score',
|
||||
id: FounderSortBy.ExternalPercentile,
|
||||
header: 'Potenzial (0–100)',
|
||||
type: 'accessor',
|
||||
headerTemplate: this.scoreHeader(),
|
||||
cellTemplate: this.scoreTemplate(),
|
||||
@@ -209,14 +247,14 @@ export class FounderDashboardComponent {
|
||||
},
|
||||
{
|
||||
id: 'within',
|
||||
header: 'Innerhalb 1 / 3 / 5 J.',
|
||||
header: 'Signal 1 / 3 / 5 Jahre',
|
||||
type: 'display',
|
||||
headerTemplate: this.withinHeader(),
|
||||
cellTemplate: this.withinTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'evidence',
|
||||
header: 'Evidenz',
|
||||
header: 'Signale',
|
||||
type: 'display',
|
||||
headerTemplate: this.evidenceHeader(),
|
||||
cellTemplate: this.evidenceTemplate(),
|
||||
@@ -272,6 +310,11 @@ export class FounderDashboardComponent {
|
||||
});
|
||||
}
|
||||
|
||||
onLowerThreshold(): void {
|
||||
const next = Math.max(50, this.threshold() - 10);
|
||||
this.onSliderCommit(next);
|
||||
}
|
||||
|
||||
// -- Formatting helpers for the template --------------------------------
|
||||
|
||||
readonly fmtInt = fmtInt;
|
||||
|
||||
@@ -36,6 +36,62 @@ export const SCREEN_REASON_LABELS: Record<string, string> = {
|
||||
OUT_OF_POPULATION: 'Außerhalb der Modellpopulation',
|
||||
};
|
||||
|
||||
/** Plain-language explanation of each career bucket. */
|
||||
export const CAREER_BUCKET_DESCRIPTIONS: Record<string, string> = {
|
||||
Early: 'Frühe Karriere: 1–4 Jahre mit mindestens einer Publikation.',
|
||||
Emerging: 'Aufstrebend: 5–9 Jahre mit mindestens einer Publikation.',
|
||||
Established: 'Etabliert: 10–14 Jahre mit mindestens einer Publikation.',
|
||||
Senior: 'Senior: 15 oder mehr Jahre mit mindestens einer Publikation.',
|
||||
};
|
||||
|
||||
/** Short active-year range for each bucket, shown next to the bucket name. */
|
||||
export const CAREER_BUCKET_RANGES: Record<string, string> = {
|
||||
Early: '1–4 Jahre',
|
||||
Emerging: '5–9 Jahre',
|
||||
Established: '10–14 Jahre',
|
||||
Senior: '15+ Jahre',
|
||||
};
|
||||
|
||||
export function careerBucketRange(bucket: string | null | undefined): string {
|
||||
if (!bucket || bucket === '–') return '';
|
||||
return CAREER_BUCKET_RANGES[bucket] ?? '';
|
||||
}
|
||||
|
||||
export function careerBucketDescription(bucket: string | null | undefined): string {
|
||||
if (!bucket || bucket === '–') {
|
||||
return 'Karrierestufe unbekannt.';
|
||||
}
|
||||
return CAREER_BUCKET_DESCRIPTIONS[bucket] ?? `Karrierestufe: ${bucket}.`;
|
||||
}
|
||||
|
||||
/** The three multiplier roles plus stand-alone context metrics. */
|
||||
export type MetricGroupKey = 'bridger' | 'mentor' | 'amplifier' | 'context';
|
||||
|
||||
export const METRIC_GROUP_META: Record<
|
||||
MetricGroupKey,
|
||||
{ label: string; description: string }
|
||||
> = {
|
||||
bridger: {
|
||||
label: 'Bridger – verbindet Gruppen',
|
||||
description:
|
||||
'Wie gut die Person Forschungsgruppen und Fachgebiete miteinander verbindet.',
|
||||
},
|
||||
mentor: {
|
||||
label: 'Mentor – fördert Nachwuchs',
|
||||
description:
|
||||
'Wie stark die Person Nachwuchsforschende begleitet und unterstützt.',
|
||||
},
|
||||
amplifier: {
|
||||
label: 'Amplifier – bringt Forschung in Anwendung',
|
||||
description:
|
||||
'Wie stark Forschung in Wirtschaft, Patente und Öffentlichkeit getragen wird.',
|
||||
},
|
||||
context: {
|
||||
label: 'Weitere Kontextwerte',
|
||||
description: 'Zusätzliche Messwerte, die nicht direkt in eine Rolle einfließen.',
|
||||
},
|
||||
};
|
||||
|
||||
/** German labels for the funnel stages, keyed by their stable key. */
|
||||
export const FUNNEL_STAGE_LABELS: Record<string, string> = {
|
||||
ALL: 'Alle Forschenden im Index',
|
||||
@@ -49,25 +105,135 @@ export const FUNNEL_STAGE_LABELS: Record<string, string> = {
|
||||
export interface MetricDef {
|
||||
key: keyof ResearcherMetrics;
|
||||
label: string;
|
||||
group: MetricGroupKey;
|
||||
/** Plain-language explanation shown in the metric tooltip. */
|
||||
description: string;
|
||||
/** Share of the sub-score in percent, when the metric is weighted. */
|
||||
weight?: number;
|
||||
}
|
||||
|
||||
export const METRIC_DEFS: MetricDef[] = [
|
||||
{ key: 'betweenness', label: 'Betweenness-Zentralität' },
|
||||
{ key: 'brokerage', label: 'Brokerage' },
|
||||
{ key: 'constraint', label: 'Constraint' },
|
||||
{ key: 'field_entropy', label: 'Feld-Entropie' },
|
||||
{ key: 'cross_institution_share', label: 'Institutionsübergreifender Anteil' },
|
||||
{ key: 'strength', label: 'Stärke' },
|
||||
{ key: 'n_coauthors', label: 'Koautor:innen' },
|
||||
{ key: 'juniors_mentored', label: 'Betreute Nachwuchsforschende' },
|
||||
{ key: 'junior_progression_rate', label: 'Nachwuchs-Fortschrittsrate' },
|
||||
{ key: 'mentoring_rate', label: 'Mentoring-Rate' },
|
||||
{ key: 'last_author_with_junior_first', label: 'Letztautor mit Nachwuchs-Erstautor' },
|
||||
{ key: 'industry_coauthor_share', label: 'Industrie-Koautoranteil' },
|
||||
{ key: 'industry_coauthor_share_shrunk', label: 'Industrie-Koautoranteil (korrigiert)' },
|
||||
{ key: 'patent_count', label: 'Patente' },
|
||||
{ key: 'cordis_eu_projects', label: 'EU-Projekte (CORDIS)' },
|
||||
{ key: 'news_mentions', label: 'Medienerwähnungen' },
|
||||
{
|
||||
key: 'betweenness',
|
||||
label: 'Betweenness-Zentralität',
|
||||
group: 'bridger',
|
||||
weight: 35,
|
||||
description:
|
||||
'Wie oft die Person auf kürzesten Wegen zwischen anderen Forschenden liegt. Hoch = verbindet sonst getrennte Gruppen.',
|
||||
},
|
||||
{
|
||||
key: 'brokerage',
|
||||
label: 'Brokerage',
|
||||
group: 'bridger',
|
||||
weight: 25,
|
||||
description:
|
||||
'Wie häufig die Person Brücken zwischen sonst getrennten Gruppen schlägt.',
|
||||
},
|
||||
{
|
||||
key: 'field_entropy',
|
||||
label: 'Feld-Entropie',
|
||||
group: 'bridger',
|
||||
weight: 20,
|
||||
description:
|
||||
'Wie breit die Person über verschiedene Fachgebiete streut. Hoch = fachübergreifend.',
|
||||
},
|
||||
{
|
||||
key: 'cross_institution_share',
|
||||
label: 'Institutionsübergreifender Anteil',
|
||||
group: 'bridger',
|
||||
weight: 20,
|
||||
description:
|
||||
'Anteil der Kooperationen mit Personen anderer Einrichtungen.',
|
||||
},
|
||||
{
|
||||
key: 'juniors_mentored',
|
||||
label: 'Betreute Nachwuchsforschende',
|
||||
group: 'mentor',
|
||||
weight: 35,
|
||||
description:
|
||||
'Zahl der Nachwuchsforschenden, die die Person begleitet hat.',
|
||||
},
|
||||
{
|
||||
key: 'mentoring_rate',
|
||||
label: 'Mentoring-Rate',
|
||||
group: 'mentor',
|
||||
weight: 25,
|
||||
description:
|
||||
'Anteil der Arbeiten, an denen Nachwuchsforschende beteiligt sind.',
|
||||
},
|
||||
{
|
||||
key: 'last_author_with_junior_first',
|
||||
label: 'Letztautor mit Nachwuchs-Erstautor',
|
||||
group: 'mentor',
|
||||
weight: 25,
|
||||
description:
|
||||
'Arbeiten, in denen die Person als Letztautor:in einen Nachwuchsforschenden als Erstautor:in begleitet hat.',
|
||||
},
|
||||
{
|
||||
key: 'junior_progression_rate',
|
||||
label: 'Nachwuchs-Fortschrittsrate',
|
||||
group: 'mentor',
|
||||
weight: 15,
|
||||
description:
|
||||
'Wie häufig betreute Nachwuchsforschende anschließend selbst weiter publizieren.',
|
||||
},
|
||||
{
|
||||
key: 'industry_coauthor_share_shrunk',
|
||||
label: 'Industrie-Koautoranteil (korrigiert)',
|
||||
group: 'amplifier',
|
||||
weight: 50,
|
||||
description:
|
||||
'Anteil der Arbeiten mit Beteiligung aus Unternehmen – statistisch stabilisiert, damit kleine Fallzahlen nicht überbewertet werden.',
|
||||
},
|
||||
{
|
||||
key: 'patent_count',
|
||||
label: 'Patente',
|
||||
group: 'amplifier',
|
||||
weight: 25,
|
||||
description: 'Zahl der Patente mit Bezug zur Einrichtung.',
|
||||
},
|
||||
{
|
||||
key: 'cordis_eu_projects',
|
||||
label: 'EU-Projekte (CORDIS)',
|
||||
group: 'amplifier',
|
||||
weight: 15,
|
||||
description: 'Zahl der EU-geförderten Projekte (CORDIS).',
|
||||
},
|
||||
{
|
||||
key: 'news_mentions',
|
||||
label: 'Medienerwähnungen',
|
||||
group: 'amplifier',
|
||||
weight: 10,
|
||||
description: 'Zahl der Medienberichte, in denen die Person vorkommt.',
|
||||
},
|
||||
{
|
||||
key: 'constraint',
|
||||
label: 'Constraint',
|
||||
group: 'context',
|
||||
description:
|
||||
'Wie stark die Person in ein enges eigenes Netz eingebunden ist. Niedrig = viele Brücken zu anderen Gruppen.',
|
||||
},
|
||||
{
|
||||
key: 'strength',
|
||||
label: 'Stärke',
|
||||
group: 'context',
|
||||
description:
|
||||
'Gesamtstärke der Kooperationen – Zahl und Gewicht der gemeinsamen Arbeiten.',
|
||||
},
|
||||
{
|
||||
key: 'n_coauthors',
|
||||
label: 'Koautor:innen',
|
||||
group: 'context',
|
||||
description:
|
||||
'Zahl der Personen, mit denen die Person gemeinsam publiziert hat.',
|
||||
},
|
||||
{
|
||||
key: 'industry_coauthor_share',
|
||||
label: 'Industrie-Koautoranteil (roh)',
|
||||
group: 'context',
|
||||
description:
|
||||
'Anteil der Arbeiten mit Beteiligung aus Unternehmen, ohne statistische Korrektur.',
|
||||
},
|
||||
];
|
||||
|
||||
/** Whole numbers with German thousands separator. */
|
||||
|
||||
+23
-5
@@ -10,7 +10,7 @@
|
||||
queryParamKey="tag"
|
||||
label="Rollen-Badge"
|
||||
[multiple]="true"
|
||||
matTooltip="Zeigt nur Personen, die als Bridger, Mentor oder Amplifier eingestuft sind."
|
||||
matTooltip="Zeigt nur Personen, die diese Rolle als Badge tragen, also mindestens 85 % Rang in der Rolle erreichen."
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above" />
|
||||
|
||||
@@ -19,15 +19,15 @@
|
||||
queryParamKey="careerBucket"
|
||||
label="Karrierestufe"
|
||||
[multiple]="true"
|
||||
matTooltip="Zeigt nur Personen in der gewählten Karrierestufe."
|
||||
matTooltip="Early: 1–4 aktive Publikationsjahre, Emerging: 5–9, Established: 10–14, Senior: 15 oder mehr."
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above" />
|
||||
|
||||
<app-query-param-selector
|
||||
[options]="peerRankFieldOptions"
|
||||
queryParamKey="peerRankField"
|
||||
label="Rolle für Mindest-Rang"
|
||||
matTooltip="Wählt die Rolle, deren Rang für den Mindest-Rang gilt."
|
||||
label="Bezugsrolle für Mindest-Rang"
|
||||
matTooltip="Wählt die Rolle, deren Rang für den Mindest-Rang gilt. „Stärkste Rolle“ nutzt den besten der drei Werte."
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above" />
|
||||
|
||||
@@ -35,7 +35,25 @@
|
||||
[options]="minRankOptions"
|
||||
queryParamKey="minPeerRank"
|
||||
label="Mindest-Rang"
|
||||
matTooltip="Zeigt nur Personen, die diesen Rang in der gewählten Rolle mindestens erreichen."
|
||||
matTooltip="Zeigt nur Personen, die diesen Rang in der Bezugsrolle mindestens erreichen. 90 heißt: besser als 90 % der Vergleichsgruppe."
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above" />
|
||||
</div>
|
||||
|
||||
<div class="select-area">
|
||||
<app-query-param-selector
|
||||
[options]="sortByOptions"
|
||||
queryParamKey="sortBy"
|
||||
label="Sortieren nach"
|
||||
matTooltip="Legt fest, welche Rolle die Reihenfolge der Liste bestimmt."
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above" />
|
||||
|
||||
<app-query-param-selector
|
||||
[options]="sortOrderOptions"
|
||||
queryParamKey="sortOrder"
|
||||
label="Reihenfolge"
|
||||
matTooltip="Höchster Wert zuerst zeigt die stärksten Profile oben."
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above" />
|
||||
</div>
|
||||
|
||||
+28
-4
@@ -1,7 +1,13 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
|
||||
import { CareerBucket, MultiplierTag, PeerRankField } from '../../../api';
|
||||
import {
|
||||
CareerBucket,
|
||||
MultiplierTag,
|
||||
PeerRankField,
|
||||
ResearcherSortBy,
|
||||
SortDirection,
|
||||
} from '../../../api';
|
||||
import { tagLabel } from '../founder-potential.utils';
|
||||
import { QueryParamInputComponent } from '../../../shared/ui/query-param-input/query-param-input.component';
|
||||
import {
|
||||
@@ -37,9 +43,27 @@ export class MultiplierFiltersComponent {
|
||||
(value) => ({ value, display_name: tagLabel(value) }),
|
||||
);
|
||||
|
||||
readonly careerOptions: SelectorOption[] = Object.values(CareerBucket).map(
|
||||
(value) => ({ value, display_name: value }),
|
||||
);
|
||||
readonly careerOptions: SelectorOption[] = [
|
||||
{ value: CareerBucket.Early, display_name: 'Early (1–4 Jahre)' },
|
||||
{ value: CareerBucket.Emerging, display_name: 'Emerging (5–9 Jahre)' },
|
||||
{
|
||||
value: CareerBucket.Established,
|
||||
display_name: 'Established (10–14 Jahre)',
|
||||
},
|
||||
{ value: CareerBucket.Senior, display_name: 'Senior (15+ Jahre)' },
|
||||
];
|
||||
|
||||
readonly sortByOptions: SelectorOption[] = [
|
||||
{ value: ResearcherSortBy.Max, display_name: 'Stärkste Rolle' },
|
||||
{ value: ResearcherSortBy.Bridger, display_name: 'Bridger' },
|
||||
{ value: ResearcherSortBy.Mentor, display_name: 'Mentor' },
|
||||
{ value: ResearcherSortBy.Amplifier, display_name: 'Amplifier' },
|
||||
];
|
||||
|
||||
readonly sortOrderOptions: SelectorOption[] = [
|
||||
{ value: SortDirection.Desc, display_name: 'Höchster Wert zuerst' },
|
||||
{ value: SortDirection.Asc, display_name: 'Niedrigster Wert zuerst' },
|
||||
];
|
||||
|
||||
readonly peerRankFieldOptions: SelectorOption[] = [
|
||||
{ value: PeerRankField.Max, display_name: 'Stärkste Rolle' },
|
||||
|
||||
+22
-7
@@ -1,12 +1,13 @@
|
||||
<app-page-container
|
||||
[eyebrow]="'Multiplikatoren · ' + universityName()"
|
||||
title="Wer stärkt das Innovationsökosystem?"
|
||||
subtitle="Personen, die Forschungsgruppen verbinden, Nachwuchs fördern oder Forschung in die Anwendung tragen."
|
||||
[titleTooltip]="pageTooltip">
|
||||
<app-multiplier-filters />
|
||||
|
||||
<section class="table-section">
|
||||
<div class="section-heading">
|
||||
<h2>Multiplikator:innen in der Kohorte</h2>
|
||||
<h2>Multiplikator:innen der Universität</h2>
|
||||
<mat-icon
|
||||
class="info-icon"
|
||||
[matTooltip]="shortlistTooltip"
|
||||
@@ -15,6 +16,10 @@
|
||||
{{ INFO_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
</div>
|
||||
<p class="section-caption">
|
||||
Rollen sind Ränge von 0 bis 100 im Vergleich zu Personen derselben
|
||||
Karrierestufe – keine Wahrscheinlichkeiten.
|
||||
</p>
|
||||
|
||||
<mat-card appearance="outlined" class="table-card">
|
||||
<mat-card-content>
|
||||
@@ -22,9 +27,7 @@
|
||||
<app-data-table
|
||||
[columns]="columns()"
|
||||
[data]="rows()"
|
||||
[stickyHeader]="false"
|
||||
queryParamSortKey="sortBy"
|
||||
queryParamSortDirectionKey="sortOrder" />
|
||||
[stickyHeader]="false" />
|
||||
} @else if (!hasActiveFilters()) {
|
||||
<div class="empty-state">
|
||||
<mat-icon>hub</mat-icon>
|
||||
@@ -38,7 +41,8 @@
|
||||
<div class="empty-state empty-state--filtered">
|
||||
<h3>Keine passenden Forschenden gefunden</h3>
|
||||
<p>
|
||||
Ändere oder entferne einen Filter, um weitere Ergebnisse zu sehen.
|
||||
Ändern oder entfernen Sie einen Filter, um weitere Ergebnisse zu
|
||||
sehen.
|
||||
</p>
|
||||
</div>
|
||||
}
|
||||
@@ -73,7 +77,18 @@
|
||||
</ng-template>
|
||||
|
||||
<ng-template #careerTemplate let-row>
|
||||
<span class="career-cell">{{ row.careerBucket }}</span>
|
||||
<span
|
||||
class="career-cell"
|
||||
[matTooltip]="careerBucketTooltip(row.careerBucket)"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
<span class="career-cell__bucket">{{ row.careerBucket }}</span>
|
||||
@if (careerBucketRange(row.careerBucket)) {
|
||||
<span class="career-cell__range">{{
|
||||
careerBucketRange(row.careerBucket)
|
||||
}}</span>
|
||||
}
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #rolesTemplate let-row>
|
||||
@@ -138,7 +153,7 @@
|
||||
|
||||
<ng-template #tagsHeader>
|
||||
<span class="th-help">
|
||||
Badges
|
||||
Rollen-Badges
|
||||
<mat-icon
|
||||
class="th-help__icon"
|
||||
[matTooltip]="tagsHeaderTooltip"
|
||||
|
||||
+19
-5
@@ -16,7 +16,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
margin-bottom: 4px;
|
||||
|
||||
h2 {
|
||||
margin: 0;
|
||||
@@ -27,6 +27,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
.section-caption {
|
||||
margin: 0 0 14px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 12.5px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.table-card {
|
||||
overflow: hidden;
|
||||
background: var(--sg-surface-muted);
|
||||
@@ -55,9 +62,20 @@
|
||||
}
|
||||
|
||||
.career-cell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1px;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 12.5px;
|
||||
white-space: nowrap;
|
||||
cursor: help;
|
||||
text-decoration: underline dotted;
|
||||
text-underline-offset: 2px;
|
||||
|
||||
&__range {
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
|
||||
.warning {
|
||||
@@ -98,10 +116,6 @@
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.muted {
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
display: flex;
|
||||
min-height: 190px;
|
||||
|
||||
+14
-7
@@ -18,7 +18,13 @@ import {
|
||||
ResearcherSummary,
|
||||
ResearcherSummaryPage,
|
||||
} from '../../../api';
|
||||
import { fmtInt, tagDescription, tagLabel } from '../founder-potential.utils';
|
||||
import {
|
||||
fmtInt,
|
||||
tagDescription,
|
||||
tagLabel,
|
||||
careerBucketDescription,
|
||||
careerBucketRange,
|
||||
} from '../founder-potential.utils';
|
||||
import { ChipComponent } from '../../../shared/ui/chip/chip.component';
|
||||
import {
|
||||
DataTableComponent,
|
||||
@@ -110,7 +116,10 @@ export class MultipliersDashboardComponent {
|
||||
'Wie stark jemand als Bridger, Mentor oder Amplifier wirkt – verglichen mit anderen in derselben Karrierestufe. Die stärkste Rolle ist hervorgehoben.';
|
||||
|
||||
readonly tagsHeaderTooltip =
|
||||
'Diese Rollen sind bei der Person besonders stark ausgeprägt.';
|
||||
'Diese Rollen sind bei der Person besonders stark ausgeprägt (Rang ab 85 % in der Rolle).';
|
||||
|
||||
readonly careerBucketTooltip = careerBucketDescription;
|
||||
readonly careerBucketRange = careerBucketRange;
|
||||
|
||||
readonly suspiciousTooltip =
|
||||
'Bei diesem Profil wurden vermutlich mehrere Personen vermischt. Die Angaben zu Publikationen und Netzwerk sind deshalb unsicher.';
|
||||
@@ -147,15 +156,13 @@ export class MultipliersDashboardComponent {
|
||||
{
|
||||
id: 'name',
|
||||
header: 'Forschende',
|
||||
type: 'accessor',
|
||||
accessorKey: 'name',
|
||||
type: 'display',
|
||||
cellTemplate: this.nameTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'career',
|
||||
header: 'Karrierestufe',
|
||||
type: 'accessor',
|
||||
accessorKey: 'careerBucket',
|
||||
type: 'display',
|
||||
headerTemplate: this.careerHeader(),
|
||||
cellTemplate: this.careerTemplate(),
|
||||
},
|
||||
@@ -168,7 +175,7 @@ export class MultipliersDashboardComponent {
|
||||
},
|
||||
{
|
||||
id: 'tags',
|
||||
header: 'Badges',
|
||||
header: 'Rollen-Badges',
|
||||
type: 'display',
|
||||
headerTemplate: this.tagsHeader(),
|
||||
cellTemplate: this.tagsTemplate(),
|
||||
|
||||
+42
-13
@@ -4,6 +4,10 @@
|
||||
[subtitle]="unavailable()?.body ?? null"
|
||||
[titleTooltip]="unavailable() ? null : pageTooltip">
|
||||
<div pageMeta class="meta-block">
|
||||
<a class="back-link" routerLink="/multipliers">
|
||||
<mat-icon>{{ ARROW_BACK_ICON }}</mat-icon>
|
||||
Zurück zur Multiplikatoren-Übersicht
|
||||
</a>
|
||||
@if (!unavailable()) {
|
||||
<div class="meta-line">
|
||||
@if (careerBucket()) {
|
||||
@@ -30,6 +34,7 @@
|
||||
</div>
|
||||
@if (tags().length) {
|
||||
<div class="tags">
|
||||
<span class="tags__label">Rollen-Badges:</span>
|
||||
@for (tag of tags(); track tag) {
|
||||
<app-chip
|
||||
color="info"
|
||||
@@ -82,6 +87,10 @@
|
||||
</span>
|
||||
<span class="legend__item">Knotengröße = aktive Jahre</span>
|
||||
</div>
|
||||
<p class="graph-hint">
|
||||
Personen anklicken, um ihr Profil zu öffnen · ziehen zum Verschieben ·
|
||||
scrollen zum Zoomen
|
||||
</p>
|
||||
|
||||
<div class="case-grid">
|
||||
<mat-card appearance="outlined" class="netbox">
|
||||
@@ -101,8 +110,8 @@
|
||||
<div class="netfoot">
|
||||
{{ fmtInt(netMeta().shown) }} von
|
||||
{{ fmtInt(netMeta().totalCoauthors) }} Koautor:innen dargestellt ·
|
||||
{{ fmtInt(netMeta().cohortCoauthors) }} aus der
|
||||
Universitätskohorte · {{ fmtInt(netMeta().mentees) }} Mentees
|
||||
{{ fmtInt(netMeta().cohortCoauthors) }} aus der Universität ·
|
||||
{{ fmtInt(netMeta().mentees) }} Nachwuchsforschende
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
@@ -128,7 +137,7 @@
|
||||
|
||||
<section class="metrics">
|
||||
<h2>
|
||||
Metriken im Detail
|
||||
Messwerte nach Rolle
|
||||
<mat-icon
|
||||
class="info-icon"
|
||||
[matTooltip]="metricsTooltip"
|
||||
@@ -137,28 +146,48 @@
|
||||
{{ INFO_OUTLINE_ICON }}
|
||||
</mat-icon>
|
||||
</h2>
|
||||
<app-compact-data-table
|
||||
[columns]="metricColumns()"
|
||||
[data]="metricRows()" />
|
||||
<p class="metrics-caption">
|
||||
Rang 0–100 im Vergleich zu Personen derselben Karrierestufe.
|
||||
Ab 85 % wird ein Rollen-Badge vergeben.
|
||||
</p>
|
||||
@for (group of metricGroups(); track group.key) {
|
||||
<div class="metric-group">
|
||||
<h3 class="metric-group__title">{{ group.label }}</h3>
|
||||
<p class="metric-group__desc">{{ group.description }}</p>
|
||||
<app-compact-data-table
|
||||
[columns]="metricColumns()"
|
||||
[data]="group.rows" />
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
|
||||
<footer class="network-footer">
|
||||
Netzwerk-Konfiguration
|
||||
<span class="mono">{{ network()?.config_hash ?? '–' }}</span> ·
|
||||
berechnet
|
||||
<span class="mono">{{
|
||||
network()?.computed_at | date: 'dd.MM.yyyy HH:mm'
|
||||
}}</span>
|
||||
@if (networkComputedAt(); as computedAt) {
|
||||
Netzwerk berechnet am
|
||||
<span class="mono">{{ computedAt | date: 'dd.MM.yyyy' }}</span>
|
||||
} @else {
|
||||
Netzwerkstand unbekannt
|
||||
}
|
||||
@if (dataComputedAt(); as computedAt) {
|
||||
· Datenstand
|
||||
<span class="mono">{{ computedAt | date: 'dd.MM.yyyy' }}</span>
|
||||
}
|
||||
</footer>
|
||||
</div>
|
||||
}
|
||||
</app-page-container>
|
||||
|
||||
<ng-template #metricTemplate let-row>
|
||||
{{ row.label }}
|
||||
<span
|
||||
class="metric-label"
|
||||
[matTooltip]="row.hint"
|
||||
matTooltipClass="sg-tooltip-wide"
|
||||
matTooltipPosition="above">
|
||||
{{ row.label }}
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #metricValueTemplate let-row>
|
||||
|
||||
+52
-2
@@ -4,14 +4,18 @@
|
||||
}
|
||||
|
||||
.back-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin-bottom: 6px;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 13px;
|
||||
text-decoration: none;
|
||||
|
||||
mat-icon {
|
||||
font-size: 18px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@@ -68,8 +72,20 @@
|
||||
.tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
margin-top: 4px;
|
||||
|
||||
&__label {
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.graph-hint {
|
||||
margin: 8px 0 0;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.legend {
|
||||
@@ -185,7 +201,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin: 0 0 8px;
|
||||
margin: 0 0 4px;
|
||||
color: var(--sg-text);
|
||||
font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px));
|
||||
font-weight: var(--sg-section-title-weight, 700);
|
||||
@@ -193,6 +209,40 @@
|
||||
}
|
||||
}
|
||||
|
||||
.metrics-caption {
|
||||
margin: 0 0 4px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 12px;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.metric-group {
|
||||
margin-top: 16px;
|
||||
|
||||
&__title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
margin: 0 0 2px;
|
||||
color: var(--sg-text);
|
||||
font-size: 13.5px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
&__desc {
|
||||
margin: 0 0 6px;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 11.5px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
}
|
||||
|
||||
.metric-label {
|
||||
cursor: help;
|
||||
text-decoration: underline dotted;
|
||||
text-underline-offset: 2px;
|
||||
}
|
||||
|
||||
.th-help {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
||||
+45
-1
@@ -9,6 +9,8 @@ import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
import { MetricValue, ResearcherMetrics } from '../../../api';
|
||||
import {
|
||||
METRIC_DEFS,
|
||||
METRIC_GROUP_META,
|
||||
MetricGroupKey,
|
||||
fmtInt,
|
||||
fmtMetricValue,
|
||||
fmtPeerRank,
|
||||
@@ -49,9 +51,20 @@ interface UnavailableView {
|
||||
interface MetricRow {
|
||||
key: keyof ResearcherMetrics;
|
||||
label: string;
|
||||
group: MetricGroupKey;
|
||||
/** Plain-language explanation, shown on the metric label. */
|
||||
hint: string;
|
||||
/** The measured value plus its peer rank. */
|
||||
metric: MetricValue;
|
||||
}
|
||||
|
||||
interface MetricGroup {
|
||||
key: MetricGroupKey;
|
||||
label: string;
|
||||
description: string;
|
||||
rows: MetricRow[];
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'app-researcher-network',
|
||||
standalone: true,
|
||||
@@ -153,7 +166,7 @@ export class ResearcherNetworkComponent {
|
||||
'Wie stark die drei Rollen ausgeprägt sind. Ab 85 % wird ein Badge vergeben.';
|
||||
|
||||
readonly metricsTooltip =
|
||||
'Die einzelnen Messwerte, aus denen die Rollen berechnet werden – zum Beispiel Netzwerk, Mentoring und Industrie.';
|
||||
'Die Messwerte sind nach Rolle gruppiert. Jede Zeile nennt das Gewicht im jeweiligen Rollen-Score.';
|
||||
|
||||
readonly valueTooltip =
|
||||
'Der gemessene Wert, zum Beispiel eine Anzahl oder ein Anteil.';
|
||||
@@ -191,10 +204,41 @@ export class ResearcherNetworkComponent {
|
||||
METRIC_DEFS.map((definition) => ({
|
||||
key: definition.key,
|
||||
label: definition.label,
|
||||
group: definition.group,
|
||||
hint:
|
||||
definition.weight != null
|
||||
? `${definition.description} Gewicht im Rollen-Score: ${definition.weight} %.`
|
||||
: definition.description,
|
||||
metric: this.researcher()?.metrics?.[definition.key] ?? {},
|
||||
})),
|
||||
);
|
||||
|
||||
/** Metrics grouped by the role they feed, with an extra context group. */
|
||||
readonly metricGroups = computed<MetricGroup[]>(() => {
|
||||
const rows = this.metricRows();
|
||||
const groupKeys: MetricGroupKey[] = [
|
||||
'bridger',
|
||||
'mentor',
|
||||
'amplifier',
|
||||
'context',
|
||||
];
|
||||
return groupKeys
|
||||
.map((key) => ({
|
||||
key,
|
||||
label: METRIC_GROUP_META[key].label,
|
||||
description: METRIC_GROUP_META[key].description,
|
||||
rows: rows.filter((row) => row.group === key),
|
||||
}))
|
||||
.filter((group) => group.rows.length > 0);
|
||||
});
|
||||
|
||||
readonly networkComputedAt = computed(
|
||||
() => this.network()?.computed_at ?? null,
|
||||
);
|
||||
readonly dataComputedAt = computed(
|
||||
() => this.researcher()?.computed_at ?? null,
|
||||
);
|
||||
|
||||
readonly metricColumns = computed<GenericColumn<MetricRow>[]>(() => [
|
||||
{
|
||||
id: 'metric',
|
||||
|
||||
@@ -7,6 +7,10 @@ import {
|
||||
SortDirection,
|
||||
} from '../api';
|
||||
|
||||
const FOUNDER_SORT_FIELDS = Object.values(FounderSortBy);
|
||||
const SORT_DIRECTIONS = Object.values(SortDirection);
|
||||
const DEFAULT_THRESHOLD = 90;
|
||||
|
||||
/**
|
||||
* The founder-candidate list for the dashboard. Driven entirely by query
|
||||
* params (threshold, screened, page, size, sort) so the page state stays in
|
||||
@@ -18,23 +22,25 @@ export const founderCandidatesResolver: ResolveFn<FounderCandidatePage> = (
|
||||
const service = inject(MultiplicatorsService);
|
||||
const params = route.queryParamMap;
|
||||
|
||||
const page = toInt(params.get('page'), 0);
|
||||
const size = toInt(params.get('size'), 25);
|
||||
const threshold = toNumber(params.get('threshold'));
|
||||
const page = Math.max(0, toInt(params.get('page'), 0));
|
||||
const size = clamp(toInt(params.get('size'), 25), 1, 100);
|
||||
const thresholdRaw = toNumber(params.get('threshold'));
|
||||
const threshold = clamp(thresholdRaw ?? DEFAULT_THRESHOLD, 0, 100);
|
||||
|
||||
const screenedRaw = params.get('screened');
|
||||
const screened = screenedRaw === null ? undefined : screenedRaw === 'true';
|
||||
|
||||
const sortBy = (params.get('sortBy') as FounderSortBy) ??
|
||||
const sortBy =
|
||||
asMember(params.get('sortBy'), FOUNDER_SORT_FIELDS) ??
|
||||
FounderSortBy.ExternalPercentile;
|
||||
const sortOrder = (params.get('sortOrder') as SortDirection) ??
|
||||
SortDirection.Desc;
|
||||
const sortOrder =
|
||||
asMember(params.get('sortOrder'), SORT_DIRECTIONS) ?? SortDirection.Desc;
|
||||
|
||||
return service.searchFounderCandidates(
|
||||
page,
|
||||
size,
|
||||
true, // in_population: only researchers the model can score
|
||||
threshold ?? undefined,
|
||||
threshold,
|
||||
undefined, // max_external_percentile
|
||||
undefined, // career_bucket
|
||||
screened,
|
||||
@@ -50,6 +56,19 @@ export const founderCandidatesResolver: ResolveFn<FounderCandidatePage> = (
|
||||
);
|
||||
};
|
||||
|
||||
function asMember<T extends string>(
|
||||
value: string | null,
|
||||
allowed: readonly T[],
|
||||
): T | null {
|
||||
return value !== null && (allowed as readonly string[]).includes(value)
|
||||
? (value as T)
|
||||
: null;
|
||||
}
|
||||
|
||||
function clamp(value: number, min: number, max: number): number {
|
||||
return Math.max(min, Math.min(max, value));
|
||||
}
|
||||
|
||||
function toInt(value: string | null, fallback: number): number {
|
||||
if (value === null || value === '') return fallback;
|
||||
const parsed = Number.parseInt(value, 10);
|
||||
|
||||
@@ -16,7 +16,12 @@ import { MatCardContent, MatCardModule } from '@angular/material/card';
|
||||
import { MatProgressSpinner } from '@angular/material/progress-spinner';
|
||||
import { activeInstitutionPersonListQueryParams } from '../../person-list-query-params';
|
||||
import { topicQueryParamKeys } from '../../../resolvers/topic-page.resolver';
|
||||
import { SortDirection, TopicSortBy, WorkSortBy } from '../../../api';
|
||||
import {
|
||||
FounderSortBy,
|
||||
SortDirection,
|
||||
TopicSortBy,
|
||||
WorkSortBy,
|
||||
} from '../../../api';
|
||||
import { workQueryParamKeys } from '../../../resolvers/work-page.resolver';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import {
|
||||
@@ -231,7 +236,14 @@ export class AppMenuComponent {
|
||||
icon: FOUNDER_ICON,
|
||||
route: '/founders',
|
||||
disabled: false,
|
||||
queryParams: { threshold: 90, screened: 'true', page: 0, size: 10 },
|
||||
queryParams: {
|
||||
threshold: 90,
|
||||
screened: 'true',
|
||||
page: 0,
|
||||
size: 10,
|
||||
sortBy: FounderSortBy.ExternalPercentile,
|
||||
sortOrder: SortDirection.Desc,
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'Multiplikatoren',
|
||||
|
||||
+49
-4
@@ -19,9 +19,9 @@ export interface MultiplierNodeClickEvent {
|
||||
|
||||
/** German labels for the network roles, shared with the HTML legend. */
|
||||
export const MULTIPLIER_ROLE_LABELS: Record<string, string> = {
|
||||
ego: 'Ego (Person)',
|
||||
cohort: 'UDE-Kohorte',
|
||||
mentee: 'Mentee',
|
||||
ego: 'Diese Person',
|
||||
cohort: 'Universität',
|
||||
mentee: 'Nachwuchs',
|
||||
industry: 'Unternehmen',
|
||||
external: 'Extern',
|
||||
};
|
||||
@@ -89,10 +89,13 @@ export class MultiplierNetworkGraphComponent {
|
||||
borderColor: colors.tooltipBorder,
|
||||
textStyle: { color: colors.tooltipTextColor },
|
||||
formatter: (params: any) => {
|
||||
if (!params || params.dataType === 'edge' || !params.data) {
|
||||
if (!params || !params.data) {
|
||||
return '';
|
||||
}
|
||||
const d = params.data;
|
||||
if (params.dataType === 'edge') {
|
||||
return edgeTooltip(d);
|
||||
}
|
||||
const lines = [
|
||||
`<strong>${escapeHtml(d.name ?? d.id)}</strong>`,
|
||||
escapeHtml(MULTIPLIER_ROLE_LABELS[d.role] ?? d.role),
|
||||
@@ -104,6 +107,9 @@ export class MultiplierNetworkGraphComponent {
|
||||
if (d.role === 'ego' && d.nWorks != null) {
|
||||
lines.push(`${d.nWorks} Publikationen`);
|
||||
}
|
||||
if (d.suspicious) {
|
||||
lines.push('Profil möglicherweise zusammengeführt');
|
||||
}
|
||||
return lines.join('<br>');
|
||||
},
|
||||
},
|
||||
@@ -161,6 +167,7 @@ export class MultiplierNetworkGraphComponent {
|
||||
role,
|
||||
inst: node.inst ?? '',
|
||||
activeYears,
|
||||
suspicious: node.suspicious ?? false,
|
||||
nWorks: isEgo ? nWorks : undefined,
|
||||
symbolSize: isEgo ? 24 : clamp(8 + activeYears * 1.1, 8, 26),
|
||||
itemStyle: {
|
||||
@@ -180,9 +187,19 @@ export class MultiplierNetworkGraphComponent {
|
||||
}
|
||||
|
||||
private buildLinks(edges: EgoNetworkEdge[]): any[] {
|
||||
const names = new Map<string, string>();
|
||||
for (const node of this.network().nodes ?? []) {
|
||||
names.set(node.id, node.name ?? node.id);
|
||||
}
|
||||
return edges.map((edge) => ({
|
||||
source: edge.a,
|
||||
target: edge.b,
|
||||
sourceName: names.get(edge.a) ?? edge.a,
|
||||
targetName: names.get(edge.b) ?? edge.b,
|
||||
nWorks: edge.n_works,
|
||||
cross: edge.cross ?? false,
|
||||
firstYear: edge.first_year,
|
||||
lastYear: edge.last_year,
|
||||
lineStyle: {
|
||||
width: clamp((edge.w ?? 0) * 2.5, 1, 7),
|
||||
type: edge.cross ? 'dashed' : 'solid',
|
||||
@@ -205,6 +222,34 @@ function clamp(value: number, min: number, max: number): number {
|
||||
return Math.max(min, Math.min(max, value));
|
||||
}
|
||||
|
||||
/** Plain-language tooltip for a collaboration tie. */
|
||||
function edgeTooltip(edge: {
|
||||
sourceName?: string;
|
||||
targetName?: string;
|
||||
nWorks?: number;
|
||||
cross?: boolean;
|
||||
firstYear?: number | null;
|
||||
lastYear?: number | null;
|
||||
}): string {
|
||||
const source = escapeHtml(edge.sourceName ?? '');
|
||||
const target = escapeHtml(edge.targetName ?? '');
|
||||
const lines = [`<strong>${source} ↔ ${target}</strong>`];
|
||||
if (edge.nWorks != null) {
|
||||
lines.push(
|
||||
`${edge.nWorks} gemeinsame Publikation${edge.nWorks === 1 ? '' : 'en'}`,
|
||||
);
|
||||
}
|
||||
if (edge.firstYear && edge.lastYear) {
|
||||
lines.push(`${edge.firstYear}–${edge.lastYear}`);
|
||||
}
|
||||
lines.push(
|
||||
edge.cross
|
||||
? 'Überwiegend institutionsübergreifend'
|
||||
: 'An derselben Einrichtung',
|
||||
);
|
||||
return lines.join('<br>');
|
||||
}
|
||||
|
||||
function escapeHtml(value: string): string {
|
||||
return String(value).replace(
|
||||
/[&<>"']/g,
|
||||
|
||||
@@ -20,7 +20,14 @@
|
||||
[hint]="role.hint"
|
||||
[value]="role.value * 100"
|
||||
[display]="role.display"
|
||||
[strongest]="role.isStrongest"
|
||||
[threshold]="showThreshold() ? threshold : null" />
|
||||
}
|
||||
@if (hasStrongest()) {
|
||||
<p class="role-scores__note">
|
||||
<mat-icon aria-hidden="true">star</mat-icon>
|
||||
Stärkste Rolle dieser Person
|
||||
</p>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -18,3 +18,19 @@
|
||||
gap: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.role-scores__note {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin: 6px 0 0;
|
||||
color: var(--sg-text-soft);
|
||||
font-size: 11.5px;
|
||||
|
||||
mat-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Component, computed, input } from '@angular/core';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
|
||||
import { MultiplierPeerRanks } from '../../../api';
|
||||
@@ -16,7 +17,7 @@ const ROLE_KEYS = ['bridger', 'mentor', 'amplifier'] as const;
|
||||
@Component({
|
||||
selector: 'app-multiplier-role-scores',
|
||||
standalone: true,
|
||||
imports: [MatTooltipModule, ChipComponent, ScoreBarComponent],
|
||||
imports: [MatIconModule, MatTooltipModule, ChipComponent, ScoreBarComponent],
|
||||
templateUrl: './multiplier-role-scores.component.html',
|
||||
styleUrl: './multiplier-role-scores.component.scss',
|
||||
})
|
||||
@@ -51,6 +52,9 @@ export class MultiplierRoleScoresComponent {
|
||||
});
|
||||
|
||||
readonly threshold = 85;
|
||||
readonly hasStrongest = computed(() =>
|
||||
this.roles().some((role) => role.isStrongest),
|
||||
);
|
||||
readonly tagColor = (tag: string): string => {
|
||||
switch (tag) {
|
||||
case MultiplierTag.Bridger:
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<div
|
||||
class="score-bar"
|
||||
[class.score-bar--success]="variant() === 'success'"
|
||||
[class.score-bar--warn]="variant() === 'warn'">
|
||||
[class.score-bar--warn]="variant() === 'warn'"
|
||||
[class.score-bar--strongest]="strongest()">
|
||||
<span
|
||||
class="score-bar__label"
|
||||
[class.score-bar__label--hinted]="!!hint()"
|
||||
@@ -9,6 +10,9 @@
|
||||
[matTooltipDisabled]="!hint()"
|
||||
matTooltipPosition="above"
|
||||
matTooltipClass="tooltip-sm">
|
||||
@if (strongest()) {
|
||||
<mat-icon class="score-bar__star" aria-label="Stärkste Rolle">star</mat-icon>
|
||||
}
|
||||
<span class="score-bar__label-text">{{ label() }}</span>
|
||||
@if (hint()) {
|
||||
<mat-icon class="score-bar__hint" aria-hidden="true">help_outline</mat-icon>
|
||||
|
||||
@@ -34,6 +34,19 @@
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
.score-bar__star {
|
||||
flex: none;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
color: var(--sg-blue-highlight);
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.score-bar--strongest .score-bar__label-text {
|
||||
color: var(--sg-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.score-bar__track {
|
||||
position: relative;
|
||||
display: block;
|
||||
|
||||
@@ -29,6 +29,8 @@ export class ScoreBarComponent {
|
||||
/** Optional explanation, shown as a tooltip on the label. */
|
||||
readonly hint = input<string | null | undefined>(null);
|
||||
readonly variant = input<ScoreBarVariant>('primary');
|
||||
/** Marks this row as the strongest of a set. */
|
||||
readonly strongest = input<boolean>(false);
|
||||
|
||||
readonly pct = computed<number>(() => {
|
||||
const max = this.max() || 100;
|
||||
|
||||
Reference in New Issue
Block a user