From 159f121d7f01931ee72f9d96e69bd5d413613c5a Mon Sep 17 00:00:00 2001 From: genja Date: Wed, 11 Nov 2026 21:28:16 +0100 Subject: [PATCH] polish founder and multiplier views: clarified percentile semantics, add a founder KPI funnel, group detail metrics by role, and replace model jargon with neutral labels. Add explicit multiplier sort controls, career ranges, graph edge tool --- .../dashboard-statistic-card.component.html | 3 + .../dashboard-statistic-card.component.scss | 7 + .../dashboard-statistic-card.component.ts | 2 + .../founder-dashboard.component.html | 185 +++++++++++----- .../founder-dashboard.component.scss | 27 ++- .../founder-dashboard.component.ts | 87 ++++++-- .../founder-potential.utils.ts | 198 ++++++++++++++++-- .../multiplier-filters.component.html | 28 ++- .../multiplier-filters.component.ts | 32 ++- .../multipliers-dashboard.component.html | 29 ++- .../multipliers-dashboard.component.scss | 24 ++- .../multipliers-dashboard.component.ts | 21 +- .../researcher-network.component.html | 55 +++-- .../researcher-network.component.scss | 54 ++++- .../researcher-network.component.ts | 46 +++- .../resolvers/founder-candidates.resolver.ts | 33 ++- .../shared/ui/app-menu/app-menu.component.ts | 16 +- .../multiplier-network-graph.component.ts | 53 ++++- .../multiplier-role-scores.component.html | 7 + .../multiplier-role-scores.component.scss | 16 ++ .../multiplier-role-scores.component.ts | 6 +- .../ui/score-bar/score-bar.component.html | 6 +- .../ui/score-bar/score-bar.component.scss | 13 ++ .../ui/score-bar/score-bar.component.ts | 2 + 24 files changed, 797 insertions(+), 153 deletions(-) diff --git a/webapp/src/app/modules/dashboard/components/dashboard-statistic-card/dashboard-statistic-card.component.html b/webapp/src/app/modules/dashboard/components/dashboard-statistic-card/dashboard-statistic-card.component.html index 50299c96..1d810499 100644 --- a/webapp/src/app/modules/dashboard/components/dashboard-statistic-card/dashboard-statistic-card.component.html +++ b/webapp/src/app/modules/dashboard/components/dashboard-statistic-card/dashboard-statistic-card.component.html @@ -5,6 +5,9 @@
{{ label() }} {{ loading() ? '…' : ((value() | number) ?? '–') }} + @if (detail()) { + {{ detail() }} + }
diff --git a/webapp/src/app/modules/dashboard/components/dashboard-statistic-card/dashboard-statistic-card.component.scss b/webapp/src/app/modules/dashboard/components/dashboard-statistic-card/dashboard-statistic-card.component.scss index 45379a1e..18f15574 100644 --- a/webapp/src/app/modules/dashboard/components/dashboard-statistic-card/dashboard-statistic-card.component.scss +++ b/webapp/src/app/modules/dashboard/components/dashboard-statistic-card/dashboard-statistic-card.component.scss @@ -56,6 +56,13 @@ font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; } + + .statistics-detail { + display: block; + color: var(--sg-text-soft); + font-size: 11.5px; + line-height: 1.35; + } } .statistics-icon { diff --git a/webapp/src/app/modules/dashboard/components/dashboard-statistic-card/dashboard-statistic-card.component.ts b/webapp/src/app/modules/dashboard/components/dashboard-statistic-card/dashboard-statistic-card.component.ts index e2ddfc07..b232ef73 100644 --- a/webapp/src/app/modules/dashboard/components/dashboard-statistic-card/dashboard-statistic-card.component.ts +++ b/webapp/src/app/modules/dashboard/components/dashboard-statistic-card/dashboard-statistic-card.component.ts @@ -30,6 +30,8 @@ export type DashboardStatisticCardVariant = export class DashboardStatisticCardComponent { readonly label = input.required(); readonly value = input(); + /** Optional secondary line below the value, e.g. a share or denominator. */ + readonly detail = input(null); readonly loading = input(false); readonly icon = input.required(); readonly variant = input.required(); 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 8e85d5c1..4e938e1e 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,25 +1,37 @@
- @if (hasData()) { + @if (hasData() && hasScores()) {
+ variant="persons" + [ariaLabel]="'Forschende gesamt: ' + fmtInt(kpis().total)" + [tooltip]="totalTooltip" + [detail]="'inkl. nicht bewertbarer Profile'" /> + + + [ariaLabel]="'Unauffällige Profile: ' + fmtInt(kpis().passed)" + [tooltip]="qualityTooltip()" + [detail]="qualityDetail()" /> + [tooltip]="shortlistTooltip()" + [detail]="shortlistDetail()" />
-

Shortlist

+

Shortlist: Top-Kandidat:innen

- Minimaler Score + Mindestwert + aria-label="Mindestwert für die Shortlist" /> {{ thresholdDraft() }} - Fehlerhafte Datensätze aussortieren + Auffällige Profile ausblenden {{ fmtInt(total()) }} {{ total() === 1 ? 'Person' : 'Personen' }} @@ -89,33 +102,46 @@ [columns]="columns()" [data]="rows()" [selectedRow]="selectedRow()" + queryParamSortKey="sortBy" + queryParamSortDirectionKey="sortOrder" (rowClick)="selectCandidate($event.candidate.author_id)" /> } @else {
- Niemand erreicht diesen Schwellenwert, sobald fehlerhafte - Datensätze aussortiert sind. Senke den Schwellenwert für eine - handlungsfähige Liste. +

{{ emptyListMessage() }}

+ @if (threshold() > 50) { + + }
} - - @if (selectedRow(); as row) {
+ Ausgewählt

{{ row.name }}

- {{ row.candidate.career_bucket ?? '–' }} + + {{ row.candidate.career_bucket ?? '–' }} + @if (row.areaLabel) { · {{ row.areaLabel }} } - · {{ fmtInt(row.candidate.active_years) }} aktive Jahre + · {{ fmtInt(row.candidate.active_years) }} Jahre mit + Publikationen @if (!row.candidate.screen.passed && row.flagLabel) { ·
+

+ Alle Werte sind Ränge von 0 bis 100 – keine Wahrscheinlichkeiten. + 90 heißt: stärker als 90 % der Vergleichsgruppe. +

+
- Score + Potenzial {{ fmt1(row.score) }}
- Innerhalb 1 Jahr + Signal 1 Jahr {{ fmt1(row.within[0]) }}
- Innerhalb 3 Jahre + Signal 3 Jahre {{ fmt1(row.within[1]) }}
- Innerhalb 5 Jahre + Signal 5 Jahre {{ fmt1(row.within[2]) }}
- Publikationen + + Publikationen {{ fmtInt(row.candidate.founder_features?.publications) - }} - Patente + }} + + + Patente {{ fmtInt(row.candidate.founder_features?.patents) - }} - Industrie-Publikationen + }} + + + Arbeiten mit Industrie {{ fmtInt( row.candidate.founder_features?.industry_collab_papers ) - }} - Förderungen + }} + + + Förderprojekte {{ fmtInt(row.candidate.founder_features?.grants) - }} - aktive Jahre - {{ fmtInt(row.candidate.active_years) }} + }} + + + Aktive Jahre + {{ fmtInt(row.candidate.active_years) }} +
} + +
+ } @else if (hasData()) { + + + {{ FOUNDER_ICON }} +

Noch keine Gründungspotenzial-Scores

+

+ Für die {{ universityName() }} liegen Forschungsdaten + vor, aber die Gründungspotenzial-Auswertung wurde noch nicht + berechnet. Sobald sie vorliegt, erscheinen hier die Kandidat:innen und + ihre Werte. +

+
+
} @else { @@ -210,7 +278,7 @@ 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. + Gründungspotenzial-Werte.

@@ -222,7 +290,13 @@ {{ row.name }} - {{ row.candidate.career_bucket ?? '–' }} + + {{ row.candidate.career_bucket ?? '–' }} + @if (row.areaLabel) { · {{ row.areaLabel }} } @@ -242,20 +316,21 @@ - {{ fmtInt(row.candidate.founder_features?.publications) }} Publ. + {{ fmtInt(row.candidate.founder_features?.publications) }} Publikationen @if (row.candidate.founder_features?.patents) { - · {{ fmtInt(row.candidate.founder_features?.patents) }} Pat. + · {{ fmtInt(row.candidate.founder_features?.patents) }} Patente } @if (row.candidate.founder_features?.industry_collab_papers) { · - {{ fmtInt(row.candidate.founder_features?.industry_collab_papers) }} Ind. + {{ fmtInt(row.candidate.founder_features?.industry_collab_papers) }} mit + Industrie } - Score + Potenzial (0–100) - Innerhalb 1 / 3 / 5 J. + Signal 1 / 3 / 5 Jahre - Evidenz + Signale toNumber(this.queryParams().get('threshold')) ?? 90, + () => Math.max(50, Math.min(100, toNumber(this.queryParams().get('threshold')) ?? 90)), ); readonly screened = computed( () => this.queryParams().get('screened') === 'true', @@ -124,56 +132,87 @@ export class FounderDashboardComponent { // -- Explanations (tooltips only) -------------------------------------- readonly pageTooltip = - 'Das Modell vergleicht das Profil einer Person – Publikationen, Patente, Förderungen und Zusammenarbeit mit der Industrie – mit den Profilen von Forschenden, die bereits gegründet haben. Daraus entsteht ein Wert von 0 bis 100: Je höher, desto stärker ähnelt das Profil erfolgreichen Gründer:innen. Das ist eine Einschätzung, keine sichere Vorhersage.'; + 'Das Modell schätzt, wie stark das Profil einer Person zu Forschenden passt, die gegründet haben. Grundlage sind Publikationen, Patente, Förderungen und gemeinsame Arbeiten mit Unternehmen. Der Wert ist ein Rang von 0 bis 100 im Vergleich zu rund 9.000 Wissenschaftler:innen anderer Universitäten: 90 heißt „stärker als 90 % dieser Vergleichsgruppe“. Das ist ein Hinweis, keine Vorhersage und keine Gründungswahrscheinlichkeit.'; + readonly totalTooltip = - 'Alle Forschenden der Universität, die in der Auswertung berücksichtigt werden.'; + 'Alle Forschenden der Universität im Datensatz. Nicht alle davon lassen sich bewerten – dafür braucht das Modell mindestens 4 Publikationen.'; + + readonly scoreableTooltip = + 'Nur diese Personen haben genug Publikationen (mindestens 4), um vom Modell bewertet zu werden. Für alle anderen gibt es keinen Score.'; readonly qualityTooltip = computed( () => - `${this.kpis().share} % der Forschenden haben ein ausreichend vollständiges und plausibles Profil und können verlässlich bewertet werden.`, + `${this.kpis().passed.toLocaleString('de-DE')} von ${this.kpis().total.toLocaleString('de-DE')} Forschenden (${this.kpis().share} %) haben ein vollständiges und plausibles Profil. Nur diese Werte sind gut belastbar.`, ); readonly shortlistTooltip = computed( () => - `Personen mit dem stärksten Gründungspotenzial – also die, die laut Modell am wahrscheinlichsten gründen würden. Angezeigt werden alle ab einem Score von ${this.threshold()}. ${ + `Personen mit dem stärksten Gründungspotenzial. Angezeigt werden alle ab einem Rang von ${this.threshold()}. ${ this.screened() - ? 'Unzuverlässige Profile sind ausgeblendet.' - : 'Auch unzuverlässige Profile sind enthalten.' + ? 'Auffällige Profile sind ausgeblendet.' + : 'Auffällige Profile sind enthalten.' }`, ); readonly shortlistSectionTooltip = - 'Hier stehen die Personen mit dem stärksten Gründungspotenzial. Der Regler legt fest, ab welchem Score jemand in die Liste kommt.'; + 'Hier stehen die Personen mit dem stärksten Gründungspotenzial. Der Regler legt fest, ab welchem Rang jemand in die Liste kommt.'; readonly thresholdTooltip = - 'Nur Personen mit mindestens diesem Gründungspotenzial werden angezeigt.'; + 'Legt fest, ab welchem Rang Personen in der Shortlist erscheinen. 90 ist streng und zeigt nur die obersten 10 % der Vergleichsgruppe; 50 zeigt die obere Hälfte.'; readonly screeningTooltip = - 'Blendet Personen aus, deren Profil vermutlich unvollständig, falsch datiert oder mit anderen Personen vermischt ist.'; + 'Blendet Profile aus, die vermutlich unvollständig, falsch datiert oder mit anderen Personen vermischt sind. Die Scores dieser Personen sind weniger verlässlich.'; readonly scoreTooltip = - 'Wie stark das Gründungspotenzial im Vergleich zu anderen Forschenden ist. 100 ist der höchste Wert.'; + 'Rang des Gründungspotenzials von 0 bis 100. 90 heißt: stärker als 90 % der rund 9.000 vergleichbaren Wissenschaftler:innen anderer Universitäten. Kein Wahrscheinlichkeitswert.'; readonly withinTooltip = - 'Wie wahrscheinlich eine Gründung aus Sicht des Modells in den nächsten 1, 3 oder 5 Jahren ist.'; + 'Getrennte Modelle für die Frage, ob das Profil zu einer Gründung innerhalb von 1, 3 oder 5 Jahren nach dem Stichtag passt – wieder als Rang von 0 bis 100, kein Wahrscheinlichkeitswert. Die drei Werte können unterschiedlich hoch sein.'; readonly evidenceTooltip = - 'Worauf die Einschätzung beruht: Publikationen, Patente und gemeinsame Arbeiten mit der Industrie.'; + 'Die Signale, auf denen die Einschätzung beruht: Publikationen, Patente, Förderungen und gemeinsame Arbeiten mit der Industrie. Die Werte sind Zählungen, keine Bewertung der Person.'; readonly flagTooltip = - 'Dieses Profil ist vermutlich nicht ganz zuverlässig, zum Beispiel weil mehrere Personen vermischt wurden. Bitte die Werte vorsichtig interpretieren.'; + 'Möglicherweise wurden mehrere Personen mit gleichem Namen zusammengeführt oder die Karriereangaben sind unplausibel. Die Werte sind dann unsicher. Bitte Identität und Profil prüfen, bevor Sie die Person ansprechen.'; + + readonly careerBucketTooltip = careerBucketDescription; // -- KPIs --------------------------------------------------------------- readonly kpis = computed(() => { const stats = this.statistics(); const total = stats.provenance?.document_count ?? 0; + const scoreable = stats.overall?.in_population ?? 0; const passed = stats.overall?.screened ?? 0; const share = total ? Math.round((passed / total) * 100) : 0; const shortlisted = this.candidates().total ?? 0; - return { total, passed, share, shortlisted }; + return { total, scoreable, passed, share, shortlisted }; }); + /** True when the pipeline has produced at least one score for this university. */ + readonly hasScores = computed( + () => (this.statistics().overall?.in_population ?? 0) > 0, + ); + + readonly scoreableShare = computed(() => { + const { total, scoreable } = this.kpis(); + return total ? Math.round((scoreable / total) * 100) : 0; + }); + + readonly qualityDetail = computed( + () => `${this.kpis().share} % der Forschenden`, + ); + readonly scoreableDetail = computed( + () => `${this.scoreableShare()} % der Forschenden`, + ); + readonly shortlistDetail = computed(() => `ab Rang ${this.threshold()}`); + + readonly emptyListMessage = computed(() => + this.screened() + ? `Niemand erreicht den Mindestwert von ${this.threshold()} und hat zugleich ein unauffälliges Profil. Senken Sie den Mindestwert oder blenden Sie auffällige Profile wieder ein.` + : `Niemand erreicht den Mindestwert von ${this.threshold()}. Senken Sie den Mindestwert, um mehr Personen zu sehen.`, + ); + // -- Shortlist ---------------------------------------------------------- private readonly nameTemplate = @@ -195,13 +234,12 @@ export class FounderDashboardComponent { { id: 'name', header: 'Forschende', - type: 'accessor', + type: 'display', cellTemplate: this.nameTemplate(), - accessorKey: 'name', }, { - id: 'score', - header: 'Score', + id: FounderSortBy.ExternalPercentile, + header: 'Potenzial (0–100)', type: 'accessor', headerTemplate: this.scoreHeader(), cellTemplate: this.scoreTemplate(), @@ -209,14 +247,14 @@ export class FounderDashboardComponent { }, { id: 'within', - header: 'Innerhalb 1 / 3 / 5 J.', + header: 'Signal 1 / 3 / 5 Jahre', type: 'display', headerTemplate: this.withinHeader(), cellTemplate: this.withinTemplate(), }, { id: 'evidence', - header: 'Evidenz', + header: 'Signale', type: 'display', headerTemplate: this.evidenceHeader(), cellTemplate: this.evidenceTemplate(), @@ -272,6 +310,11 @@ export class FounderDashboardComponent { }); } + onLowerThreshold(): void { + const next = Math.max(50, this.threshold() - 10); + this.onSliderCommit(next); + } + // -- Formatting helpers for the template -------------------------------- readonly fmtInt = fmtInt; diff --git a/webapp/src/app/modules/founder-potential/founder-potential.utils.ts b/webapp/src/app/modules/founder-potential/founder-potential.utils.ts index b05281f2..fc11b3c4 100644 --- a/webapp/src/app/modules/founder-potential/founder-potential.utils.ts +++ b/webapp/src/app/modules/founder-potential/founder-potential.utils.ts @@ -36,6 +36,62 @@ export const SCREEN_REASON_LABELS: Record = { OUT_OF_POPULATION: 'Außerhalb der Modellpopulation', }; +/** Plain-language explanation of each career bucket. */ +export const CAREER_BUCKET_DESCRIPTIONS: Record = { + Early: 'Frühe Karriere: 1–4 Jahre mit mindestens einer Publikation.', + Emerging: 'Aufstrebend: 5–9 Jahre mit mindestens einer Publikation.', + Established: 'Etabliert: 10–14 Jahre mit mindestens einer Publikation.', + Senior: 'Senior: 15 oder mehr Jahre mit mindestens einer Publikation.', +}; + +/** Short active-year range for each bucket, shown next to the bucket name. */ +export const CAREER_BUCKET_RANGES: Record = { + Early: '1–4 Jahre', + Emerging: '5–9 Jahre', + Established: '10–14 Jahre', + Senior: '15+ Jahre', +}; + +export function careerBucketRange(bucket: string | null | undefined): string { + if (!bucket || bucket === '–') return ''; + return CAREER_BUCKET_RANGES[bucket] ?? ''; +} + +export function careerBucketDescription(bucket: string | null | undefined): string { + if (!bucket || bucket === '–') { + return 'Karrierestufe unbekannt.'; + } + return CAREER_BUCKET_DESCRIPTIONS[bucket] ?? `Karrierestufe: ${bucket}.`; +} + +/** The three multiplier roles plus stand-alone context metrics. */ +export type MetricGroupKey = 'bridger' | 'mentor' | 'amplifier' | 'context'; + +export const METRIC_GROUP_META: Record< + MetricGroupKey, + { label: string; description: string } +> = { + bridger: { + label: 'Bridger – verbindet Gruppen', + description: + 'Wie gut die Person Forschungsgruppen und Fachgebiete miteinander verbindet.', + }, + mentor: { + label: 'Mentor – fördert Nachwuchs', + description: + 'Wie stark die Person Nachwuchsforschende begleitet und unterstützt.', + }, + amplifier: { + label: 'Amplifier – bringt Forschung in Anwendung', + description: + 'Wie stark Forschung in Wirtschaft, Patente und Öffentlichkeit getragen wird.', + }, + context: { + label: 'Weitere Kontextwerte', + description: 'Zusätzliche Messwerte, die nicht direkt in eine Rolle einfließen.', + }, +}; + /** German labels for the funnel stages, keyed by their stable key. */ export const FUNNEL_STAGE_LABELS: Record = { ALL: 'Alle Forschenden im Index', @@ -49,25 +105,135 @@ export const FUNNEL_STAGE_LABELS: Record = { export interface MetricDef { key: keyof ResearcherMetrics; label: string; + group: MetricGroupKey; + /** Plain-language explanation shown in the metric tooltip. */ + description: string; + /** Share of the sub-score in percent, when the metric is weighted. */ + weight?: number; } export const METRIC_DEFS: MetricDef[] = [ - { key: 'betweenness', label: 'Betweenness-Zentralität' }, - { key: 'brokerage', label: 'Brokerage' }, - { key: 'constraint', label: 'Constraint' }, - { key: 'field_entropy', label: 'Feld-Entropie' }, - { key: 'cross_institution_share', label: 'Institutionsübergreifender Anteil' }, - { key: 'strength', label: 'Stärke' }, - { key: 'n_coauthors', label: 'Koautor:innen' }, - { key: 'juniors_mentored', label: 'Betreute Nachwuchsforschende' }, - { key: 'junior_progression_rate', label: 'Nachwuchs-Fortschrittsrate' }, - { key: 'mentoring_rate', label: 'Mentoring-Rate' }, - { key: 'last_author_with_junior_first', label: 'Letztautor mit Nachwuchs-Erstautor' }, - { key: 'industry_coauthor_share', label: 'Industrie-Koautoranteil' }, - { key: 'industry_coauthor_share_shrunk', label: 'Industrie-Koautoranteil (korrigiert)' }, - { key: 'patent_count', label: 'Patente' }, - { key: 'cordis_eu_projects', label: 'EU-Projekte (CORDIS)' }, - { key: 'news_mentions', label: 'Medienerwähnungen' }, + { + key: 'betweenness', + label: 'Betweenness-Zentralität', + group: 'bridger', + weight: 35, + description: + 'Wie oft die Person auf kürzesten Wegen zwischen anderen Forschenden liegt. Hoch = verbindet sonst getrennte Gruppen.', + }, + { + key: 'brokerage', + label: 'Brokerage', + group: 'bridger', + weight: 25, + description: + 'Wie häufig die Person Brücken zwischen sonst getrennten Gruppen schlägt.', + }, + { + key: 'field_entropy', + label: 'Feld-Entropie', + group: 'bridger', + weight: 20, + description: + 'Wie breit die Person über verschiedene Fachgebiete streut. Hoch = fachübergreifend.', + }, + { + key: 'cross_institution_share', + label: 'Institutionsübergreifender Anteil', + group: 'bridger', + weight: 20, + description: + 'Anteil der Kooperationen mit Personen anderer Einrichtungen.', + }, + { + key: 'juniors_mentored', + label: 'Betreute Nachwuchsforschende', + group: 'mentor', + weight: 35, + description: + 'Zahl der Nachwuchsforschenden, die die Person begleitet hat.', + }, + { + key: 'mentoring_rate', + label: 'Mentoring-Rate', + group: 'mentor', + weight: 25, + description: + 'Anteil der Arbeiten, an denen Nachwuchsforschende beteiligt sind.', + }, + { + key: 'last_author_with_junior_first', + label: 'Letztautor mit Nachwuchs-Erstautor', + group: 'mentor', + weight: 25, + description: + 'Arbeiten, in denen die Person als Letztautor:in einen Nachwuchsforschenden als Erstautor:in begleitet hat.', + }, + { + key: 'junior_progression_rate', + label: 'Nachwuchs-Fortschrittsrate', + group: 'mentor', + weight: 15, + description: + 'Wie häufig betreute Nachwuchsforschende anschließend selbst weiter publizieren.', + }, + { + key: 'industry_coauthor_share_shrunk', + label: 'Industrie-Koautoranteil (korrigiert)', + group: 'amplifier', + weight: 50, + description: + 'Anteil der Arbeiten mit Beteiligung aus Unternehmen – statistisch stabilisiert, damit kleine Fallzahlen nicht überbewertet werden.', + }, + { + key: 'patent_count', + label: 'Patente', + group: 'amplifier', + weight: 25, + description: 'Zahl der Patente mit Bezug zur Einrichtung.', + }, + { + key: 'cordis_eu_projects', + label: 'EU-Projekte (CORDIS)', + group: 'amplifier', + weight: 15, + description: 'Zahl der EU-geförderten Projekte (CORDIS).', + }, + { + key: 'news_mentions', + label: 'Medienerwähnungen', + group: 'amplifier', + weight: 10, + description: 'Zahl der Medienberichte, in denen die Person vorkommt.', + }, + { + key: 'constraint', + label: 'Constraint', + group: 'context', + description: + 'Wie stark die Person in ein enges eigenes Netz eingebunden ist. Niedrig = viele Brücken zu anderen Gruppen.', + }, + { + key: 'strength', + label: 'Stärke', + group: 'context', + description: + 'Gesamtstärke der Kooperationen – Zahl und Gewicht der gemeinsamen Arbeiten.', + }, + { + key: 'n_coauthors', + label: 'Koautor:innen', + group: 'context', + description: + 'Zahl der Personen, mit denen die Person gemeinsam publiziert hat.', + }, + { + key: 'industry_coauthor_share', + label: 'Industrie-Koautoranteil (roh)', + group: 'context', + description: + 'Anteil der Arbeiten mit Beteiligung aus Unternehmen, ohne statistische Korrektur.', + }, ]; /** Whole numbers with German thousands separator. */ diff --git a/webapp/src/app/modules/founder-potential/multiplier-filters/multiplier-filters.component.html b/webapp/src/app/modules/founder-potential/multiplier-filters/multiplier-filters.component.html index a2d95d75..03040885 100644 --- a/webapp/src/app/modules/founder-potential/multiplier-filters/multiplier-filters.component.html +++ b/webapp/src/app/modules/founder-potential/multiplier-filters/multiplier-filters.component.html @@ -10,7 +10,7 @@ queryParamKey="tag" label="Rollen-Badge" [multiple]="true" - matTooltip="Zeigt nur Personen, die als Bridger, Mentor oder Amplifier eingestuft sind." + matTooltip="Zeigt nur Personen, die diese Rolle als Badge tragen, also mindestens 85 % Rang in der Rolle erreichen." matTooltipClass="sg-tooltip-wide" matTooltipPosition="above" /> @@ -19,15 +19,15 @@ queryParamKey="careerBucket" label="Karrierestufe" [multiple]="true" - matTooltip="Zeigt nur Personen in der gewählten Karrierestufe." + matTooltip="Early: 1–4 aktive Publikationsjahre, Emerging: 5–9, Established: 10–14, Senior: 15 oder mehr." matTooltipClass="sg-tooltip-wide" matTooltipPosition="above" /> @@ -35,7 +35,25 @@ [options]="minRankOptions" queryParamKey="minPeerRank" label="Mindest-Rang" - matTooltip="Zeigt nur Personen, die diesen Rang in der gewählten Rolle mindestens erreichen." + matTooltip="Zeigt nur Personen, die diesen Rang in der Bezugsrolle mindestens erreichen. 90 heißt: besser als 90 % der Vergleichsgruppe." + matTooltipClass="sg-tooltip-wide" + matTooltipPosition="above" /> +
+ +
+ + +
diff --git a/webapp/src/app/modules/founder-potential/multiplier-filters/multiplier-filters.component.ts b/webapp/src/app/modules/founder-potential/multiplier-filters/multiplier-filters.component.ts index 6dd596f6..3083afe8 100644 --- a/webapp/src/app/modules/founder-potential/multiplier-filters/multiplier-filters.component.ts +++ b/webapp/src/app/modules/founder-potential/multiplier-filters/multiplier-filters.component.ts @@ -1,7 +1,13 @@ import { Component } from '@angular/core'; import { MatTooltipModule } from '@angular/material/tooltip'; -import { CareerBucket, MultiplierTag, PeerRankField } from '../../../api'; +import { + CareerBucket, + MultiplierTag, + PeerRankField, + ResearcherSortBy, + SortDirection, +} from '../../../api'; import { tagLabel } from '../founder-potential.utils'; import { QueryParamInputComponent } from '../../../shared/ui/query-param-input/query-param-input.component'; import { @@ -37,9 +43,27 @@ export class MultiplierFiltersComponent { (value) => ({ value, display_name: tagLabel(value) }), ); - readonly careerOptions: SelectorOption[] = Object.values(CareerBucket).map( - (value) => ({ value, display_name: value }), - ); + readonly careerOptions: SelectorOption[] = [ + { value: CareerBucket.Early, display_name: 'Early (1–4 Jahre)' }, + { value: CareerBucket.Emerging, display_name: 'Emerging (5–9 Jahre)' }, + { + value: CareerBucket.Established, + display_name: 'Established (10–14 Jahre)', + }, + { value: CareerBucket.Senior, display_name: 'Senior (15+ Jahre)' }, + ]; + + readonly sortByOptions: SelectorOption[] = [ + { value: ResearcherSortBy.Max, display_name: 'Stärkste Rolle' }, + { value: ResearcherSortBy.Bridger, display_name: 'Bridger' }, + { value: ResearcherSortBy.Mentor, display_name: 'Mentor' }, + { value: ResearcherSortBy.Amplifier, display_name: 'Amplifier' }, + ]; + + readonly sortOrderOptions: SelectorOption[] = [ + { value: SortDirection.Desc, display_name: 'Höchster Wert zuerst' }, + { value: SortDirection.Asc, display_name: 'Niedrigster Wert zuerst' }, + ]; readonly peerRankFieldOptions: SelectorOption[] = [ { value: PeerRankField.Max, display_name: 'Stärkste Rolle' }, 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 f22fbc68..0cdd75e0 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,12 +1,13 @@
-

Multiplikator:innen in der Kohorte

+

Multiplikator:innen der Universität

+

+ Rollen sind Ränge von 0 bis 100 im Vergleich zu Personen derselben + Karrierestufe – keine Wahrscheinlichkeiten. +

@@ -22,9 +27,7 @@ + [stickyHeader]="false" /> } @else if (!hasActiveFilters()) {
hub @@ -38,7 +41,8 @@

Keine passenden Forschenden gefunden

- Ändere oder entferne einen Filter, um weitere Ergebnisse zu sehen. + Ändern oder entfernen Sie einen Filter, um weitere Ergebnisse zu + sehen.

} @@ -73,7 +77,18 @@ - {{ row.careerBucket }} + + {{ row.careerBucket }} + @if (careerBucketRange(row.careerBucket)) { + {{ + careerBucketRange(row.careerBucket) + }} + } + @@ -138,7 +153,7 @@ - Badges + Rollen-Badges
+ + {{ ARROW_BACK_ICON }} + Zurück zur Multiplikatoren-Übersicht + @if (!unavailable()) {
@if (careerBucket()) { @@ -30,6 +34,7 @@
@if (tags().length) {
+ Rollen-Badges: @for (tag of tags(); track tag) { Knotengröße = aktive Jahre
+

+ Personen anklicken, um ihr Profil zu öffnen · ziehen zum Verschieben · + scrollen zum Zoomen +

@@ -101,8 +110,8 @@
{{ fmtInt(netMeta().shown) }} von {{ fmtInt(netMeta().totalCoauthors) }} Koautor:innen dargestellt · - {{ fmtInt(netMeta().cohortCoauthors) }} aus der - Universitätskohorte · {{ fmtInt(netMeta().mentees) }} Mentees + {{ fmtInt(netMeta().cohortCoauthors) }} aus der Universität · + {{ fmtInt(netMeta().mentees) }} Nachwuchsforschende
@@ -128,7 +137,7 @@

- Metriken im Detail + Messwerte nach Rolle

- +

+ Rang 0–100 im Vergleich zu Personen derselben Karrierestufe. + Ab 85 % wird ein Rollen-Badge vergeben. +

+ @for (group of metricGroups(); track group.key) { +
+

{{ group.label }}

+

{{ group.description }}

+ +
+ }
- Netzwerk-Konfiguration - {{ network()?.config_hash ?? '–' }} · - berechnet - {{ - network()?.computed_at | date: 'dd.MM.yyyy HH:mm' - }} + @if (networkComputedAt(); as computedAt) { + Netzwerk berechnet am + {{ computedAt | date: 'dd.MM.yyyy' }} + } @else { + Netzwerkstand unbekannt + } + @if (dataComputedAt(); as computedAt) { + · Datenstand + {{ computedAt | date: 'dd.MM.yyyy' }} + }
} - {{ row.label }} + + {{ row.label }} + 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 5dbf7efe..000a86d3 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 @@ -4,14 +4,18 @@ } .back-link { + display: inline-flex; + align-items: center; + gap: 4px; + margin-bottom: 6px; color: var(--sg-text-muted); font-size: 13px; + text-decoration: none; mat-icon { font-size: 18px; width: 18px; height: 18px; - margin-right: 4px; } &:hover { @@ -68,8 +72,20 @@ .tags { display: flex; flex-wrap: wrap; + align-items: center; gap: 7px; margin-top: 4px; + + &__label { + color: var(--sg-text-soft); + font-size: 12px; + } +} + +.graph-hint { + margin: 8px 0 0; + color: var(--sg-text-soft); + font-size: 12px; } .legend { @@ -185,7 +201,7 @@ display: flex; align-items: center; gap: 6px; - margin: 0 0 8px; + margin: 0 0 4px; color: var(--sg-text); font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); font-weight: var(--sg-section-title-weight, 700); @@ -193,6 +209,40 @@ } } +.metrics-caption { + margin: 0 0 4px; + color: var(--sg-text-soft); + font-size: 12px; + line-height: 1.45; +} + +.metric-group { + margin-top: 16px; + + &__title { + display: flex; + align-items: center; + gap: 5px; + margin: 0 0 2px; + color: var(--sg-text); + font-size: 13.5px; + font-weight: 600; + } + + &__desc { + margin: 0 0 6px; + color: var(--sg-text-soft); + font-size: 11.5px; + line-height: 1.4; + } +} + +.metric-label { + cursor: help; + text-decoration: underline dotted; + text-underline-offset: 2px; +} + .th-help { display: inline-flex; align-items: center; 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 394cef26..ffc1ade8 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 @@ -9,6 +9,8 @@ import { MatTooltipModule } from '@angular/material/tooltip'; import { MetricValue, ResearcherMetrics } from '../../../api'; import { METRIC_DEFS, + METRIC_GROUP_META, + MetricGroupKey, fmtInt, fmtMetricValue, fmtPeerRank, @@ -49,9 +51,20 @@ interface UnavailableView { interface MetricRow { key: keyof ResearcherMetrics; label: string; + group: MetricGroupKey; + /** Plain-language explanation, shown on the metric label. */ + hint: string; + /** The measured value plus its peer rank. */ metric: MetricValue; } +interface MetricGroup { + key: MetricGroupKey; + label: string; + description: string; + rows: MetricRow[]; +} + @Component({ selector: 'app-researcher-network', standalone: true, @@ -153,7 +166,7 @@ export class ResearcherNetworkComponent { 'Wie stark die drei Rollen ausgeprägt sind. Ab 85 % wird ein Badge vergeben.'; readonly metricsTooltip = - 'Die einzelnen Messwerte, aus denen die Rollen berechnet werden – zum Beispiel Netzwerk, Mentoring und Industrie.'; + 'Die Messwerte sind nach Rolle gruppiert. Jede Zeile nennt das Gewicht im jeweiligen Rollen-Score.'; readonly valueTooltip = 'Der gemessene Wert, zum Beispiel eine Anzahl oder ein Anteil.'; @@ -191,10 +204,41 @@ export class ResearcherNetworkComponent { METRIC_DEFS.map((definition) => ({ key: definition.key, label: definition.label, + group: definition.group, + hint: + definition.weight != null + ? `${definition.description} Gewicht im Rollen-Score: ${definition.weight} %.` + : definition.description, metric: this.researcher()?.metrics?.[definition.key] ?? {}, })), ); + /** Metrics grouped by the role they feed, with an extra context group. */ + readonly metricGroups = computed(() => { + const rows = this.metricRows(); + const groupKeys: MetricGroupKey[] = [ + 'bridger', + 'mentor', + 'amplifier', + 'context', + ]; + return groupKeys + .map((key) => ({ + key, + label: METRIC_GROUP_META[key].label, + description: METRIC_GROUP_META[key].description, + rows: rows.filter((row) => row.group === key), + })) + .filter((group) => group.rows.length > 0); + }); + + readonly networkComputedAt = computed( + () => this.network()?.computed_at ?? null, + ); + readonly dataComputedAt = computed( + () => this.researcher()?.computed_at ?? null, + ); + readonly metricColumns = computed[]>(() => [ { id: 'metric', diff --git a/webapp/src/app/resolvers/founder-candidates.resolver.ts b/webapp/src/app/resolvers/founder-candidates.resolver.ts index 593653ff..04f36435 100644 --- a/webapp/src/app/resolvers/founder-candidates.resolver.ts +++ b/webapp/src/app/resolvers/founder-candidates.resolver.ts @@ -7,6 +7,10 @@ import { SortDirection, } from '../api'; +const FOUNDER_SORT_FIELDS = Object.values(FounderSortBy); +const SORT_DIRECTIONS = Object.values(SortDirection); +const DEFAULT_THRESHOLD = 90; + /** * The founder-candidate list for the dashboard. Driven entirely by query * params (threshold, screened, page, size, sort) so the page state stays in @@ -18,23 +22,25 @@ export const founderCandidatesResolver: ResolveFn = ( const service = inject(MultiplicatorsService); const params = route.queryParamMap; - const page = toInt(params.get('page'), 0); - const size = toInt(params.get('size'), 25); - const threshold = toNumber(params.get('threshold')); + const page = Math.max(0, toInt(params.get('page'), 0)); + const size = clamp(toInt(params.get('size'), 25), 1, 100); + const thresholdRaw = toNumber(params.get('threshold')); + const threshold = clamp(thresholdRaw ?? DEFAULT_THRESHOLD, 0, 100); const screenedRaw = params.get('screened'); const screened = screenedRaw === null ? undefined : screenedRaw === 'true'; - const sortBy = (params.get('sortBy') as FounderSortBy) ?? + const sortBy = + asMember(params.get('sortBy'), FOUNDER_SORT_FIELDS) ?? FounderSortBy.ExternalPercentile; - const sortOrder = (params.get('sortOrder') as SortDirection) ?? - SortDirection.Desc; + const sortOrder = + asMember(params.get('sortOrder'), SORT_DIRECTIONS) ?? SortDirection.Desc; return service.searchFounderCandidates( page, size, true, // in_population: only researchers the model can score - threshold ?? undefined, + threshold, undefined, // max_external_percentile undefined, // career_bucket screened, @@ -50,6 +56,19 @@ export const founderCandidatesResolver: ResolveFn = ( ); }; +function asMember( + value: string | null, + allowed: readonly T[], +): T | null { + return value !== null && (allowed as readonly string[]).includes(value) + ? (value as T) + : null; +} + +function clamp(value: number, min: number, max: number): number { + return Math.max(min, Math.min(max, value)); +} + function toInt(value: string | null, fallback: number): number { if (value === null || value === '') return fallback; const parsed = Number.parseInt(value, 10); diff --git a/webapp/src/app/shared/ui/app-menu/app-menu.component.ts b/webapp/src/app/shared/ui/app-menu/app-menu.component.ts index 0a78e46f..cb9e5a38 100644 --- a/webapp/src/app/shared/ui/app-menu/app-menu.component.ts +++ b/webapp/src/app/shared/ui/app-menu/app-menu.component.ts @@ -16,7 +16,12 @@ import { MatCardContent, MatCardModule } from '@angular/material/card'; import { MatProgressSpinner } from '@angular/material/progress-spinner'; import { activeInstitutionPersonListQueryParams } from '../../person-list-query-params'; import { topicQueryParamKeys } from '../../../resolvers/topic-page.resolver'; -import { SortDirection, TopicSortBy, WorkSortBy } from '../../../api'; +import { + FounderSortBy, + SortDirection, + TopicSortBy, + WorkSortBy, +} from '../../../api'; import { workQueryParamKeys } from '../../../resolvers/work-page.resolver'; import { MatMenuModule } from '@angular/material/menu'; import { @@ -231,7 +236,14 @@ export class AppMenuComponent { icon: FOUNDER_ICON, route: '/founders', disabled: false, - queryParams: { threshold: 90, screened: 'true', page: 0, size: 10 }, + queryParams: { + threshold: 90, + screened: 'true', + page: 0, + size: 10, + sortBy: FounderSortBy.ExternalPercentile, + sortOrder: SortDirection.Desc, + }, }, { label: 'Multiplikatoren', diff --git a/webapp/src/app/shared/ui/multiplier-network-graph/multiplier-network-graph.component.ts b/webapp/src/app/shared/ui/multiplier-network-graph/multiplier-network-graph.component.ts index 4d815127..92f46369 100644 --- a/webapp/src/app/shared/ui/multiplier-network-graph/multiplier-network-graph.component.ts +++ b/webapp/src/app/shared/ui/multiplier-network-graph/multiplier-network-graph.component.ts @@ -19,9 +19,9 @@ export interface MultiplierNodeClickEvent { /** German labels for the network roles, shared with the HTML legend. */ export const MULTIPLIER_ROLE_LABELS: Record = { - ego: 'Ego (Person)', - cohort: 'UDE-Kohorte', - mentee: 'Mentee', + ego: 'Diese Person', + cohort: 'Universität', + mentee: 'Nachwuchs', industry: 'Unternehmen', external: 'Extern', }; @@ -89,10 +89,13 @@ export class MultiplierNetworkGraphComponent { borderColor: colors.tooltipBorder, textStyle: { color: colors.tooltipTextColor }, formatter: (params: any) => { - if (!params || params.dataType === 'edge' || !params.data) { + if (!params || !params.data) { return ''; } const d = params.data; + if (params.dataType === 'edge') { + return edgeTooltip(d); + } const lines = [ `${escapeHtml(d.name ?? d.id)}`, escapeHtml(MULTIPLIER_ROLE_LABELS[d.role] ?? d.role), @@ -104,6 +107,9 @@ export class MultiplierNetworkGraphComponent { if (d.role === 'ego' && d.nWorks != null) { lines.push(`${d.nWorks} Publikationen`); } + if (d.suspicious) { + lines.push('Profil möglicherweise zusammengeführt'); + } return lines.join('
'); }, }, @@ -161,6 +167,7 @@ export class MultiplierNetworkGraphComponent { role, inst: node.inst ?? '', activeYears, + suspicious: node.suspicious ?? false, nWorks: isEgo ? nWorks : undefined, symbolSize: isEgo ? 24 : clamp(8 + activeYears * 1.1, 8, 26), itemStyle: { @@ -180,9 +187,19 @@ export class MultiplierNetworkGraphComponent { } private buildLinks(edges: EgoNetworkEdge[]): any[] { + const names = new Map(); + for (const node of this.network().nodes ?? []) { + names.set(node.id, node.name ?? node.id); + } return edges.map((edge) => ({ source: edge.a, target: edge.b, + sourceName: names.get(edge.a) ?? edge.a, + targetName: names.get(edge.b) ?? edge.b, + nWorks: edge.n_works, + cross: edge.cross ?? false, + firstYear: edge.first_year, + lastYear: edge.last_year, lineStyle: { width: clamp((edge.w ?? 0) * 2.5, 1, 7), type: edge.cross ? 'dashed' : 'solid', @@ -205,6 +222,34 @@ function clamp(value: number, min: number, max: number): number { return Math.max(min, Math.min(max, value)); } +/** Plain-language tooltip for a collaboration tie. */ +function edgeTooltip(edge: { + sourceName?: string; + targetName?: string; + nWorks?: number; + cross?: boolean; + firstYear?: number | null; + lastYear?: number | null; +}): string { + const source = escapeHtml(edge.sourceName ?? ''); + const target = escapeHtml(edge.targetName ?? ''); + const lines = [`${source} ↔ ${target}`]; + if (edge.nWorks != null) { + lines.push( + `${edge.nWorks} gemeinsame Publikation${edge.nWorks === 1 ? '' : 'en'}`, + ); + } + if (edge.firstYear && edge.lastYear) { + lines.push(`${edge.firstYear}–${edge.lastYear}`); + } + lines.push( + edge.cross + ? 'Überwiegend institutionsübergreifend' + : 'An derselben Einrichtung', + ); + return lines.join('
'); +} + function escapeHtml(value: string): string { return String(value).replace( /[&<>"']/g, 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 8c273c19..c17ce9fa 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 @@ -20,7 +20,14 @@ [hint]="role.hint" [value]="role.value * 100" [display]="role.display" + [strongest]="role.isStrongest" [threshold]="showThreshold() ? threshold : null" /> } + @if (hasStrongest()) { +

+ + Stärkste Rolle dieser Person +

+ }
} 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 180c3892..d04ca88c 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 @@ -18,3 +18,19 @@ gap: 2px; } } + +.role-scores__note { + display: inline-flex; + align-items: center; + gap: 4px; + margin: 6px 0 0; + color: var(--sg-text-soft); + font-size: 11.5px; + + mat-icon { + width: 14px; + height: 14px; + color: var(--sg-blue-highlight); + font-size: 14px; + } +} 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 6035c3d9..6b0e97cf 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 @@ -1,4 +1,5 @@ import { Component, computed, input } from '@angular/core'; +import { MatIconModule } from '@angular/material/icon'; import { MatTooltipModule } from '@angular/material/tooltip'; import { MultiplierPeerRanks } from '../../../api'; @@ -16,7 +17,7 @@ const ROLE_KEYS = ['bridger', 'mentor', 'amplifier'] as const; @Component({ selector: 'app-multiplier-role-scores', standalone: true, - imports: [MatTooltipModule, ChipComponent, ScoreBarComponent], + imports: [MatIconModule, MatTooltipModule, ChipComponent, ScoreBarComponent], templateUrl: './multiplier-role-scores.component.html', styleUrl: './multiplier-role-scores.component.scss', }) @@ -51,6 +52,9 @@ export class MultiplierRoleScoresComponent { }); readonly threshold = 85; + readonly hasStrongest = computed(() => + this.roles().some((role) => role.isStrongest), + ); readonly tagColor = (tag: string): string => { switch (tag) { case MultiplierTag.Bridger: diff --git a/webapp/src/app/shared/ui/score-bar/score-bar.component.html b/webapp/src/app/shared/ui/score-bar/score-bar.component.html index 5dbb1f99..97a37660 100644 --- a/webapp/src/app/shared/ui/score-bar/score-bar.component.html +++ b/webapp/src/app/shared/ui/score-bar/score-bar.component.html @@ -1,7 +1,8 @@
+ [class.score-bar--warn]="variant() === 'warn'" + [class.score-bar--strongest]="strongest()"> + @if (strongest()) { + star + } {{ label() }} @if (hint()) { diff --git a/webapp/src/app/shared/ui/score-bar/score-bar.component.scss b/webapp/src/app/shared/ui/score-bar/score-bar.component.scss index 4913fce1..2c1d16eb 100644 --- a/webapp/src/app/shared/ui/score-bar/score-bar.component.scss +++ b/webapp/src/app/shared/ui/score-bar/score-bar.component.scss @@ -34,6 +34,19 @@ color: var(--sg-text-soft); } +.score-bar__star { + flex: none; + width: 15px; + height: 15px; + color: var(--sg-blue-highlight); + font-size: 15px; +} + +.score-bar--strongest .score-bar__label-text { + color: var(--sg-text); + font-weight: 600; +} + .score-bar__track { position: relative; display: block; diff --git a/webapp/src/app/shared/ui/score-bar/score-bar.component.ts b/webapp/src/app/shared/ui/score-bar/score-bar.component.ts index 8246bb61..b221cb9b 100644 --- a/webapp/src/app/shared/ui/score-bar/score-bar.component.ts +++ b/webapp/src/app/shared/ui/score-bar/score-bar.component.ts @@ -29,6 +29,8 @@ export class ScoreBarComponent { /** Optional explanation, shown as a tooltip on the label. */ readonly hint = input(null); readonly variant = input('primary'); + /** Marks this row as the strongest of a set. */ + readonly strongest = input(false); readonly pct = computed(() => { const max = this.max() || 100;