From 75a353125c786ddea006bf9ee839be35b1bba70c Mon Sep 17 00:00:00 2001 From: genja Date: Tue, 10 Nov 2026 02:23:30 +0100 Subject: [PATCH] reorganized layout --- .../founder-dashboard.component.html | 600 ++++++++---------- .../founder-dashboard.component.scss | 431 +++---------- .../founder-dashboard.component.ts | 144 +++-- .../multipliers-dashboard.component.html | 234 +++---- .../multipliers-dashboard.component.scss | 188 ++---- .../multipliers-dashboard.component.ts | 212 +++---- .../researcher-network.component.html | 275 ++++---- .../researcher-network.component.scss | 101 +-- .../researcher-network.component.ts | 51 +- .../multiplicator-researchers.resolver.ts | 14 +- .../multiplier-role-labels.ts | 6 +- .../multiplier-role-scores.component.html | 3 +- .../multiplier-role-scores.component.scss | 3 +- .../multiplier-role-scores.component.ts | 46 +- 14 files changed, 934 insertions(+), 1374 deletions(-) diff --git a/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.html b/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.html index 98a03668..8e85d5c1 100644 --- a/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.html +++ b/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.html @@ -1,335 +1,222 @@ -
-
-

Gründungspotenzial {{ universityName() }}

-
- -

- Datenbasis: Publikationen, Patente, Förderungen und - Industriekooperationen werden für Forschende der Universität bis zum - jeweiligen Datenstichtag zusammengeführt. Ein vortrainiertes, symmetrisch - aufgebautes Modell schätzt die Ähnlichkeit zu Profilen von Personen, die - gegründet haben. -

-
    -
  • - Der Hauptwert ist ein - Perzentil gegenüber einer festen Referenzkohorte von rund 9.000 - Forschenden aus acht anderen Universitäten - – keine individuelle Gründungswahrscheinlichkeit. -
  • -
  • - „Innerhalb 1 / 3 / 5 Jahre“ kommt aus drei eigenen Horizont-Modellen. - Bewertbar sind Profile ab mindestens vier Publikationen. Die - Kandidatenliste blendet standardmäßig Profile mit weniger als sieben - Publikationen, unplausibel langen Karrieren (über 40 Jahre) und - wahrscheinlichen Profilzusammenführungen aus. -
  • -
-
- @if (hasData()) { -
-

Welche Forschenden könnten künftig gründen?

-

- Dieses Dashboard zeigt das Gründungspotenzial der Forschenden der - {{ universityName() }}. 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. -

-
+ +
+ @if (hasData()) { +
+ -
- - -
Forschende im Index
-
{{ fmtInt(kpis().total) }}
-
gesamte Kohorte
-
-
- - -
Bestehen Datenqualität
-
{{ fmtInt(kpis().passed) }}
-
{{ kpis().share }} % der Kohorte
-
-
- - -
Auf der Shortlist
-
{{ fmtInt(kpis().shortlisted) }}
-
- Score ≥ {{ fmt1(threshold()) - }}{{ screened() ? ', gescreent' : ', ungescreent' }} -
-
-
-
+ - -
-

1 · Woher die Kandidat:innen kommen

-

- Beide Panels nutzen die Shortlist am aktuellen Schwellenwert. -

-
- - -
Karrierestufe
-
- @for (s of stageRows(); track s.career_bucket) { -
- {{ s.career_bucket }} - - - - {{ s.shortlist_plain ?? 0 }} - / {{ fmtInt(s.screened) }} -
- } -
-
- Balken sind Kandidatenzahlen; die graue Zahl ist der gescreente - Pool der Stufe. -
-
-
- - - -
- Forschungsfeld, vs. Anteil an der Kohorte -
-
- @for (a of areaRows(); track a.code) { -
- {{ a.label ?? a.code }} - - - - {{ a.shortlist_count ?? 0 }} - · {{ fmt1((a.cohort_share ?? 0) * 100) }} % der - Kohorte -
- } -
-
- Balken sind Kandidatenzahlen. Die graue Zahl ist der Anteil des - Feldes an der gescreenten Kohorte – ein Feld deutlich über seinem - Anteil überproduziert. -
-
-
-
-
-
-

2 · Die Shortlist

-

- 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. -

- -
- Minimaler Score - - - - {{ thresholdDraft() }} - - Fehlerhafte Datensätze aussortieren - - - {{ fmtInt(total()) }} {{ total() === 1 ? 'Person' : 'Personen' }} - -
- - +
+ } @else { + - @if (rows().length) { - - } @else { -
- Niemand erreicht diesen Schwellenwert, sobald fehlerhafte - Datensätze aussortiert sind. Senke den Schwellenwert für eine - handlungsfähige Liste. -
- } + {{ FOUNDER_ICON }} +

Noch kein Gründungspotenzial berechnet

+

+ Für die {{ universityName() }} wurde das + Gründungspotenzial noch nicht berechnet. Sobald die Auswertung + vorliegt, erscheinen hier die Kandidat:innen und ihre + Gründungspotenzial-Scores. +

- - - - @if (selectedRow(); as row) { - - -
-
-

{{ row.name }}

-
- {{ row.candidate.career_bucket ?? '–' }} - @if (row.areaLabel) { - · {{ row.areaLabel }} - } - · {{ fmtInt(row.candidate.active_years) }} aktive Jahre - @if (!row.candidate.screen.passed && row.flagLabel) { - · - auffällig: {{ row.flagLabel }} - } -
-
-
- -
-
-
Gründungspotenzial
-

- Perzentil gegenüber der Modell-Referenzkohorte; keine - individuelle Wahrscheinlichkeit. -

- - - - -
-
- -
- Publikationen - {{ - fmtInt(row.candidate.founder_features?.publications) - }} - Patente - {{ - fmtInt(row.candidate.founder_features?.patents) - }} - Industrie-Publikationen - {{ - fmtInt(row.candidate.founder_features?.industry_collab_papers) - }} - Förderungen - {{ - fmtInt(row.candidate.founder_features?.grants) - }} - aktive Jahre - {{ fmtInt(row.candidate.active_years) }} -
-
-
- } -
- } @else { - - - {{ FOUNDER_ICON }} -

Noch kein Gründungspotenzial berechnet

-

- Für die {{ universityName() }} wurde das - Gründungspotenzial noch nicht berechnet. Sobald die Auswertung - vorliegt, erscheinen hier die Kandidat:innen und ihre - Gründungspotenzial-Scores. -

-
-
- } -
+ } +
+ @@ -344,28 +231,12 @@ - @if (row.score !== null) { - - - - - {{ fmt1(row.score) }} - - } @else { - – - } + {{ fmt1(row.score) }} - - - @for (v of row.within; track $index) { - - } - - - {{ row.within.map((v) => (v === null ? '–' : round(v))).join(' · ') }} - + + {{ row.within.map((v) => (v === null ? '–' : fmt1(v))).join(' · ') }} @@ -381,3 +252,42 @@ } + + + + Score + + {{ HELP_OUTLINE_ICON }} + + + + + + + Innerhalb 1 / 3 / 5 J. + + {{ HELP_OUTLINE_ICON }} + + + + + + + Evidenz + + {{ HELP_OUTLINE_ICON }} + + + diff --git a/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.scss b/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.scss index 634a2305..34520f9d 100644 --- a/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.scss +++ b/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.scss @@ -1,43 +1,16 @@ .founder-dashboard { - max-width: 1080px; - margin: 0 auto; - padding: 24px 8px 64px; + width: 100%; + min-width: 0; } -.hero { - margin-bottom: 8px; - - .eyebrow { - font-size: 11px; - letter-spacing: 0.14em; - text-transform: uppercase; - color: var(--sg-text-soft); - margin: 0 0 10px; - } - - h1 { - font-size: 30px; - line-height: 1.15; - margin: 0 0 12px; - font-weight: 700; - color: var(--sg-text); - } - - .lede { - color: var(--sg-text-muted); - font-size: 15.5px; - margin: 0; - max-width: 66ch; - - strong { - color: var(--sg-text); - font-weight: 600; - } - } -} - -section { - margin-top: 40px; +.info-icon { + flex: none; + width: 19px; + height: 19px; + color: var(--sg-text-soft); + font-size: 19px; + cursor: help; + vertical-align: middle; } .empty-state { @@ -50,24 +23,24 @@ section { } &__icon { - font-size: 34px; + margin-bottom: 10px; width: 34px; height: 34px; color: var(--sg-text-soft); - margin-bottom: 10px; + font-size: 34px; } h2 { - font-size: 22px; margin: 0 0 10px; color: var(--sg-text); + font-size: 22px; } p { + margin: 0; + color: var(--sg-text-muted); font-size: 15px; line-height: 1.55; - color: var(--sg-text-muted); - margin: 0; } strong { @@ -76,147 +49,64 @@ section { } } -h2 { - font-size: 20px; - margin: 0 0 4px; - font-weight: 700; - color: var(--sg-text); -} - -.note { - font-size: 13px; - color: var(--sg-text-muted); - margin: 2px 0 18px; - max-width: 74ch; - line-height: 1.5; -} - // -- KPIs --------------------------------------------------------------- -.kpis { +.statistics-grid { display: grid; - grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); - gap: 12px; - margin-top: 26px; + grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); + gap: 1rem; } -.kpi { - background: var(--sg-surface-muted); +// -- Shortlist ---------------------------------------------------------- - .mat-mdc-card-content { - padding: 14px 16px; - } - - .kpi__key { - font-size: 11px; - letter-spacing: 0.08em; - text-transform: uppercase; - color: var(--sg-text-soft); - margin-bottom: 6px; - } - - .kpi__value { - font-size: 30px; - font-weight: 700; - line-height: 1; - letter-spacing: -0.02em; - color: var(--sg-text); - font-variant-numeric: tabular-nums; - } - - .kpi__sub { - font-size: 12px; - color: var(--sg-text-muted); - margin-top: 5px; - } - - &.kpi--hero .kpi__value { - color: var(--sg-blue-highlight); - } +.shortlist-section { + margin-top: 32px; } -// -- Funnel ------------------------------------------------------------- - -.funnel { +.section-heading { display: flex; - flex-direction: column; - gap: 9px; -} - -.funnel__row { - display: grid; - grid-template-columns: minmax(140px, 240px) 1fr 64px 56px; - gap: 12px; align-items: center; -} + gap: 8px; + margin-bottom: 12px; -.funnel__label { - font-size: 13px; - color: var(--sg-text-muted); -} - -.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); - - .mat-mdc-progress-bar { - height: 100%; + h2 { + margin: 0; + color: var(--sg-text); + font-size: 20px; + font-weight: 700; } } -.funnel__count { - font-size: 13px; - font-variant-numeric: tabular-nums; - color: var(--sg-text); - text-align: right; - font-weight: 600; -} - -.funnel__lost { - font-size: 11.5px; - color: var(--sg-error); - text-align: right; -} - -// -- Controls ----------------------------------------------------------- - .controls { display: flex; flex-wrap: wrap; - gap: 10px 22px; align-items: center; + gap: 10px 22px; + margin-bottom: 16px; padding: 12px 14px; - background: var(--sg-surface-muted); border: 1px solid var(--sg-border); border-radius: 10px; - margin-bottom: 16px; + background: var(--sg-surface-muted); font-size: 13px; &__range { display: inline-flex; align-items: center; - gap: 10px; + gap: 6px; color: var(--sg-text-muted); } &__value { + display: inline-block; + min-width: 24px; + color: var(--sg-text); font-weight: 700; font-variant-numeric: tabular-nums; - color: var(--sg-text); - min-width: 24px; - display: inline-block; } &__count { - color: var(--sg-text-soft); margin-left: auto; + color: var(--sg-text-soft); } &__slider { @@ -225,8 +115,6 @@ h2 { } } -// -- List --------------------------------------------------------------- - .list-card { overflow: hidden; @@ -243,10 +131,10 @@ h2 { .mat-mdc-header-cell { padding: 8px 14px; background: var(--sg-surface-muted); + color: var(--sg-text-soft); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; - color: var(--sg-text-soft); } .mat-mdc-cell { @@ -270,11 +158,6 @@ h2 { width: 21%; } - .mat-column-actions { - width: 10%; - text-align: right; - } - tr.element-row { cursor: pointer; @@ -295,96 +178,50 @@ h2 { } } +.th-help { + display: inline-flex; + align-items: center; + gap: 4px; + + &__icon { + width: 14px; + height: 14px; + color: var(--sg-text-soft); + font-size: 14px; + cursor: help; + } +} + .list__nm { - font-weight: 600; color: var(--sg-text); + font-weight: 600; } .list__sub { display: block; - font-size: 11.5px; color: var(--sg-text-soft); -} - -.list__score { - display: flex; - align-items: center; - gap: 7px; -} - -.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; - height: 9px; - flex: 1; - min-width: 44px; - overflow: hidden; - - .mat-mdc-progress-bar { - height: 100%; - } + font-size: 11.5px; } .list__score-value { - font-variant-numeric: tabular-nums; - font-size: 12.5px; min-width: 34px; - text-align: right; + color: var(--sg-text); + font-size: 12.5px; font-weight: 600; -} - -.list__within { - display: flex; - align-items: center; - gap: 7px; -} - -.list__hist { - display: flex; - gap: 2px; - align-items: flex-end; - height: 22px; - - i { - display: block; - width: 9px; - background: var(--sg-blue-highlight); - border-radius: 2px 2px 0 0; - opacity: 0.85; - } + font-variant-numeric: tabular-nums; + text-align: right; } .list__within-nums { - font-size: 12px; color: var(--sg-text-muted); + font-size: 12px; font-variant-numeric: tabular-nums; } .list__evidence { - font-variant-numeric: tabular-nums; color: var(--sg-text-muted); font-size: 12.5px; -} - -.list__actions { - display: flex; - align-items: center; - gap: 8px; - justify-content: flex-end; -} - -.warn-pill { - font-size: 10.5px; - color: var(--sg-error); - border: 1px solid currentColor; - border-radius: 999px; - padding: 1px 7px; - white-space: nowrap; + font-variant-numeric: tabular-nums; } .list__empty { @@ -396,8 +233,8 @@ h2 { // -- Detail card -------------------------------------------------------- .card { - background: var(--sg-surface-muted); margin-top: 16px; + background: var(--sg-surface-muted); .mat-mdc-card-content { padding: 20px; @@ -405,58 +242,63 @@ h2 { h3 { margin: 0 0 2px; - font-size: 20px; color: var(--sg-text); + font-size: 20px; } } .card__head { display: flex; flex-wrap: wrap; - gap: 12px; align-items: flex-start; justify-content: space-between; + gap: 12px; } .card__meta { - font-size: 12.5px; - color: var(--sg-text-soft); margin-bottom: 16px; + color: var(--sg-text-soft); + font-size: 12.5px; } .card__flag { color: var(--sg-error); + cursor: help; } -.card__grid { +.score-tiles { display: grid; - grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); - gap: 18px; - - &--founder-only { - grid-template-columns: minmax(0, 1fr); - } + grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); + gap: 10px; } -.panel { - background: var(--sg-surface); +.score-tile { + display: flex; + flex-direction: column; + gap: 4px; + padding: 12px 14px; border: 1px solid var(--sg-border); - border-radius: 10px; - padding: 14px 15px; + border-radius: 12px; + background: var(--sg-card-bg); + cursor: help; - .panel__ttl { - font-size: 11px; - letter-spacing: 0.08em; - text-transform: uppercase; + &__label { color: var(--sg-text-soft); - margin-bottom: 3px; + font-size: 11px; + letter-spacing: 0.07em; + text-transform: uppercase; } - .panel__cap { - font-size: 12px; - color: var(--sg-text-soft); - margin: 0 0 12px; - line-height: 1.45; + strong { + color: var(--sg-text); + font-size: 24px; + font-weight: 700; + font-variant-numeric: tabular-nums; + line-height: 1.1; + } + + &--primary strong { + color: var(--sg-blue-highlight); } } @@ -472,91 +314,12 @@ h2 { } } -.fact { - font-size: 12px; - background: var(--sg-surface-soft); - border-radius: 6px; - padding: 4px 9px; - color: var(--sg-text-muted); +@media (max-width: 640px) { + .section-heading h2 { + font-size: 18px; + } - b { - color: var(--sg-text); - font-variant-numeric: tabular-nums; + .controls__count { + margin-left: 0; } } - -// -- Charts ------------------------------------------------------------- - -.charts { - 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 { - font-size: 11px; - letter-spacing: 0.08em; - text-transform: uppercase; - color: var(--sg-text-soft); - margin-bottom: 12px; -} - -.chart__row { - display: grid; - grid-template-columns: 118px 1fr auto; - gap: 10px; - align-items: center; - margin-bottom: 7px; - font-size: 12.5px; -} - -.chart__label { - color: var(--sg-text-muted); -} - -.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); - - .mat-mdc-progress-bar { - height: 100%; - } -} - -.chart__num { - font-variant-numeric: tabular-nums; - font-size: 12px; - min-width: 96px; - text-align: right; - color: var(--sg-text); - - small { - color: var(--sg-text-soft); - font-weight: 400; - } -} - -.chart__axis { - border-top: 1px solid var(--sg-border); - margin-top: 10px; - padding-top: 6px; - font-size: 11px; - color: var(--sg-text-soft); -} diff --git a/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.ts b/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.ts index 72f04534..2e929731 100644 --- a/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.ts +++ b/webapp/src/app/modules/founder-potential/founder-dashboard/founder-dashboard.component.ts @@ -13,33 +13,32 @@ import { ActivatedRoute, Router } from '@angular/router'; import { toSignal } from '@angular/core/rxjs-interop'; 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, - clamp, - fmt1, - fmtInt, -} from '../founder-potential.utils'; -import { ScoreBarComponent } from '../../../shared/ui/score-bar/score-bar.component'; +import { SCREEN_REASON_LABELS, 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 { DataTableComponent, GenericColumn, } from '../../../shared/ui/data-table/data-table.component'; -import { MethodologyNoteComponent } from '../../../shared/ui/methodology-note/methodology-note.component'; -import { FOUNDER_ICON } from '../../../shared/ui/icons'; +import { DashboardStatisticCardComponent } from '../../dashboard/components/dashboard-statistic-card/dashboard-statistic-card.component'; +import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component'; +import { + FOUNDER_ICON, + HELP_OUTLINE_ICON, + INFO_OUTLINE_ICON, + PERSONS_ICON, + STAR_ICON, + VERIFIED_ICON, +} from '../../../shared/ui/icons'; import { CredentialService } from '../../../shared/services/credential.service'; const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen'; @@ -65,20 +64,25 @@ interface FounderRow { CommonModule, MatCardModule, MatIconModule, - MatProgressBarModule, MatSlideToggleModule, MatSliderModule, - ScoreBarComponent, + MatTooltipModule, QueryParamPaginatorComponent, ChipComponent, DataTableComponent, - MethodologyNoteComponent, + DashboardStatisticCardComponent, + PageContainerComponent, ], templateUrl: './founder-dashboard.component.html', styleUrl: './founder-dashboard.component.scss', }) export class FounderDashboardComponent { readonly FOUNDER_ICON = FOUNDER_ICON; + readonly HELP_OUTLINE_ICON = HELP_OUTLINE_ICON; + readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON; + readonly PERSONS_ICON = PERSONS_ICON; + readonly STAR_ICON = STAR_ICON; + readonly VERIFIED_ICON = VERIFIED_ICON; readonly statistics = input.required(); readonly candidates = input.required(); @@ -117,6 +121,48 @@ 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.'; + readonly totalTooltip = + 'Alle Forschenden der Universität, die in der Auswertung berücksichtigt werden.'; + + readonly qualityTooltip = computed( + () => + `${this.kpis().share} % der Forschenden haben ein ausreichend vollständiges und plausibles Profil und können verlässlich bewertet werden.`, + ); + + 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()}. ${ + this.screened() + ? 'Unzuverlässige Profile sind ausgeblendet.' + : 'Auch unzuverlässige 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.'; + + readonly thresholdTooltip = + 'Nur Personen mit mindestens diesem Gründungspotenzial werden angezeigt.'; + + readonly screeningTooltip = + 'Blendet Personen aus, deren Profil vermutlich unvollständig, falsch datiert oder mit anderen Personen vermischt ist.'; + + readonly scoreTooltip = + 'Wie stark das Gründungspotenzial im Vergleich zu anderen Forschenden ist. 100 ist der höchste Wert.'; + + readonly withinTooltip = + 'Wie wahrscheinlich eine Gründung aus Sicht des Modells in den nächsten 1, 3 oder 5 Jahren ist.'; + + readonly evidenceTooltip = + 'Worauf die Einschätzung beruht: Publikationen, Patente und gemeinsame Arbeiten mit der Industrie.'; + + readonly flagTooltip = + 'Dieses Profil ist vermutlich nicht ganz zuverlässig, zum Beispiel weil mehrere Personen vermischt wurden. Bitte die Werte vorsichtig interpretieren.'; + // -- KPIs --------------------------------------------------------------- readonly kpis = computed(() => { @@ -128,24 +174,6 @@ export class FounderDashboardComponent { return { total, passed, share, shortlisted }; }); - // -- Funnel ------------------------------------------------------------- - - readonly funnel = computed(() => { - const stages = this.statistics().funnel ?? []; - const max = stages[0]?.count ?? 1; - return stages.map((stage, i) => { - const count = stage.count ?? 0; - const lost = i === 0 ? 0 : (stages[i - 1]?.count ?? 0) - count; - return { - key: stage.key, - label: FUNNEL_STAGE_LABELS[stage.key] ?? stage.label, - count, - lost, - pct: clamp((count / max) * 100, 0, 100), - }; - }); - }); - // -- Shortlist ---------------------------------------------------------- private readonly nameTemplate = @@ -156,30 +184,41 @@ export class FounderDashboardComponent { viewChild.required>('withinTemplate'); private readonly evidenceTemplate = viewChild.required>('evidenceTemplate'); + private readonly scoreHeader = + viewChild.required>('scoreHeader'); + private readonly withinHeader = + viewChild.required>('withinHeader'); + private readonly evidenceHeader = + viewChild.required>('evidenceHeader'); readonly columns = computed[]>(() => [ { id: 'name', - header: 'Forschende:r', - type: 'display', + header: 'Forschende', + type: 'accessor', cellTemplate: this.nameTemplate(), + accessorKey: 'name', }, { id: 'score', header: 'Score', - type: 'display', + type: 'accessor', + headerTemplate: this.scoreHeader(), cellTemplate: this.scoreTemplate(), + accessorKey: 'score', }, { id: 'within', header: 'Innerhalb 1 / 3 / 5 J.', type: 'display', + headerTemplate: this.withinHeader(), cellTemplate: this.withinTemplate(), }, { id: 'evidence', header: 'Evidenz', type: 'display', + headerTemplate: this.evidenceHeader(), cellTemplate: this.evidenceTemplate(), }, ]); @@ -233,41 +272,10 @@ export class FounderDashboardComponent { }); } - // -- Stage / area charts ------------------------------------------------ - - readonly stageRows = computed( - () => this.statistics().career_stages ?? [], - ); - - readonly stageMax = computed(() => - Math.max(1, ...this.stageRows().map((s) => s.shortlist_plain ?? 0)), - ); - - readonly areaRows = computed(() => - [...(this.statistics().research_areas ?? [])] - .sort((a, b) => (b.shortlist_count ?? 0) - (a.shortlist_count ?? 0)) - .slice(0, 7), - ); - - readonly areaMax = computed(() => - Math.max(1, ...this.areaRows().map((a) => a.shortlist_count ?? 0)), - ); - // -- Formatting helpers for the template -------------------------------- readonly fmtInt = fmtInt; readonly fmt1 = fmt1; - - /** Clamp a percentile into the 0-100 band for bar widths. */ - readonly clamp0 = (value: number | null) => - value === null ? 0 : clamp(value, 0, 100); - - /** Height (in %) of a bar in the within-1/3/5y mini histogram. */ - readonly histHeight = (value: number | null) => - value === null ? 3 : Math.max(3, (clamp(value, 0, 100) / 100) * 22); - - /** Round a percentile for the within-1/3/5y summary. */ - readonly round = (value: number) => Math.round(value); } function toRow(c: FounderCandidate): FounderRow { diff --git a/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.html b/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.html index 8dab5248..f22fbc68 100644 --- a/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.html +++ b/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.html @@ -1,157 +1,19 @@ -
-
-

Multiplikatoren · {{ universityName() }}

-

Wer stärkt das Innovationsökosystem?

-

- Entdecke Forschende, die Forschungsgruppen verbinden, Nachwuchs fördern - oder Wissen in Wirtschaft und Öffentlichkeit tragen. Die Rollen-Scores - vergleichen Forschende derselben Karrierestufe an der - {{ universityName() }}. -

-
- - -

- Datenbasis: Die UDE-Kohorte umfasst die Universität und - acht zugehörige Einrichtungen. Forschende werden anhand jüngerer - OpenAlex-Affiliationen ausgewählt; ihre Publikationen und - Koautorenschaften werden anschließend institutionsübergreifend - ausgewertet. Die Rollen-Scores vergleichen nur Personen derselben - Karrierestufe. -

-
    -
  • - Bridger: Netzwerkvermittlung, Verbindungen zwischen - Fachgebieten und Institutionen. -
  • -
  • - Mentor: gemeinsame Publikationen mit Nachwuchs sowie - Hinweise auf Betreuung und deren berufliche Entwicklung. -
  • -
  • - Amplifier: Industriekooperationen, verknüpfte Patente, - EU-Projekte und relevante Medienerwähnungen. -
  • -
-

- Rohmetriken werden zunächst innerhalb der vier Karrierestufen - Early, Emerging, Established, Senior in Peer-Ränge - umgerechnet. Die drei Rollen-Scores sind gewichtete Mittel dieser Ränge: - Bridger (35 % Betweenness, 25 % Brokerage, 20 % Feldbreite, - 20 % institutionsübergreifende Zusammenarbeit), Mentor (35 % - Nachwuchs, 25 % Mentoring-Rate, 25 % typische Autor:innenrollen, - 15 % Nachwuchsentwicklung) und Amplifier (50 % Industrie, - 25 % Patente, 15 % EU-Projekte, 10 % Medien). Ab 85 % - und mindestens zwei aktiven Jahren wird ein Badge vergeben. Ein Score - beschreibt ein relatives Signal, keinen kausalen Nachweis. -

-

- Die aktuelle Multiplikator-Auswertung ist für die definierte UDE-Kohorte - berechnet. Für andere Universitäten erscheinen Daten erst, wenn deren - Kohorte ebenfalls durch die Pipeline verarbeitet wurde. -

-
- -
- - -
- - Name suchen - - {{ SEARCH_ICON }} - - - - Rollen-Badge - - @for (role of roleOptions; track role.value) { - {{ role.label }} - } - - - - - Karrierestufe - - @for (bucket of careerOptions; track bucket) { - {{ bucket }} - } - - - - - Rolle für Mindest-Rang - - @for (field of peerRankFields; track field.value) { - {{ field.label }} - } - - - -
- - - - -
-
- -
- - {{ fmtInt(pageTotal()) }} - {{ pageTotal() === 1 ? 'Forschende:r' : 'Forschende' }} - - - -
-
-
-
+ +
-
-

Multiplikator:innen in der Kohorte

-

- Nach dem stärksten Rollen-Rang sortiert. Öffne das Netzwerk, um - Kooperationen und die zugrunde liegenden Metriken anzusehen. -

-
+

Multiplikator:innen in der Kohorte

+ + {{ INFO_OUTLINE_ICON }} +
@@ -163,7 +25,7 @@ [stickyHeader]="false" queryParamSortKey="sortBy" queryParamSortDirectionKey="sortOrder" /> - } @else if (pageTotal() === 0 && selectedTags().length === 0 && selectedCareerBuckets().length === 0 && !nameDraft() && appliedMinPeerRank() === 0) { + } @else if (!hasActiveFilters()) {
hub

Noch keine Multiplikator-Daten

@@ -175,7 +37,9 @@ } @else {

Keine passenden Forschenden gefunden

-

Ändere oder entferne einen Filter, um weitere Ergebnisse zu sehen.

+

+ Ändere oder entferne einen Filter, um weitere Ergebnisse zu sehen. +

} @@ -185,7 +49,7 @@ [total]="pageTotal()" [pageSizeOptions]="[10, 25, 50, 100]" />
-
+
@@ -194,12 +58,24 @@ {{ fmtInt(row.nWorks) }} Publikationen · {{ fmtInt(row.activeYears) }} aktive Jahre @if (row.researcher.suspicious_profile) { - · Profil mit möglicher Zusammenführung + · + + {{ WARNING_ICON }} + Profil mit möglicher Zusammenführung + }
+ + {{ row.careerBucket }} + + @for (tag of row.tags; track tag) { {{ tagLabel(tag) }} @@ -223,13 +100,6 @@ } - - - - {{ fmtSubScore(row.max) }} - - - + + + + Karrierestufe + + {{ HELP_OUTLINE_ICON }} + + + + + + Multiplikator-Rollen + + {{ HELP_OUTLINE_ICON }} + + + + + + + Badges + + {{ HELP_OUTLINE_ICON }} + + + diff --git a/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.scss b/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.scss index 9c9d3409..b5958afc 100644 --- a/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.scss +++ b/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.scss @@ -1,124 +1,33 @@ -.multipliers-dashboard { - max-width: 1280px; - margin: 0 auto; - padding: 24px 8px 64px; +.info-icon { + flex: none; + width: 19px; + height: 19px; + color: var(--sg-text-soft); + font-size: 19px; + cursor: help; + vertical-align: middle; } -.hero { - max-width: 75ch; - - .eyebrow { - margin: 0 0 10px; - color: var(--sg-text-soft); - font-size: 11px; - letter-spacing: 0.14em; - text-transform: uppercase; - } - - h1 { - margin: 0 0 12px; - color: var(--sg-text); - font-size: 30px; - line-height: 1.15; - } - - .lede { - margin: 0; - color: var(--sg-text-muted); - font-size: 15px; - line-height: 1.55; - - strong { - color: var(--sg-text); - } - } -} - -.filters-section, .table-section { - margin-top: 28px; -} - -.filters-card, -.table-card { - background: var(--sg-surface-muted); -} - -.filters-card .mat-mdc-card-content { - padding: 16px 18px; -} - -.filters-grid { - display: grid; - grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(150px, 1fr)) minmax(190px, 1.1fr); - gap: 12px; - align-items: center; - - mat-form-field { - width: 100%; - } - - .name-filter { - min-width: 0; - } -} - -.rank-filter { - min-width: 0; - padding: 0 8px; - - label { - display: block; - margin-bottom: 2px; - color: var(--sg-text-muted); - font-size: 12px; - font-weight: 500; - } - - mat-slider { - width: 100%; - } -} - -.filter-actions { - display: flex; - justify-content: flex-end; - align-items: center; - gap: 8px; - - .result-count { - margin-right: auto; - color: var(--sg-text-soft); - font-size: 12.5px; - font-variant-numeric: tabular-nums; - } - - mat-icon { - margin-right: 4px; - } + margin-top: 8px; } .section-heading { display: flex; - align-items: flex-end; - justify-content: space-between; + align-items: center; + gap: 8px; margin-bottom: 12px; h2 { - margin: 0 0 4px; + margin: 0; color: var(--sg-text); font-size: 20px; } - - .note { - margin: 0; - color: var(--sg-text-muted); - font-size: 13px; - } } .table-card { overflow: hidden; + background: var(--sg-surface-muted); .mat-mdc-card-content { padding: 0; @@ -143,8 +52,42 @@ } } +.career-cell { + color: var(--sg-text-muted); + font-size: 12.5px; + white-space: nowrap; +} + .warning { + display: inline-flex; + align-items: center; + gap: 3px; color: var(--sg-warning); + cursor: help; + + &__icon { + width: 13px; + height: 13px; + font-size: 13px; + } +} + +.th-help { + display: inline-flex; + align-items: center; + gap: 4px; + + &__icon { + width: 14px; + height: 14px; + color: var(--sg-text-soft); + font-size: 14px; + cursor: help; + } +} + +.muted { + color: var(--sg-text-soft); } .tags-cell { @@ -157,24 +100,6 @@ color: var(--sg-text-soft); } -.max-score { - display: inline-flex; - align-items: center; - gap: 8px; - min-width: 105px; - color: var(--sg-text); - font-size: 12px; - font-variant-numeric: tabular-nums; - - .mat-mdc-progress-bar { - --mat-progress-bar-track-height: 7px; - --mat-progress-bar-active-indicator-height: 7px; - --mat-progress-bar-track-color: var(--sg-surface-soft); - --mat-progress-bar-active-indicator-color: var(--sg-success); - width: 62px; - } -} - .empty-state { display: flex; min-height: 190px; @@ -213,26 +138,7 @@ } } -@media (max-width: 1100px) { - .filters-grid { - grid-template-columns: repeat(2, minmax(180px, 1fr)); - } -} - @media (max-width: 640px) { - .hero h1 { - font-size: 25px; - } - - .filters-grid { - grid-template-columns: 1fr; - gap: 2px; - } - - .filter-actions { - flex-wrap: wrap; - } - .section-heading h2 { font-size: 18px; } diff --git a/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.ts b/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.ts index 58f32638..34d229ca 100644 --- a/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.ts +++ b/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.ts @@ -1,45 +1,44 @@ import { Component, computed, - effect, 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 { MatFormFieldModule } from '@angular/material/form-field'; import { MatIconModule } from '@angular/material/icon'; -import { MatInputModule } from '@angular/material/input'; -import { MatProgressBarModule } from '@angular/material/progress-bar'; -import { MatSelectModule } from '@angular/material/select'; -import { MatSliderModule } from '@angular/material/slider'; import { MatTooltipModule } from '@angular/material/tooltip'; import { - CareerBucket, MultiplierTag, - PeerRankField, - ResearcherSortBy, ResearcherSummary, ResearcherSummaryPage, } from '../../../api'; -import { fmtInt, fmtSubScore, tagDescription, tagLabel } from '../founder-potential.utils'; +import { + fmtInt, + tagDescription, + tagLabel, +} from '../founder-potential.utils'; import { ChipComponent } from '../../../shared/ui/chip/chip.component'; import { DataTableComponent, GenericColumn, } from '../../../shared/ui/data-table/data-table.component'; -import { MethodologyNoteComponent } from '../../../shared/ui/methodology-note/methodology-note.component'; import { MultiplierRoleScoresComponent } from '../../../shared/ui/multiplier-role-scores/multiplier-role-scores.component'; import { QueryParamPaginatorComponent } from '../../../shared/ui/query-param-paginator/query-param-paginator.component'; +import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component'; +import { MultiplierFiltersComponent } from '../multiplier-filters/multiplier-filters.component'; import { CredentialService } from '../../../shared/services/credential.service'; -import { NETWORK_ICON, SEARCH_ICON } from '../../../shared/ui/icons'; +import { + HELP_OUTLINE_ICON, + INFO_OUTLINE_ICON, + NETWORK_ICON, + WARNING_ICON, +} from '../../../shared/ui/icons'; const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen'; @@ -50,36 +49,31 @@ interface MultiplierRow { activeYears: number; nWorks: number; tags: string[]; - max: number; } @Component({ selector: 'app-multipliers-dashboard', standalone: true, imports: [ - CommonModule, - RouterModule, MatButtonModule, MatCardModule, - MatFormFieldModule, MatIconModule, - MatInputModule, - MatProgressBarModule, - MatSelectModule, - MatSliderModule, MatTooltipModule, ChipComponent, DataTableComponent, - MethodologyNoteComponent, MultiplierRoleScoresComponent, QueryParamPaginatorComponent, + PageContainerComponent, + MultiplierFiltersComponent, ], templateUrl: './multipliers-dashboard.component.html', styleUrl: './multipliers-dashboard.component.scss', }) export class MultipliersDashboardComponent { + readonly HELP_OUTLINE_ICON = HELP_OUTLINE_ICON; + readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON; readonly NETWORK_ICON = NETWORK_ICON; - readonly SEARCH_ICON = SEARCH_ICON; + readonly WARNING_ICON = WARNING_ICON; readonly researchers = input.required(); @@ -95,50 +89,52 @@ export class MultipliersDashboardComponent { () => this.credentials?.organizationName() || FALLBACK_UNIVERSITY, ); readonly pageTotal = computed(() => this.researchers().total ?? 0); - readonly nameDraft = signal(''); - readonly minPeerRankDraft = signal(0); - readonly selectedTags = computed(() => this.queryParams().getAll('tag')); - readonly selectedCareerBuckets = computed(() => - this.queryParams().getAll('careerBucket'), - ); - readonly selectedPeerRankField = computed( - () => this.queryParams().get('peerRankField') ?? PeerRankField.Max, - ); - readonly appliedMinPeerRank = computed( - () => Math.round((toNumber(this.queryParams().get('minPeerRank')) ?? 0) * 100), + readonly hasActiveFilters = computed(() => + ['name', 'tag', 'careerBucket', 'minPeerRank', 'peerRankField'].some( + (key) => { + const value = this.queryParams().get(key); + return value !== null && value !== ''; + }, + ), ); - readonly roleOptions = [ - { value: MultiplierTag.Bridger, label: tagLabel(MultiplierTag.Bridger) }, - { value: MultiplierTag.Mentor, label: tagLabel(MultiplierTag.Mentor) }, - { value: MultiplierTag.Amplifier, label: tagLabel(MultiplierTag.Amplifier) }, - ]; - readonly careerOptions = Object.values(CareerBucket); - readonly peerRankFields = [ - { value: PeerRankField.Max, label: 'Stärkste Rolle' }, - { value: PeerRankField.Bridger, label: tagLabel(MultiplierTag.Bridger) }, - { value: PeerRankField.Mentor, label: tagLabel(MultiplierTag.Mentor) }, - { value: PeerRankField.Amplifier, label: tagLabel(MultiplierTag.Amplifier) }, - ]; + // -- Explanations (tooltips only) -------------------------------------- - constructor() { - effect(() => { - this.nameDraft.set(this.queryParams().get('name') ?? ''); - this.minPeerRankDraft.set(this.appliedMinPeerRank()); - }, { allowSignalWrites: true }); - } + readonly pageTooltip = + 'Multiplikatoren werden anhand ihrer Zusammenarbeit bewertet: Wie gut verbinden sie Forschungsgruppen, wie viel publizieren sie mit Nachwuchsforschenden und wie stark ist der Austausch mit Industrie, Patenten oder der Öffentlichkeit? Daraus werden die drei Rollen Bridger, Mentor und Amplifier berechnet. Die Werte reichen von 0 bis 100: Je höher, desto stärker ist die Rolle im Vergleich zu anderen derselben Karrierestufe.'; + + readonly shortlistTooltip = + 'Die Liste ist nach der stärksten Rolle sortiert. Die stärkste Rolle ist in der Rollen-Spalte hervorgehoben. Über das Netzwerk-Symbol sehen Sie, mit wem die Person zusammenarbeitet.'; + + readonly careerHeaderTooltip = + 'Ordnet die Person anhand ihrer aktiven Publikationsjahre ein: Early, Emerging, Established oder Senior.'; + + readonly rolesHeaderTooltip = + '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.'; + + readonly suspiciousTooltip = + 'Bei diesem Profil wurden vermutlich mehrere Personen vermischt. Die Angaben zu Publikationen und Netzwerk sind deshalb unsicher.'; private readonly nameTemplate = viewChild.required>('nameTemplate'); + private readonly careerTemplate = + viewChild.required>('careerTemplate'); private readonly rolesTemplate = viewChild.required>('rolesTemplate'); private readonly tagsTemplate = viewChild.required>('tagsTemplate'); - private readonly maxTemplate = - viewChild.required>('maxTemplate'); private readonly actionTemplate = viewChild.required>('actionTemplate'); + private readonly careerHeader = + viewChild.required>('careerHeader'); + private readonly rolesHeader = + viewChild.required>('rolesHeader'); + private readonly tagsHeader = + viewChild.required>('tagsHeader'); readonly rows = computed(() => (this.researchers().elements ?? []).map((researcher) => ({ @@ -148,36 +144,39 @@ export class MultipliersDashboardComponent { activeYears: researcher.active_years ?? 0, nWorks: researcher.n_works ?? 0, tags: researcher.tags ?? [], - max: researcher.max_multiplier_peer_rank ?? 0, })), ); readonly columns = computed[]>(() => [ { id: 'name', - header: 'Forschende:r', - type: 'display', + header: 'Forschende', + type: 'accessor', + accessorKey: 'name', cellTemplate: this.nameTemplate(), }, + { + id: 'career', + header: 'Karrierestufe', + type: 'accessor', + accessorKey: 'careerBucket', + headerTemplate: this.careerHeader(), + cellTemplate: this.careerTemplate(), + }, { id: 'roles', header: 'Multiplikator-Rollen', type: 'display', + headerTemplate: this.rolesHeader(), cellTemplate: this.rolesTemplate(), }, { id: 'tags', header: 'Badges', type: 'display', + headerTemplate: this.tagsHeader(), cellTemplate: this.tagsTemplate(), }, - { - id: ResearcherSortBy.Max, - header: 'Stärkster Rang', - type: 'accessor', - accessorKey: 'max', - cellTemplate: this.maxTemplate(), - }, { id: 'network', header: '', @@ -186,81 +185,24 @@ export class MultipliersDashboardComponent { }, ]); - readonly formatPercent = (value: number): string => `${value}%`; readonly fmtInt = fmtInt; - readonly fmtSubScore = fmtSubScore; readonly tagLabel = tagLabel; readonly tagDescription = tagDescription; - onNameInput(event: Event): void { - this.nameDraft.set((event.target as HTMLInputElement).value); - } - - onMinRankInput(value: number): void { - this.minPeerRankDraft.set(value); - } - - onFilterCommit(): void { - const rank = this.minPeerRankDraft(); - void this.router.navigate([], { - relativeTo: this.route, - queryParams: { - name: this.nameDraft().trim() || null, - minPeerRank: rank > 0 ? rank / 100 : null, - peerRankField: this.selectedPeerRankField() || PeerRankField.Max, - page: 0, - }, - queryParamsHandling: 'merge', - }); - } - - onTagsChange(values: string[]): void { - void this.router.navigate([], { - relativeTo: this.route, - queryParams: { tag: values.length ? values : null, page: 0 }, - queryParamsHandling: 'merge', - }); - } - - onCareerBucketsChange(values: string[]): void { - void this.router.navigate([], { - relativeTo: this.route, - queryParams: { careerBucket: values.length ? values : null, page: 0 }, - queryParamsHandling: 'merge', - }); - } - - onPeerRankFieldChange(value: string): void { - void this.router.navigate([], { - relativeTo: this.route, - queryParams: { peerRankField: value, page: 0 }, - queryParamsHandling: 'merge', - }); - } + readonly tagColor = (tag: string): string => { + switch (tag) { + case MultiplierTag.Bridger: + return 'info'; + case MultiplierTag.Mentor: + return 'success'; + case MultiplierTag.Amplifier: + return 'warn'; + default: + return 'secondary'; + } + }; openNetwork(row: MultiplierRow): void { void this.router.navigate(['/founders', row.researcher.author_id]); } - - clearFilters(): void { - void this.router.navigate([], { - relativeTo: this.route, - queryParams: { - tag: null, - careerBucket: null, - name: null, - minPeerRank: null, - peerRankField: PeerRankField.Max, - suspiciousProfile: null, - page: 0, - }, - queryParamsHandling: 'merge', - }); - } -} - -function toNumber(value: string | null): number | null { - if (value === null || value === '') return null; - const parsed = Number(value); - return Number.isFinite(parsed) && parsed >= 0 && parsed <= 1 ? parsed : null; } diff --git a/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.html b/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.html index f451e1ee..9578afe4 100644 --- a/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.html +++ b/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.html @@ -1,30 +1,10 @@ -
- - {{ ARROW_BACK_ICON }} - Zurück zu den Multiplikatoren - - - @if (unavailable(); as empty) { - - - {{ PERSON_OFF_ICON }} -

{{ empty.title }}

-

{{ empty.body }}

- @if (empty.hint) { -

{{ empty.hint }}

- } - -
-
- } @else { -
-

- Smart-Guide · Multiplikatoren · {{ universityName() }} -

-

{{ name() }}

+ +
+ @if (!unavailable()) {
@if (careerBucket()) { @if (suspicious()) { - + {{ WARNING_ICON }} Zusammengeführtes Profil · Daten vorsichtig interpretieren + {{ HELP_OUTLINE_ICON }} }
@@ -49,113 +34,128 @@ {{ tagLabel(tag) }} }
} -
+ } +
- -

- Für das Diagramm werden Koautor:innen-Paare aus Publikationen zu einem - gewichteten Netzwerk verbunden. Arbeiten mit mehr als 50 Autor:innen - werden nur aus dem Graphen ausgeschlossen (sie zählen weiterhin für - Publikations- und Karrierewerte); ältere Kanten werden mit 0,8 pro Jahr - abgewichtet. Gezeigt werden bis zu 42 starke Koautor:innen, wobei - Nachwuchs-Koautor:innen bevorzugt aufgenommen werden. -

-

- Die drei Rollen-Scores sind gewichtete Mittel von Metrik-Perzentilen - gegenüber Forschenden derselben Karrierestufe an der - {{ universityName() }}. Ein Score von 85 % ist - damit ein relativer Peer-Rang, kein kausaler Nachweis. Die Badges - markieren Rollen-Scores ab 85 %. -

-
- -
- @for (entry of roleLegend(); track entry.role) { + @if (unavailable(); as empty) { + + + {{ PERSON_OFF_ICON }} + @if (empty.hint) { +

{{ empty.hint }}

+ } + +
+
+ } @else { +
+
+ @for (entry of roleLegend(); track entry.role) { + + + {{ entry.label }} + + } - - {{ entry.label }} + + Kollaboration (Breite = Stärke) - } - - - Kollaboration (Breite = Stärke) - - - - überwiegend institutionsübergreifend - - Knotengröße = aktive Jahre -
+ + + überwiegend institutionsübergreifend + + Knotengröße = aktive Jahre +
-
- - - @if (network(); as net) { - @if ((net.nodes?.length ?? 0) > 0) { - +
+ + + @if (network(); as net) { + @if ((net.nodes?.length ?? 0) > 0) { + + } @else { +
Kein Netzwerk verfügbar.
+ } } @else {
Kein Netzwerk verfügbar.
} - } @else { -
Kein Netzwerk verfügbar.
- } -
- {{ fmtInt(netMeta().shown) }} von - {{ fmtInt(netMeta().totalCoauthors) }} Koautor:innen dargestellt · - {{ fmtInt(netMeta().cohortCoauthors) }} aus der - Universitätskohorte · {{ fmtInt(netMeta().mentees) }} Mentees -
-
-
+
+ {{ fmtInt(netMeta().shown) }} von + {{ fmtInt(netMeta().totalCoauthors) }} Koautor:innen dargestellt · + {{ fmtInt(netMeta().cohortCoauthors) }} aus der + Universitätskohorte · {{ fmtInt(netMeta().mentees) }} Mentees +
+ + - - -
-

Multiplikator-Rollen

-

- Peer-Rang innerhalb derselben Karrierestufe. Die gestrichelte - Markierung zeigt die Badge-Schwelle von 85 %. -

- -
+ + +
+

+ Multiplikator-Rollen + + {{ INFO_OUTLINE_ICON }} + +

+ +
-
-

Metriken im Detail

-

- Rohwerte und zugehörige Peer-Ränge zeigen, welche Netzwerk- und - Kooperationssignale in die Rollen-Scores einfließen. -

- -
-
-
+
+

+ Metriken im Detail + + {{ INFO_OUTLINE_ICON }} + +

+ +
+
+
+
+ +
+ Netzwerk-Konfiguration + {{ network()?.config_hash ?? '–' }} · + berechnet + {{ + network()?.computed_at | date: 'dd.MM.yyyy HH:mm' + }} +
- -
- Netzwerk-Konfiguration - {{ network()?.config_hash ?? '–' }} · berechnet - {{ network()?.computed_at | date: 'dd.MM.yyyy HH:mm' }} -
} -
+ {{ row.label }} @@ -170,3 +170,42 @@ {{ fmtPeerRank(row.metric.peer_rank) }} + + + + Metrik + + {{ HELP_OUTLINE_ICON }} + + + + + + + Wert + + {{ HELP_OUTLINE_ICON }} + + + + + + + Peer-Rang + + {{ HELP_OUTLINE_ICON }} + + + diff --git a/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.scss b/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.scss index ce199262..f64c4526 100644 --- a/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.scss +++ b/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.scss @@ -1,11 +1,9 @@ .researcher-network { - max-width: 1440px; - margin: 0 auto; - padding: 24px 8px 64px; + width: 100%; + min-width: 0; } .back-link { - margin-bottom: 16px; color: var(--sg-text-muted); font-size: 13px; @@ -21,24 +19,18 @@ } } -.page { - max-width: 72ch; +.meta-block { + margin-top: 8px; +} - .eyebrow { - font-size: 11px; - letter-spacing: 0.14em; - text-transform: uppercase; - color: var(--sg-text-soft); - margin: 0 0 10px; - } - - h1 { - font-size: 30px; - line-height: 1.15; - margin: 0 0 12px; - font-weight: 700; - color: var(--sg-text); - } +.info-icon { + flex: none; + width: 19px; + height: 19px; + color: var(--sg-text-soft); + font-size: 19px; + cursor: help; + vertical-align: middle; } .meta-line { @@ -57,12 +49,20 @@ gap: 4px; color: var(--sg-error); font-size: 12.5px; + cursor: help; mat-icon { font-size: 16px; width: 16px; height: 16px; } + + .help-icon { + color: var(--sg-text-soft); + font-size: 15px; + width: 15px; + height: 15px; + } } .tags { @@ -120,7 +120,7 @@ .case-grid { display: grid; - grid-template-columns: minmax(0, 1.9fr) minmax(340px, 1fr); + grid-template-columns: minmax(0, 1.7fr) minmax(420px, 1fr); gap: 28px; align-items: start; margin-top: 26px; @@ -144,6 +144,8 @@ } .detail-card { + overflow: hidden; + .mat-mdc-card-content { padding: 18px; } @@ -162,6 +164,9 @@ gap: 12px; h2 { + display: flex; + align-items: center; + gap: 6px; margin: 0; color: var(--sg-text); font-size: 17px; @@ -169,24 +174,37 @@ } } -.cap { - font-size: 12px; - color: var(--sg-text-soft); - margin: 0 0 12px; - line-height: 1.45; -} - .metrics { min-width: 0; - margin-top: 24px; + margin-top: 20px; + padding-top: 16px; + border-top: 1px solid var(--sg-border); h2 { - margin: 0 0 6px; + display: flex; + align-items: center; + gap: 6px; + margin: 0 0 8px; color: var(--sg-text); font-size: 17px; } } +.th-help { + display: inline-flex; + align-items: center; + gap: 4px; + white-space: nowrap; + + &__icon { + width: 14px; + height: 14px; + color: var(--sg-text-soft); + font-size: 14px; + cursor: help; + } +} + .num { font-variant-numeric: tabular-nums; color: var(--sg-text); @@ -208,25 +226,12 @@ } &__icon { - font-size: 34px; + display: block; + margin-bottom: 10px; 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; + font-size: 34px; } &__hint { @@ -237,7 +242,7 @@ } } -footer.page { +.network-footer { margin-top: 48px; border-top: 1px solid var(--sg-border); padding-top: 16px; diff --git a/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.ts b/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.ts index 2e7bc872..394cef26 100644 --- a/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.ts +++ b/webapp/src/app/modules/founder-potential/researcher-network/researcher-network.component.ts @@ -21,14 +21,21 @@ import { multiplierRoleColor, MultiplierNetworkGraphComponent, } from '../../../shared/ui/multiplier-network-graph/multiplier-network-graph.component'; -import { DataTableComponent, GenericColumn } from '../../../shared/ui/data-table/data-table.component'; +import { GenericColumn } from '../../../shared/ui/data-table/data-table.component'; +import { CompactDataTableComponent } from '../../../shared/ui/compact-data-table/compact-data-table.component'; import { CareerStageChipComponent } from '../../../shared/ui/career-stage-chip/career-stage-chip.component'; import { ChipComponent } from '../../../shared/ui/chip/chip.component'; -import { MethodologyNoteComponent } from '../../../shared/ui/methodology-note/methodology-note.component'; import { MultiplierRoleScoresComponent } from '../../../shared/ui/multiplier-role-scores/multiplier-role-scores.component'; +import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component'; import { ChartThemeService } from '../../../shared/services/chart-theme.service'; import { CredentialService } from '../../../shared/services/credential.service'; -import { ARROW_BACK_ICON, PERSON_OFF_ICON, WARNING_ICON } from '../../../shared/ui/icons'; +import { + ARROW_BACK_ICON, + HELP_OUTLINE_ICON, + INFO_OUTLINE_ICON, + PERSON_OFF_ICON, + WARNING_ICON, +} from '../../../shared/ui/icons'; const ROLE_ORDER = ['ego', 'cohort', 'mentee', 'industry', 'external']; const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen'; @@ -55,12 +62,12 @@ interface MetricRow { MatCardModule, MatIconModule, MatTooltipModule, - DataTableComponent, + CompactDataTableComponent, MultiplierNetworkGraphComponent, CareerStageChipComponent, ChipComponent, - MethodologyNoteComponent, MultiplierRoleScoresComponent, + PageContainerComponent, ], templateUrl: './researcher-network.component.html', styleUrl: './researcher-network.component.scss', @@ -69,6 +76,8 @@ export class ResearcherNetworkComponent { readonly ARROW_BACK_ICON = ARROW_BACK_ICON; readonly WARNING_ICON = WARNING_ICON; readonly PERSON_OFF_ICON = PERSON_OFF_ICON; + readonly HELP_OUTLINE_ICON = HELP_OUTLINE_ICON; + readonly INFO_OUTLINE_ICON = INFO_OUTLINE_ICON; readonly page = input.required(); @@ -132,6 +141,29 @@ export class ResearcherNetworkComponent { readonly tagLabel = tagLabel; readonly tagDescription = tagDescription; + // -- Explanations (tooltips only) -------------------------------------- + + readonly pageTooltip = + 'Das Netzwerk zeigt, mit wem diese Person gemeinsam publiziert hat. Je dicker die Linie, desto häufiger haben die beiden zusammengearbeitet.'; + + readonly suspiciousTooltip = + 'Bei diesem Profil wurden vermutlich mehrere Personen vermischt, zum Beispiel wegen gleicher Namen oder einer unplausibel langen Karriere. Die Angaben zu Publikationen, Netzwerk und Rollen sind deshalb unsicher.'; + + readonly rolesTooltip = + '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.'; + + readonly valueTooltip = + 'Der gemessene Wert, zum Beispiel eine Anzahl oder ein Anteil.'; + + readonly rankTooltip = + 'Wie gut dieser Wert im Vergleich zu anderen derselben Karrierestufe ist. 90 % heißt: besser als 90 % der Vergleichsgruppe.'; + + readonly metricHeaderTooltip = + 'Diese Werte fließen in die Berechnung der drei Rollen ein.'; + readonly netMeta = computed(() => { const network = this.network(); return { @@ -148,6 +180,12 @@ export class ResearcherNetworkComponent { viewChild.required>('metricValueTemplate'); private readonly metricRankTemplate = viewChild.required>('metricRankTemplate'); + private readonly metricHeader = + viewChild.required>('metricHeader'); + private readonly metricValueHeader = + viewChild.required>('metricValueHeader'); + private readonly metricRankHeader = + viewChild.required>('metricRankHeader'); readonly metricRows = computed(() => METRIC_DEFS.map((definition) => ({ @@ -162,18 +200,21 @@ export class ResearcherNetworkComponent { id: 'metric', header: 'Metrik', type: 'display', + headerTemplate: this.metricHeader(), cellTemplate: this.metricTemplate(), }, { id: 'value', header: 'Wert', type: 'display', + headerTemplate: this.metricValueHeader(), cellTemplate: this.metricValueTemplate(), }, { id: 'rank', header: 'Peer-Rang', type: 'display', + headerTemplate: this.metricRankHeader(), cellTemplate: this.metricRankTemplate(), }, ]); diff --git a/webapp/src/app/resolvers/multiplicator-researchers.resolver.ts b/webapp/src/app/resolvers/multiplicator-researchers.resolver.ts index 324f6f45..6de27915 100644 --- a/webapp/src/app/resolvers/multiplicator-researchers.resolver.ts +++ b/webapp/src/app/resolvers/multiplicator-researchers.resolver.ts @@ -28,9 +28,12 @@ export const multiplicatorResearchersResolver: ResolveFn const page = toInt(params.get('page'), 0); const size = toInt(params.get('size'), 25); - const tags = validValues(params.getAll('tag'), VALID_TAGS); + const tags = validValues( + splitCommaSeparated(params.getAll('tag')), + VALID_TAGS, + ); const careerBuckets = validValues( - params.getAll('careerBucket'), + splitCommaSeparated(params.getAll('careerBucket')), VALID_CAREER_BUCKETS, ); const minPeerRank = toNumber(params.get('minPeerRank')); @@ -78,6 +81,13 @@ function toNumber(value: string | null): number | null { return Number.isFinite(parsed) && parsed >= 0 && parsed <= 1 ? parsed : null; } +function splitCommaSeparated(values: string[]): string[] { + return values + .flatMap((value) => value.split(',')) + .map((value) => value.trim()) + .filter(Boolean); +} + function validValues(values: string[], valid: readonly T[]): T[] { return values.filter((value): value is T => valid.includes(value as T)); } diff --git a/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-labels.ts b/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-labels.ts index 6c2462ed..67dfaf62 100644 --- a/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-labels.ts +++ b/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-labels.ts @@ -8,11 +8,11 @@ export const MULTIPLIER_TAG_LABELS: Record = { /** Coach-facing descriptions for the three multiplier archetypes. */ export const MULTIPLIER_TAG_DESCRIPTIONS: Record = { bridger: - 'Verbindet Forschungsgruppen, Fachgebiete oder Institutionen, die sonst wenig zusammenarbeiten.', + 'Verbindet Forschungsgruppen oder Fachgebiete, die sonst wenig miteinander zu tun haben.', mentor: - 'Publiziert mit Nachwuchsforschenden und zeigt Signale für deren Förderung und Entwicklung.', + 'Arbeitet mit Nachwuchsforschenden zusammen und unterstützt ihre Entwicklung.', amplifier: - 'Trägt Wissen über Industriekooperationen, Patente, EU-Projekte und Medienresonanz nach außen.', + 'Bringt Forschung in die Wirtschaft oder die Öffentlichkeit, zum Beispiel über Patente, Industrieprojekte oder Medien.', }; export function multiplierTagLabel(tag: string): string { diff --git a/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.html b/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.html index 7e6095d8..8c273c19 100644 --- a/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.html +++ b/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.html @@ -3,7 +3,8 @@ @for (role of roles(); track role.key) { {{ role.label }} {{ role.display }} diff --git a/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.scss b/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.scss index 72f126e6..180c3892 100644 --- a/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.scss +++ b/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.scss @@ -1,9 +1,8 @@ .role-scores { &--compact { display: flex; - flex-wrap: wrap; gap: 5px; - align-items: center; + align-items: start; font-size: 11px; b { diff --git a/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.ts b/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.ts index b002d53f..6035c3d9 100644 --- a/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.ts +++ b/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.ts @@ -8,6 +8,7 @@ import { multiplierTagDescription, multiplierTagLabel, } from './multiplier-role-labels'; +import { MultiplierTag } from '../../../api'; const ROLE_KEYS = ['bridger', 'mentor', 'amplifier'] as const; @@ -24,17 +25,44 @@ export class MultiplierRoleScoresComponent { readonly presentation = input<'compact' | 'detailed'>('detailed'); readonly showThreshold = input(false); - readonly roles = computed(() => - ROLE_KEYS.map((key) => ({ - key, - label: multiplierTagLabel(key), - hint: multiplierTagDescription(key), - value: this.scores()?.[key] ?? 0, - display: formatScore(this.scores()?.[key] ?? 0), - })), - ); + readonly roles = computed(() => { + const roles = ROLE_KEYS.map((key) => { + const value = this.scores()?.[key] ?? 0; + return { + key, + label: multiplierTagLabel(key), + hint: multiplierTagDescription(key), + value, + display: formatScore(value), + }; + }); + const strongest = Math.max(...roles.map((role) => role.value)); + + return roles.map((role) => { + const isStrongest = strongest > 0 && role.value === strongest; + return { + ...role, + isStrongest, + hint: isStrongest + ? `${role.hint} Das ist die stärkste Rolle dieser Person.` + : role.hint, + }; + }); + }); readonly threshold = 85; + readonly tagColor = (tag: string): string => { + switch (tag) { + case MultiplierTag.Bridger: + return 'info'; + case MultiplierTag.Mentor: + return 'success'; + case MultiplierTag.Amplifier: + return 'warn'; + default: + return 'secondary'; + } + }; } function formatScore(value: number): string {