layout adjusted, shared components reused
This commit is contained in:
+391
-249
@@ -1,270 +1,412 @@
|
||||
<div class="founder-dashboard">
|
||||
<header class="hero">
|
||||
<p class="eyebrow">Universität · Gründungspotenzial</p>
|
||||
<h1>Welche Forschenden könnten künftig gründen?</h1>
|
||||
<p class="lede">
|
||||
Ein Modell bewertet jede Forschende und jeden Forschenden gegen rund 9.000
|
||||
Wissenschaftler:innen aus acht Universitäten. Der Score allein ist noch
|
||||
keine Shortlist – viele Top-Scores sind fehlerhafte Datensätze. Dieses
|
||||
Dashboard zeigt zuerst das Screening, danach die Personen, die es
|
||||
bestehen.
|
||||
</p>
|
||||
<p class="eyebrow">Gründungspotenzial · {{ universityName() }}</p>
|
||||
</header>
|
||||
@if (hasData()) {
|
||||
<header class="hero">
|
||||
<h1>Welche Forschenden könnten künftig gründen?</h1>
|
||||
<p class="lede">
|
||||
Dieses Dashboard zeigt das Gründungspotenzial der Forschenden der
|
||||
<strong>{{ universityName() }}</strong
|
||||
>. Ein Modell bewertet jede Person gegen rund 9.000
|
||||
Wissenschaftler:innen aus acht Universitäten. Der Score allein ist noch
|
||||
keine Shortlist – viele Top-Scores sind fehlerhafte Datensätze. Deshalb
|
||||
zeigt die Seite zuerst das Screening, danach die Personen, die es
|
||||
bestehen.
|
||||
</p>
|
||||
</header>
|
||||
|
||||
<div class="kpis">
|
||||
<div class="kpi">
|
||||
<div class="kpi__key">Forschende im Index</div>
|
||||
<div class="kpi__value">{{ fmtInt(kpis().total) }}</div>
|
||||
<div class="kpi__sub">gesamte Kohorte</div>
|
||||
</div>
|
||||
<div class="kpi">
|
||||
<div class="kpi__key">Bestehen Datenqualität</div>
|
||||
<div class="kpi__value">{{ fmtInt(kpis().passed) }}</div>
|
||||
<div class="kpi__sub">{{ kpis().share }} % der Kohorte</div>
|
||||
</div>
|
||||
<div class="kpi kpi--hero">
|
||||
<div class="kpi__key">Auf der Shortlist</div>
|
||||
<div class="kpi__value">{{ fmtInt(kpis().shortlisted) }}</div>
|
||||
<div class="kpi__sub">
|
||||
Score ≥ {{ fmt1(threshold()) }}{{ screened() ? ', gescreent' : ', ungescreent' }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section>
|
||||
<h2>1 · Warum die Shortlist klein ist</h2>
|
||||
<p class="note">
|
||||
Jeder Balken zeigt, wie viele Personen nach einer Screening-Regel übrig
|
||||
bleiben. Die mittleren Regeln existieren, weil OpenAlex-Profile manchmal
|
||||
zusammengeführt oder falsch datiert sind – und dieses Modell darauf
|
||||
besonders empfindlich reagiert.
|
||||
</p>
|
||||
<div class="funnel">
|
||||
@for (row of funnel(); track row.key) {
|
||||
<div class="funnel__row">
|
||||
<div class="funnel__label">{{ row.label }}</div>
|
||||
<div class="funnel__track" [title]="fmtInt(row.count) + ' Forschende verbleiben'">
|
||||
<div class="funnel__bar" [style.width.%]="row.pct"></div>
|
||||
<div class="kpis">
|
||||
<mat-card appearance="outlined" class="kpi">
|
||||
<mat-card-content>
|
||||
<div class="kpi__key">Forschende im Index</div>
|
||||
<div class="kpi__value">{{ fmtInt(kpis().total) }}</div>
|
||||
<div class="kpi__sub">gesamte Kohorte</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
<mat-card appearance="outlined" class="kpi">
|
||||
<mat-card-content>
|
||||
<div class="kpi__key">Bestehen Datenqualität</div>
|
||||
<div class="kpi__value">{{ fmtInt(kpis().passed) }}</div>
|
||||
<div class="kpi__sub">{{ kpis().share }} % der Kohorte</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
<mat-card appearance="outlined" class="kpi kpi--hero">
|
||||
<mat-card-content>
|
||||
<div class="kpi__key">Auf der Shortlist</div>
|
||||
<div class="kpi__value">{{ fmtInt(kpis().shortlisted) }}</div>
|
||||
<div class="kpi__sub">
|
||||
Score ≥ {{ fmt1(threshold())
|
||||
}}{{ screened() ? ', gescreent' : ', ungescreent' }}
|
||||
</div>
|
||||
<div class="funnel__count">{{ fmtInt(row.count) }}</div>
|
||||
<div class="funnel__lost">{{ row.lost ? '−' + fmtInt(row.lost) : '' }}</div>
|
||||
</div>
|
||||
}
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>2 · Die Shortlist</h2>
|
||||
<p class="note">
|
||||
Verschiebe den Schwellenwert, um Listenlänge gegen Sicherheit abzuwägen.
|
||||
Aktiviere das Screening für eine handlungsfähige Liste; deaktiviere es, um
|
||||
zu sehen, was der rohe Modell-Score hervorgebracht hätte – orange Zeilen
|
||||
sind Datensätze, die eine Datenqualitätsregel verletzt haben. Klicke auf
|
||||
eine Person, um ihre Karte zu öffnen.
|
||||
</p>
|
||||
<section>
|
||||
<h2>1 · Warum die Shortlist klein ist</h2>
|
||||
<p class="note">
|
||||
Jeder Balken zeigt, wie viele Personen nach einer Screening-Regel übrig
|
||||
bleiben. Die mittleren Regeln existieren, weil OpenAlex-Profile manchmal
|
||||
zusammengeführt oder falsch datiert sind – und dieses Modell darauf
|
||||
besonders empfindlich reagiert.
|
||||
</p>
|
||||
<div class="funnel">
|
||||
@for (row of funnel(); track row.key) {
|
||||
<div class="funnel__row">
|
||||
<div class="funnel__label">{{ row.label }}</div>
|
||||
<div
|
||||
class="funnel__track"
|
||||
[title]="fmtInt(row.count) + ' Forschende verbleiben'">
|
||||
<mat-progress-bar mode="determinate" [value]="row.pct" />
|
||||
</div>
|
||||
<div class="funnel__count">{{ fmtInt(row.count) }}</div>
|
||||
<div class="funnel__lost">
|
||||
{{ row.lost ? '−' + fmtInt(row.lost) : '' }}
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="controls">
|
||||
<label class="controls__range">
|
||||
<span>Minimaler Score</span>
|
||||
<input
|
||||
type="range"
|
||||
min="50"
|
||||
max="100"
|
||||
step="1"
|
||||
[value]="thresholdDraft()"
|
||||
(input)="onThresholdInput($event)"
|
||||
(change)="onThresholdCommit($event)" />
|
||||
<section>
|
||||
<h2>2 · Die Shortlist</h2>
|
||||
<p class="note">
|
||||
Verschiebe den Schwellenwert, um Listenlänge gegen Sicherheit abzuwägen.
|
||||
Aktiviere das Screening für eine handlungsfähige Liste; deaktiviere es,
|
||||
um zu sehen, was der rohe Modell-Score hervorgebracht hätte – orange
|
||||
Zeilen sind Datensätze, die eine Datenqualitätsregel verletzt haben.
|
||||
Klicke auf eine Person, um ihre Karte zu öffnen.
|
||||
</p>
|
||||
|
||||
<div class="controls">
|
||||
<span class="controls__range">Minimaler Score</span>
|
||||
<mat-slider
|
||||
class="controls__slider"
|
||||
[min]="50"
|
||||
[max]="100"
|
||||
[step]="1"
|
||||
[discrete]="true"
|
||||
[displayWith]="formatThreshold">
|
||||
<input
|
||||
matSliderThumb
|
||||
[value]="thresholdDraft()"
|
||||
(valueChange)="onSliderInput($event)"
|
||||
(dragEnd)="onSliderCommit($event.value)"
|
||||
(keyup)="onSliderCommit()"
|
||||
aria-label="Minimaler Score" />
|
||||
</mat-slider>
|
||||
<span class="controls__value">{{ thresholdDraft() }}</span>
|
||||
</label>
|
||||
<mat-slide-toggle
|
||||
[checked]="screened()"
|
||||
(change)="onScreenedChange($event.checked)">
|
||||
Fehlerhafte Datensätze aussortieren
|
||||
</mat-slide-toggle>
|
||||
<span class="controls__count">
|
||||
{{ fmtInt(total()) }} {{ total() === 1 ? 'Person' : 'Personen' }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="list">
|
||||
<div class="list__head">
|
||||
<span>Forschende:r</span>
|
||||
<span>Score</span>
|
||||
<span>Innerhalb 1 / 3 / 5 J.</span>
|
||||
<span>Evidenz</span>
|
||||
<span></span>
|
||||
<mat-slide-toggle
|
||||
[checked]="screened()"
|
||||
(change)="onScreenedChange($event.checked)">
|
||||
Fehlerhafte Datensätze aussortieren
|
||||
</mat-slide-toggle>
|
||||
<span class="controls__count">
|
||||
{{ fmtInt(total()) }} {{ total() === 1 ? 'Person' : 'Personen' }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@for (row of rows(); track row.id) {
|
||||
<div
|
||||
class="list__row"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
[class.list__row--flag]="!row.passed"
|
||||
[class.list__row--selected]="selectedRow()?.id === row.id"
|
||||
(click)="selectCandidate(row.id)"
|
||||
(keydown.enter)="selectCandidate(row.id)">
|
||||
<span class="list__name">
|
||||
<span class="list__nm">{{ row.name }}</span>
|
||||
<span class="list__sub">
|
||||
{{ row.careerBucket ?? '–' }}@if (row.areaLabel) { · {{ row.areaLabel }} }
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<span class="list__score">
|
||||
@if (row.score !== null) {
|
||||
<span class="list__meter">
|
||||
<span class="list__meter-fill" [style.width.%]="clamp0(row.score)"></span>
|
||||
</span>
|
||||
<span class="list__score-value">{{ fmt1(row.score) }}</span>
|
||||
} @else {
|
||||
<span class="list__score-value">–</span>
|
||||
}
|
||||
</span>
|
||||
|
||||
<span class="list__within">
|
||||
<span class="list__hist">
|
||||
@for (v of row.within; track $index) {
|
||||
<i [style.height.%]="histHeight(v)"></i>
|
||||
}
|
||||
</span>
|
||||
<span class="list__within-nums">
|
||||
{{ row.within.map((v) => (v === null ? '–' : round(v))).join(' · ') }}
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<span class="list__evidence">
|
||||
{{ fmtInt(row.pubs) }} Publ.
|
||||
@if (row.patents) { · {{ fmtInt(row.patents) }} Pat. }
|
||||
@if (row.industry) { · {{ fmtInt(row.industry) }} Ind. }
|
||||
</span>
|
||||
|
||||
<span class="list__actions">
|
||||
@if (!row.passed && row.flagLabel) {
|
||||
<span class="warn-pill">{{ row.flagLabel }}</span>
|
||||
}
|
||||
<button
|
||||
type="button"
|
||||
class="net-button"
|
||||
[attr.aria-label]="'Netzwerk von ' + row.name + ' öffnen'"
|
||||
(click)="openNetwork(row.id); $event.stopPropagation()">
|
||||
<mat-icon>{{ NETWORK_ICON }}</mat-icon>
|
||||
</button>
|
||||
</span>
|
||||
</div>
|
||||
} @empty {
|
||||
<div class="list__empty">
|
||||
Niemand erreicht diesen Schwellenwert, sobald fehlerhafte Datensätze
|
||||
aussortiert sind. Senke den Schwellenwert für eine handlungsfähige
|
||||
Liste.
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
<app-query-param-paginator
|
||||
[total]="total()"
|
||||
[pageSizeOptions]="[10, 25, 50]" />
|
||||
|
||||
@if (selectedRow(); as row) {
|
||||
<div class="card">
|
||||
<div class="card__head">
|
||||
<div>
|
||||
<h3>{{ row.name }}</h3>
|
||||
<div class="card__meta">
|
||||
{{ row.careerBucket ?? '–' }}@if (row.areaLabel) { · {{ row.areaLabel }} } ·
|
||||
{{ fmtInt(row.activeYears) }} aktive Jahre
|
||||
@if (!row.passed && row.flagLabel) {
|
||||
· <span class="card__flag">auffällig: {{ row.flagLabel }}</span>
|
||||
}
|
||||
<mat-card appearance="outlined" class="list-card">
|
||||
<mat-card-content>
|
||||
@if (rows().length) {
|
||||
<app-data-table
|
||||
[columns]="columns()"
|
||||
[data]="rows()"
|
||||
[selectedRow]="selectedRow()"
|
||||
(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.
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
class="open-network"
|
||||
(click)="openNetwork(row.id)">
|
||||
<mat-icon>{{ NETWORK_ICON }}</mat-icon>
|
||||
Netzwerk öffnen
|
||||
</button>
|
||||
</div>
|
||||
}
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
<div class="card__grid">
|
||||
<div class="panel">
|
||||
<div class="panel__ttl">Gründungspotenzial</div>
|
||||
<p class="panel__cap">Rang gegen ~9.000 Wissenschaftler:innen an anderen Universitäten.</p>
|
||||
<app-score-bar label="Score" [value]="row.score ?? 0" [display]="fmt1(row.score)" />
|
||||
<app-score-bar label="Innerhalb 1 Jahr" [value]="row.within[0] ?? 0" [display]="fmt1(row.within[0])" />
|
||||
<app-score-bar label="Innerhalb 3 Jahre" [value]="row.within[1] ?? 0" [display]="fmt1(row.within[1])" />
|
||||
<app-score-bar label="Innerhalb 5 Jahre" [value]="row.within[2] ?? 0" [display]="fmt1(row.within[2])" />
|
||||
</div>
|
||||
<app-query-param-paginator
|
||||
[total]="total()"
|
||||
[pageSizeOptions]="[10, 25, 50]" />
|
||||
|
||||
<div class="panel">
|
||||
<div class="panel__ttl">Multiplikator-Rollen</div>
|
||||
<p class="panel__cap">
|
||||
Rang gegen Peers dieser Universität auf derselben Karrierestufe.
|
||||
</p>
|
||||
<app-score-bar label="Brückenbauer" variant="success" [value]="row.sub.bridger * 100" [display]="fmtSubScore(row.sub.bridger)" />
|
||||
<app-score-bar label="Mentor" variant="success" [value]="row.sub.mentor * 100" [display]="fmtSubScore(row.sub.mentor)" />
|
||||
<app-score-bar label="Verstärker" variant="success" [value]="row.sub.amplifier * 100" [display]="fmtSubScore(row.sub.amplifier)" />
|
||||
<div class="facts">
|
||||
@if (row.tags.length) {
|
||||
@for (tag of row.tags; track tag) {
|
||||
<span class="fact">Badge: <b>{{ tagLabel(tag) }}</b></span>
|
||||
@if (selectedRow(); as row) {
|
||||
<mat-card appearance="outlined" class="card">
|
||||
<mat-card-content>
|
||||
<div class="card__head">
|
||||
<div>
|
||||
<h3>{{ row.name }}</h3>
|
||||
<div class="card__meta">
|
||||
{{ row.candidate.career_bucket ?? '–' }}
|
||||
@if (row.areaLabel) {
|
||||
· {{ row.areaLabel }}
|
||||
}
|
||||
· {{ fmtInt(row.candidate.active_years) }} aktive Jahre
|
||||
@if (!row.candidate.screen.passed && row.flagLabel) {
|
||||
·
|
||||
<span class="card__flag"
|
||||
>auffällig: {{ row.flagLabel }}</span
|
||||
>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
mat-stroked-button
|
||||
color="primary"
|
||||
(click)="openNetwork(row.candidate.author_id)">
|
||||
<mat-icon>{{ NETWORK_ICON }}</mat-icon>
|
||||
Netzwerk öffnen
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="card__grid">
|
||||
<div class="panel">
|
||||
<div class="panel__ttl">Gründungspotenzial</div>
|
||||
<p class="panel__cap">
|
||||
Rang gegen ~9.000 Wissenschaftler:innen an anderen
|
||||
Universitäten.
|
||||
</p>
|
||||
<app-score-bar
|
||||
label="Score"
|
||||
[value]="row.score ?? 0"
|
||||
[display]="fmt1(row.score)" />
|
||||
<app-score-bar
|
||||
label="Innerhalb 1 Jahr"
|
||||
[value]="row.within[0] ?? 0"
|
||||
[display]="fmt1(row.within[0])" />
|
||||
<app-score-bar
|
||||
label="Innerhalb 3 Jahre"
|
||||
[value]="row.within[1] ?? 0"
|
||||
[display]="fmt1(row.within[1])" />
|
||||
<app-score-bar
|
||||
label="Innerhalb 5 Jahre"
|
||||
[value]="row.within[2] ?? 0"
|
||||
[display]="fmt1(row.within[2])" />
|
||||
</div>
|
||||
|
||||
<div class="panel">
|
||||
<div class="panel__ttl">Multiplikator-Rollen</div>
|
||||
<p class="panel__cap">
|
||||
Rang gegen Peers dieser Universität auf derselben
|
||||
Karrierestufe.
|
||||
</p>
|
||||
@for (s of subScores(); track s.key) {
|
||||
<app-score-bar
|
||||
variant="success"
|
||||
[label]="s.label"
|
||||
[hint]="s.hint"
|
||||
[value]="s.value * 100"
|
||||
[display]="fmtSubScore(s.value)" />
|
||||
}
|
||||
} @else {
|
||||
<span class="fact">kein Multiplikator-Badge</span>
|
||||
<div class="facts">
|
||||
@if (row.candidate.tags?.length) {
|
||||
@for (tag of row.candidate.tags ?? []; track tag) {
|
||||
<app-chip
|
||||
color="info"
|
||||
[matTooltip]="tagDescription(tag)"
|
||||
matTooltipPosition="above">
|
||||
{{ tagLabel(tag) }}
|
||||
</app-chip>
|
||||
}
|
||||
} @else {
|
||||
<span class="fact">kein Multiplikator-Badge</span>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="facts">
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Publikationen
|
||||
<b>{{
|
||||
fmtInt(row.candidate.founder_features?.publications)
|
||||
}}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Patente
|
||||
<b>{{
|
||||
fmtInt(row.candidate.founder_features?.patents)
|
||||
}}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Industrie-Publikationen
|
||||
<b>{{
|
||||
fmtInt(row.candidate.founder_features?.industry_collab_papers)
|
||||
}}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Förderungen
|
||||
<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
|
||||
>
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
}
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>3 · Woher die Kandidat:innen kommen</h2>
|
||||
<p class="note">
|
||||
Beide Panels nutzen die Shortlist am aktuellen Schwellenwert.
|
||||
</p>
|
||||
<div class="charts">
|
||||
<mat-card appearance="outlined" class="chart-card">
|
||||
<mat-card-content>
|
||||
<div class="chart__ttl">Karrierestufe</div>
|
||||
<div class="chart__body">
|
||||
@for (s of stageRows(); track s.career_bucket) {
|
||||
<div class="chart__row">
|
||||
<span class="chart__label">{{ s.career_bucket }}</span>
|
||||
<span
|
||||
class="chart__track"
|
||||
[title]="
|
||||
(s.shortlist_plain ?? 0) +
|
||||
' von ' +
|
||||
fmtInt(s.screened) +
|
||||
' gescreenten Forschenden'
|
||||
">
|
||||
<mat-progress-bar
|
||||
mode="determinate"
|
||||
[value]="((s.shortlist_plain ?? 0) / stageMax()) * 100" />
|
||||
</span>
|
||||
<span class="chart__num"
|
||||
>{{ s.shortlist_plain ?? 0 }}
|
||||
<small>/ {{ fmtInt(s.screened) }}</small></span
|
||||
>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="facts">
|
||||
<span class="fact">Publikationen <b>{{ fmtInt(row.pubs) }}</b></span>
|
||||
<span class="fact">Patente <b>{{ fmtInt(row.patents) }}</b></span>
|
||||
<span class="fact">Industrie-Publikationen <b>{{ fmtInt(row.industry) }}</b></span>
|
||||
<span class="fact">Förderungen <b>{{ fmtInt(row.grants) }}</b></span>
|
||||
<span class="fact">aktive Jahre <b>{{ fmtInt(row.activeYears) }}</b></span>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>3 · Woher die Kandidat:innen kommen</h2>
|
||||
<p class="note">Beide Panels nutzen die Shortlist am aktuellen Schwellenwert.</p>
|
||||
<div class="charts">
|
||||
<div>
|
||||
<div class="chart__ttl">Karrierestufe</div>
|
||||
<div class="chart__body">
|
||||
@for (s of stageRows(); track s.label) {
|
||||
<div class="chart__row">
|
||||
<span class="chart__label">{{ s.label }}</span>
|
||||
<span class="chart__track" [title]="s.count + ' von ' + fmtInt(s.pool) + ' gescreenten Forschenden'">
|
||||
<span class="chart__fill" [style.width.%]="(s.count / stageMax()) * 100"></span>
|
||||
</span>
|
||||
<span class="chart__num">{{ s.count }} <small>/ {{ fmtInt(s.pool) }}</small></span>
|
||||
<div class="chart__axis">
|
||||
Balken sind Kandidatenzahlen; die graue Zahl ist der gescreente
|
||||
Pool der Stufe.
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="chart__axis">Balken sind Kandidatenzahlen; die graue Zahl ist der gescreente Pool der Stufe.</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="chart__ttl">Forschungsfeld, vs. Anteil an der Kohorte</div>
|
||||
<div class="chart__body">
|
||||
@for (a of areaRows(); track a.label) {
|
||||
<div class="chart__row">
|
||||
<span class="chart__label">{{ a.label }}</span>
|
||||
<span class="chart__track" [title]="a.count + ' Kandidat:innen; dieses Feld ist ' + fmt1(a.cohortShare) + ' % der gescreenten Kohorte'">
|
||||
<span class="chart__fill" [style.width.%]="(a.count / areaMax()) * 100"></span>
|
||||
</span>
|
||||
<span class="chart__num">{{ a.count }} <small>· {{ fmt1(a.cohortShare) }} % der Kohorte</small></span>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
<mat-card appearance="outlined" class="chart-card">
|
||||
<mat-card-content>
|
||||
<div class="chart__ttl">
|
||||
Forschungsfeld, vs. Anteil an der Kohorte
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="chart__axis">
|
||||
Balken sind Kandidatenzahlen. Die graue Zahl ist der Anteil des Feldes an der
|
||||
gescreenten Kohorte – ein Feld deutlich über seinem Anteil überproduziert.
|
||||
</div>
|
||||
<div class="chart__body">
|
||||
@for (a of areaRows(); track a.code) {
|
||||
<div class="chart__row">
|
||||
<span class="chart__label">{{ a.label ?? a.code }}</span>
|
||||
<span
|
||||
class="chart__track"
|
||||
[title]="
|
||||
(a.shortlist_count ?? 0) +
|
||||
' Kandidat:innen; dieses Feld ist ' +
|
||||
fmt1((a.cohort_share ?? 0) * 100) +
|
||||
' % der gescreenten Kohorte'
|
||||
">
|
||||
<mat-progress-bar
|
||||
mode="determinate"
|
||||
[value]="((a.shortlist_count ?? 0) / areaMax()) * 100" />
|
||||
</span>
|
||||
<span class="chart__num"
|
||||
>{{ a.shortlist_count ?? 0 }}
|
||||
<small
|
||||
>· {{ fmt1((a.cohort_share ?? 0) * 100) }} % der
|
||||
Kohorte</small
|
||||
></span
|
||||
>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="chart__axis">
|
||||
Balken sind Kandidatenzahlen. Die graue Zahl ist der Anteil des
|
||||
Feldes an der gescreenten Kohorte – ein Feld deutlich über seinem
|
||||
Anteil überproduziert.
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
} @else {
|
||||
<mat-card appearance="outlined" class="empty-state">
|
||||
<mat-card-content>
|
||||
<mat-icon class="empty-state__icon">{{ FOUNDER_ICON }}</mat-icon>
|
||||
<h2>Noch kein Gründungspotenzial berechnet</h2>
|
||||
<p>
|
||||
Für die <strong>{{ universityName() }}</strong> wurde das
|
||||
Gründungspotenzial noch nicht berechnet. Sobald die Auswertung
|
||||
vorliegt, erscheinen hier die Kandidat:innen, ihre Scores und ihre
|
||||
Multiplikator-Netzwerke.
|
||||
</p>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
}
|
||||
</div>
|
||||
|
||||
<ng-template #nameTemplate let-row>
|
||||
<span class="list__name">
|
||||
<span class="list__nm">{{ row.name }}</span>
|
||||
<span class="list__sub">
|
||||
{{ row.candidate.career_bucket ?? '–' }}
|
||||
@if (row.areaLabel) {
|
||||
· {{ row.areaLabel }}
|
||||
}
|
||||
</span>
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #scoreTemplate let-row>
|
||||
@if (row.score !== null) {
|
||||
<span class="list__score">
|
||||
<span class="list__meter">
|
||||
<mat-progress-bar mode="determinate" [value]="clamp0(row.score)" />
|
||||
</span>
|
||||
<span class="list__score-value">{{ fmt1(row.score) }}</span>
|
||||
</span>
|
||||
} @else {
|
||||
<span class="list__score-value">–</span>
|
||||
}
|
||||
</ng-template>
|
||||
|
||||
<ng-template #withinTemplate let-row>
|
||||
<span class="list__within">
|
||||
<span class="list__hist">
|
||||
@for (v of row.within; track $index) {
|
||||
<i [style.height.%]="histHeight(v)"></i>
|
||||
}
|
||||
</span>
|
||||
<span class="list__within-nums">
|
||||
{{ row.within.map((v) => (v === null ? '–' : round(v))).join(' · ') }}
|
||||
</span>
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #evidenceTemplate let-row>
|
||||
<span class="list__evidence">
|
||||
{{ fmtInt(row.candidate.founder_features?.publications) }} Publ.
|
||||
@if (row.candidate.founder_features?.patents) {
|
||||
· {{ fmtInt(row.candidate.founder_features?.patents) }} Pat.
|
||||
}
|
||||
@if (row.candidate.founder_features?.industry_collab_papers) {
|
||||
·
|
||||
{{ fmtInt(row.candidate.founder_features?.industry_collab_papers) }} Ind.
|
||||
}
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
<ng-template #actionsTemplate let-row>
|
||||
<span class="list__actions">
|
||||
@if (!row.candidate.screen.passed && row.flagLabel) {
|
||||
<span class="warn-pill">{{ row.flagLabel }}</span>
|
||||
}
|
||||
<button
|
||||
mat-icon-button
|
||||
type="button"
|
||||
[attr.aria-label]="'Netzwerk von ' + row.name + ' öffnen'"
|
||||
matTooltip="Netzwerk öffnen"
|
||||
(click)="openNetwork(row.candidate.author_id); $event.stopPropagation()">
|
||||
<mat-icon>{{ NETWORK_ICON }}</mat-icon>
|
||||
</button>
|
||||
</span>
|
||||
</ng-template>
|
||||
|
||||
+138
-118
@@ -28,6 +28,11 @@
|
||||
font-size: 15.5px;
|
||||
margin: 0;
|
||||
max-width: 66ch;
|
||||
|
||||
strong {
|
||||
color: var(--sg-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,6 +40,42 @@ section {
|
||||
margin-top: 40px;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
margin-top: 28px;
|
||||
max-width: 72ch;
|
||||
background: var(--sg-surface-muted);
|
||||
|
||||
.mat-mdc-card-content {
|
||||
padding: 28px 30px;
|
||||
}
|
||||
|
||||
&__icon {
|
||||
font-size: 34px;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
color: var(--sg-text-soft);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 22px;
|
||||
margin: 0 0 10px;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 15px;
|
||||
line-height: 1.55;
|
||||
color: var(--sg-text-muted);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
strong {
|
||||
color: var(--sg-text);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 20px;
|
||||
margin: 0 0 4px;
|
||||
@@ -61,9 +102,10 @@ h2 {
|
||||
|
||||
.kpi {
|
||||
background: var(--sg-surface-muted);
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 10px;
|
||||
padding: 14px 16px;
|
||||
|
||||
.mat-mdc-card-content {
|
||||
padding: 14px 16px;
|
||||
}
|
||||
|
||||
.kpi__key {
|
||||
font-size: 11px;
|
||||
@@ -114,17 +156,19 @@ h2 {
|
||||
}
|
||||
|
||||
.funnel__track {
|
||||
--mat-progress-bar-track-height: 20px;
|
||||
--mat-progress-bar-active-indicator-height: 20px;
|
||||
--mat-progress-bar-track-color: transparent;
|
||||
--mat-progress-bar-active-indicator-color: var(--sg-blue-highlight);
|
||||
background: var(--sg-surface-muted);
|
||||
border-radius: 4px;
|
||||
height: 22px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.funnel__bar {
|
||||
height: 100%;
|
||||
background: var(--sg-blue-highlight);
|
||||
border-radius: 0 4px 4px 0;
|
||||
.mat-mdc-progress-bar {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.funnel__count {
|
||||
@@ -175,70 +219,78 @@ h2 {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
input[type='range'] {
|
||||
accent-color: var(--sg-blue-highlight);
|
||||
width: 150px;
|
||||
&__slider {
|
||||
width: 220px;
|
||||
min-width: 160px;
|
||||
}
|
||||
}
|
||||
|
||||
// -- List ---------------------------------------------------------------
|
||||
|
||||
.list {
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 10px;
|
||||
.list-card {
|
||||
overflow: hidden;
|
||||
|
||||
.mat-mdc-card-content {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.list__head,
|
||||
.list__row {
|
||||
display: grid;
|
||||
grid-template-columns: 1.5fr 0.9fr 1.15fr 0.95fr auto;
|
||||
gap: 12px;
|
||||
padding: 9px 14px;
|
||||
align-items: center;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.list__head {
|
||||
background: var(--sg-surface-muted);
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.07em;
|
||||
text-transform: uppercase;
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
.list__row {
|
||||
border: none;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
.list-card .data-table-container table {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
color: inherit;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
color: var(--sg-text);
|
||||
background: transparent;
|
||||
font-size: 13px;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
.mat-mdc-header-cell {
|
||||
padding: 8px 14px;
|
||||
background: var(--sg-surface-muted);
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.07em;
|
||||
text-transform: uppercase;
|
||||
color: var(--sg-text-soft);
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus-visible {
|
||||
background: var(--sg-primary-soft);
|
||||
outline: none;
|
||||
.mat-mdc-cell {
|
||||
padding: 8px 14px;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
&--flag {
|
||||
background: var(--sg-error-soft);
|
||||
.mat-column-name {
|
||||
width: 32%;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: var(--sg-error-soft);
|
||||
filter: brightness(0.97);
|
||||
.mat-column-score {
|
||||
width: 15%;
|
||||
}
|
||||
|
||||
.mat-column-within {
|
||||
width: 22%;
|
||||
}
|
||||
|
||||
.mat-column-evidence {
|
||||
width: 21%;
|
||||
}
|
||||
|
||||
.mat-column-actions {
|
||||
width: 10%;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
tr.element-row {
|
||||
cursor: pointer;
|
||||
|
||||
&:hover,
|
||||
&:focus-visible {
|
||||
background: var(--sg-primary-soft);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 2px solid var(--sg-blue-highlight);
|
||||
outline-offset: -2px;
|
||||
}
|
||||
}
|
||||
|
||||
&--selected {
|
||||
tr.selected {
|
||||
box-shadow: inset 3px 0 0 var(--sg-blue-highlight);
|
||||
}
|
||||
}
|
||||
@@ -261,6 +313,10 @@ h2 {
|
||||
}
|
||||
|
||||
.list__meter {
|
||||
--mat-progress-bar-track-height: 8px;
|
||||
--mat-progress-bar-active-indicator-height: 8px;
|
||||
--mat-progress-bar-track-color: transparent;
|
||||
--mat-progress-bar-active-indicator-color: var(--sg-blue-highlight);
|
||||
display: block;
|
||||
background: var(--sg-surface-soft);
|
||||
border-radius: 3px;
|
||||
@@ -268,13 +324,10 @@ h2 {
|
||||
flex: 1;
|
||||
min-width: 44px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.list__meter-fill {
|
||||
display: block;
|
||||
height: 100%;
|
||||
background: var(--sg-blue-highlight);
|
||||
border-radius: 0 3px 3px 0;
|
||||
.mat-mdc-progress-bar {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.list__score-value {
|
||||
@@ -334,30 +387,6 @@ h2 {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.net-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 1px solid var(--sg-border);
|
||||
background: var(--sg-surface);
|
||||
color: var(--sg-text-muted);
|
||||
border-radius: 8px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
color: var(--sg-blue-highlight);
|
||||
border-color: var(--sg-blue-highlight);
|
||||
}
|
||||
|
||||
mat-icon {
|
||||
font-size: 18px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
.list__empty {
|
||||
padding: 24px 14px;
|
||||
color: var(--sg-text-soft);
|
||||
@@ -367,12 +396,13 @@ h2 {
|
||||
// -- Detail card --------------------------------------------------------
|
||||
|
||||
.card {
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 12px;
|
||||
background: var(--sg-surface-muted);
|
||||
padding: 20px;
|
||||
margin-top: 16px;
|
||||
|
||||
.mat-mdc-card-content {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 0 0 2px;
|
||||
font-size: 20px;
|
||||
@@ -398,31 +428,6 @@ h2 {
|
||||
color: var(--sg-error);
|
||||
}
|
||||
|
||||
.open-network {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
border: 1px solid var(--sg-border);
|
||||
background: var(--sg-surface);
|
||||
color: var(--sg-text);
|
||||
border-radius: 8px;
|
||||
padding: 7px 12px;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--sg-blue-highlight);
|
||||
color: var(--sg-blue-highlight);
|
||||
}
|
||||
|
||||
mat-icon {
|
||||
font-size: 18px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
.card__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
@@ -456,6 +461,11 @@ h2 {
|
||||
flex-wrap: wrap;
|
||||
gap: 7px;
|
||||
margin-top: 14px;
|
||||
|
||||
b {
|
||||
color: var(--sg-text);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
}
|
||||
|
||||
.fact {
|
||||
@@ -477,6 +487,15 @@ h2 {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 24px;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.chart-card {
|
||||
height: 100%;
|
||||
|
||||
.mat-mdc-card-content {
|
||||
padding: 14px 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.chart__ttl {
|
||||
@@ -501,19 +520,20 @@ h2 {
|
||||
}
|
||||
|
||||
.chart__track {
|
||||
--mat-progress-bar-track-height: 14px;
|
||||
--mat-progress-bar-active-indicator-height: 14px;
|
||||
--mat-progress-bar-track-color: transparent;
|
||||
--mat-progress-bar-active-indicator-color: var(--sg-blue-highlight);
|
||||
display: block;
|
||||
background: var(--sg-surface-muted);
|
||||
border-radius: 3px;
|
||||
height: 16px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
.chart__fill {
|
||||
display: block;
|
||||
height: 100%;
|
||||
border-radius: 0 3px 3px 0;
|
||||
background: var(--sg-blue-highlight);
|
||||
.mat-mdc-progress-bar {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.chart__num {
|
||||
|
||||
+128
-74
@@ -5,60 +5,62 @@ import {
|
||||
inject,
|
||||
input,
|
||||
signal,
|
||||
TemplateRef,
|
||||
viewChild,
|
||||
} from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { ActivatedRoute, Router, RouterModule } from '@angular/router';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { toSignal } from '@angular/core/rxjs-interop';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
||||
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
||||
import { MatSliderModule } from '@angular/material/slider';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
|
||||
import {
|
||||
CareerStageStatistics,
|
||||
FounderCandidate,
|
||||
FounderCandidatePage,
|
||||
FounderStatistics,
|
||||
ResearchAreaStatistics,
|
||||
} from '../../../api';
|
||||
import {
|
||||
FUNNEL_STAGE_LABELS,
|
||||
SCREEN_REASON_LABELS,
|
||||
TAG_LABELS,
|
||||
clamp,
|
||||
fmt1,
|
||||
fmtInt,
|
||||
fmtSubScore,
|
||||
tagDescription,
|
||||
tagLabel,
|
||||
} from '../founder-potential.utils';
|
||||
import { ScoreBarComponent } from '../../../shared/ui/score-bar/score-bar.component';
|
||||
import { QueryParamPaginatorComponent } from '../../../shared/ui/query-param-paginator/query-param-paginator.component';
|
||||
import { NETWORK_ICON } from '../../../shared/ui/icons';
|
||||
import { ChipComponent } from '../../../shared/ui/chip/chip.component';
|
||||
import {
|
||||
DataTableComponent,
|
||||
GenericColumn,
|
||||
} from '../../../shared/ui/data-table/data-table.component';
|
||||
import { FOUNDER_ICON, NETWORK_ICON } from '../../../shared/ui/icons';
|
||||
import { CredentialService } from '../../../shared/services/credential.service';
|
||||
|
||||
const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen';
|
||||
const SUB_SCORE_KEYS = ['bridger', 'mentor', 'amplifier'] as const;
|
||||
|
||||
/**
|
||||
* A shortlist row: the generated candidate plus only the values that the
|
||||
* table derives from it (display name, the 1/3/5-year slice, the headline
|
||||
* screen reason). Everything else is read from `candidate` directly.
|
||||
*/
|
||||
interface FounderRow {
|
||||
id: string;
|
||||
candidate: FounderCandidate;
|
||||
name: string;
|
||||
careerBucket: string | null;
|
||||
areaLabel: string | null;
|
||||
score: number | null;
|
||||
within: (number | null)[];
|
||||
pubs: number;
|
||||
patents: number;
|
||||
industry: number;
|
||||
grants: number;
|
||||
activeYears: number;
|
||||
passed: boolean;
|
||||
flagLabel: string | null;
|
||||
sub: { bridger: number; mentor: number; amplifier: number };
|
||||
tags: string[];
|
||||
}
|
||||
|
||||
interface StageRow {
|
||||
label: string;
|
||||
count: number;
|
||||
pool: number;
|
||||
}
|
||||
|
||||
interface AreaRow {
|
||||
label: string;
|
||||
count: number;
|
||||
cohortShare: number;
|
||||
ratio: number | null;
|
||||
}
|
||||
|
||||
@Component({
|
||||
@@ -66,23 +68,41 @@ interface AreaRow {
|
||||
standalone: true,
|
||||
imports: [
|
||||
CommonModule,
|
||||
RouterModule,
|
||||
MatButtonModule,
|
||||
MatCardModule,
|
||||
MatIconModule,
|
||||
MatProgressBarModule,
|
||||
MatSlideToggleModule,
|
||||
MatSliderModule,
|
||||
MatTooltipModule,
|
||||
ScoreBarComponent,
|
||||
QueryParamPaginatorComponent,
|
||||
ChipComponent,
|
||||
DataTableComponent,
|
||||
],
|
||||
templateUrl: './founder-dashboard.component.html',
|
||||
styleUrl: './founder-dashboard.component.scss',
|
||||
})
|
||||
export class FounderDashboardComponent {
|
||||
readonly NETWORK_ICON = NETWORK_ICON;
|
||||
readonly FOUNDER_ICON = FOUNDER_ICON;
|
||||
|
||||
readonly statistics = input.required<FounderStatistics>();
|
||||
readonly candidates = input.required<FounderCandidatePage>();
|
||||
|
||||
private readonly router = inject(Router);
|
||||
private readonly route = inject(ActivatedRoute);
|
||||
private readonly credentials = inject(CredentialService, { optional: true });
|
||||
|
||||
/** The university whose cohort is shown; comes from the account profile. */
|
||||
readonly universityName = computed(
|
||||
() => this.credentials?.organizationName() || FALLBACK_UNIVERSITY,
|
||||
);
|
||||
|
||||
/** False when the pipeline has not produced any documents for this university. */
|
||||
readonly hasData = computed(
|
||||
() => (this.statistics().provenance?.document_count ?? 0) > 0,
|
||||
);
|
||||
|
||||
private readonly queryParams = toSignal(this.route.queryParamMap, {
|
||||
initialValue: this.route.snapshot.queryParamMap,
|
||||
@@ -131,6 +151,50 @@ export class FounderDashboardComponent {
|
||||
|
||||
// -- Shortlist ----------------------------------------------------------
|
||||
|
||||
private readonly nameTemplate =
|
||||
viewChild.required<TemplateRef<FounderRow>>('nameTemplate');
|
||||
private readonly scoreTemplate =
|
||||
viewChild.required<TemplateRef<FounderRow>>('scoreTemplate');
|
||||
private readonly withinTemplate =
|
||||
viewChild.required<TemplateRef<FounderRow>>('withinTemplate');
|
||||
private readonly evidenceTemplate =
|
||||
viewChild.required<TemplateRef<FounderRow>>('evidenceTemplate');
|
||||
private readonly actionsTemplate =
|
||||
viewChild.required<TemplateRef<FounderRow>>('actionsTemplate');
|
||||
|
||||
readonly columns = computed<GenericColumn<FounderRow>[]>(() => [
|
||||
{
|
||||
id: 'name',
|
||||
header: 'Forschende:r',
|
||||
type: 'display',
|
||||
cellTemplate: this.nameTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'score',
|
||||
header: 'Score',
|
||||
type: 'display',
|
||||
cellTemplate: this.scoreTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'within',
|
||||
header: 'Innerhalb 1 / 3 / 5 J.',
|
||||
type: 'display',
|
||||
cellTemplate: this.withinTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'evidence',
|
||||
header: 'Evidenz',
|
||||
type: 'display',
|
||||
cellTemplate: this.evidenceTemplate(),
|
||||
},
|
||||
{
|
||||
id: 'actions',
|
||||
header: '',
|
||||
type: 'display',
|
||||
cellTemplate: this.actionsTemplate(),
|
||||
},
|
||||
]);
|
||||
|
||||
readonly total = computed(() => this.candidates().total ?? 0);
|
||||
|
||||
readonly rows = computed<FounderRow[]>(() =>
|
||||
@@ -142,10 +206,23 @@ export class FounderDashboardComponent {
|
||||
readonly selectedRow = computed<FounderRow | null>(() => {
|
||||
const id = this.selectedId();
|
||||
const rows = this.rows();
|
||||
if (id) return rows.find((r) => r.id === id) ?? null;
|
||||
if (id) {
|
||||
return rows.find((r) => r.candidate.author_id === id) ?? null;
|
||||
}
|
||||
return rows[0] ?? null;
|
||||
});
|
||||
|
||||
/** The three multiplier roles of the selected person, with their tooltips. */
|
||||
readonly subScores = computed(() => {
|
||||
const peerRanks = this.selectedRow()?.candidate.multiplier_peer_ranks;
|
||||
return SUB_SCORE_KEYS.map((key) => ({
|
||||
key,
|
||||
label: tagLabel(key),
|
||||
hint: tagDescription(key),
|
||||
value: peerRanks?.[key] ?? 0,
|
||||
}));
|
||||
});
|
||||
|
||||
selectCandidate(id: string): void {
|
||||
this.selectedId.set(id);
|
||||
}
|
||||
@@ -156,14 +233,17 @@ export class FounderDashboardComponent {
|
||||
|
||||
// -- Controls -----------------------------------------------------------
|
||||
|
||||
onThresholdInput(event: Event): void {
|
||||
const value = (event.target as HTMLInputElement).valueAsNumber;
|
||||
/** Discrete label inside the Material slider thumb. */
|
||||
readonly formatThreshold = (value: number): string => String(value);
|
||||
|
||||
onSliderInput(value: number): void {
|
||||
if (Number.isFinite(value)) this.thresholdDraft.set(value);
|
||||
}
|
||||
|
||||
onThresholdCommit(event: Event): void {
|
||||
const value = (event.target as HTMLInputElement).valueAsNumber;
|
||||
onSliderCommit(value = this.thresholdDraft()): void {
|
||||
if (!Number.isFinite(value)) return;
|
||||
this.thresholdDraft.set(value);
|
||||
if (value === this.threshold()) return;
|
||||
void this.router.navigate([], {
|
||||
relativeTo: this.route,
|
||||
queryParams: { threshold: value, page: 0 },
|
||||
@@ -181,33 +261,22 @@ export class FounderDashboardComponent {
|
||||
|
||||
// -- Stage / area charts ------------------------------------------------
|
||||
|
||||
readonly stageRows = computed<StageRow[]>(() => {
|
||||
const stages = this.statistics().career_stages ?? [];
|
||||
return stages.map((s) => ({
|
||||
label: s.career_bucket,
|
||||
count: s.shortlist_plain ?? 0,
|
||||
pool: s.screened ?? 0,
|
||||
}));
|
||||
});
|
||||
|
||||
readonly stageMax = computed(() =>
|
||||
Math.max(1, ...this.stageRows().map((s) => s.count)),
|
||||
readonly stageRows = computed<CareerStageStatistics[]>(
|
||||
() => this.statistics().career_stages ?? [],
|
||||
);
|
||||
|
||||
readonly areaRows = computed<AreaRow[]>(() => {
|
||||
const areas = [...(this.statistics().research_areas ?? [])]
|
||||
readonly stageMax = computed(() =>
|
||||
Math.max(1, ...this.stageRows().map((s) => s.shortlist_plain ?? 0)),
|
||||
);
|
||||
|
||||
readonly areaRows = computed<ResearchAreaStatistics[]>(() =>
|
||||
[...(this.statistics().research_areas ?? [])]
|
||||
.sort((a, b) => (b.shortlist_count ?? 0) - (a.shortlist_count ?? 0))
|
||||
.slice(0, 7);
|
||||
return areas.map((a) => ({
|
||||
label: a.label ?? a.code,
|
||||
count: a.shortlist_count ?? 0,
|
||||
cohortShare: (a.cohort_share ?? 0) * 100,
|
||||
ratio: a.ratio ?? null,
|
||||
}));
|
||||
});
|
||||
.slice(0, 7),
|
||||
);
|
||||
|
||||
readonly areaMax = computed(() =>
|
||||
Math.max(1, ...this.areaRows().map((a) => a.count)),
|
||||
Math.max(1, ...this.areaRows().map((a) => a.shortlist_count ?? 0)),
|
||||
);
|
||||
|
||||
// -- Formatting helpers for the template --------------------------------
|
||||
@@ -215,7 +284,8 @@ export class FounderDashboardComponent {
|
||||
readonly fmtInt = fmtInt;
|
||||
readonly fmt1 = fmt1;
|
||||
readonly fmtSubScore = fmtSubScore;
|
||||
readonly tagLabel = (tag: string) => TAG_LABELS[tag] ?? tag;
|
||||
readonly tagLabel = tagLabel;
|
||||
readonly tagDescription = tagDescription;
|
||||
|
||||
/** Clamp a percentile into the 0-100 band for bar widths. */
|
||||
readonly clamp0 = (value: number | null) =>
|
||||
@@ -231,37 +301,21 @@ export class FounderDashboardComponent {
|
||||
|
||||
function toRow(c: FounderCandidate): FounderRow {
|
||||
const fp = c.founder_potential;
|
||||
const ff = c.founder_features;
|
||||
const pr = c.multiplier_peer_ranks;
|
||||
const reasons = c.screen?.reasons ?? [];
|
||||
const passed = c.screen?.passed ?? true;
|
||||
const reasons = c.screen.reasons ?? [];
|
||||
return {
|
||||
id: c.author_id,
|
||||
candidate: c,
|
||||
name: c.display_name ?? c.author_id,
|
||||
careerBucket: c.career_bucket ?? null,
|
||||
areaLabel: ff?.publication_research_area_label ?? null,
|
||||
areaLabel: c.founder_features?.publication_research_area_label ?? null,
|
||||
score: fp?.external_percentile ?? null,
|
||||
within: [
|
||||
fp?.external_percentile_within_1y ?? null,
|
||||
fp?.external_percentile_within_3y ?? null,
|
||||
fp?.external_percentile_within_5y ?? null,
|
||||
],
|
||||
pubs: ff?.publications ?? 0,
|
||||
patents: ff?.patents ?? 0,
|
||||
industry: ff?.industry_collab_papers ?? 0,
|
||||
grants: ff?.grants ?? 0,
|
||||
activeYears: c.active_years ?? 0,
|
||||
passed,
|
||||
flagLabel:
|
||||
reasons.length > 0
|
||||
? (SCREEN_REASON_LABELS[reasons[0]] ?? reasons[0])
|
||||
: null,
|
||||
sub: {
|
||||
bridger: pr?.bridger ?? 0,
|
||||
mentor: pr?.mentor ?? 0,
|
||||
amplifier: pr?.amplifier ?? 0,
|
||||
},
|
||||
tags: c.tags ?? [],
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
+222
-129
@@ -1,137 +1,230 @@
|
||||
<div class="researcher-network">
|
||||
<a class="back-link" routerLink="/founders">
|
||||
<mat-icon>{{ ARROW_BACK_ICON }}</mat-icon>
|
||||
Zurück zur Übersicht
|
||||
</a>
|
||||
|
||||
<header class="page">
|
||||
<p class="eyebrow">Smart-Guide · Multiplikator-Detektion</p>
|
||||
<h1>{{ name() }}</h1>
|
||||
<div class="meta-line">
|
||||
@if (careerBucket()) {
|
||||
<app-career-stage-chip
|
||||
[careerStage]="careerBucket()"
|
||||
[activeYears]="activeYears()"
|
||||
size="md" />
|
||||
}
|
||||
<span>{{ fmtInt(nWorks()) }} Publikationen · {{ fmtInt(activeYears()) }} aktive Jahre</span>
|
||||
@if (suspicious()) {
|
||||
<span class="suspicious"><mat-icon>{{ WARNING_ICON }}</mat-icon> Zusammengeführtes Profil</span>
|
||||
}
|
||||
</div>
|
||||
@if (tags().length) {
|
||||
<div class="tags">
|
||||
@for (tag of tags(); track tag) {
|
||||
<span class="tag-pill">{{ tagLabel(tag) }}</span>
|
||||
@if (unavailable(); as empty) {
|
||||
<mat-card appearance="outlined" class="unavailable">
|
||||
<mat-card-content>
|
||||
<mat-icon class="unavailable__icon">{{ PERSON_OFF_ICON }}</mat-icon>
|
||||
<h1>{{ empty.title }}</h1>
|
||||
<p class="unavailable__body">{{ empty.body }}</p>
|
||||
@if (empty.hint) {
|
||||
<p class="unavailable__hint">{{ empty.hint }}</p>
|
||||
}
|
||||
<a mat-stroked-button color="primary" routerLink="/founders">
|
||||
<mat-icon>{{ ARROW_BACK_ICON }}</mat-icon>
|
||||
Zurück zum Gründungspotenzial
|
||||
</a>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
} @else {
|
||||
<header class="page">
|
||||
<p class="eyebrow">
|
||||
Smart-Guide · Multiplikator-Detektion · {{ universityName() }}
|
||||
</p>
|
||||
<h1>{{ name() }}</h1>
|
||||
<div class="meta-line">
|
||||
@if (careerBucket()) {
|
||||
<app-career-stage-chip
|
||||
[careerStage]="careerBucket()"
|
||||
[activeYears]="activeYears()"
|
||||
size="md" />
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</header>
|
||||
|
||||
<div class="legend">
|
||||
@for (entry of roleLegend(); track entry.role) {
|
||||
<span class="legend__item">
|
||||
<span
|
||||
class="legend__dot"
|
||||
[class.legend__dot--ego]="entry.role === 'ego'"
|
||||
[style.background]="entry.color"></span>
|
||||
{{ entry.label }}
|
||||
</span>
|
||||
}
|
||||
<span class="legend__item"><span class="legend__edge"></span>Kollaboration (Breite = Stärke)</span>
|
||||
<span class="legend__item"><span class="legend__edge legend__edge--dashed"></span>überwiegend institutionsübergreifend</span>
|
||||
<span class="legend__item">Knotengröße = aktive Jahre</span>
|
||||
</div>
|
||||
|
||||
<div class="case-grid">
|
||||
<div class="netbox">
|
||||
@if ((network().nodes?.length ?? 0) > 0) {
|
||||
<app-multiplier-network-graph
|
||||
[network]="network()"
|
||||
(nodeClick)="onNodeClick($event)" />
|
||||
} @else {
|
||||
<div class="netbox__empty">Kein Netzwerk verfügbar.</div>
|
||||
}
|
||||
<div class="netfoot">
|
||||
{{ fmtInt(netMeta().shown) }} der {{ fmtInt(netMeta().totalCoauthors) }}
|
||||
Koautor:innen dargestellt · {{ fmtInt(netMeta().cohortCoauthors) }} aus der
|
||||
UDE-Kohorte · {{ fmtInt(netMeta().mentees) }} Mentees
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="panel">
|
||||
<div>
|
||||
<h3>Multiplikator-Scores</h3>
|
||||
<p class="cap">Rang gegen Peers dieser Universität, gleiche Karrierestufe. Schwelle: 85.</p>
|
||||
@for (s of subScores(); track s.label) {
|
||||
<app-score-bar
|
||||
variant="success"
|
||||
[label]="s.label"
|
||||
[value]="s.raw * 100"
|
||||
[display]="fmtSubScore(s.raw)"
|
||||
[threshold]="tagThreshold" />
|
||||
>{{ fmtInt(nWorks()) }} Publikationen ·
|
||||
{{ fmtInt(activeYears()) }} aktive Jahre</span
|
||||
>
|
||||
@if (suspicious()) {
|
||||
<span class="suspicious"
|
||||
><mat-icon>{{ WARNING_ICON }}</mat-icon> Zusammengeführtes
|
||||
Profil</span
|
||||
>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3>Gründungspotenzial</h3>
|
||||
<p class="cap">Rang gegen ~9.000 Wissenschaftler:innen an anderen Universitäten.</p>
|
||||
<app-score-bar label="Score" [value]="founder().score ?? 0" [display]="fmt1(founder().score)" />
|
||||
<app-score-bar label="Innerhalb 1 Jahr" [value]="founder().within1 ?? 0" [display]="fmt1(founder().within1)" />
|
||||
<app-score-bar label="Innerhalb 3 Jahre" [value]="founder().within3 ?? 0" [display]="fmt1(founder().within3)" />
|
||||
<app-score-bar label="Innerhalb 5 Jahre" [value]="founder().within5 ?? 0" [display]="fmt1(founder().within5)" />
|
||||
@if (founder().timingApplicable && founder().yearsToFounding !== null) {
|
||||
<p class="timing-note">
|
||||
@if ((founder().yearsToFounding ?? 0) <= 0) {
|
||||
Das Aktivitätsmuster wirkt bereits gründungsbereit.
|
||||
} @else {
|
||||
Voraussichtlich in {{ fmt1(founder().yearsToFounding) }} Jahren gründungsreif.
|
||||
}
|
||||
</p>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="facts">
|
||||
<span class="fact">Publikationen <b>{{ fmtInt(facts().pubs) }}</b></span>
|
||||
<span class="fact">Patente <b>{{ fmtInt(facts().patents) }}</b></span>
|
||||
<span class="fact">Industrie-Publikationen <b>{{ fmtInt(facts().industry) }}</b></span>
|
||||
<span class="fact">Förderungen <b>{{ fmtInt(facts().grants) }}</b></span>
|
||||
<span class="fact">aktive Jahre <b>{{ fmtInt(facts().activeYears) }}</b></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section class="metrics">
|
||||
<h2>Metriken im Detail</h2>
|
||||
<p class="note">
|
||||
Jeder Rohwert steht neben seinem Peer-Rang (0–1), damit nachvollziehbar
|
||||
bleibt, warum eine Person so eingestuft wurde.
|
||||
</p>
|
||||
<div class="scroller">
|
||||
<table class="mx">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Metrik</th>
|
||||
<th class="num">Wert</th>
|
||||
<th class="num">Peer-Rang</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@for (row of metricRows(); track row.key) {
|
||||
<tr>
|
||||
<td>{{ row.label }}</td>
|
||||
<td class="num">{{ fmtMetricValue(row.raw) }}</td>
|
||||
<td class="num" [class.hot]="(row.rank ?? 0) >= 0.9">{{ fmtPeerRank(row.rank) }}</td>
|
||||
</tr>
|
||||
@if (tags().length) {
|
||||
<div class="tags">
|
||||
@for (tag of tags(); track tag) {
|
||||
<app-chip
|
||||
color="info"
|
||||
[matTooltip]="tagDescription(tag)"
|
||||
matTooltipPosition="above">
|
||||
{{ tagLabel(tag) }}
|
||||
</app-chip>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
}
|
||||
</header>
|
||||
|
||||
<footer class="page">
|
||||
Konfiguration <span class="mono">{{ network().config_hash ?? '–' }}</span> ·
|
||||
berechnet <span class="mono">{{ network().computed_at ?? '–' }}</span>. Klick auf
|
||||
einen Knoten öffnet das Profil der Person.
|
||||
</footer>
|
||||
<div class="legend">
|
||||
@for (entry of roleLegend(); track entry.role) {
|
||||
<span class="legend__item">
|
||||
<span
|
||||
class="legend__dot"
|
||||
[class.legend__dot--ego]="entry.role === 'ego'"
|
||||
[style.background]="entry.color"></span>
|
||||
{{ entry.label }}
|
||||
</span>
|
||||
}
|
||||
<span class="legend__item"
|
||||
><span class="legend__edge"></span>Kollaboration (Breite = Stärke)</span
|
||||
>
|
||||
<span class="legend__item"
|
||||
><span class="legend__edge legend__edge--dashed"></span>überwiegend
|
||||
institutionsübergreifend</span
|
||||
>
|
||||
<span class="legend__item">Knotengröße = aktive Jahre</span>
|
||||
</div>
|
||||
|
||||
<div class="case-grid">
|
||||
<mat-card appearance="outlined" class="netbox">
|
||||
<mat-card-content>
|
||||
@if (network(); as net) {
|
||||
@if ((net.nodes?.length ?? 0) > 0) {
|
||||
<app-multiplier-network-graph
|
||||
[network]="net"
|
||||
[height]="640"
|
||||
(nodeClick)="onNodeClick($event)" />
|
||||
} @else {
|
||||
<div class="netbox__empty">Kein Netzwerk verfügbar.</div>
|
||||
}
|
||||
} @else {
|
||||
<div class="netbox__empty">Kein Netzwerk verfügbar.</div>
|
||||
}
|
||||
<div class="netfoot">
|
||||
{{ fmtInt(netMeta().shown) }} der
|
||||
{{ fmtInt(netMeta().totalCoauthors) }} Koautor:innen dargestellt ·
|
||||
{{ fmtInt(netMeta().cohortCoauthors) }} aus der UDE-Kohorte ·
|
||||
{{ fmtInt(netMeta().mentees) }} Mentees
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
|
||||
<mat-card appearance="outlined" class="detail-card">
|
||||
<mat-card-content>
|
||||
<div class="panel">
|
||||
<div>
|
||||
<h3>Multiplikator-Scores</h3>
|
||||
<p class="cap">
|
||||
Rang gegen Peers dieser Universität, gleiche Karrierestufe.
|
||||
Schwelle: 85.
|
||||
</p>
|
||||
@for (s of subScores(); track s.key) {
|
||||
<app-score-bar
|
||||
variant="success"
|
||||
[label]="s.label"
|
||||
[hint]="s.hint"
|
||||
[value]="s.value * 100"
|
||||
[display]="fmtSubScore(s.value)"
|
||||
[threshold]="tagThreshold" />
|
||||
}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3>Gründungspotenzial</h3>
|
||||
<p class="cap">
|
||||
Rang gegen ~9.000 Wissenschaftler:innen an anderen
|
||||
Universitäten.
|
||||
</p>
|
||||
<app-score-bar
|
||||
label="Score"
|
||||
[value]="founder().score ?? 0"
|
||||
[display]="fmt1(founder().score)" />
|
||||
<app-score-bar
|
||||
label="Innerhalb 1 Jahr"
|
||||
[value]="founder().within1 ?? 0"
|
||||
[display]="fmt1(founder().within1)" />
|
||||
<app-score-bar
|
||||
label="Innerhalb 3 Jahre"
|
||||
[value]="founder().within3 ?? 0"
|
||||
[display]="fmt1(founder().within3)" />
|
||||
<app-score-bar
|
||||
label="Innerhalb 5 Jahre"
|
||||
[value]="founder().within5 ?? 0"
|
||||
[display]="fmt1(founder().within5)" />
|
||||
@if (
|
||||
founder().timingApplicable && founder().yearsToFounding !== null
|
||||
) {
|
||||
<p class="timing-note">
|
||||
@if ((founder().yearsToFounding ?? 0) <= 0) {
|
||||
Das Aktivitätsmuster wirkt bereits gründungsbereit.
|
||||
} @else {
|
||||
Voraussichtlich in
|
||||
{{ fmt1(founder().yearsToFounding) }} Jahren gründungsreif.
|
||||
}
|
||||
</p>
|
||||
}
|
||||
</div>
|
||||
|
||||
<div class="facts">
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Publikationen <b>{{ fmtInt(facts().pubs) }}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Patente <b>{{ fmtInt(facts().patents) }}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Industrie-Publikationen
|
||||
<b>{{ fmtInt(facts().industry) }}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>Förderungen <b>{{ fmtInt(facts().grants) }}</b></app-chip
|
||||
>
|
||||
<app-chip variant="outlined" color="secondary"
|
||||
>aktive Jahre <b>{{ fmtInt(facts().activeYears) }}</b></app-chip
|
||||
>
|
||||
</div>
|
||||
|
||||
<div class="metrics">
|
||||
<h3>Metriken im Detail</h3>
|
||||
<p class="cap">
|
||||
Jeder Rohwert steht neben seinem Peer-Rang (0–1), damit
|
||||
nachvollziehbar bleibt, warum eine Person so eingestuft wurde.
|
||||
</p>
|
||||
<div class="scroller">
|
||||
<table mat-table [dataSource]="metricRows()" class="mx">
|
||||
<ng-container matColumnDef="metric">
|
||||
<th mat-header-cell *matHeaderCellDef>Metrik</th>
|
||||
<td mat-cell *matCellDef="let row">{{ row.label }}</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="value">
|
||||
<th mat-header-cell *matHeaderCellDef class="num">Wert</th>
|
||||
<td mat-cell *matCellDef="let row" class="num">
|
||||
{{ fmtMetricValue(row.metric.raw) }}
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="rank">
|
||||
<th mat-header-cell *matHeaderCellDef class="num">
|
||||
Peer-Rang
|
||||
</th>
|
||||
<td
|
||||
mat-cell
|
||||
*matCellDef="let row"
|
||||
class="num"
|
||||
[class.hot]="(row.metric.peer_rank ?? 0) >= 0.9">
|
||||
{{ fmtPeerRank(row.metric.peer_rank) }}
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<tr
|
||||
mat-header-row
|
||||
*matHeaderRowDef="displayedMetricColumns"></tr>
|
||||
<tr
|
||||
mat-row
|
||||
*matRowDef="let row; columns: displayedMetricColumns"></tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
|
||||
<footer class="page">
|
||||
Konfiguration
|
||||
<span class="mono">{{ network()?.config_hash ?? '–' }}</span> · berechnet
|
||||
am
|
||||
<span class="mono">{{
|
||||
network()?.computed_at | date: 'dd.MM.yyyy HH:mm'
|
||||
}}</span>
|
||||
</footer>
|
||||
}
|
||||
</div>
|
||||
|
||||
+75
-60
@@ -1,22 +1,19 @@
|
||||
.researcher-network {
|
||||
max-width: 1160px;
|
||||
max-width: 1440px;
|
||||
margin: 0 auto;
|
||||
padding: 24px 8px 64px;
|
||||
}
|
||||
|
||||
.back-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 13px;
|
||||
color: var(--sg-text-muted);
|
||||
text-decoration: none;
|
||||
margin-bottom: 16px;
|
||||
color: var(--sg-text-muted);
|
||||
font-size: 13px;
|
||||
|
||||
mat-icon {
|
||||
font-size: 18px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@@ -75,18 +72,6 @@
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.tag-pill {
|
||||
font-size: 11.5px;
|
||||
font-weight: 600;
|
||||
padding: 2.5px 10px;
|
||||
border-radius: 999px;
|
||||
letter-spacing: 0.04em;
|
||||
border: 1px solid var(--sg-border);
|
||||
color: var(--sg-text);
|
||||
background: var(--sg-blue-highlight);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.legend {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
@@ -135,20 +120,22 @@
|
||||
|
||||
.case-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
|
||||
gap: 26px;
|
||||
grid-template-columns: minmax(0, 1.9fr) minmax(340px, 1fr);
|
||||
gap: 28px;
|
||||
align-items: start;
|
||||
margin-top: 26px;
|
||||
}
|
||||
|
||||
.netbox {
|
||||
border: 1px solid var(--sg-border);
|
||||
border-radius: 10px;
|
||||
background: var(--sg-surface-muted);
|
||||
overflow: hidden;
|
||||
|
||||
.mat-mdc-card-content {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
&__empty {
|
||||
height: 480px;
|
||||
height: 640px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -156,6 +143,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.detail-card {
|
||||
.mat-mdc-card-content {
|
||||
padding: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
.netfoot {
|
||||
font-size: 12px;
|
||||
color: var(--sg-text-soft);
|
||||
@@ -195,14 +188,6 @@
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.fact {
|
||||
font-size: 12px;
|
||||
background: var(--sg-surface-soft);
|
||||
border-radius: 6px;
|
||||
padding: 4px 9px;
|
||||
color: var(--sg-text-muted);
|
||||
|
||||
b {
|
||||
color: var(--sg-text);
|
||||
@@ -211,20 +196,7 @@
|
||||
}
|
||||
|
||||
.metrics {
|
||||
margin-top: 48px;
|
||||
|
||||
h2 {
|
||||
font-size: 20px;
|
||||
margin: 0 0 4px;
|
||||
color: var(--sg-text);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.note {
|
||||
font-size: 13px;
|
||||
color: var(--sg-text-muted);
|
||||
margin: 2px 0 16px;
|
||||
}
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.scroller {
|
||||
@@ -232,18 +204,13 @@
|
||||
}
|
||||
|
||||
table.mx {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 12.5px;
|
||||
background: transparent;
|
||||
font-size: 12px;
|
||||
|
||||
th,
|
||||
td {
|
||||
text-align: left;
|
||||
padding: 6px 9px;
|
||||
border-bottom: 1px solid var(--sg-border);
|
||||
}
|
||||
|
||||
th {
|
||||
.mat-mdc-header-cell {
|
||||
padding: 0 7px;
|
||||
height: 20px;
|
||||
color: var(--sg-text-soft);
|
||||
font-weight: 600;
|
||||
font-size: 11px;
|
||||
@@ -251,13 +218,18 @@ table.mx {
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
|
||||
td {
|
||||
.mat-mdc-cell {
|
||||
color: var(--sg-text-muted);
|
||||
vertical-align: middle;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.mat-mdc-row {
|
||||
height: 25px;
|
||||
}
|
||||
|
||||
td.num {
|
||||
font-variant-numeric: tabular-nums;
|
||||
.num {
|
||||
text-align: right;
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: var(--sg-text);
|
||||
white-space: nowrap;
|
||||
|
||||
@@ -268,6 +240,45 @@ table.mx {
|
||||
}
|
||||
}
|
||||
|
||||
.unavailable {
|
||||
margin-top: 32px;
|
||||
max-width: 68ch;
|
||||
background: var(--sg-surface-muted);
|
||||
|
||||
.mat-mdc-card-content {
|
||||
padding: 28px 30px;
|
||||
}
|
||||
|
||||
&__icon {
|
||||
font-size: 34px;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
color: var(--sg-text-soft);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 24px;
|
||||
line-height: 1.2;
|
||||
margin: 0 0 10px;
|
||||
color: var(--sg-text);
|
||||
}
|
||||
|
||||
&__body {
|
||||
font-size: 15px;
|
||||
line-height: 1.55;
|
||||
color: var(--sg-text);
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
|
||||
&__hint {
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
color: var(--sg-text-muted);
|
||||
margin: 0 0 20px;
|
||||
}
|
||||
}
|
||||
|
||||
footer.page {
|
||||
margin-top: 48px;
|
||||
border-top: 1px solid var(--sg-border);
|
||||
@@ -282,8 +293,12 @@ footer.page {
|
||||
font-size: 11.5px;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
@media (max-width: 1000px) {
|
||||
.case-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.netbox__empty {
|
||||
height: 420px;
|
||||
}
|
||||
}
|
||||
|
||||
+133
-37
@@ -1,18 +1,25 @@
|
||||
import { Component, computed, inject, input } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Router, RouterModule } from '@angular/router';
|
||||
import { NavigationEnd, Router, RouterModule } from '@angular/router';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatCardModule } from '@angular/material/card';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||
import { pipe } from 'rxjs';
|
||||
|
||||
import { EgoNetwork, ResearcherDetail } from '../../../api';
|
||||
import {
|
||||
METRIC_DEFS,
|
||||
TAG_LABELS,
|
||||
fmt1,
|
||||
fmtInt,
|
||||
fmtMetricValue,
|
||||
fmtPeerRank,
|
||||
fmtSubScore,
|
||||
tagDescription,
|
||||
tagLabel,
|
||||
} from '../founder-potential.utils';
|
||||
import { MetricValue, ResearcherMetrics } from '../../../api';
|
||||
import { ResearcherPageState } from '../../../resolvers/multiplier-researcher-page.resolver';
|
||||
import {
|
||||
MULTIPLIER_ROLE_LABELS,
|
||||
multiplierRoleColor,
|
||||
@@ -20,11 +27,32 @@ import {
|
||||
} from '../../../shared/ui/multiplier-network-graph/multiplier-network-graph.component';
|
||||
import { ScoreBarComponent } from '../../../shared/ui/score-bar/score-bar.component';
|
||||
import { CareerStageChipComponent } from '../../../shared/ui/career-stage-chip/career-stage-chip.component';
|
||||
import { ChipComponent } from '../../../shared/ui/chip/chip.component';
|
||||
import { ChartThemeService } from '../../../shared/services/chart-theme.service';
|
||||
import { ARROW_BACK_ICON, WARNING_ICON } from '../../../shared/ui/icons';
|
||||
|
||||
import { CredentialService } from '../../../shared/services/credential.service';
|
||||
import {
|
||||
ARROW_BACK_ICON,
|
||||
PERSON_OFF_ICON,
|
||||
WARNING_ICON,
|
||||
} from '../../../shared/ui/icons';
|
||||
import { filter } from 'rxjs/operators';
|
||||
const TAG_THRESHOLD = 0.85;
|
||||
const ROLE_ORDER = ['ego', 'cohort', 'mentee', 'industry', 'external'];
|
||||
const SUB_SCORE_KEYS = ['bridger', 'mentor', 'amplifier'] as const;
|
||||
const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen';
|
||||
|
||||
interface UnavailableView {
|
||||
title: string;
|
||||
body: string;
|
||||
hint: string | null;
|
||||
}
|
||||
|
||||
/** A metric definition paired with the API's own raw/peer-rank block. */
|
||||
interface MetricRow {
|
||||
key: keyof ResearcherMetrics;
|
||||
label: string;
|
||||
metric: MetricValue;
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'app-researcher-network',
|
||||
@@ -32,46 +60,115 @@ const ROLE_ORDER = ['ego', 'cohort', 'mentee', 'industry', 'external'];
|
||||
imports: [
|
||||
CommonModule,
|
||||
RouterModule,
|
||||
MatButtonModule,
|
||||
MatCardModule,
|
||||
MatIconModule,
|
||||
MatTableModule,
|
||||
MatTooltipModule,
|
||||
MultiplierNetworkGraphComponent,
|
||||
ScoreBarComponent,
|
||||
CareerStageChipComponent,
|
||||
ChipComponent,
|
||||
],
|
||||
templateUrl: './researcher-network.component.html',
|
||||
styleUrl: './researcher-network.component.scss',
|
||||
})
|
||||
export class ResearcherNetworkComponent {
|
||||
constructor() {
|
||||
this.router.events
|
||||
.pipe(filter((event: any) => event instanceof NavigationEnd))
|
||||
.subscribe(() => {
|
||||
document.body.scrollTo({
|
||||
top: 0,
|
||||
behavior: 'smooth',
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
readonly ARROW_BACK_ICON = ARROW_BACK_ICON;
|
||||
readonly WARNING_ICON = WARNING_ICON;
|
||||
readonly PERSON_OFF_ICON = PERSON_OFF_ICON;
|
||||
|
||||
readonly researcher = input.required<ResearcherDetail>();
|
||||
readonly network = input.required<EgoNetwork>();
|
||||
/** Resolved detail + network, or the backend's explanation why they are missing. */
|
||||
readonly page = input.required<ResearcherPageState>();
|
||||
|
||||
private readonly router = inject(Router);
|
||||
private readonly chartTheme = inject(ChartThemeService);
|
||||
private readonly credentials = inject(CredentialService, { optional: true });
|
||||
|
||||
readonly name = computed(
|
||||
() => this.researcher().display_name ?? this.network().display_name ?? this.researcher().author_id,
|
||||
readonly universityName = computed(
|
||||
() => this.credentials?.organizationName() || FALLBACK_UNIVERSITY,
|
||||
);
|
||||
|
||||
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);
|
||||
private readonly available = computed(() => {
|
||||
const page = this.page();
|
||||
return page.status === 'ok' ? page : null;
|
||||
});
|
||||
|
||||
readonly tags = computed(() => this.researcher().tags ?? []);
|
||||
readonly researcher = computed(() => this.available()?.researcher ?? null);
|
||||
readonly network = computed(() => this.available()?.network ?? null);
|
||||
|
||||
readonly unavailable = computed<UnavailableView | null>(() => {
|
||||
const page = this.page();
|
||||
if (page.status !== 'unavailable') return null;
|
||||
|
||||
const university = this.universityName();
|
||||
const who = page.displayName ?? 'diese Person';
|
||||
|
||||
if (page.reason === 'OTHER_INSTITUTION') {
|
||||
return {
|
||||
title: 'Kein Gründungspotenzial für diese Universität',
|
||||
body: `Für ${who} wurde kein Gründungspotenzial für die ${university} berechnet.`,
|
||||
hint: page.authorInstitution
|
||||
? `Die Person ist aktuell der Einrichtung „${page.authorInstitution}“ zugeordnet, nicht der ${university}.`
|
||||
: `Die Person ist keiner Einrichtung der ${university} zugeordnet.`,
|
||||
};
|
||||
}
|
||||
if (page.reason === 'NOT_INDEXED') {
|
||||
return {
|
||||
title: 'Noch keine berechneten Daten',
|
||||
body: `Für ${who} wurde noch kein Gründungspotenzial berechnet.`,
|
||||
hint: `Die Person gehört zur ${university}, ist aber noch nicht in der Auswertung enthalten.`,
|
||||
};
|
||||
}
|
||||
return {
|
||||
title: 'Keine Daten zu dieser Person',
|
||||
body: 'Zu dieser Person liegen keine berechneten Daten vor.',
|
||||
hint: null,
|
||||
};
|
||||
});
|
||||
|
||||
readonly name = computed(
|
||||
() =>
|
||||
this.researcher()?.display_name ??
|
||||
this.network()?.display_name ??
|
||||
this.researcher()?.author_id ??
|
||||
'Unbekannt',
|
||||
);
|
||||
|
||||
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 tags = computed(() => this.researcher()?.tags ?? []);
|
||||
|
||||
readonly subScores = computed(() => {
|
||||
const pr = this.researcher().multiplier_peer_ranks;
|
||||
return [
|
||||
{ label: 'Brückenbauer', raw: pr?.bridger ?? 0 },
|
||||
{ label: 'Mentor', raw: pr?.mentor ?? 0 },
|
||||
{ label: 'Verstärker', raw: pr?.amplifier ?? 0 },
|
||||
];
|
||||
const pr = this.researcher()?.multiplier_peer_ranks;
|
||||
return SUB_SCORE_KEYS.map((key) => ({
|
||||
key,
|
||||
label: tagLabel(key),
|
||||
hint: tagDescription(key),
|
||||
value: pr?.[key] ?? 0,
|
||||
}));
|
||||
});
|
||||
|
||||
readonly founder = computed(() => {
|
||||
const fp = this.researcher().founder_potential;
|
||||
const fp = this.researcher()?.founder_potential;
|
||||
return {
|
||||
score: fp?.external_percentile ?? null,
|
||||
within1: fp?.external_percentile_within_1y ?? null,
|
||||
@@ -83,7 +180,7 @@ export class ResearcherNetworkComponent {
|
||||
});
|
||||
|
||||
readonly facts = computed(() => {
|
||||
const ff = this.researcher().founder_features;
|
||||
const ff = this.researcher()?.founder_features;
|
||||
return {
|
||||
pubs: ff?.publications ?? 0,
|
||||
patents: ff?.patents ?? 0,
|
||||
@@ -96,25 +193,23 @@ export class ResearcherNetworkComponent {
|
||||
readonly netMeta = computed(() => {
|
||||
const n = this.network();
|
||||
return {
|
||||
totalCoauthors: n.total_coauthors ?? 0,
|
||||
cohortCoauthors: n.cohort_coauthors ?? 0,
|
||||
mentees: n.mentee_count ?? 0,
|
||||
shown: n.shown ?? 0,
|
||||
totalCoauthors: n?.total_coauthors ?? 0,
|
||||
cohortCoauthors: n?.cohort_coauthors ?? 0,
|
||||
mentees: n?.mentee_count ?? 0,
|
||||
shown: n?.shown ?? 0,
|
||||
};
|
||||
});
|
||||
|
||||
readonly metricRows = computed(() =>
|
||||
METRIC_DEFS.map((def) => {
|
||||
const metric = this.researcher().metrics?.[def.key];
|
||||
return {
|
||||
key: def.key,
|
||||
label: def.label,
|
||||
raw: metric?.raw ?? null,
|
||||
rank: metric?.peer_rank ?? null,
|
||||
};
|
||||
}),
|
||||
readonly metricRows = computed<MetricRow[]>(() =>
|
||||
METRIC_DEFS.map((def) => ({
|
||||
key: def.key,
|
||||
label: def.label,
|
||||
metric: this.researcher()?.metrics?.[def.key] ?? {},
|
||||
})),
|
||||
);
|
||||
|
||||
readonly displayedMetricColumns = ['metric', 'value', 'rank'];
|
||||
|
||||
readonly roleLegend = computed(() =>
|
||||
ROLE_ORDER.map((role) => ({
|
||||
role,
|
||||
@@ -134,6 +229,7 @@ export class ResearcherNetworkComponent {
|
||||
readonly fmtSubScore = fmtSubScore;
|
||||
readonly fmtPeerRank = fmtPeerRank;
|
||||
readonly fmtMetricValue = fmtMetricValue;
|
||||
readonly tagLabel = (tag: string) => TAG_LABELS[tag] ?? tag;
|
||||
readonly tagLabel = tagLabel;
|
||||
readonly tagDescription = tagDescription;
|
||||
readonly tagThreshold = TAG_THRESHOLD * 100;
|
||||
}
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import { ResolveFn } from '@angular/router';
|
||||
import { inject } from '@angular/core';
|
||||
import { EgoNetwork, MultiplicatorsService } from '../api';
|
||||
|
||||
/** One researcher's ego co-author network (nodes and edges, no layout). */
|
||||
export const multiplierResearcherNetworkResolver: ResolveFn<EgoNetwork> = (
|
||||
route,
|
||||
) => {
|
||||
const service = inject(MultiplicatorsService);
|
||||
const authorId = route.paramMap.get('authorId') ?? '';
|
||||
return service.getMultiplicatorResearcherNetwork(authorId);
|
||||
};
|
||||
@@ -0,0 +1,103 @@
|
||||
import { inject } from '@angular/core';
|
||||
import { HttpErrorResponse } from '@angular/common/http';
|
||||
import { ResolveFn } from '@angular/router';
|
||||
import { catchError, map, of, switchMap, throwError } from 'rxjs';
|
||||
|
||||
import { EgoNetwork, MultiplicatorsService, ResearcherDetail } from '../api';
|
||||
|
||||
/**
|
||||
* Why the backend has no multiplicator document for this author.
|
||||
*
|
||||
* This mirrors `ResearcherUnavailableReason` on the backend. It is not in the
|
||||
* generated client because it is transported in the 404 *error body*, and the
|
||||
* OpenAPI generator (and the Angular client) do not type error responses.
|
||||
*/
|
||||
export type ResearcherUnavailableReason =
|
||||
| 'OTHER_INSTITUTION'
|
||||
| 'NOT_INDEXED'
|
||||
| 'UNKNOWN_AUTHOR'
|
||||
| 'UNKNOWN';
|
||||
|
||||
export type ResearcherPageState =
|
||||
| {
|
||||
status: 'ok';
|
||||
/** Generated model, unchanged. */
|
||||
researcher: ResearcherDetail;
|
||||
/** Generated model; null when the ego network document is missing. */
|
||||
network: EgoNetwork | null;
|
||||
}
|
||||
| {
|
||||
status: 'unavailable';
|
||||
authorId: string;
|
||||
reason: ResearcherUnavailableReason;
|
||||
/** Technical message from the API; used for logging only. */
|
||||
message: string | null;
|
||||
displayName: string | null;
|
||||
/** The author's current institution, when it is somewhere else. */
|
||||
authorInstitution: string | null;
|
||||
};
|
||||
|
||||
const REASONS: readonly ResearcherUnavailableReason[] = [
|
||||
'OTHER_INSTITUTION',
|
||||
'NOT_INDEXED',
|
||||
'UNKNOWN_AUTHOR',
|
||||
];
|
||||
|
||||
/**
|
||||
* Loads the researcher detail and, only on success, their ego network.
|
||||
*
|
||||
* A 404 is not an error for this page: the backend explains in the body why
|
||||
* the person is missing (other institution, not indexed, unknown author), so
|
||||
* we turn it into a renderable state instead of letting the global navigation
|
||||
* error handler redirect to /error. Any other status is rethrown.
|
||||
*/
|
||||
export const multiplierResearcherPageResolver: ResolveFn<
|
||||
ResearcherPageState
|
||||
> = (route) => {
|
||||
const service = inject(MultiplicatorsService);
|
||||
const authorId = route.paramMap.get('authorId') ?? '';
|
||||
|
||||
return service.getMultiplicatorResearcher(authorId).pipe(
|
||||
switchMap((researcher) =>
|
||||
service.getMultiplicatorResearcherNetwork(authorId).pipe(
|
||||
catchError(() => of(null)),
|
||||
map(
|
||||
(network): ResearcherPageState => ({
|
||||
status: 'ok',
|
||||
researcher,
|
||||
network,
|
||||
}),
|
||||
),
|
||||
),
|
||||
),
|
||||
catchError((error: unknown) => {
|
||||
if (error instanceof HttpErrorResponse && error.status === 404) {
|
||||
return of(toUnavailable(authorId, error));
|
||||
}
|
||||
return throwError(() => error);
|
||||
}),
|
||||
);
|
||||
};
|
||||
|
||||
function toUnavailable(
|
||||
requestedAuthorId: string,
|
||||
error: HttpErrorResponse,
|
||||
): Extract<ResearcherPageState, { status: 'unavailable' }> {
|
||||
const body = (error.error ?? {}) as Record<string, unknown>;
|
||||
const reason = REASONS.includes(body['reason'] as ResearcherUnavailableReason)
|
||||
? (body['reason'] as ResearcherUnavailableReason)
|
||||
: 'UNKNOWN';
|
||||
|
||||
return {
|
||||
status: 'unavailable',
|
||||
authorId: asString(body['author_id']) ?? requestedAuthorId,
|
||||
reason,
|
||||
message: asString(body['message']),
|
||||
displayName: asString(body['display_name']),
|
||||
authorInstitution: asString(body['author_institution']),
|
||||
};
|
||||
}
|
||||
|
||||
function asString(value: unknown): string | null {
|
||||
return typeof value === 'string' && value.length > 0 ? value : null;
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
import { ResolveFn } from '@angular/router';
|
||||
import { inject } from '@angular/core';
|
||||
import { MultiplicatorsService, ResearcherDetail } from '../api';
|
||||
|
||||
/** Full multiplier + founder-potential detail for one researcher. */
|
||||
export const multiplierResearcherResolver: ResolveFn<ResearcherDetail> = (
|
||||
route,
|
||||
) => {
|
||||
const service = inject(MultiplicatorsService);
|
||||
const authorId = route.paramMap.get('authorId') ?? '';
|
||||
return service.getMultiplicatorResearcher(authorId);
|
||||
};
|
||||
+1
@@ -1,5 +1,6 @@
|
||||
<div
|
||||
class="multiplier-graph"
|
||||
[style.height.px]="height()"
|
||||
echarts
|
||||
[options]="options()"
|
||||
[autoResize]="true"
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
.multiplier-graph {
|
||||
width: 100%;
|
||||
height: 480px;
|
||||
height: 480px; // fallback; the component's `height` input overrides it
|
||||
}
|
||||
|
||||
+3
-1
@@ -63,6 +63,8 @@ export function multiplierRoleColor(role: string, dark: boolean): string {
|
||||
})
|
||||
export class MultiplierNetworkGraphComponent {
|
||||
readonly network = input.required<EgoNetwork>();
|
||||
/** Chart height in pixels. */
|
||||
readonly height = input<number>(480);
|
||||
readonly nodeClick = output<MultiplierNodeClickEvent>();
|
||||
|
||||
private readonly chartTheme = inject(ChartThemeService);
|
||||
@@ -160,7 +162,7 @@ export class MultiplierNetworkGraphComponent {
|
||||
inst: node.inst ?? '',
|
||||
activeYears,
|
||||
nWorks: isEgo ? nWorks : undefined,
|
||||
symbolSize: isEgo ? 34 : clamp(12 + activeYears * 2, 12, 44),
|
||||
symbolSize: isEgo ? 24 : clamp(8 + activeYears * 1.1, 8, 26),
|
||||
itemStyle: {
|
||||
color: this.roleColor(role),
|
||||
borderColor: isEgo ? textColor : 'transparent',
|
||||
|
||||
Reference in New Issue
Block a user