From 0bab32de74a166dbd035b5a6a4c38065ee8bd83f Mon Sep 17 00:00:00 2001 From: genja Date: Wed, 4 Nov 2026 21:48:12 +0100 Subject: [PATCH 1/4] fix: resolving issue --- webapp/src/app/app.routes.ts | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/webapp/src/app/app.routes.ts b/webapp/src/app/app.routes.ts index 702320d6..aaa7467f 100644 --- a/webapp/src/app/app.routes.ts +++ b/webapp/src/app/app.routes.ts @@ -3,8 +3,7 @@ import { guestOnlyGuard } from './shared/guards/guest-only.guard'; import { personListResolver } from './resolvers/person-list.resolver'; import { founderStatisticsResolver } from './resolvers/founder-statistics.resolver'; import { founderCandidatesResolver } from './resolvers/founder-candidates.resolver'; -import { multiplierResearcherResolver } from './resolvers/multiplier-researcher.resolver'; -import { multiplierResearcherNetworkResolver } from './resolvers/multiplier-researcher-network.resolver'; +import { multiplierResearcherPageResolver } from './resolvers/multiplier-researcher-page.resolver'; import { personBioResolver } from './resolvers/person-bio.resolver'; import { personPatentsResolver } from './resolvers/person-patents.resolver'; import { personResolver } from './resolvers/person.resolver'; @@ -158,12 +157,7 @@ export const routes: Routes = [ statistics: founderStatisticsResolver, candidates: founderCandidatesResolver, }, - runGuardsAndResolvers: (from, to) => { - const keys = ['threshold', 'screened', 'page', 'size', 'sortBy', 'sortOrder']; - return keys.some( - (key) => from.queryParamMap.get(key) !== to.queryParamMap.get(key), - ); - }, + runGuardsAndResolvers: 'paramsOrQueryParamsChange', }, { path: 'founders/:authorId', @@ -180,8 +174,7 @@ export const routes: Routes = [ './modules/founder-potential/researcher-network/researcher-network.component' ).then((mod) => mod.ResearcherNetworkComponent), resolve: { - researcher: multiplierResearcherResolver, - network: multiplierResearcherNetworkResolver, + page: multiplierResearcherPageResolver, }, runGuardsAndResolvers: (from, to) => from.params['authorId'] !== to.params['authorId'], From ec1d891d8db60e8acf712a2ce6b27371cc19a61c Mon Sep 17 00:00:00 2001 From: genja Date: Wed, 4 Nov 2026 21:48:22 +0100 Subject: [PATCH 2/4] regenerated models and services --- webapp/src/app/api/.openapi-generator/FILES | 7 ++++ webapp/src/app/api/api/api.ts | 28 +--------------- webapp/src/app/api/api/orgminer.service.ts | 8 ++--- .../src/app/api/model/authorTopicProfile.ts | 10 +----- webapp/src/app/api/model/egoNetworkNode.ts | 32 +++++++++---------- webapp/src/app/api/model/models.ts | 13 ++++++++ .../founder-potential.utils.ts | 30 +++++++++++++++-- 7 files changed, 68 insertions(+), 60 deletions(-) diff --git a/webapp/src/app/api/.openapi-generator/FILES b/webapp/src/app/api/.openapi-generator/FILES index 889a86cb..26cb2bb5 100644 --- a/webapp/src/app/api/.openapi-generator/FILES +++ b/webapp/src/app/api/.openapi-generator/FILES @@ -83,6 +83,7 @@ model/bundProjectTopics.ts model/careerBucket.ts model/careerMetrics.ts model/careerStage.ts +model/careerStageStatistics.ts model/category.ts model/categoryBucket.ts model/classifiedPage.ts @@ -293,6 +294,12 @@ model/rankingResponse.ts model/rankingWeights.ts model/rebuildResponse.ts model/registryHealth.ts +model/researchAreaStatistics.ts +model/researcherDetail.ts +model/researcherMetrics.ts +model/researcherSortBy.ts +model/researcherSummary.ts +model/researcherSummaryPage.ts model/saveHierarchyResponse.ts model/score.ts model/selectedAuthorsRequest.ts diff --git a/webapp/src/app/api/api/api.ts b/webapp/src/app/api/api/api.ts index b9bc071b..372e35e6 100644 --- a/webapp/src/app/api/api/api.ts +++ b/webapp/src/app/api/api/api.ts @@ -50,30 +50,4 @@ export * from './works.service'; import { WorksService } from './works.service'; export * from './worksV2.service'; import { WorksV2Service } from './worksV2.service'; -export const APIS = [ - AuthService, - AuthorsV2Service, - BUNDInstitutionsService, - BackgroundJobsService, - BookmarksService, - CompanyConnectionsService, - DFGInstitutionsService, - DFGPersonsService, - DashboardService, - FundingService, - InstitutionsService, - InstitutionsV2Service, - KeywordsService, - NewsService, - OrganizationService, - OrgminerService, - PatentsService, - PersonsService, - ProjectsService, - RankingService, - TopicsService, - TopicsV2Service, - UniversityRankingsService, - WorksService, - WorksV2Service, -]; +export const APIS = [AuthService, AuthorsV2Service, BUNDInstitutionsService, BackgroundJobsService, BookmarksService, CompanyConnectionsService, DFGInstitutionsService, DFGPersonsService, DashboardService, FundingService, InstitutionsService, InstitutionsV2Service, KeywordsService, MultiplicatorsService, NewsService, OrganizationService, OrgminerService, PatentsService, PersonsService, ProjectsService, RankingService, TopicsService, TopicsV2Service, UniversityRankingsService, WorksService, WorksV2Service]; diff --git a/webapp/src/app/api/api/orgminer.service.ts b/webapp/src/app/api/api/orgminer.service.ts index 3328a54b..0c334726 100644 --- a/webapp/src/app/api/api/orgminer.service.ts +++ b/webapp/src/app/api/api/orgminer.service.ts @@ -2251,8 +2251,8 @@ export class OrgminerService extends BaseService { } /** - * Submits a suggestion or, for managers, updates the active hierarchy. - * Users submit suggestions (max. 3 per account and day); managers update the active hierarchy. + * Creates or updates a hierarchy suggestion. + * Admins can create one suggestion and update it until it is reviewed. * @endpoint post /api/orgminer/save-hierarchy * @param requestBody * @param secureFgpAcc @@ -2379,8 +2379,8 @@ export class OrgminerService extends BaseService { } /** - * Submits a suggestion or, for managers, updates the active hierarchy. - * Users submit suggestions (max. 3 per account and day); managers update the active hierarchy. + * Creates or updates a hierarchy suggestion. + * Admins can create one suggestion and update it until it is reviewed. * @endpoint post /api/orgminer/save-hierarchy * @param requestBody * @param secureFgpAcc diff --git a/webapp/src/app/api/model/authorTopicProfile.ts b/webapp/src/app/api/model/authorTopicProfile.ts index 075bc8ec..8c7aa8c7 100644 --- a/webapp/src/app/api/model/authorTopicProfile.ts +++ b/webapp/src/app/api/model/authorTopicProfile.ts @@ -20,17 +20,9 @@ export interface AuthorTopicProfile { */ display_name: string; /** - * All works of the author in the timespan, regardless of the topic filter. + * All works of the author in the timespan. */ works_total: number; - /** - * Works matching the topic filter (same subset as Section 1). - */ - matched_works: number; - /** - * Matched works where one of the searched topics is the work\'s primary topic. - */ - primary_topic_matches: number; /** * Number of distinct primary topics across all works. */ diff --git a/webapp/src/app/api/model/egoNetworkNode.ts b/webapp/src/app/api/model/egoNetworkNode.ts index b92d88eb..b674afcd 100644 --- a/webapp/src/app/api/model/egoNetworkNode.ts +++ b/webapp/src/app/api/model/egoNetworkNode.ts @@ -1,30 +1,28 @@ /** * Innovation Search Engine API * - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ - /** * One person in an ego network. No layout coordinates - the client lays out. */ -export interface EgoNetworkNode { - /** - * OpenAlex author id, short form. - */ - id: string; - name?: string | null; - /** - * One of: ego, mentee, cohort, industry, external. Typed as a string rather than an enum because the index is rebuilt independently of this API. - */ - role: string; - inst?: string | null; - active_years?: number; - suspicious?: boolean; - company_insts?: Array | null; +export interface EgoNetworkNode { + /** + * OpenAlex author id, short form. + */ + id: string; + name?: string | null; + /** + * One of: ego, mentee, cohort, industry, external. `industry` is ego-relative: the person holds a company affiliation on a work shared with the ego (see `company_insts`). Typed as a string rather than an enum because the index is rebuilt independently of this API. + */ + role: string; + inst?: string | null; + active_years?: number; + suspicious?: boolean; + company_insts?: Array | null; } - diff --git a/webapp/src/app/api/model/models.ts b/webapp/src/app/api/model/models.ts index 6b82c245..115b7196 100644 --- a/webapp/src/app/api/model/models.ts +++ b/webapp/src/app/api/model/models.ts @@ -48,6 +48,10 @@ export * from './careerBucket'; export * from './careerMetrics'; export * from './careerStage'; export * from './careerStageStatistics'; +export * from './category'; +export * from './categoryBucket'; +export * from './classifiedPage'; +export * from './classifiedPageResponse'; export * from './collaborationGraph'; export * from './collaborationGraphStatus'; export * from './collaborationGraphStatusResponse'; @@ -163,6 +167,9 @@ export * from './hEUReportSummary'; export * from './hEUTopic'; export * from './hEUWebLink'; export * from './hTTPValidationError'; +export * from './hierarchyNode'; +export * from './hierarchyResponse'; +export * from './hierarchySuggestion'; export * from './idTokenMetadata'; export * from './inseAccountManagementModelOrganizationProfile'; export * from './inseOrganizationManagementModelOrganizationProfile'; @@ -220,6 +227,11 @@ export * from './openAlexTopicTag'; export * from './orgPatentEntry'; export * from './orgPatentsResponse'; export * from './organizationPage'; +export * from './orgminerContent'; +export * from './orgminerKeyword'; +export * from './orgminerNews'; +export * from './orgminerProject'; +export * from './orgminerStaff'; export * from './otkResponse'; export * from './patentEntry'; export * from './patentsByAuthorResponse'; @@ -251,6 +263,7 @@ export * from './researcherMetrics'; export * from './researcherSortBy'; export * from './researcherSummary'; export * from './researcherSummaryPage'; +export * from './saveHierarchyResponse'; export * from './score'; export * from './selectedAuthorsRequest'; export * from './showcase'; 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 07723f14..521e30de 100644 --- a/webapp/src/app/modules/founder-potential/founder-potential.utils.ts +++ b/webapp/src/app/modules/founder-potential/founder-potential.utils.ts @@ -1,12 +1,36 @@ import { ResearcherMetrics } from '../../api'; -/** German labels for multiplier archetype tags. */ +/** + * Multiplier archetype labels. These stay in English on purpose: Bridger, + * Mentor and Amplifier are the model's own role names and are not translated. + */ export const TAG_LABELS: Record = { - bridger: 'Brückenbauer', + bridger: 'Bridger', mentor: 'Mentor', - amplifier: 'Verstärker', + amplifier: 'Amplifier', }; +/** What each multiplier archetype means, shown as a tooltip. */ +export const TAG_DESCRIPTIONS: Record = { + bridger: + 'Bridger: verbindet Personengruppen, die sonst nicht zusammenarbeiten würden. ' + + 'Hohe Brokerage zwischen ansonsten getrennten Koautor:innen-Netzen.', + mentor: + 'Mentor: führt Nachwuchsforschende als Erstautor:innen in gemeinsame ' + + 'Publikationen und fördert deren weitere Laufbahn.', + amplifier: + 'Amplifier: trägt Wissen nach außen – über Patente, ' + + 'Industriekollaborationen, Medienresonanz und EU-Projekte.', +}; + +export function tagLabel(tag: string): string { + return TAG_LABELS[tag] ?? tag; +} + +export function tagDescription(tag: string): string { + return TAG_DESCRIPTIONS[tag] ?? TAG_LABELS[tag] ?? tag; +} + /** German labels for the data-quality screen reasons. */ export const SCREEN_REASON_LABELS: Record = { MERGED_PROFILE: 'Zusammengeführtes Profil', From 29dbf622330e4ec54d73f54a606113d8cd4842b2 Mon Sep 17 00:00:00 2001 From: genja Date: Fri, 6 Nov 2026 11:38:45 +0100 Subject: [PATCH 3/4] added initial design for founding potential and multipliers components --- webapp/src/app/app.routes.ts | 20 ++ .../founder-dashboard.component.html | 253 ++++++++--------- .../founder-dashboard.component.scss | 4 + .../founder-dashboard.component.ts | 47 +--- .../founder-potential.utils.ts | 24 +- .../multipliers-dashboard.component.html | 242 ++++++++++++++++ .../multipliers-dashboard.component.scss | 239 ++++++++++++++++ .../multipliers-dashboard.component.ts | 266 ++++++++++++++++++ .../researcher-network.component.html | 226 ++++++--------- .../researcher-network.component.scss | 82 ++---- .../researcher-network.component.ts | 163 +++++------ .../multiplicator-researchers.resolver.ts | 91 ++++++ .../shared/ui/app-menu/app-menu.component.ts | 42 ++- .../methodology-note.component.html | 12 + .../methodology-note.component.scss | 64 +++++ .../methodology-note.component.ts | 13 + .../multiplier-role-labels.ts | 24 ++ .../multiplier-role-scores.component.html | 25 ++ .../multiplier-role-scores.component.scss | 21 ++ .../multiplier-role-scores.component.ts | 45 +++ 20 files changed, 1396 insertions(+), 507 deletions(-) create mode 100644 webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.html create mode 100644 webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.scss create mode 100644 webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.ts create mode 100644 webapp/src/app/resolvers/multiplicator-researchers.resolver.ts create mode 100644 webapp/src/app/shared/ui/methodology-note/methodology-note.component.html create mode 100644 webapp/src/app/shared/ui/methodology-note/methodology-note.component.scss create mode 100644 webapp/src/app/shared/ui/methodology-note/methodology-note.component.ts create mode 100644 webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-labels.ts create mode 100644 webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.html create mode 100644 webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.scss create mode 100644 webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.ts diff --git a/webapp/src/app/app.routes.ts b/webapp/src/app/app.routes.ts index aaa7467f..56f2575e 100644 --- a/webapp/src/app/app.routes.ts +++ b/webapp/src/app/app.routes.ts @@ -4,6 +4,7 @@ import { personListResolver } from './resolvers/person-list.resolver'; import { founderStatisticsResolver } from './resolvers/founder-statistics.resolver'; import { founderCandidatesResolver } from './resolvers/founder-candidates.resolver'; import { multiplierResearcherPageResolver } from './resolvers/multiplier-researcher-page.resolver'; +import { multiplicatorResearchersResolver } from './resolvers/multiplicator-researchers.resolver'; import { personBioResolver } from './resolvers/person-bio.resolver'; import { personPatentsResolver } from './resolvers/person-patents.resolver'; import { personResolver } from './resolvers/person.resolver'; @@ -139,6 +140,25 @@ export const routes: Routes = [ (mod) => mod.CompareAuthorsComponent, ), }, + { + path: 'multipliers', + canActivate: [ + roleGuard([ + UserRole.User, + UserRole.Manager, + UserRole.Admin, + UserRole.SuperAdmin, + ]), + ], + loadComponent: () => + import( + './modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component' + ).then((mod) => mod.MultipliersDashboardComponent), + resolve: { + researchers: multiplicatorResearchersResolver, + }, + runGuardsAndResolvers: 'paramsOrQueryParamsChange', + }, { path: 'founders', canActivate: [ 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 911aa83a..98a03668 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,7 +1,33 @@
-

Gründungspotenzial · {{ universityName() }}

+

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?

@@ -43,7 +69,7 @@
-
+ +
+

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

@@ -149,21 +253,14 @@ } - -

+
Gründungspotenzial

- Rang gegen ~9.000 Wissenschaftler:innen an anderen - Universitäten. + Perzentil gegenüber der Modell-Referenzkohorte; keine + individuelle Wahrscheinlichkeit.

- -
-
Multiplikator-Rollen
-

- Rang gegen Peers dieser Universität auf derselben - Karrierestufe. -

- @for (s of subScores(); track s.key) { - - } -
- @if (row.candidate.tags?.length) { - @for (tag of row.candidate.tags ?? []; track tag) { - - {{ tagLabel(tag) }} - - } - } @else { - kein Multiplikator-Badge - } -
-
@@ -248,86 +315,6 @@ }
- -
-

3 · 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. -
-
-
-
-
} @else { @@ -336,8 +323,8 @@

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

@@ -394,19 +381,3 @@ } - - - - @if (!row.candidate.screen.passed && row.flagLabel) { - {{ row.flagLabel }} - } - - - 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 cfb880bf..634a2305 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 @@ -432,6 +432,10 @@ h2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; + + &--founder-only { + grid-template-columns: minmax(0, 1fr); + } } .panel { 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 5c3e11c1..72f04534 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 @@ -11,13 +11,11 @@ import { import { CommonModule } from '@angular/common'; import { ActivatedRoute, Router } from '@angular/router'; import { toSignal } from '@angular/core/rxjs-interop'; -import { MatButtonModule } from '@angular/material/button'; import { MatCardModule } from '@angular/material/card'; import { MatIconModule } from '@angular/material/icon'; import { MatProgressBarModule } from '@angular/material/progress-bar'; import { MatSlideToggleModule } from '@angular/material/slide-toggle'; import { MatSliderModule } from '@angular/material/slider'; -import { MatTooltipModule } from '@angular/material/tooltip'; import { CareerStageStatistics, @@ -32,9 +30,6 @@ import { clamp, fmt1, fmtInt, - fmtSubScore, - tagDescription, - tagLabel, } from '../founder-potential.utils'; import { ScoreBarComponent } from '../../../shared/ui/score-bar/score-bar.component'; import { QueryParamPaginatorComponent } from '../../../shared/ui/query-param-paginator/query-param-paginator.component'; @@ -43,11 +38,11 @@ import { DataTableComponent, GenericColumn, } from '../../../shared/ui/data-table/data-table.component'; -import { FOUNDER_ICON, NETWORK_ICON } from '../../../shared/ui/icons'; +import { MethodologyNoteComponent } from '../../../shared/ui/methodology-note/methodology-note.component'; +import { FOUNDER_ICON } from '../../../shared/ui/icons'; import { CredentialService } from '../../../shared/services/credential.service'; const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen'; -const SUB_SCORE_KEYS = ['bridger', 'mentor', 'amplifier'] as const; /** * A shortlist row: the generated candidate plus only the values that the @@ -68,23 +63,21 @@ interface FounderRow { standalone: true, imports: [ CommonModule, - MatButtonModule, MatCardModule, MatIconModule, MatProgressBarModule, MatSlideToggleModule, MatSliderModule, - MatTooltipModule, ScoreBarComponent, QueryParamPaginatorComponent, ChipComponent, DataTableComponent, + MethodologyNoteComponent, ], templateUrl: './founder-dashboard.component.html', styleUrl: './founder-dashboard.component.scss', }) export class FounderDashboardComponent { - readonly NETWORK_ICON = NETWORK_ICON; readonly FOUNDER_ICON = FOUNDER_ICON; readonly statistics = input.required(); @@ -108,8 +101,12 @@ export class FounderDashboardComponent { initialValue: this.route.snapshot.queryParamMap, }); - readonly threshold = computed(() => toNumber(this.queryParams().get('threshold')) ?? 90); - readonly screened = computed(() => (this.queryParams().get('screened') ?? 'true') === 'true'); + readonly threshold = computed( + () => toNumber(this.queryParams().get('threshold')) ?? 90, + ); + readonly screened = computed( + () => this.queryParams().get('screened') === 'true', + ); /** Live value while dragging the slider; committed to the URL on release. */ readonly thresholdDraft = signal(90); @@ -159,8 +156,6 @@ export class FounderDashboardComponent { viewChild.required>('withinTemplate'); private readonly evidenceTemplate = viewChild.required>('evidenceTemplate'); - private readonly actionsTemplate = - viewChild.required>('actionsTemplate'); readonly columns = computed[]>(() => [ { @@ -187,12 +182,6 @@ export class FounderDashboardComponent { type: 'display', cellTemplate: this.evidenceTemplate(), }, - { - id: 'actions', - header: '', - type: 'display', - cellTemplate: this.actionsTemplate(), - }, ]); readonly total = computed(() => this.candidates().total ?? 0); @@ -212,25 +201,10 @@ export class FounderDashboardComponent { return rows[0] ?? null; }); - /** The three multiplier roles of the selected person, with their tooltips. */ - readonly subScores = computed(() => { - const peerRanks = this.selectedRow()?.candidate.multiplier_peer_ranks; - return SUB_SCORE_KEYS.map((key) => ({ - key, - label: tagLabel(key), - hint: tagDescription(key), - value: peerRanks?.[key] ?? 0, - })); - }); - selectCandidate(id: string): void { this.selectedId.set(id); } - openNetwork(id: string): void { - void this.router.navigate(['/founders', id]); - } - // -- Controls ----------------------------------------------------------- /** Discrete label inside the Material slider thumb. */ @@ -283,9 +257,6 @@ export class FounderDashboardComponent { readonly fmtInt = fmtInt; readonly fmt1 = fmt1; - readonly fmtSubScore = fmtSubScore; - readonly tagLabel = tagLabel; - readonly tagDescription = tagDescription; /** Clamp a percentile into the 0-100 band for bar widths. */ readonly clamp0 = (value: number | null) => 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 521e30de..b05281f2 100644 --- a/webapp/src/app/modules/founder-potential/founder-potential.utils.ts +++ b/webapp/src/app/modules/founder-potential/founder-potential.utils.ts @@ -1,34 +1,30 @@ import { ResearcherMetrics } from '../../api'; +import { + MULTIPLIER_TAG_DESCRIPTIONS, + MULTIPLIER_TAG_LABELS, + multiplierTagDescription, + multiplierTagLabel, +} from '../../shared/ui/multiplier-role-scores/multiplier-role-labels'; /** * Multiplier archetype labels. These stay in English on purpose: Bridger, * Mentor and Amplifier are the model's own role names and are not translated. */ export const TAG_LABELS: Record = { - bridger: 'Bridger', - mentor: 'Mentor', - amplifier: 'Amplifier', + ...MULTIPLIER_TAG_LABELS, }; /** What each multiplier archetype means, shown as a tooltip. */ export const TAG_DESCRIPTIONS: Record = { - bridger: - 'Bridger: verbindet Personengruppen, die sonst nicht zusammenarbeiten würden. ' + - 'Hohe Brokerage zwischen ansonsten getrennten Koautor:innen-Netzen.', - mentor: - 'Mentor: führt Nachwuchsforschende als Erstautor:innen in gemeinsame ' + - 'Publikationen und fördert deren weitere Laufbahn.', - amplifier: - 'Amplifier: trägt Wissen nach außen – über Patente, ' + - 'Industriekollaborationen, Medienresonanz und EU-Projekte.', + ...MULTIPLIER_TAG_DESCRIPTIONS, }; export function tagLabel(tag: string): string { - return TAG_LABELS[tag] ?? tag; + return multiplierTagLabel(tag); } export function tagDescription(tag: string): string { - return TAG_DESCRIPTIONS[tag] ?? TAG_LABELS[tag] ?? tag; + return multiplierTagDescription(tag); } /** German labels for the data-quality screen reasons. */ 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 new file mode 100644 index 00000000..8dab5248 --- /dev/null +++ b/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.html @@ -0,0 +1,242 @@ +
+
+

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

+
+
+ + + + @if (rows().length > 0) { + + } @else if (pageTotal() === 0 && selectedTags().length === 0 && selectedCareerBuckets().length === 0 && !nameDraft() && appliedMinPeerRank() === 0) { +
+ hub +

Noch keine Multiplikator-Daten

+

+ Für die {{ universityName() }} wurden noch keine + Multiplikator-Scores berechnet. +

+
+ } @else { +
+

Keine passenden Forschenden gefunden

+

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

+
+ } +
+
+ + +
+
+ + +
+ {{ row.name }} + + {{ fmtInt(row.nWorks) }} Publikationen · + {{ fmtInt(row.activeYears) }} aktive Jahre + @if (row.researcher.suspicious_profile) { + · Profil mit möglicher Zusammenführung + } + +
+
+ + + + + + + @if (row.tags.length) { +
+ @for (tag of row.tags; track tag) { + + {{ tagLabel(tag) }} + + } +
+ } @else { + – + } +
+ + + + + {{ fmtSubScore(row.max) }} + + + + + + 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 new file mode 100644 index 00000000..9c9d3409 --- /dev/null +++ b/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.scss @@ -0,0 +1,239 @@ +.multipliers-dashboard { + max-width: 1280px; + margin: 0 auto; + padding: 24px 8px 64px; +} + +.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; + } +} + +.section-heading { + display: flex; + align-items: flex-end; + justify-content: space-between; + margin-bottom: 12px; + + h2 { + margin: 0 0 4px; + color: var(--sg-text); + font-size: 20px; + } + + .note { + margin: 0; + color: var(--sg-text-muted); + font-size: 13px; + } +} + +.table-card { + overflow: hidden; + + .mat-mdc-card-content { + padding: 0; + } +} + +.person-cell { + display: flex; + flex-direction: column; + gap: 3px; + min-width: 160px; + + &__name { + color: var(--sg-text); + font-weight: 600; + } + + &__meta { + color: var(--sg-text-soft); + font-size: 11.5px; + white-space: nowrap; + } +} + +.warning { + color: var(--sg-warning); +} + +.tags-cell { + display: flex; + flex-wrap: wrap; + gap: 5px; +} + +.muted { + 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; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 28px; + text-align: center; + + mat-icon { + width: 34px; + height: 34px; + color: var(--sg-text-soft); + font-size: 34px; + } + + h3 { + margin: 10px 0 5px; + color: var(--sg-text); + font-size: 18px; + } + + p { + max-width: 60ch; + margin: 0; + color: var(--sg-text-muted); + font-size: 13px; + } + + strong { + color: var(--sg-text); + } + + &--filtered { + min-height: 130px; + } +} + +@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 new file mode 100644 index 00000000..58f32638 --- /dev/null +++ b/webapp/src/app/modules/founder-potential/multipliers-dashboard/multipliers-dashboard.component.ts @@ -0,0 +1,266 @@ +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 { 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 { 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 { CredentialService } from '../../../shared/services/credential.service'; +import { NETWORK_ICON, SEARCH_ICON } from '../../../shared/ui/icons'; + +const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen'; + +interface MultiplierRow { + researcher: ResearcherSummary; + name: string; + careerBucket: string; + 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, + ], + templateUrl: './multipliers-dashboard.component.html', + styleUrl: './multipliers-dashboard.component.scss', +}) +export class MultipliersDashboardComponent { + readonly NETWORK_ICON = NETWORK_ICON; + readonly SEARCH_ICON = SEARCH_ICON; + + readonly researchers = input.required(); + + private readonly router = inject(Router); + private readonly route = inject(ActivatedRoute); + private readonly credentials = inject(CredentialService, { optional: true }); + + private readonly queryParams = toSignal(this.route.queryParamMap, { + initialValue: this.route.snapshot.queryParamMap, + }); + + readonly universityName = computed( + () => 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 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) }, + ]; + + constructor() { + effect(() => { + this.nameDraft.set(this.queryParams().get('name') ?? ''); + this.minPeerRankDraft.set(this.appliedMinPeerRank()); + }, { allowSignalWrites: true }); + } + + private readonly nameTemplate = + viewChild.required>('nameTemplate'); + private readonly rolesTemplate = + viewChild.required>('rolesTemplate'); + private readonly tagsTemplate = + viewChild.required>('tagsTemplate'); + private readonly maxTemplate = + viewChild.required>('maxTemplate'); + private readonly actionTemplate = + viewChild.required>('actionTemplate'); + + readonly rows = computed(() => + (this.researchers().elements ?? []).map((researcher) => ({ + researcher, + name: researcher.display_name ?? researcher.author_id, + careerBucket: researcher.career_bucket ?? '–', + 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', + cellTemplate: this.nameTemplate(), + }, + { + id: 'roles', + header: 'Multiplikator-Rollen', + type: 'display', + cellTemplate: this.rolesTemplate(), + }, + { + id: 'tags', + header: 'Badges', + type: 'display', + cellTemplate: this.tagsTemplate(), + }, + { + id: ResearcherSortBy.Max, + header: 'Stärkster Rang', + type: 'accessor', + accessorKey: 'max', + cellTemplate: this.maxTemplate(), + }, + { + id: 'network', + header: '', + type: 'display', + cellTemplate: this.actionTemplate(), + }, + ]); + + 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', + }); + } + + 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 319187b2..f451e1ee 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,4 +1,9 @@
+ + {{ ARROW_BACK_ICON }} + Zurück zu den Multiplikatoren + + @if (unavailable(); as empty) { @@ -8,16 +13,16 @@ @if (empty.hint) {

{{ empty.hint }}

} - +
} @else {

- Smart-Guide · Multiplikator-Detektion · {{ universityName() }} + Smart-Guide · Multiplikatoren · {{ universityName() }}

{{ name() }}

@@ -27,15 +32,15 @@ [activeYears]="activeYears()" size="md" /> } - {{ fmtInt(nWorks()) }} Publikationen · - {{ fmtInt(activeYears()) }} aktive Jahre + + {{ fmtInt(nWorks()) }} Publikationen · + {{ fmtInt(activeYears()) }} aktive Jahre + @if (suspicious()) { - {{ WARNING_ICON }} Zusammengeführtes - Profil + + {{ WARNING_ICON }} + Zusammengeführtes Profil · Daten vorsichtig interpretieren + }
@if (tags().length) { @@ -52,6 +57,24 @@ }
+ +

+ 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) { @@ -62,13 +85,14 @@ {{ entry.label }} } - Kollaboration (Breite = Stärke) - überwiegend - institutionsübergreifend + + + Kollaboration (Breite = Stärke) + + + + überwiegend institutionsübergreifend + Knotengröße = aktive Jahre
@@ -88,143 +112,61 @@
Kein Netzwerk verfügbar.
}
- {{ fmtInt(netMeta().shown) }} der + {{ fmtInt(netMeta().shown) }} von {{ fmtInt(netMeta().totalCoauthors) }} Koautor:innen dargestellt · - {{ fmtInt(netMeta().cohortCoauthors) }} aus der UDE-Kohorte · - {{ fmtInt(netMeta().mentees) }} Mentees + {{ fmtInt(netMeta().cohortCoauthors) }} aus der + Universitätskohorte · {{ fmtInt(netMeta().mentees) }} Mentees
-
-
-

Multiplikator-Scores

-

- Rang gegen Peers dieser Universität, gleiche Karrierestufe. - Schwelle: 85. -

- @for (s of subScores(); track s.key) { - - } -
+
+

Multiplikator-Rollen

+

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

+ +
-
-

Gründungspotenzial

-

- Rang gegen ~9.000 Wissenschaftler:innen an anderen - Universitäten. -

- - - - - @if ( - founder().timingApplicable && founder().yearsToFounding !== null - ) { -

- @if ((founder().yearsToFounding ?? 0) <= 0) { - Das Aktivitätsmuster wirkt bereits gründungsbereit. - } @else { - Voraussichtlich in - {{ fmt1(founder().yearsToFounding) }} Jahren gründungsreif. - } -

- } -
- -
- Publikationen {{ fmtInt(facts().pubs) }} - Patente {{ fmtInt(facts().patents) }} - Industrie-Publikationen - {{ fmtInt(facts().industry) }} - Förderungen {{ fmtInt(facts().grants) }} - aktive Jahre {{ fmtInt(facts().activeYears) }} -
- -
-

Metriken im Detail

-

- Jeder Rohwert steht neben seinem Peer-Rang (0–1), damit - nachvollziehbar bleibt, warum eine Person so eingestuft wurde. -

-
- - - - - - - - - - - - - - - - - - -
Metrik{{ row.label }}Wert - {{ fmtMetricValue(row.metric.raw) }} - - Peer-Rang - - {{ fmtPeerRank(row.metric.peer_rank) }} -
-
-
-
+
+

Metriken im Detail

+

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

+ +
- Konfiguration + Netzwerk-Konfiguration {{ network()?.config_hash ?? '–' }} · berechnet - am - {{ - network()?.computed_at | date: 'dd.MM.yyyy HH:mm' - }} + {{ network()?.computed_at | date: 'dd.MM.yyyy HH:mm' }}
} + + + {{ row.label }} + + + + {{ fmtMetricValue(row.metric.raw) }} + + + + + {{ fmtPeerRank(row.metric.peer_rank) }} + + 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 8cfa7d8b..ce199262 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 @@ -159,15 +159,13 @@ .panel { display: flex; flex-direction: column; - gap: 22px; + gap: 12px; - h3 { - font-size: 11px; - letter-spacing: 0.12em; - text-transform: uppercase; - color: var(--sg-text-soft); - margin: 0 0 8px; - font-weight: 600; + h2 { + margin: 0; + color: var(--sg-text); + font-size: 17px; + font-weight: 650; } } @@ -178,65 +176,25 @@ line-height: 1.45; } -.timing-note { - font-size: 12.5px; - color: var(--sg-success); - margin: 2px 0 0; -} - -.facts { - display: flex; - flex-wrap: wrap; - gap: 7px; - - b { - color: var(--sg-text); - font-variant-numeric: tabular-nums; - } -} - .metrics { min-width: 0; -} + margin-top: 24px; -.scroller { - overflow-x: auto; -} - -table.mx { - width: 100%; - background: transparent; - font-size: 12px; - - .mat-mdc-header-cell { - padding: 0 7px; - height: 20px; - color: var(--sg-text-soft); - font-weight: 600; - font-size: 11px; - text-transform: uppercase; - letter-spacing: 0.06em; - } - - .mat-mdc-cell { - color: var(--sg-text-muted); - vertical-align: middle; - line-height: 1.2; - } - .mat-mdc-row { - height: 25px; - } - - .num { - text-align: right; - font-variant-numeric: tabular-nums; + h2 { + margin: 0 0 6px; color: var(--sg-text); - white-space: nowrap; + font-size: 17px; + } +} - &.hot { - font-weight: 700; - color: var(--sg-success); - } +.num { + font-variant-numeric: tabular-nums; + color: var(--sg-text); + white-space: nowrap; + + &.hot { + font-weight: 700; + color: var(--sg-success); } } 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 097477ea..2e7bc872 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 @@ -1,44 +1,36 @@ -import { Component, computed, inject, input } from '@angular/core'; +import { Component, computed, inject, input, TemplateRef, viewChild } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { NavigationEnd, Router, RouterModule } from '@angular/router'; +import { Router, RouterModule } from '@angular/router'; import { MatButtonModule } from '@angular/material/button'; import { MatCardModule } from '@angular/material/card'; import { MatIconModule } from '@angular/material/icon'; -import { MatTableModule } from '@angular/material/table'; import { MatTooltipModule } from '@angular/material/tooltip'; -import { pipe } from 'rxjs'; +import { MetricValue, ResearcherMetrics } from '../../../api'; import { METRIC_DEFS, - fmt1, fmtInt, fmtMetricValue, fmtPeerRank, - fmtSubScore, tagDescription, tagLabel, } from '../founder-potential.utils'; -import { MetricValue, ResearcherMetrics } from '../../../api'; import { ResearcherPageState } from '../../../resolvers/multiplier-researcher-page.resolver'; import { MULTIPLIER_ROLE_LABELS, multiplierRoleColor, MultiplierNetworkGraphComponent, } from '../../../shared/ui/multiplier-network-graph/multiplier-network-graph.component'; -import { ScoreBarComponent } from '../../../shared/ui/score-bar/score-bar.component'; +import { DataTableComponent, GenericColumn } from '../../../shared/ui/data-table/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 { 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 { filter } from 'rxjs/operators'; -const TAG_THRESHOLD = 0.85; +import { ARROW_BACK_ICON, PERSON_OFF_ICON, WARNING_ICON } from '../../../shared/ui/icons'; + const ROLE_ORDER = ['ego', 'cohort', 'mentee', 'industry', 'external']; -const SUB_SCORE_KEYS = ['bridger', 'mentor', 'amplifier'] as const; const FALLBACK_UNIVERSITY = 'Universität Duisburg-Essen'; interface UnavailableView { @@ -47,7 +39,6 @@ interface UnavailableView { hint: string | null; } -/** A metric definition paired with the API's own raw/peer-rank block. */ interface MetricRow { key: keyof ResearcherMetrics; label: string; @@ -63,33 +54,22 @@ interface MetricRow { MatButtonModule, MatCardModule, MatIconModule, - MatTableModule, MatTooltipModule, + DataTableComponent, MultiplierNetworkGraphComponent, - ScoreBarComponent, CareerStageChipComponent, ChipComponent, + MethodologyNoteComponent, + MultiplierRoleScoresComponent, ], templateUrl: './researcher-network.component.html', styleUrl: './researcher-network.component.scss', }) export class ResearcherNetworkComponent { - constructor() { - this.router.events - .pipe(filter((event: any) => event instanceof NavigationEnd)) - .subscribe(() => { - document.body.scrollTo({ - top: 0, - behavior: 'smooth', - }); - }); - } - readonly ARROW_BACK_ICON = ARROW_BACK_ICON; readonly WARNING_ICON = WARNING_ICON; readonly PERSON_OFF_ICON = PERSON_OFF_ICON; - /** Resolved detail + network, or the backend's explanation why they are missing. */ readonly page = input.required(); private readonly router = inject(Router); @@ -114,26 +94,25 @@ export class ResearcherNetworkComponent { const university = this.universityName(); const who = page.displayName ?? 'diese Person'; - if (page.reason === 'OTHER_INSTITUTION') { return { - title: 'Kein Gründungspotenzial für diese Universität', - body: `Für ${who} wurde kein Gründungspotenzial für die ${university} berechnet.`, + title: 'Keine Multiplikator-Daten für diese Universität', + body: `Für ${who} wurde an der ${university} keine Multiplikator-Auswertung erstellt.`, hint: page.authorInstitution - ? `Die Person ist aktuell der Einrichtung „${page.authorInstitution}“ zugeordnet, nicht der ${university}.` + ? `Die Person ist aktuell der Einrichtung „${page.authorInstitution}“ zugeordnet.` : `Die Person ist keiner Einrichtung der ${university} zugeordnet.`, }; } if (page.reason === 'NOT_INDEXED') { return { - title: 'Noch keine berechneten Daten', - body: `Für ${who} wurde noch kein Gründungspotenzial berechnet.`, + title: 'Noch keine Multiplikator-Daten', + body: `Für ${who} wurden noch keine Multiplikator-Scores berechnet.`, hint: `Die Person gehört zur ${university}, ist aber noch nicht in der Auswertung enthalten.`, }; } return { - title: 'Keine Daten zu dieser Person', - body: 'Zu dieser Person liegen keine berechneten Daten vor.', + title: 'Keine Multiplikator-Daten zu dieser Person', + body: 'Zu dieser Person liegen keine berechneten Multiplikator-Daten vor.', hint: null, }; }); @@ -145,70 +124,59 @@ export class ResearcherNetworkComponent { this.researcher()?.author_id ?? 'Unbekannt', ); - - readonly careerBucket = computed( - () => this.researcher()?.career_bucket ?? null, - ); + readonly careerBucket = computed(() => this.researcher()?.career_bucket ?? null); readonly activeYears = computed(() => this.researcher()?.active_years ?? 0); readonly nWorks = computed(() => this.researcher()?.n_works ?? 0); - readonly suspicious = computed( - () => this.researcher()?.suspicious_profile ?? false, - ); - + readonly suspicious = computed(() => this.researcher()?.suspicious_profile ?? false); readonly tags = computed(() => this.researcher()?.tags ?? []); - - readonly subScores = computed(() => { - const pr = this.researcher()?.multiplier_peer_ranks; - return SUB_SCORE_KEYS.map((key) => ({ - key, - label: tagLabel(key), - hint: tagDescription(key), - value: pr?.[key] ?? 0, - })); - }); - - readonly founder = computed(() => { - const fp = this.researcher()?.founder_potential; - return { - score: fp?.external_percentile ?? null, - within1: fp?.external_percentile_within_1y ?? null, - within3: fp?.external_percentile_within_3y ?? null, - within5: fp?.external_percentile_within_5y ?? null, - yearsToFounding: fp?.timing?.years_to_founding ?? null, - timingApplicable: fp?.timing_applicable ?? false, - }; - }); - - readonly facts = computed(() => { - const ff = this.researcher()?.founder_features; - return { - pubs: ff?.publications ?? 0, - patents: ff?.patents ?? 0, - industry: ff?.industry_collab_papers ?? 0, - grants: ff?.grants ?? 0, - activeYears: this.activeYears(), - }; - }); + readonly tagLabel = tagLabel; + readonly tagDescription = tagDescription; readonly netMeta = computed(() => { - const n = this.network(); + const network = this.network(); return { - totalCoauthors: n?.total_coauthors ?? 0, - cohortCoauthors: n?.cohort_coauthors ?? 0, - mentees: n?.mentee_count ?? 0, - shown: n?.shown ?? 0, + totalCoauthors: network?.total_coauthors ?? 0, + cohortCoauthors: network?.cohort_coauthors ?? 0, + mentees: network?.mentee_count ?? 0, + shown: network?.shown ?? 0, }; }); + private readonly metricTemplate = + viewChild.required>('metricTemplate'); + private readonly metricValueTemplate = + viewChild.required>('metricValueTemplate'); + private readonly metricRankTemplate = + viewChild.required>('metricRankTemplate'); + readonly metricRows = computed(() => - METRIC_DEFS.map((def) => ({ - key: def.key, - label: def.label, - metric: this.researcher()?.metrics?.[def.key] ?? {}, + METRIC_DEFS.map((definition) => ({ + key: definition.key, + label: definition.label, + metric: this.researcher()?.metrics?.[definition.key] ?? {}, })), ); - readonly displayedMetricColumns = ['metric', 'value', 'rank']; + readonly metricColumns = computed[]>(() => [ + { + id: 'metric', + header: 'Metrik', + type: 'display', + cellTemplate: this.metricTemplate(), + }, + { + id: 'value', + header: 'Wert', + type: 'display', + cellTemplate: this.metricValueTemplate(), + }, + { + id: 'rank', + header: 'Peer-Rang', + type: 'display', + cellTemplate: this.metricRankTemplate(), + }, + ]); readonly roleLegend = computed(() => ROLE_ORDER.map((role) => ({ @@ -219,17 +187,14 @@ export class ResearcherNetworkComponent { ); onNodeClick(event: { id: string }): void { - if (event?.id) { - void this.router.navigate(['/person', event.id]); - } + if (event?.id) void this.router.navigate(['/person', event.id]); + } + + backToMultipliers(): void { + void this.router.navigate(['/multipliers']); } readonly fmtInt = fmtInt; - readonly fmt1 = fmt1; - readonly fmtSubScore = fmtSubScore; - readonly fmtPeerRank = fmtPeerRank; readonly fmtMetricValue = fmtMetricValue; - readonly tagLabel = tagLabel; - readonly tagDescription = tagDescription; - readonly tagThreshold = TAG_THRESHOLD * 100; + readonly fmtPeerRank = fmtPeerRank; } diff --git a/webapp/src/app/resolvers/multiplicator-researchers.resolver.ts b/webapp/src/app/resolvers/multiplicator-researchers.resolver.ts new file mode 100644 index 00000000..324f6f45 --- /dev/null +++ b/webapp/src/app/resolvers/multiplicator-researchers.resolver.ts @@ -0,0 +1,91 @@ +import { inject } from '@angular/core'; +import { ResolveFn } from '@angular/router'; + +import { + CareerBucket, + MultiplierTag, + MultiplicatorsService, + PeerRankField, + ResearcherSortBy, + ResearcherSummaryPage, + SortDirection, +} from '../api'; + +const VALID_TAGS = Object.values(MultiplierTag); +const VALID_CAREER_BUCKETS = Object.values(CareerBucket); +const VALID_PEER_RANK_FIELDS = Object.values(PeerRankField); +const VALID_SORT_FIELDS = Object.values(ResearcherSortBy); + +/** + * Cohort-wide multiplier table, driven by URL params so filter, pagination, + * and sort changes re-query Elasticsearch on the server. + */ +export const multiplicatorResearchersResolver: ResolveFn = ( + route, +) => { + const service = inject(MultiplicatorsService); + const params = route.queryParamMap; + + const page = toInt(params.get('page'), 0); + const size = toInt(params.get('size'), 25); + const tags = validValues(params.getAll('tag'), VALID_TAGS); + const careerBuckets = validValues( + params.getAll('careerBucket'), + VALID_CAREER_BUCKETS, + ); + const minPeerRank = toNumber(params.get('minPeerRank')); + const peerRankField = validValue( + params.get('peerRankField'), + VALID_PEER_RANK_FIELDS, + PeerRankField.Max, + ); + const name = params.get('name')?.trim() || undefined; + const sortBy = validValue( + params.get('sortBy'), + VALID_SORT_FIELDS, + ResearcherSortBy.Max, + ); + const sortOrder = params.get('sortOrder') === SortDirection.Asc + ? SortDirection.Asc + : SortDirection.Desc; + const suspiciousRaw = params.get('suspiciousProfile'); + const suspiciousProfile = + suspiciousRaw === 'true' ? true : suspiciousRaw === 'false' ? false : undefined; + + return service.searchMultiplicatorResearchers( + page, + size, + tags.length ? tags : undefined, + careerBuckets.length ? careerBuckets : undefined, + minPeerRank ?? undefined, + peerRankField, + suspiciousProfile, + name, + sortBy, + sortOrder, + ); +}; + +function toInt(value: string | null, fallback: number): number { + if (!value) return fallback; + const parsed = Number.parseInt(value, 10); + return Number.isFinite(parsed) && parsed >= 0 ? parsed : fallback; +} + +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; +} + +function validValues(values: string[], valid: readonly T[]): T[] { + return values.filter((value): value is T => valid.includes(value as T)); +} + +function validValue( + value: string | null, + valid: readonly T[], + fallback: T, +): T { + return value && valid.includes(value as T) ? (value as T) : fallback; +} 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 0c478cb4..9862db54 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 @@ -32,6 +32,7 @@ import { LOGOUT_ICON, MANAGE_ACCOUNTS_ICON, NEWS_ICON, + NETWORK_ICON, ORGANIZATIONS_ICON, PATENT_ICON, PERSONS_ICON, @@ -100,12 +101,18 @@ export class AppMenuComponent { isItemActive(item: NavItem): boolean { const path = this.currentPath(); + // `/founders/:authorId` is the multiplier-network detail route. Do not + // highlight the founder-potential dashboard for that path. + if (item.route === '/founders' && path.startsWith('/founders/')) { + return false; + } + if ((item.detailRoutePrefixes ?? []).some((prefix) => path.startsWith(prefix))) { + return true; + } if (path === item.route || path.startsWith(`${item.route}/`)) { return true; } - return (item.detailRoutePrefixes ?? []).some((prefix) => - path.startsWith(prefix), - ); + return false; } readonly navItems = computed(() => { @@ -116,14 +123,6 @@ export class AppMenuComponent { route: '/dashboard', disabled: false, }, - { - label: 'Gründungspotenzial', - icon: FOUNDER_ICON, - route: '/founders', - disabled: false, - queryParams: { threshold: 90, screened: 'true', page: 0, size: 25 }, - detailRoutePrefixes: ['/founders/'], - }, { label: 'Personen', icon: PERSONS_ICON, @@ -225,6 +224,27 @@ export class AppMenuComponent { route: '/hierarchy', disabled: false, }, + { + label: 'Gründungspotenzial', + icon: FOUNDER_ICON, + route: '/founders', + disabled: false, + queryParams: { threshold: 90, screened: 'true', page: 0, size: 25 }, + }, + { + label: 'Multiplikatoren', + icon: NETWORK_ICON, + route: '/multipliers', + disabled: false, + queryParams: { + page: 0, + size: 25, + sortBy: 'max', + sortOrder: 'desc', + peerRankField: 'max', + }, + detailRoutePrefixes: ['/founders/'], + }, { label: 'Accounts', icon: MANAGE_ACCOUNTS_ICON, diff --git a/webapp/src/app/shared/ui/methodology-note/methodology-note.component.html b/webapp/src/app/shared/ui/methodology-note/methodology-note.component.html new file mode 100644 index 00000000..89d8c91b --- /dev/null +++ b/webapp/src/app/shared/ui/methodology-note/methodology-note.component.html @@ -0,0 +1,12 @@ + + + + info + Datenbasis & Methodik + + Wie diese Ergebnisse entstanden sind + +
+ +
+
diff --git a/webapp/src/app/shared/ui/methodology-note/methodology-note.component.scss b/webapp/src/app/shared/ui/methodology-note/methodology-note.component.scss new file mode 100644 index 00000000..6d5ce999 --- /dev/null +++ b/webapp/src/app/shared/ui/methodology-note/methodology-note.component.scss @@ -0,0 +1,64 @@ +:host { + display: block; + margin-top: 18px; +} + +.methodology-note { + background: var(--sg-surface-muted); + border: 1px solid var(--sg-border); + box-shadow: none; + + mat-panel-title { + align-items: center; + gap: 8px; + color: var(--sg-text); + font-size: 13px; + font-weight: 600; + } + + mat-panel-description { + color: var(--sg-text-soft); + font-size: 12px; + } + + mat-icon { + width: 18px; + height: 18px; + font-size: 18px; + color: var(--sg-blue-highlight); + } + + &__content { + color: var(--sg-text-muted); + font-size: 13px; + line-height: 1.55; + } +} + +:host ::ng-deep .methodology-note__content p { + margin: 0 0 10px; +} + +:host ::ng-deep .methodology-note__content p:last-child { + margin-bottom: 0; +} + +:host ::ng-deep .methodology-note__content ul { + margin: 8px 0 10px; + padding-left: 20px; +} + +:host ::ng-deep .methodology-note__content li + li { + margin-top: 4px; +} + +:host ::ng-deep .methodology-note__content strong { + color: var(--sg-text); + font-weight: 600; +} + +@media (max-width: 700px) { + .methodology-note mat-panel-description { + display: none; + } +} diff --git a/webapp/src/app/shared/ui/methodology-note/methodology-note.component.ts b/webapp/src/app/shared/ui/methodology-note/methodology-note.component.ts new file mode 100644 index 00000000..355294c6 --- /dev/null +++ b/webapp/src/app/shared/ui/methodology-note/methodology-note.component.ts @@ -0,0 +1,13 @@ +import { Component } from '@angular/core'; +import { MatExpansionModule } from '@angular/material/expansion'; +import { MatIconModule } from '@angular/material/icon'; + +/** A consistent, collapsible methodology note used by data-heavy views. */ +@Component({ + selector: 'app-methodology-note', + standalone: true, + imports: [MatExpansionModule, MatIconModule], + templateUrl: './methodology-note.component.html', + styleUrl: './methodology-note.component.scss', +}) +export class MethodologyNoteComponent {} 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 new file mode 100644 index 00000000..6c2462ed --- /dev/null +++ b/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-labels.ts @@ -0,0 +1,24 @@ +/** Stable role names used by the multiplier model. */ +export const MULTIPLIER_TAG_LABELS: Record = { + bridger: 'Bridger', + mentor: 'Mentor', + amplifier: 'Amplifier', +}; + +/** Coach-facing descriptions for the three multiplier archetypes. */ +export const MULTIPLIER_TAG_DESCRIPTIONS: Record = { + bridger: + 'Verbindet Forschungsgruppen, Fachgebiete oder Institutionen, die sonst wenig zusammenarbeiten.', + mentor: + 'Publiziert mit Nachwuchsforschenden und zeigt Signale für deren Förderung und Entwicklung.', + amplifier: + 'Trägt Wissen über Industriekooperationen, Patente, EU-Projekte und Medienresonanz nach außen.', +}; + +export function multiplierTagLabel(tag: string): string { + return MULTIPLIER_TAG_LABELS[tag] ?? tag; +} + +export function multiplierTagDescription(tag: string): string { + return MULTIPLIER_TAG_DESCRIPTIONS[tag] ?? MULTIPLIER_TAG_LABELS[tag] ?? tag; +} 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 new file mode 100644 index 00000000..7e6095d8 --- /dev/null +++ b/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.html @@ -0,0 +1,25 @@ +@if (presentation() === 'compact') { +
+ @for (role of roles(); track role.key) { + + {{ role.label }} {{ role.display }} + + } +
+} @else { +
+ @for (role of roles(); track role.key) { + + } +
+} 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 new file mode 100644 index 00000000..72f126e6 --- /dev/null +++ b/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.scss @@ -0,0 +1,21 @@ +.role-scores { + &--compact { + display: flex; + flex-wrap: wrap; + gap: 5px; + align-items: center; + font-size: 11px; + + b { + color: var(--sg-text); + font-variant-numeric: tabular-nums; + margin-left: 3px; + } + } + + &--detailed { + display: flex; + flex-direction: column; + gap: 2px; + } +} 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 new file mode 100644 index 00000000..b002d53f --- /dev/null +++ b/webapp/src/app/shared/ui/multiplier-role-scores/multiplier-role-scores.component.ts @@ -0,0 +1,45 @@ +import { Component, computed, input } from '@angular/core'; +import { MatTooltipModule } from '@angular/material/tooltip'; + +import { MultiplierPeerRanks } from '../../../api'; +import { ChipComponent } from '../chip/chip.component'; +import { ScoreBarComponent } from '../score-bar/score-bar.component'; +import { + multiplierTagDescription, + multiplierTagLabel, +} from './multiplier-role-labels'; + +const ROLE_KEYS = ['bridger', 'mentor', 'amplifier'] as const; + +/** Reusable compact or detailed rendering of the three multiplier roles. */ +@Component({ + selector: 'app-multiplier-role-scores', + standalone: true, + imports: [MatTooltipModule, ChipComponent, ScoreBarComponent], + templateUrl: './multiplier-role-scores.component.html', + styleUrl: './multiplier-role-scores.component.scss', +}) +export class MultiplierRoleScoresComponent { + readonly scores = input(null); + 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 threshold = 85; +} + +function formatScore(value: number): string { + return `${(value * 100).toLocaleString('de-DE', { + minimumFractionDigits: 1, + maximumFractionDigits: 1, + })} %`; +} From bf1e1bbfef69861533a9237ecf30367ceda65cbd Mon Sep 17 00:00:00 2001 From: genja Date: Fri, 6 Nov 2026 12:55:23 +0100 Subject: [PATCH 4/4] reorganized layout. Standartized the component containers and headers --- .../modules/account/account.component.html | 4 + .../modules/account/account.component.scss | 2 +- .../app/modules/account/account.component.ts | 2 + .../modules/accounts/accounts.component.html | 19 +- .../modules/accounts/accounts.component.scss | 17 - .../modules/accounts/accounts.component.ts | 2 + .../bookmarks/bookmarks.component.html | 22 +- .../bookmarks/bookmarks.component.scss | 40 +- .../modules/bookmarks/bookmarks.component.ts | 9 +- .../compare-authors.component.html | 4 +- .../compare-authors.component.scss | 11 +- .../compare-authors.component.ts | 2 + .../dashboard/dashboard.component.html | 171 ++--- .../dashboard/dashboard.component.scss | 4 +- .../modules/dashboard/dashboard.component.ts | 2 + .../founder-dashboard.component.html | 590 +++++++++--------- .../founder-dashboard.component.scss | 44 +- .../founder-dashboard.component.ts | 2 + .../multipliers-dashboard.component.html | 369 +++++------ .../multipliers-dashboard.component.scss | 46 +- .../multipliers-dashboard.component.ts | 2 + .../researcher-network.component.html | 19 +- .../researcher-network.component.scss | 43 +- .../researcher-network.component.ts | 2 + .../hierarchy/hierarchy.component.html | 9 +- .../hierarchy/hierarchy.component.scss | 3 +- .../modules/hierarchy/hierarchy.component.ts | 2 + .../institution-projects.component.html | 8 +- .../institution-projects.component.scss | 2 +- .../institution-projects.component.ts | 2 + .../institution-publications.component.html | 8 +- .../institution-publications.component.scss | 2 +- .../institution-publications.component.ts | 2 + .../institution-overview.component.scss | 9 +- .../institution/institution.component.html | 16 +- .../institution/institution.component.scss | 4 +- .../institution/institution.component.ts | 2 + .../institutions/institutions.component.html | 13 +- .../institutions/institutions.component.scss | 6 - .../institutions/institutions.component.ts | 4 +- .../src/app/modules/jobs/jobs.component.html | 14 +- .../src/app/modules/jobs/jobs.component.scss | 28 - webapp/src/app/modules/jobs/jobs.component.ts | 2 + .../keywords-search.component.html | 4 + .../keywords-search.component.scss | 4 +- .../keywords-search.component.ts | 2 + .../projects-results.component.scss | 2 +- .../search-results.component.html | 12 +- .../search-results.component.scss | 22 +- .../search-results.component.ts | 2 + .../news-detail/news-detail.component.html | 4 +- .../news-detail/news-detail.component.scss | 12 +- .../news-detail/news-detail.component.ts | 2 + .../src/app/modules/news/news.component.html | 11 +- .../src/app/modules/news/news.component.scss | 29 - webapp/src/app/modules/news/news.component.ts | 2 + .../organizations.component.html | 30 +- .../organizations.component.scss | 28 - .../organizations/organizations.component.ts | 2 + .../patent-detail.component.html | 2 + .../patent-detail.component.scss | 17 +- .../patent-detail/patent-detail.component.ts | 2 + .../modules/patents/patents.component.html | 25 +- .../modules/patents/patents.component.scss | 26 +- .../app/modules/patents/patents.component.ts | 2 + .../person-company-connections.component.html | 7 +- .../person-company-connections.component.scss | 20 +- .../person-company-connections.component.ts | 2 + .../person-list/person-list.component.html | 46 +- .../person-list/person-list.component.scss | 36 +- .../person-list/person-list.component.ts | 2 + .../person-network.component.scss | 2 +- .../person-patents.component.scss | 2 +- .../app/modules/person/person.component.html | 2 + .../app/modules/person/person.component.scss | 17 +- .../app/modules/person/person.component.ts | 2 + .../bund-details/bund-details.component.html | 2 + .../bund-details/bund-details.component.scss | 17 +- .../bund-details/bund-details.component.ts | 2 + .../dfg-details/dfg-details.component.html | 2 + .../dfg-details/dfg-details.component.scss | 17 +- .../dfg-details/dfg-details.component.ts | 2 + .../deliverables-cards.component.scss | 5 +- .../eu-details.component.html | 2 + .../eu-details.component.scss | 17 +- .../eu-cordis-details/eu-details.component.ts | 2 + .../organizations-table.component.scss | 5 +- .../patents-cards.component.scss | 5 +- .../publications-table.component.scss | 5 +- .../modules/projects/projects.component.html | 9 +- .../modules/projects/projects.component.scss | 9 +- .../modules/projects/projects.component.ts | 4 +- .../publication-detail.component.html | 2 + .../publication-detail.component.scss | 17 +- .../publication-detail.component.ts | 2 + .../publications/publications.component.html | 10 +- .../publications/publications.component.scss | 9 +- .../publications/publications.component.ts | 4 +- .../app/modules/topic/topic.component.html | 8 +- .../app/modules/topic/topic.component.scss | 13 +- .../src/app/modules/topic/topic.component.ts | 2 + .../app/modules/topics/topics.component.html | 13 +- .../app/modules/topics/topics.component.scss | 6 - .../app/modules/topics/topics.component.ts | 8 +- .../ui/card-search/card-search.component.scss | 3 - .../page-container.component.html | 15 + .../page-container.component.scss | 23 + .../page-container.component.ts | 16 + .../ui/page-header/page-header.component.html | 27 + .../ui/page-header/page-header.component.scss | 81 +++ .../ui/page-header/page-header.component.ts | 15 + webapp/src/styles.scss | 10 + 112 files changed, 1132 insertions(+), 1201 deletions(-) create mode 100644 webapp/src/app/shared/ui/page-container/page-container.component.html create mode 100644 webapp/src/app/shared/ui/page-container/page-container.component.scss create mode 100644 webapp/src/app/shared/ui/page-container/page-container.component.ts create mode 100644 webapp/src/app/shared/ui/page-header/page-header.component.html create mode 100644 webapp/src/app/shared/ui/page-header/page-header.component.scss create mode 100644 webapp/src/app/shared/ui/page-header/page-header.component.ts diff --git a/webapp/src/app/modules/account/account.component.html b/webapp/src/app/modules/account/account.component.html index 098a8e75..02fefd5b 100644 --- a/webapp/src/app/modules/account/account.component.html +++ b/webapp/src/app/modules/account/account.component.html @@ -1,3 +1,6 @@ +
+ } +
+
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..32162166 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,39 +1,6 @@ .founder-dashboard { - max-width: 1080px; - margin: 0 auto; - padding: 24px 8px 64px; -} - -.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; - } - } + width: 100%; + min-width: 0; } section { @@ -42,7 +9,7 @@ section { .empty-state { margin-top: 28px; - max-width: 72ch; + width: 100%; background: var(--sg-surface-muted); .mat-mdc-card-content { @@ -77,9 +44,10 @@ section { } h2 { - font-size: 20px; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); margin: 0 0 4px; - font-weight: 700; + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); color: var(--sg-text); } 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..c9866bc2 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 @@ -39,6 +39,7 @@ import { GenericColumn, } from '../../../shared/ui/data-table/data-table.component'; import { MethodologyNoteComponent } from '../../../shared/ui/methodology-note/methodology-note.component'; +import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component'; import { FOUNDER_ICON } from '../../../shared/ui/icons'; import { CredentialService } from '../../../shared/services/credential.service'; @@ -73,6 +74,7 @@ interface FounderRow { ChipComponent, DataTableComponent, MethodologyNoteComponent, + PageContainerComponent, ], templateUrl: './founder-dashboard.component.html', styleUrl: './founder-dashboard.component.scss', 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..99ee0dbf 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,191 +1,202 @@ -
-
-

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

+
- -

- 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 }} - } - - - -
- - +
+ + +
+ + Name suchen - + placeholder="Name oder Namensanfang" /> + {{ 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' }} - - - -
- - -
+
+ + {{ 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

+

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

+
-
- - - @if (rows().length > 0) { - - } @else if (pageTotal() === 0 && selectedTags().length === 0 && selectedCareerBuckets().length === 0 && !nameDraft() && appliedMinPeerRank() === 0) { -
- hub -

Noch keine Multiplikator-Daten

-

- Für die {{ universityName() }} wurden noch keine - Multiplikator-Scores berechnet. -

-
- } @else { -
-

Keine passenden Forschenden gefunden

-

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

-
- } -
-
+ + + @if (rows().length > 0) { + + } @else if ( + pageTotal() === 0 && + selectedTags().length === 0 && + selectedCareerBuckets().length === 0 && + !nameDraft() && + appliedMinPeerRank() === 0 + ) { +
+ hub +

Noch keine Multiplikator-Daten

+

+ Für die {{ universityName() }} wurden noch + keine Multiplikator-Scores berechnet. +

+
+ } @else { +
+

Keine passenden Forschenden gefunden

+

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

+
+ } +
+
- -
- + + + +
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..06426990 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,37 +1,6 @@ .multipliers-dashboard { - max-width: 1280px; - margin: 0 auto; - padding: 24px 8px 64px; -} - -.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); - } - } + width: 100%; + min-width: 0; } .filters-section, @@ -107,7 +76,9 @@ h2 { margin: 0 0 4px; color: var(--sg-text); - font-size: 20px; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); } .note { @@ -220,10 +191,6 @@ } @media (max-width: 640px) { - .hero h1 { - font-size: 25px; - } - .filters-grid { grid-template-columns: 1fr; gap: 2px; @@ -233,7 +200,4 @@ 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..a97e79ce 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 @@ -36,6 +36,7 @@ import { GenericColumn, } from '../../../shared/ui/data-table/data-table.component'; import { MethodologyNoteComponent } from '../../../shared/ui/methodology-note/methodology-note.component'; +import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.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 { CredentialService } from '../../../shared/services/credential.service'; @@ -71,6 +72,7 @@ interface MultiplierRow { ChipComponent, DataTableComponent, MethodologyNoteComponent, + PageContainerComponent, MultiplierRoleScoresComponent, QueryParamPaginatorComponent, ], 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..e092b0ba 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,15 +1,17 @@ -
- + + {{ ARROW_BACK_ICON }} Zurück zu den Multiplikatoren +
@if (unavailable(); as empty) { {{ PERSON_OFF_ICON }} -

{{ empty.title }}

-

{{ empty.body }}

@if (empty.hint) {

{{ empty.hint }}

} @@ -20,11 +22,7 @@
} @else { -
-

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

-

{{ name() }}

+
@if (careerBucket()) { } -
+

@@ -156,6 +154,7 @@ }

+ {{ 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 ce199262..e1cacfe8 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,7 +1,6 @@ .researcher-network { - max-width: 1440px; - margin: 0 auto; - padding: 24px 8px 64px; + width: 100%; + min-width: 0; } .back-link { @@ -21,26 +20,6 @@ } } -.page { - max-width: 72ch; - - .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); - } -} - .meta-line { display: flex; flex-wrap: wrap; @@ -164,8 +143,9 @@ h2 { margin: 0; color: var(--sg-text); - font-size: 17px; - font-weight: 650; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); } } @@ -183,7 +163,9 @@ h2 { margin: 0 0 6px; color: var(--sg-text); - font-size: 17px; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); } } @@ -200,7 +182,7 @@ .unavailable { margin-top: 32px; - max-width: 68ch; + width: 100%; background: var(--sg-surface-muted); .mat-mdc-card-content { @@ -215,13 +197,6 @@ 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; 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..4b5a4ee2 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 @@ -26,6 +26,7 @@ import { CareerStageChipComponent } from '../../../shared/ui/career-stage-chip/c 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'; @@ -61,6 +62,7 @@ interface MetricRow { ChipComponent, MethodologyNoteComponent, MultiplierRoleScoresComponent, + PageContainerComponent, ], templateUrl: './researcher-network.component.html', styleUrl: './researcher-network.component.scss', diff --git a/webapp/src/app/modules/hierarchy/hierarchy.component.html b/webapp/src/app/modules/hierarchy/hierarchy.component.html index fd478628..52d11f97 100644 --- a/webapp/src/app/modules/hierarchy/hierarchy.component.html +++ b/webapp/src/app/modules/hierarchy/hierarchy.component.html @@ -1,9 +1,7 @@ +
- @if (suggestionsOnly()) { -
Hierarchie-Vorschläge
- } @else { -
Organizationsstruktur
- } @if (!hierarchyData()) {
Keine Hierarchie-Daten verfügbar. @@ -63,3 +61,4 @@ } }
+ diff --git a/webapp/src/app/modules/hierarchy/hierarchy.component.scss b/webapp/src/app/modules/hierarchy/hierarchy.component.scss index 5c656d1d..b825165e 100644 --- a/webapp/src/app/modules/hierarchy/hierarchy.component.scss +++ b/webapp/src/app/modules/hierarchy/hierarchy.component.scss @@ -1,8 +1,7 @@ .content { display: flex; flex-direction: column; - gap: 1rem; - padding: 1rem; + gap: 12px; } mat-expansion-panel { diff --git a/webapp/src/app/modules/hierarchy/hierarchy.component.ts b/webapp/src/app/modules/hierarchy/hierarchy.component.ts index 2f39b3a7..ab3ff918 100644 --- a/webapp/src/app/modules/hierarchy/hierarchy.component.ts +++ b/webapp/src/app/modules/hierarchy/hierarchy.component.ts @@ -18,6 +18,7 @@ import { HierarchyResponse } from '../../api/model/hierarchyResponse'; import { CredentialService } from '../../shared/services/credential.service'; import { HierarchySuggestionsComponent } from './hierarchy-suggestions/hierarchy-suggestions.component'; import { HierarchySuggestion } from '../../api/model/hierarchySuggestion'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; const ORGANIZATION_URL_PARAM = 'orgUrl'; const ORGANIZATION_NAME_PARAM = 'orgName'; const ORGMINER_EXPANDED_PARAM = 'orgExpanded'; @@ -38,6 +39,7 @@ const CLASSIFIED_PAGES_PANEL_PARAM = 'classifiedPagesExpanded'; MatExpansionModule, MatIconModule, HierarchySuggestionsComponent, + PageContainerComponent, ], templateUrl: './hierarchy.component.html', styleUrl: './hierarchy.component.scss', diff --git a/webapp/src/app/modules/institution-projects/institution-projects.component.html b/webapp/src/app/modules/institution-projects/institution-projects.component.html index 41f85171..3f5a0e5f 100644 --- a/webapp/src/app/modules/institution-projects/institution-projects.component.html +++ b/webapp/src/app/modules/institution-projects/institution-projects.component.html @@ -1,8 +1,8 @@
-
-
Projekte
-

Übersicht der Projekte, die von der Institution durchgeführt werden.

-
+ diff --git a/webapp/src/app/modules/institution-projects/institution-projects.component.scss b/webapp/src/app/modules/institution-projects/institution-projects.component.scss index 2d0d7b0b..1343ea76 100644 --- a/webapp/src/app/modules/institution-projects/institution-projects.component.scss +++ b/webapp/src/app/modules/institution-projects/institution-projects.component.scss @@ -2,7 +2,7 @@ display: flex; flex-direction: column; gap: 1rem; - padding: 2rem; + padding: 0; } mat-expansion-panel { diff --git a/webapp/src/app/modules/institution-projects/institution-projects.component.ts b/webapp/src/app/modules/institution-projects/institution-projects.component.ts index 67bfcf66..1d52e845 100644 --- a/webapp/src/app/modules/institution-projects/institution-projects.component.ts +++ b/webapp/src/app/modules/institution-projects/institution-projects.component.ts @@ -33,6 +33,7 @@ import { LinkTabNavBarItem, } from '../../shared/ui/link-tab-nav-bar/link-tab-nav-bar.component'; import { OPEN_IN_NEW_ICON } from '../../shared/ui/icons'; +import { PageHeaderComponent } from '../../shared/ui/page-header/page-header.component'; type BundProjectRow = { id: string; @@ -62,6 +63,7 @@ type EuProjectRow = { MatInputModule, DatePipe, CurrencyPipe, + PageHeaderComponent, MatIconModule, MatButtonModule, InstitutionProjectsFundingGraphComponent, diff --git a/webapp/src/app/modules/institution-publications/institution-publications.component.html b/webapp/src/app/modules/institution-publications/institution-publications.component.html index 6228de7e..9fe43aaa 100644 --- a/webapp/src/app/modules/institution-publications/institution-publications.component.html +++ b/webapp/src/app/modules/institution-publications/institution-publications.component.html @@ -1,8 +1,8 @@
-
-
Publikationen
-

Übersicht der wissenschaftlichen Veröffentlichungen.

-
+ @if (canViewClassificationChart()) { diff --git a/webapp/src/app/modules/institution-publications/institution-publications.component.scss b/webapp/src/app/modules/institution-publications/institution-publications.component.scss index 55442f6c..5617c97d 100644 --- a/webapp/src/app/modules/institution-publications/institution-publications.component.scss +++ b/webapp/src/app/modules/institution-publications/institution-publications.component.scss @@ -2,7 +2,7 @@ display: flex; flex-direction: column; gap: 1rem; - padding: 2rem; + padding: 0; } mat-expansion-panel { diff --git a/webapp/src/app/modules/institution-publications/institution-publications.component.ts b/webapp/src/app/modules/institution-publications/institution-publications.component.ts index 0b46e75c..552dd406 100644 --- a/webapp/src/app/modules/institution-publications/institution-publications.component.ts +++ b/webapp/src/app/modules/institution-publications/institution-publications.component.ts @@ -12,6 +12,7 @@ import { PrimaryCategoryYearAggregationChartComponent } from '../../shared/ui/pr import { MatExpansionModule } from '@angular/material/expansion'; import { CommonModule } from '@angular/common'; import { ActivatedRoute } from '@angular/router'; +import { PageHeaderComponent } from '../../shared/ui/page-header/page-header.component'; @Component({ selector: 'app-institution-publications', @@ -22,6 +23,7 @@ import { ActivatedRoute } from '@angular/router'; PrimaryCategoryYearAggregationChartComponent, MatExpansionModule, CommonModule, + PageHeaderComponent, ], templateUrl: './institution-publications.component.html', styleUrl: './institution-publications.component.scss', diff --git a/webapp/src/app/modules/institution/components/institution-overview/institution-overview.component.scss b/webapp/src/app/modules/institution/components/institution-overview/institution-overview.component.scss index 746957bd..94118d6b 100644 --- a/webapp/src/app/modules/institution/components/institution-overview/institution-overview.component.scss +++ b/webapp/src/app/modules/institution/components/institution-overview/institution-overview.component.scss @@ -99,11 +99,12 @@ } .institution-name { - font-size: 1.6rem; - font-weight: 700; - color: var(--sg-text-primary); margin: 0; - line-height: 1.25; + color: var(--sg-text-primary); + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); } .type-badge { diff --git a/webapp/src/app/modules/institution/institution.component.html b/webapp/src/app/modules/institution/institution.component.html index f258e8f5..5ef100d9 100644 --- a/webapp/src/app/modules/institution/institution.component.html +++ b/webapp/src/app/modules/institution/institution.component.html @@ -1,7 +1,9 @@ -
- - -
- - - + +
+ + +
+ + + +
diff --git a/webapp/src/app/modules/institution/institution.component.scss b/webapp/src/app/modules/institution/institution.component.scss index 4d1beda5..d53add80 100644 --- a/webapp/src/app/modules/institution/institution.component.scss +++ b/webapp/src/app/modules/institution/institution.component.scss @@ -1,6 +1,6 @@ .institution-container { display: flex; flex-direction: column; - gap: 1rem; - margin: 1rem; + gap: 12px; + width: 100%; } diff --git a/webapp/src/app/modules/institution/institution.component.ts b/webapp/src/app/modules/institution/institution.component.ts index 6891599f..516003b8 100644 --- a/webapp/src/app/modules/institution/institution.component.ts +++ b/webapp/src/app/modules/institution/institution.component.ts @@ -12,6 +12,7 @@ import { PROJECT_ICON, PUBLICATION_ICON, } from '../../shared/ui/icons'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; @Component({ selector: 'app-institution', @@ -20,6 +21,7 @@ import { LinkTabNavBarComponent, MatTabsModule, RouterModule, + PageContainerComponent, ], templateUrl: './institution.component.html', styleUrl: './institution.component.scss', diff --git a/webapp/src/app/modules/institutions/institutions.component.html b/webapp/src/app/modules/institutions/institutions.component.html index 03d2d427..2dc57df2 100644 --- a/webapp/src/app/modules/institutions/institutions.component.html +++ b/webapp/src/app/modules/institutions/institutions.component.html @@ -1,18 +1,15 @@ -
-

Passende Institutionen finden

- - - + -
+ diff --git a/webapp/src/app/modules/institutions/institutions.component.scss b/webapp/src/app/modules/institutions/institutions.component.scss index ef8c12a0..e69de29b 100644 --- a/webapp/src/app/modules/institutions/institutions.component.scss +++ b/webapp/src/app/modules/institutions/institutions.component.scss @@ -1,6 +0,0 @@ -.content { - display: flex; - flex-direction: column; - gap: 1rem; - padding: 1rem; -} diff --git a/webapp/src/app/modules/institutions/institutions.component.ts b/webapp/src/app/modules/institutions/institutions.component.ts index 49022b02..ff7b42de 100644 --- a/webapp/src/app/modules/institutions/institutions.component.ts +++ b/webapp/src/app/modules/institutions/institutions.component.ts @@ -4,7 +4,6 @@ import { MatButtonModule } from '@angular/material/button'; import { MatCardModule } from '@angular/material/card'; import { RouterModule } from '@angular/router'; import { MatIconModule } from '@angular/material/icon'; -import { MatDividerModule } from '@angular/material/divider'; import { SelectorOption } from '../../shared/ui/query-param-selector/query-param-selector.component'; import { @@ -14,6 +13,7 @@ import { import { FilterObserver } from '../../shared/ui/selected-filters/selected-filters.component'; import { AppInstitutionCardComponent } from '../../shared/ui/app-institution-card/app-institution-card.component'; import { SEARCH_ICON } from '../../shared/ui/icons'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; @Component({ selector: 'app-institutions', @@ -21,10 +21,10 @@ import { SEARCH_ICON } from '../../shared/ui/icons'; MatButtonModule, MatCardModule, MatIconModule, - MatDividerModule, RouterModule, CardSearchComponent, AppInstitutionCardComponent, + PageContainerComponent, ], templateUrl: './institutions.component.html', styleUrl: './institutions.component.scss', diff --git a/webapp/src/app/modules/jobs/jobs.component.html b/webapp/src/app/modules/jobs/jobs.component.html index 21370cef..2d3532bb 100644 --- a/webapp/src/app/modules/jobs/jobs.component.html +++ b/webapp/src/app/modules/jobs/jobs.component.html @@ -1,13 +1,9 @@
- +
diff --git a/webapp/src/app/modules/jobs/jobs.component.scss b/webapp/src/app/modules/jobs/jobs.component.scss index 8f726798..a3b24bcb 100644 --- a/webapp/src/app/modules/jobs/jobs.component.scss +++ b/webapp/src/app/modules/jobs/jobs.component.scss @@ -5,34 +5,11 @@ padding: 24px; } -.page-header { - display: flex; - align-items: center; - justify-content: space-between; - gap: 16px; -} - .new-job-button { flex-shrink: 0; white-space: nowrap; } -h1, -p { - margin: 0; - color: var(--sg-text); -} - -.page-header h1 { - font-size: 26px; - font-weight: 700; -} - -.page-header p { - color: var(--sg-text-muted); - margin-top: 6px; -} - mat-card, mat-paginator { background-color: var(--sg-background); @@ -308,11 +285,6 @@ mat-paginator { padding: 16px; } - .page-header { - align-items: flex-start; - flex-direction: column; - } - .health-cards { flex-direction: column; } diff --git a/webapp/src/app/modules/jobs/jobs.component.ts b/webapp/src/app/modules/jobs/jobs.component.ts index d73b2752..babae066 100644 --- a/webapp/src/app/modules/jobs/jobs.component.ts +++ b/webapp/src/app/modules/jobs/jobs.component.ts @@ -68,6 +68,7 @@ import { REFRESH_ICON, STOP_ICON, } from '../../shared/ui/icons'; +import { PageHeaderComponent } from '../../shared/ui/page-header/page-header.component'; const MAX_IDLE_POLL_WAIT_MS = 60000; @@ -83,6 +84,7 @@ const MAX_IDLE_POLL_WAIT_MS = 60000; MatSnackBarModule, MatTooltipModule, DataTableComponent, + PageHeaderComponent, ], templateUrl: './jobs.component.html', styleUrl: './jobs.component.scss', diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.html b/webapp/src/app/modules/keywords-search/keywords-search.component.html index e6fdebcb..e51eecf5 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.html +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.html @@ -1,3 +1,6 @@ +
} +
diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.scss b/webapp/src/app/modules/keywords-search/keywords-search.component.scss index 470a8916..83253925 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.scss +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.scss @@ -14,7 +14,7 @@ $touch-target: 44px; display: flex; flex-direction: column; gap: clamp(0.5rem, 1.5vw, 0.75rem); - padding: clamp(0.5rem, 2vw, 1rem); + padding: 0; } .tab-content { @@ -448,7 +448,7 @@ mat-button-toggle-group { align-items: center; gap: 1rem; margin-top: 1rem; - padding: 0 1rem; + padding: 0; } .search-actions { diff --git a/webapp/src/app/modules/keywords-search/keywords-search.component.ts b/webapp/src/app/modules/keywords-search/keywords-search.component.ts index 005a9667..e34e3623 100644 --- a/webapp/src/app/modules/keywords-search/keywords-search.component.ts +++ b/webapp/src/app/modules/keywords-search/keywords-search.component.ts @@ -54,6 +54,7 @@ import { MatTooltipModule } from '@angular/material/tooltip'; import { A11yModule } from '@angular/cdk/a11y'; import { DomSanitizer } from '@angular/platform-browser'; import { SearchResultsPayload } from './search-results/search-results-state.service'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; import { ACCOUNT_TREE_ICON, CANCEL_ICON, @@ -94,6 +95,7 @@ type KeywordPatentLevel = 'broad' | 'coarse' | 'fine' | 'custom'; MatSlideToggleModule, MatSliderModule, FileUploadComponent, + PageContainerComponent, ], templateUrl: './keywords-search.component.html', styleUrl: './keywords-search.component.scss', diff --git a/webapp/src/app/modules/keywords-search/search-results/projects-results/projects-results.component.scss b/webapp/src/app/modules/keywords-search/search-results/projects-results/projects-results.component.scss index 9bd15288..43e4ee7d 100644 --- a/webapp/src/app/modules/keywords-search/search-results/projects-results/projects-results.component.scss +++ b/webapp/src/app/modules/keywords-search/search-results/projects-results/projects-results.component.scss @@ -1,5 +1,5 @@ .person-projects { - padding: 2rem; + padding: 0; } .description-container { diff --git a/webapp/src/app/modules/keywords-search/search-results/search-results.component.html b/webapp/src/app/modules/keywords-search/search-results/search-results.component.html index 65794279..ca21a63c 100644 --- a/webapp/src/app/modules/keywords-search/search-results/search-results.component.html +++ b/webapp/src/app/modules/keywords-search/search-results/search-results.component.html @@ -1,10 +1,10 @@ -
-
- -
+ @if (state.hasValidSearch()) { @@ -78,4 +78,4 @@ } -
+ diff --git a/webapp/src/app/modules/keywords-search/search-results/search-results.component.scss b/webapp/src/app/modules/keywords-search/search-results/search-results.component.scss index 61735b93..d9aa4eb6 100644 --- a/webapp/src/app/modules/keywords-search/search-results/search-results.component.scss +++ b/webapp/src/app/modules/keywords-search/search-results/search-results.component.scss @@ -11,27 +11,7 @@ $touch-target: 44px; .search-results-page { display: flex; flex-direction: column; - gap: 0.75rem; - padding: 0.75rem 1rem; -} - -.page-header { - display: flex; - align-items: flex-start; - gap: 0.75rem; - - h1 { - margin: 0; - font-size: clamp(1.2rem, 2vw, 1.6rem); - font-weight: 650; - color: var(--sg-text); - } - - p { - margin: 0.2rem 0 0; - color: var(--sg-text-muted); - font-size: 0.9rem; - } + gap: 12px; } /* ============================================================ diff --git a/webapp/src/app/modules/keywords-search/search-results/search-results.component.ts b/webapp/src/app/modules/keywords-search/search-results/search-results.component.ts index dded104e..b022d969 100644 --- a/webapp/src/app/modules/keywords-search/search-results/search-results.component.ts +++ b/webapp/src/app/modules/keywords-search/search-results/search-results.component.ts @@ -32,6 +32,7 @@ import { LinkTabNavBarComponent, LinkTabNavBarItem, } from '../../../shared/ui/link-tab-nav-bar/link-tab-nav-bar.component'; +import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component'; @Component({ selector: 'app-keywords-search-results', standalone: true, @@ -45,6 +46,7 @@ import { LinkTabNavBarComponent, MatSlideToggleModule, MatTooltipModule, + PageContainerComponent, ], providers: [SearchResultsStateService], templateUrl: './search-results.component.html', diff --git a/webapp/src/app/modules/news-detail/news-detail.component.html b/webapp/src/app/modules/news-detail/news-detail.component.html index 9a66f82c..43274825 100644 --- a/webapp/src/app/modules/news-detail/news-detail.component.html +++ b/webapp/src/app/modules/news-detail/news-detail.component.html @@ -1,3 +1,4 @@ +
-

{{ article.maintitle || 'Kein Titel' }}

+

{{ article.maintitle || 'Kein Titel' }}

@if (article.relevant === true) { @@ -259,3 +260,4 @@
}
+ diff --git a/webapp/src/app/modules/news-detail/news-detail.component.scss b/webapp/src/app/modules/news-detail/news-detail.component.scss index 9577c0be..8e76dd17 100644 --- a/webapp/src/app/modules/news-detail/news-detail.component.scss +++ b/webapp/src/app/modules/news-detail/news-detail.component.scss @@ -1,7 +1,6 @@ .detail-page { - max-width: 1200px; - margin: 0 auto; - padding: 28px 32px 64px; + width: 100%; + min-width: 0; } .back-link { @@ -82,9 +81,10 @@ main { .article-heading { margin: 0; - font-size: 28px; - font-weight: 700; - line-height: 1.3; + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); } .relevance-badge { diff --git a/webapp/src/app/modules/news-detail/news-detail.component.ts b/webapp/src/app/modules/news-detail/news-detail.component.ts index 680b6346..5fc675ba 100644 --- a/webapp/src/app/modules/news-detail/news-detail.component.ts +++ b/webapp/src/app/modules/news-detail/news-detail.component.ts @@ -35,6 +35,7 @@ import { SEARCH_OFF_ICON, TOPIC_ICON, } from '../../shared/ui/icons'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; interface MentionedPerson { name: string; @@ -73,6 +74,7 @@ interface NewsArticleDetail { RouterLink, LoadingComponent, HighlightedTextComponent, + PageContainerComponent, ], templateUrl: './news-detail.component.html', styleUrl: './news-detail.component.scss', diff --git a/webapp/src/app/modules/news/news.component.html b/webapp/src/app/modules/news/news.component.html index 0c841eb4..0c7f5788 100644 --- a/webapp/src/app/modules/news/news.component.html +++ b/webapp/src/app/modules/news/news.component.html @@ -1,9 +1,6 @@ -
- - + @if (article.snippet) { @@ -66,4 +63,4 @@ [noResultsTmp]="noResultsTmp" [cardMinWidth]="380" searchLabel="Nachrichten durchsuchen" /> -
+ diff --git a/webapp/src/app/modules/news/news.component.scss b/webapp/src/app/modules/news/news.component.scss index 14ecda37..3e29c6c2 100644 --- a/webapp/src/app/modules/news/news.component.scss +++ b/webapp/src/app/modules/news/news.component.scss @@ -1,26 +1,3 @@ -.page { - padding: 28px 32px 42px; - max-width: 100%; - margin: 0 auto; -} - -.page-header { - padding: 0 1rem; - margin-bottom: 10px; - - h1 { - margin: 0; - font-size: 26px; - font-weight: 700; - color: var(--sg-text); - } - - p { - margin: 4px 0 0; - color: var(--sg-text-muted); - font-size: 14px; - } -} .snippet { display: -webkit-box; @@ -75,9 +52,3 @@ $card-min-width: 380px; flex: 1; min-width: 0; } - -@media (max-width: 600px) { - .page { - padding: 16px; - } -} diff --git a/webapp/src/app/modules/news/news.component.ts b/webapp/src/app/modules/news/news.component.ts index 6a879f19..29d4d9e9 100644 --- a/webapp/src/app/modules/news/news.component.ts +++ b/webapp/src/app/modules/news/news.component.ts @@ -29,6 +29,7 @@ import { import { FilterCardComponent } from '../../shared/ui/filter-card/filter-card.component'; import { YearRangeSliderComponent } from '../../shared/ui/year-range-slider/year-range-slider.component'; import { CHECK_CIRCLE_ICON, SORT_ICON } from '../../shared/ui/icons'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; interface NewsArticle extends NewsArticleBase { author?: string | null; @@ -52,6 +53,7 @@ type SortOrder = 'desc' | 'asc'; FilterCardComponent, QueryParamSelectorComponent, YearRangeSliderComponent, + PageContainerComponent, ], templateUrl: './news.component.html', styleUrl: './news.component.scss', diff --git a/webapp/src/app/modules/organizations/organizations.component.html b/webapp/src/app/modules/organizations/organizations.component.html index 35ac82d2..eff3c2f9 100644 --- a/webapp/src/app/modules/organizations/organizations.component.html +++ b/webapp/src/app/modules/organizations/organizations.component.html @@ -1,21 +1,17 @@
- + + + diff --git a/webapp/src/app/modules/organizations/organizations.component.scss b/webapp/src/app/modules/organizations/organizations.component.scss index 8b595ba9..2aa1d28b 100644 --- a/webapp/src/app/modules/organizations/organizations.component.scss +++ b/webapp/src/app/modules/organizations/organizations.component.scss @@ -5,34 +5,10 @@ padding: 24px; } -.page-header { - display: flex; - flex-direction: column; - gap: 6px; -} - -.page-header-meta { - display: flex; - align-items: center; - justify-content: space-between; - gap: 16px; -} - -h1, -p { - margin: 0; - color: var(--sg-text); -} - -.page-header p, .table-header span { color: var(--sg-text-muted); } -.page-header p { - flex: 1 1 auto; -} - .status { display: inline-flex; align-items: center; @@ -55,10 +31,6 @@ p { padding: 16px; } - .page-header-meta { - align-items: flex-start; - flex-direction: column; - } } mat-card, diff --git a/webapp/src/app/modules/organizations/organizations.component.ts b/webapp/src/app/modules/organizations/organizations.component.ts index 808f04af..a3ef2bf8 100644 --- a/webapp/src/app/modules/organizations/organizations.component.ts +++ b/webapp/src/app/modules/organizations/organizations.component.ts @@ -35,6 +35,7 @@ import { DELETE_ICON, EDIT_ICON, } from '../../shared/ui/icons'; +import { PageHeaderComponent } from '../../shared/ui/page-header/page-header.component'; @Component({ selector: 'app-organizations', @@ -48,6 +49,7 @@ import { MatCardModule, StatusPipe, QueryParamPaginatorComponent, + PageHeaderComponent, ], templateUrl: './organizations.component.html', styleUrl: './organizations.component.scss', diff --git a/webapp/src/app/modules/patent-detail/patent-detail.component.html b/webapp/src/app/modules/patent-detail/patent-detail.component.html index 31fd1b09..e8211bbe 100644 --- a/webapp/src/app/modules/patent-detail/patent-detail.component.html +++ b/webapp/src/app/modules/patent-detail/patent-detail.component.html @@ -1,3 +1,4 @@ +
+
diff --git a/webapp/src/app/modules/patent-detail/patent-detail.component.scss b/webapp/src/app/modules/patent-detail/patent-detail.component.scss index b4504df9..90fd75f5 100644 --- a/webapp/src/app/modules/patent-detail/patent-detail.component.scss +++ b/webapp/src/app/modules/patent-detail/patent-detail.component.scss @@ -4,9 +4,8 @@ } .detail-page { - max-width: 1500px; - margin: 0 auto; - padding: 26px 32px 56px; + width: 100%; + min-width: 0; } .back-link { @@ -62,10 +61,12 @@ h1 { max-width: 920px; - margin: 20px 0 13px; - font-size: clamp(27px, 3vw, 42px); - line-height: 1.13; + margin: 12px 0; color: var(--sg-text); + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); } .meta-line { @@ -179,7 +180,9 @@ aside { .section-title h2 { margin: 0; - font-size: 16px; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); color: var(--sg-text); } diff --git a/webapp/src/app/modules/patent-detail/patent-detail.component.ts b/webapp/src/app/modules/patent-detail/patent-detail.component.ts index edb1a54b..b2eee2dc 100644 --- a/webapp/src/app/modules/patent-detail/patent-detail.component.ts +++ b/webapp/src/app/modules/patent-detail/patent-detail.component.ts @@ -42,6 +42,7 @@ import { isLongDescription, patentExternalLinks, } from './patent-detail.utils'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; @Component({ selector: 'app-patent-detail', @@ -51,6 +52,7 @@ import { RouterLink, TopicChipComponent, LoadingComponent, + PageContainerComponent, ], templateUrl: './patent-detail.component.html', styleUrl: './patent-detail.component.scss', diff --git a/webapp/src/app/modules/patents/patents.component.html b/webapp/src/app/modules/patents/patents.component.html index d35f0ba1..bc0275f1 100644 --- a/webapp/src/app/modules/patents/patents.component.html +++ b/webapp/src/app/modules/patents/patents.component.html @@ -1,18 +1,21 @@ -
-

Patente

- - + + @if (showDetail && selectedPatent) { + + } @if (error) {

Fehler beim Laden der Patente.

} @else if (showDetail && selectedPatent) {
- - -

{{ selectedPatent.title ?? selectedPatent.patent_id }}

-
@for (row of getPatentMetadataRows(selectedPatent); track row.label) {
@@ -332,4 +335,4 @@ } -
+ diff --git a/webapp/src/app/modules/patents/patents.component.scss b/webapp/src/app/modules/patents/patents.component.scss index d94f973e..48e1fee8 100644 --- a/webapp/src/app/modules/patents/patents.component.scss +++ b/webapp/src/app/modules/patents/patents.component.scss @@ -1,20 +1,4 @@ -.content { - display: flex; - flex-direction: column; - gap: 1rem; - padding: 1rem; -} - -h1 { - margin: 0; - font-size: 2rem; - font-weight: 700; - padding: 1rem 0 0; - color: var(--sg-text); -} - .search-and-filter { - padding: 0 1rem; display: flex; flex-direction: column; gap: 0.5rem; @@ -25,7 +9,7 @@ h1 { align-items: stretch; flex-wrap: wrap; gap: 1.5rem; - padding: 0 1rem 1rem; + padding: 0 0 12px; } .patent-year-filter { @@ -45,7 +29,7 @@ h1 { display: flex; align-items: center; gap: 12px; - padding: 24px 1rem; + padding: 16px 0; color: var(--sg-text-muted); font-size: 14px; @@ -56,9 +40,9 @@ h1 { .cards { display: grid; - gap: 1.5rem; - grid-template-columns: repeat(4, 1fr); - padding: 0 1rem; + gap: 16px; + grid-template-columns: repeat(4, minmax(0, 1fr)); + padding: 0; } @media (max-width: 900px) { diff --git a/webapp/src/app/modules/patents/patents.component.ts b/webapp/src/app/modules/patents/patents.component.ts index e13541cd..758f23ca 100644 --- a/webapp/src/app/modules/patents/patents.component.ts +++ b/webapp/src/app/modules/patents/patents.component.ts @@ -23,6 +23,7 @@ import { } from '../../shared/ui/card-search/card-search.component'; import { FilterCardComponent } from '../../shared/ui/filter-card/filter-card.component'; import { HELP_ICON, PATENT_ICON } from '../../shared/ui/icons'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; type PatentSource = 'EPO' | 'USPTO'; @@ -55,6 +56,7 @@ const MIN_YEAR = 1978; YearRangeSliderComponent, CardSearchComponent, FilterCardComponent, + PageContainerComponent, ], templateUrl: './patents.component.html', styleUrl: './patents.component.scss', diff --git a/webapp/src/app/modules/person-company-connections/person-company-connections.component.html b/webapp/src/app/modules/person-company-connections/person-company-connections.component.html index e26fb5e3..bf492bec 100644 --- a/webapp/src/app/modules/person-company-connections/person-company-connections.component.html +++ b/webapp/src/app/modules/person-company-connections/person-company-connections.component.html @@ -18,13 +18,12 @@
} @else if (data) {
- + @if (data.common_name_warning) {
diff --git a/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss b/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss index d9a7afb7..6918a37f 100644 --- a/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss +++ b/webapp/src/app/modules/person-company-connections/person-company-connections.component.scss @@ -25,21 +25,11 @@ $text-muted: var(--sg-text-muted); padding: 20px 28px 32px; } -.page-header { - h2 { - margin: 0 0 6px; - color: $text-main; - font-size: 20px; - font-weight: 700; - line-height: 1.25; - } - - p { - margin: 0; - color: $text-muted; - font-size: 14px; - line-height: 1.4; - } +.page-meta { + margin: 6px 0 0; + color: $text-muted; + font-size: 14px; + line-height: 1.4; } .state { diff --git a/webapp/src/app/modules/person-company-connections/person-company-connections.component.ts b/webapp/src/app/modules/person-company-connections/person-company-connections.component.ts index 153221b0..5346a585 100644 --- a/webapp/src/app/modules/person-company-connections/person-company-connections.component.ts +++ b/webapp/src/app/modules/person-company-connections/person-company-connections.component.ts @@ -35,6 +35,7 @@ import { NO_ACCOUNTS_ICON, OPEN_IN_NEW_ICON, } from '../../shared/ui/icons'; +import { PageHeaderComponent } from '../../shared/ui/page-header/page-header.component'; interface RoleLegendItem { role: string; @@ -60,6 +61,7 @@ interface GraphSymbols { MatTooltip, RouterModule, LoadingComponent, + PageHeaderComponent, ], templateUrl: './person-company-connections.component.html', styleUrl: './person-company-connections.component.scss', diff --git a/webapp/src/app/modules/person-list/person-list.component.html b/webapp/src/app/modules/person-list/person-list.component.html index c6fe0d23..5baa9639 100644 --- a/webapp/src/app/modules/person-list/person-list.component.html +++ b/webapp/src/app/modules/person-list/person-list.component.html @@ -1,32 +1,25 @@ -
+ + @if (searchValue()) { +
+
+ Aktive Suche + „{{ searchValue() }}“ +
+ +
+ } +
- - @if (activeFilters.length) {
@@ -403,3 +396,4 @@
+
diff --git a/webapp/src/app/modules/person-list/person-list.component.scss b/webapp/src/app/modules/person-list/person-list.component.scss index d6616b57..2a92d720 100644 --- a/webapp/src/app/modules/person-list/person-list.component.scss +++ b/webapp/src/app/modules/person-list/person-list.component.scss @@ -1,7 +1,6 @@ .person-list-page { - padding: 24px; - background: var(--sg-background); - min-height: 100vh; + width: 100%; + min-width: 0; } .layout-container { @@ -9,19 +8,16 @@ grid-template-columns: 1fr 360px; gap: 24px; align-items: start; - max-width: 1400px; - margin: 0 auto; + width: 100%; } // Shared flex layouts -.page-header, .sidebar-header, .toolbar { display: flex; align-items: center; } -.page-header, .toolbar { justify-content: space-between; } @@ -71,23 +67,6 @@ min-width: 0; } -.page-header { - gap: 16px; - - h1 { - margin: 0; - font-size: 26px; - font-weight: 700; - color: var(--sg-text); - } - - p { - margin: 4px 0 0; - color: var(--sg-text-muted); - font-size: 14px; - } -} - .selection-summary { gap: 12px; padding: 8px 12px; @@ -482,15 +461,6 @@ mat-paginator { } @media (max-width: 640px) { - .person-list-page { - padding: 12px; - } - - .page-header { - flex-direction: column; - align-items: flex-start; - } - .toolbar { flex-direction: column; align-items: flex-start; diff --git a/webapp/src/app/modules/person-list/person-list.component.ts b/webapp/src/app/modules/person-list/person-list.component.ts index b0e030f1..fc45a259 100644 --- a/webapp/src/app/modules/person-list/person-list.component.ts +++ b/webapp/src/app/modules/person-list/person-list.component.ts @@ -47,6 +47,7 @@ import { BookmarkService } from '../../shared/services/bookmark.service'; import { ComponentTooltipDirective } from '../../directives/component-tooltip.directive'; import { AppTopicTooltipComponent } from '../../shared/ui/app-topic-tooltip/app-topic-tooltip.component'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; import { CLOSE_ICON, FILTER_ICON, @@ -79,6 +80,7 @@ type InstitutionYearFilterMode = 'in' | 'from' | 'between'; CountryFlagComponent, SkTextDirective, ComponentTooltipDirective, + PageContainerComponent, ], templateUrl: './person-list.component.html', styleUrl: './person-list.component.scss', diff --git a/webapp/src/app/modules/person-network/person-network.component.scss b/webapp/src/app/modules/person-network/person-network.component.scss index aeea97f4..3ea0b1e7 100644 --- a/webapp/src/app/modules/person-network/person-network.component.scss +++ b/webapp/src/app/modules/person-network/person-network.component.scss @@ -1,7 +1,7 @@ .content { display: flex; flex-direction: column; - padding: 2rem; + padding: 0; gap: 1rem; } diff --git a/webapp/src/app/modules/person-patents/person-patents.component.scss b/webapp/src/app/modules/person-patents/person-patents.component.scss index 2386e13e..de1cc1d5 100644 --- a/webapp/src/app/modules/person-patents/person-patents.component.scss +++ b/webapp/src/app/modules/person-patents/person-patents.component.scss @@ -4,7 +4,7 @@ } .patents-container { - padding: 16px; + padding: 0; display: flex; flex-direction: column; gap: 16px; diff --git a/webapp/src/app/modules/person/person.component.html b/webapp/src/app/modules/person/person.component.html index 4e84caa0..27f9bec5 100644 --- a/webapp/src/app/modules/person/person.component.html +++ b/webapp/src/app/modules/person/person.component.html @@ -1,3 +1,4 @@ + @if (!isPersonLoading()) {
@@ -179,3 +180,4 @@
+ diff --git a/webapp/src/app/modules/person/person.component.scss b/webapp/src/app/modules/person/person.component.scss index d3cb6da0..538226ca 100644 --- a/webapp/src/app/modules/person/person.component.scss +++ b/webapp/src/app/modules/person/person.component.scss @@ -11,7 +11,7 @@ 'interesting bio'; align-items: start; gap: 24px 40px; - padding: 28px 32px 24px; + padding: 20px 24px; border-bottom: 1px solid var(--sg-border); background: var(--sg-background); } @@ -65,9 +65,10 @@ .name-line h1 { margin: 0; - font-size: 24px; - line-height: 1.15; - font-weight: 700; + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); } .profile-bookmark-button { @@ -279,7 +280,7 @@ } .person-tabs { - padding: 0 32px; + padding: 0; } .person-panel { @@ -312,7 +313,7 @@ } .person-tabs { - padding: 0 16px; + padding: 0; overflow-x: auto; } } @@ -359,7 +360,7 @@ } .description-container { - margin: 3rem 3rem 2rem 3rem; + margin: 16px 0; display: flex; flex-direction: column; gap: 0.5rem; @@ -376,5 +377,5 @@ } .content { - margin: 1rem 4rem; + margin: 0; } diff --git a/webapp/src/app/modules/person/person.component.ts b/webapp/src/app/modules/person/person.component.ts index e2b7853d..c096b160 100644 --- a/webapp/src/app/modules/person/person.component.ts +++ b/webapp/src/app/modules/person/person.component.ts @@ -71,6 +71,7 @@ import { TRENDING_UP_ICON, VERIFIED_ICON, } from '../../shared/ui/icons'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; @Component({ selector: 'app-person', @@ -87,6 +88,7 @@ import { LinkTabNavBarComponent, AppInstitutionChipComponent, ComponentTooltipDirective, + PageContainerComponent, ], templateUrl: './person.component.html', styleUrl: './person.component.scss', diff --git a/webapp/src/app/modules/projects/bund-details/bund-details.component.html b/webapp/src/app/modules/projects/bund-details/bund-details.component.html index 9545ae61..164632af 100644 --- a/webapp/src/app/modules/projects/bund-details/bund-details.component.html +++ b/webapp/src/app/modules/projects/bund-details/bund-details.component.html @@ -1,3 +1,4 @@ +
+ diff --git a/webapp/src/app/modules/projects/bund-details/bund-details.component.scss b/webapp/src/app/modules/projects/bund-details/bund-details.component.scss index 6790faa9..dbea72d3 100644 --- a/webapp/src/app/modules/projects/bund-details/bund-details.component.scss +++ b/webapp/src/app/modules/projects/bund-details/bund-details.component.scss @@ -1,7 +1,6 @@ .detail-page { - padding: 28px 32px 42px; - max-width: 100%; - margin: 0 auto; + width: 100%; + min-width: 0; } .page-header { @@ -129,10 +128,11 @@ h1 { margin: 0 0 8px; - font-size: 26px; - line-height: 1.3; - font-weight: 700; color: var(--sg-text); + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); } .project-reference { @@ -241,8 +241,9 @@ h1 { .section-header h2 { margin: 0; - font-size: 16px; - font-weight: 600; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); color: var(--sg-text); } diff --git a/webapp/src/app/modules/projects/bund-details/bund-details.component.ts b/webapp/src/app/modules/projects/bund-details/bund-details.component.ts index bb9904de..ed0573df 100644 --- a/webapp/src/app/modules/projects/bund-details/bund-details.component.ts +++ b/webapp/src/app/modules/projects/bund-details/bund-details.component.ts @@ -23,6 +23,7 @@ import { PAID_ICON, PERSONS_ICON, } from '../../../shared/ui/icons'; +import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component'; export interface InstitutionEntry { label: string; @@ -36,6 +37,7 @@ export interface InstitutionEntry { MatCardModule, MatIconModule, ProjectOaTopicsComponent, + PageContainerComponent, ], templateUrl: './bund-details.component.html', styleUrl: './bund-details.component.scss', diff --git a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.html b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.html index 7b0c76e1..ed0f3af5 100644 --- a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.html +++ b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.html @@ -1,3 +1,4 @@ +
+ diff --git a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.scss b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.scss index d4a9a328..c3a6e20c 100644 --- a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.scss +++ b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.scss @@ -1,7 +1,6 @@ .detail-page { - padding: 28px 32px 42px; - max-width: 100%; - margin: 0 auto; + width: 100%; + min-width: 0; } .page-header { @@ -93,10 +92,11 @@ h1 { margin: 0 0 8px; - font-size: 26px; - line-height: 1.3; - font-weight: 700; color: var(--sg-text); + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); } .project-identifier { @@ -217,8 +217,9 @@ h1 { .section-header h2 { margin: 0; - font-size: 16px; - font-weight: 600; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); color: var(--sg-text); } diff --git a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.ts b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.ts index 975e37fb..7e66404c 100644 --- a/webapp/src/app/modules/projects/dfg-details/dfg-details.component.ts +++ b/webapp/src/app/modules/projects/dfg-details/dfg-details.component.ts @@ -32,6 +32,7 @@ import { PUBLIC_ICON, PUBLICATION_ICON, } from '../../../shared/ui/icons'; +import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component'; @Component({ selector: 'app-dfg-details', @@ -42,6 +43,7 @@ import { MatIconModule, ProjectOaTopicsComponent, DfgClassificationComponent, + PageContainerComponent, ], templateUrl: './dfg-details.component.html', styleUrl: './dfg-details.component.scss', diff --git a/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.scss b/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.scss index b990d794..9cd74e69 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.scss +++ b/webapp/src/app/modules/projects/eu-cordis-details/deliverables-cards/deliverables-cards.component.scss @@ -104,7 +104,8 @@ .section-header h2 { margin: 0; - font-size: 18px; - font-weight: 600; color: var(--sg-text); + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); } diff --git a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.html b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.html index 7fd3fa84..bd7ab3b0 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.html +++ b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.html @@ -1,3 +1,4 @@ +
+ diff --git a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.scss b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.scss index 0f33615a..9fb4e9e3 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.scss +++ b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.scss @@ -1,7 +1,6 @@ .detail-page { - padding: 28px 32px 42px; - max-width: 100%; - margin: 0 auto; + width: 100%; + min-width: 0; } .page-header { display: flex; @@ -60,10 +59,11 @@ } h1 { margin: 0 0 8px; - font-size: 26px; - line-height: 1.3; - font-weight: 700; color: var(--sg-text); + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); } .project-framework { margin: 0 0 16px; @@ -192,8 +192,9 @@ h1 { } .section-header h2 { margin: 0; - font-size: 18px; - font-weight: 600; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); color: var(--sg-text); } .count-badge { diff --git a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.ts b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.ts index 8c1d738d..32623fc3 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.ts +++ b/webapp/src/app/modules/projects/eu-cordis-details/eu-details.component.ts @@ -41,6 +41,7 @@ import { TAG_ICON, TOPIC_ICON, } from '../../../shared/ui/icons'; +import { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component'; export type TabType = | 'overview' @@ -67,6 +68,7 @@ export type TabType = PatentsCardsComponent, DeliverablesCardsComponent, CurrencyPipe, + PageContainerComponent, ], templateUrl: './eu-details.component.html', styleUrl: './eu-details.component.scss', diff --git a/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.scss b/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.scss index 44349ce4..44b77297 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.scss +++ b/webapp/src/app/modules/projects/eu-cordis-details/organizations-table/organizations-table.component.scss @@ -16,9 +16,10 @@ h2 { margin: 0; - font-size: 18px; - font-weight: 600; color: var(--sg-text); + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); } } diff --git a/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.scss b/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.scss index bc6a551d..dc73c4d2 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.scss +++ b/webapp/src/app/modules/projects/eu-cordis-details/patents-cards/patents-cards.component.scss @@ -15,9 +15,10 @@ .section-header h2 { margin: 0; - font-size: 18px; - font-weight: 600; color: var(--sg-text); + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); } // IPRs .iprs-list { diff --git a/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.scss b/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.scss index 18be839d..725d4d0f 100644 --- a/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.scss +++ b/webapp/src/app/modules/projects/eu-cordis-details/publications-table/publications-table.component.scss @@ -22,9 +22,10 @@ h2 { margin: 0; - font-size: 18px; - font-weight: 600; color: var(--sg-text); + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); } } diff --git a/webapp/src/app/modules/projects/projects.component.html b/webapp/src/app/modules/projects/projects.component.html index e5b53ca6..d7ae2906 100644 --- a/webapp/src/app/modules/projects/projects.component.html +++ b/webapp/src/app/modules/projects/projects.component.html @@ -1,7 +1,6 @@ -
-

Passende Projekte finden

- - + -
+ diff --git a/webapp/src/app/modules/projects/projects.component.scss b/webapp/src/app/modules/projects/projects.component.scss index cc146f5e..705b88bf 100644 --- a/webapp/src/app/modules/projects/projects.component.scss +++ b/webapp/src/app/modules/projects/projects.component.scss @@ -1,13 +1,6 @@ -.content { - display: flex; - flex-direction: column; - gap: 1rem; - padding: 1rem; -} - .additional-filters { display: flex; - padding: 0 1rem; + padding: 0; app-filter-card { min-height: 90px; diff --git a/webapp/src/app/modules/projects/projects.component.ts b/webapp/src/app/modules/projects/projects.component.ts index d76f2d45..cdf58780 100644 --- a/webapp/src/app/modules/projects/projects.component.ts +++ b/webapp/src/app/modules/projects/projects.component.ts @@ -1,6 +1,5 @@ import { Component, computed, input, signal } from '@angular/core'; import { FundingProjectPage, ProjectType } from '../../api'; -import { MatDividerModule } from '@angular/material/divider'; import { MatIconModule } from '@angular/material/icon'; import { MatCardModule } from '@angular/material/card'; import { ActivatedRoute, Router, RouterModule } from '@angular/router'; @@ -16,11 +15,11 @@ import { import { FilterObserver } from '../../shared/ui/selected-filters/selected-filters.component'; import { FilterCardComponent } from '../../shared/ui/filter-card/filter-card.component'; import { SEARCH_ICON } from '../../shared/ui/icons'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; @Component({ selector: 'app-projects', imports: [ - MatDividerModule, MatIconModule, MatCardModule, RouterModule, @@ -29,6 +28,7 @@ import { SEARCH_ICON } from '../../shared/ui/icons'; CardSearchComponent, AppProjectCardComponent, FilterCardComponent, + PageContainerComponent, ], templateUrl: './projects.component.html', styleUrl: './projects.component.scss', diff --git a/webapp/src/app/modules/publication-detail/publication-detail.component.html b/webapp/src/app/modules/publication-detail/publication-detail.component.html index e2bcdde9..5daa523b 100644 --- a/webapp/src/app/modules/publication-detail/publication-detail.component.html +++ b/webapp/src/app/modules/publication-detail/publication-detail.component.html @@ -1,3 +1,4 @@ +
+
diff --git a/webapp/src/app/modules/publication-detail/publication-detail.component.scss b/webapp/src/app/modules/publication-detail/publication-detail.component.scss index 985c2efd..3416b0fc 100644 --- a/webapp/src/app/modules/publication-detail/publication-detail.component.scss +++ b/webapp/src/app/modules/publication-detail/publication-detail.component.scss @@ -4,9 +4,8 @@ } .detail-page { - max-width: 1500px; - margin: 0 auto; - padding: 26px 32px 56px; + width: 100%; + min-width: 0; } .back-link { @@ -62,10 +61,12 @@ h1 { max-width: 920px; - margin: 20px 0 13px; - font-size: clamp(27px, 3vw, 42px); - line-height: 1.13; + margin: 12px 0; color: var(--sg-text); + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); } .author-line { @@ -269,7 +270,9 @@ aside { .section-title h2 { margin: 0; - font-size: 16px; + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + line-height: var(--sg-section-title-line-height, 1.3); color: var(--sg-text); } diff --git a/webapp/src/app/modules/publication-detail/publication-detail.component.ts b/webapp/src/app/modules/publication-detail/publication-detail.component.ts index 30e2c601..892e9774 100644 --- a/webapp/src/app/modules/publication-detail/publication-detail.component.ts +++ b/webapp/src/app/modules/publication-detail/publication-detail.component.ts @@ -23,6 +23,7 @@ import { WorkTypePipe } from '../../shared/pipes/work-type.pipe'; import { LanguageCodePipe } from '../../shared/pipes/language-code.pipe'; import { WorkPrimaryCategoryPipe } from '../../shared/pipes/work-primary-category.pipe'; import { ResearchProfileComponent } from './research-profile/research-profile.component'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; import { ARROW_BACK_ICON, CHEVRON_LEFT_ICON, @@ -75,6 +76,7 @@ interface InstitutionDetail { ResearchProfileComponent, CountryFlagComponent, LoadingComponent, + PageContainerComponent, ], templateUrl: './publication-detail.component.html', styleUrl: './publication-detail.component.scss', diff --git a/webapp/src/app/modules/publications/publications.component.html b/webapp/src/app/modules/publications/publications.component.html index 80e32d3a..a0bcfde0 100644 --- a/webapp/src/app/modules/publications/publications.component.html +++ b/webapp/src/app/modules/publications/publications.component.html @@ -1,8 +1,6 @@ -
-

Passende Publikationen finden

- - - + -
+
@if (topic(); as topic) { -
-

{{ topic.display_name }}

- {{ subtitle() }} -
-

{{ description() }}

+

{{ description() }}

@@ -37,3 +34,4 @@
+ diff --git a/webapp/src/app/modules/topic/topic.component.scss b/webapp/src/app/modules/topic/topic.component.scss index 4e474fb4..e0e3f9fc 100644 --- a/webapp/src/app/modules/topic/topic.component.scss +++ b/webapp/src/app/modules/topic/topic.component.scss @@ -10,16 +10,23 @@ var(--sg-color-mix-base) ); - padding: 2rem; + padding: 16px; display: flex; flex-direction: column; - gap: 1.5rem; + gap: 12px; background-color: var(--topic-background); + border-radius: var(--sg-radius-sm); --mat-divider-color: var(--topic-border); } .outlet-container { - margin: 2rem; + margin-top: 16px; +} + +.topic-description { + max-width: 90ch; + margin: 0; + color: var(--sg-text-muted); } .subtitle { diff --git a/webapp/src/app/modules/topic/topic.component.ts b/webapp/src/app/modules/topic/topic.component.ts index d599ed05..503cc701 100644 --- a/webapp/src/app/modules/topic/topic.component.ts +++ b/webapp/src/app/modules/topic/topic.component.ts @@ -11,6 +11,7 @@ import { LinkTabNavBarComponent, LinkTabNavBarItem, } from '../../shared/ui/link-tab-nav-bar/link-tab-nav-bar.component'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; @Component({ host: { @@ -24,6 +25,7 @@ import { MatIconModule, DecimalPipe, LinkTabNavBarComponent, + PageContainerComponent, ], templateUrl: './topic.component.html', styleUrl: './topic.component.scss', diff --git a/webapp/src/app/modules/topics/topics.component.html b/webapp/src/app/modules/topics/topics.component.html index c0c6ff23..6412f86d 100644 --- a/webapp/src/app/modules/topics/topics.component.html +++ b/webapp/src/app/modules/topics/topics.component.html @@ -1,21 +1,18 @@ -
-

Passende Themen finden

- - - + -
+ diff --git a/webapp/src/app/modules/topics/topics.component.scss b/webapp/src/app/modules/topics/topics.component.scss index ef8c12a0..e69de29b 100644 --- a/webapp/src/app/modules/topics/topics.component.scss +++ b/webapp/src/app/modules/topics/topics.component.scss @@ -1,6 +0,0 @@ -.content { - display: flex; - flex-direction: column; - gap: 1rem; - padding: 1rem; -} diff --git a/webapp/src/app/modules/topics/topics.component.ts b/webapp/src/app/modules/topics/topics.component.ts index fe0f1a4d..3e097884 100644 --- a/webapp/src/app/modules/topics/topics.component.ts +++ b/webapp/src/app/modules/topics/topics.component.ts @@ -3,17 +3,21 @@ import { CardSearchComponent, Page, } from '../../shared/ui/card-search/card-search.component'; -import { MatDividerModule } from '@angular/material/divider'; import { AppTopicCardComponent } from '../../shared/ui/app-topic-card/app-topic-card.component'; import { SortDirection, TopicPageV2, TopicSortBy } from '../../api'; import { FilterObserver } from '../../shared/ui/selected-filters/selected-filters.component'; import { topicQueryParamKeys } from '../../resolvers/topic-page.resolver'; import { SelectorOption } from '../../shared/ui/query-param-selector/query-param-selector.component'; import { SEARCH_ICON } from '../../shared/ui/icons'; +import { PageContainerComponent } from '../../shared/ui/page-container/page-container.component'; @Component({ selector: 'app-topics', - imports: [CardSearchComponent, MatDividerModule, AppTopicCardComponent], + imports: [ + CardSearchComponent, + AppTopicCardComponent, + PageContainerComponent, + ], templateUrl: './topics.component.html', styleUrl: './topics.component.scss', }) diff --git a/webapp/src/app/shared/ui/card-search/card-search.component.scss b/webapp/src/app/shared/ui/card-search/card-search.component.scss index 23ddbd45..8f0fb728 100644 --- a/webapp/src/app/shared/ui/card-search/card-search.component.scss +++ b/webapp/src/app/shared/ui/card-search/card-search.component.scss @@ -8,7 +8,6 @@ display: flex; flex-direction: row; gap: 1rem; - padding: 0rem 1rem; } .card-search-results { @@ -31,13 +30,11 @@ // auto-fill (not auto-fit) keeps empty tracks reserved, so a single result // stays card-width instead of stretching to fill the whole row. grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width), 1fr)); - padding: 0 1rem; } .pagination { display: flex; justify-content: end; - padding: 0rem 1rem; } .no-results { diff --git a/webapp/src/app/shared/ui/page-container/page-container.component.html b/webapp/src/app/shared/ui/page-container/page-container.component.html new file mode 100644 index 00000000..af35f01e --- /dev/null +++ b/webapp/src/app/shared/ui/page-container/page-container.component.html @@ -0,0 +1,15 @@ +
+ @if (title() || subtitle() || eyebrow()) { + + + + + + } +
+ +
+
diff --git a/webapp/src/app/shared/ui/page-container/page-container.component.scss b/webapp/src/app/shared/ui/page-container/page-container.component.scss new file mode 100644 index 00000000..8528499d --- /dev/null +++ b/webapp/src/app/shared/ui/page-container/page-container.component.scss @@ -0,0 +1,23 @@ +:host { + box-sizing: border-box; + display: block; + width: 100%; + min-width: 0; +} + +.page-container { + box-sizing: border-box; + display: flex; + width: 100%; + min-width: 0; + flex-direction: column; + gap: 14px; + padding: clamp(8px, 1.4vw, 18px); +} + +.page-container__content { + display: flex; + min-width: 0; + flex-direction: column; + gap: 12px; +} diff --git a/webapp/src/app/shared/ui/page-container/page-container.component.ts b/webapp/src/app/shared/ui/page-container/page-container.component.ts new file mode 100644 index 00000000..f0f52155 --- /dev/null +++ b/webapp/src/app/shared/ui/page-container/page-container.component.ts @@ -0,0 +1,16 @@ +import { Component, input } from '@angular/core'; +import { PageHeaderComponent } from '../page-header/page-header.component'; + +/** Shared full-width page frame with a consistent page heading. */ +@Component({ + selector: 'app-page-container', + standalone: true, + imports: [PageHeaderComponent], + templateUrl: './page-container.component.html', + styleUrl: './page-container.component.scss', +}) +export class PageContainerComponent { + readonly title = input(null); + readonly subtitle = input(null); + readonly eyebrow = input(null); +} diff --git a/webapp/src/app/shared/ui/page-header/page-header.component.html b/webapp/src/app/shared/ui/page-header/page-header.component.html new file mode 100644 index 00000000..052708dc --- /dev/null +++ b/webapp/src/app/shared/ui/page-header/page-header.component.html @@ -0,0 +1,27 @@ + diff --git a/webapp/src/app/shared/ui/page-header/page-header.component.scss b/webapp/src/app/shared/ui/page-header/page-header.component.scss new file mode 100644 index 00000000..b3dd78b3 --- /dev/null +++ b/webapp/src/app/shared/ui/page-header/page-header.component.scss @@ -0,0 +1,81 @@ +:host { + box-sizing: border-box; + display: block; + width: 100%; + min-width: 0; +} + +.page-header { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 16px; + width: 100%; +} + +.page-header__copy { + min-width: 0; +} + +.page-header__eyebrow { + margin: 0 0 6px; + color: var(--sg-text-soft); + font-size: 11px; + font-weight: 600; + letter-spacing: 0.12em; + line-height: 1.3; + text-transform: uppercase; +} + +.page-header__title { + margin: 0; + color: var(--sg-text); + font-size: var(--sg-page-title-size, clamp(23px, 2vw, 28px)); + font-weight: var(--sg-page-title-weight, 700); + letter-spacing: var(--sg-page-title-letter-spacing, -0.02em); + line-height: var(--sg-page-title-line-height, 1.18); +} + +h2.page-header__title { + font-size: var(--sg-section-title-size, clamp(17px, 1.3vw, 19px)); + font-weight: var(--sg-section-title-weight, 700); + letter-spacing: var(--sg-section-title-letter-spacing, -0.01em); + line-height: var(--sg-section-title-line-height, 1.3); +} + +h3.page-header__title { + font-size: 16px; + font-weight: 700; + letter-spacing: 0; + line-height: 1.35; +} + +.page-header__subtitle { + max-width: 90ch; + margin: 6px 0 0; + color: var(--sg-text-muted); + font-size: 14px; + line-height: 1.5; +} + +.page-header__actions { + display: flex; + flex: 0 0 auto; + align-items: center; + justify-content: flex-end; +} + +@media (max-width: 640px) { + .page-header { + flex-direction: column; + gap: 10px; + } + + .page-header__actions { + justify-content: flex-start; + } + + h1.page-header__title { + font-size: 23px; + } +} diff --git a/webapp/src/app/shared/ui/page-header/page-header.component.ts b/webapp/src/app/shared/ui/page-header/page-header.component.ts new file mode 100644 index 00000000..4e74c873 --- /dev/null +++ b/webapp/src/app/shared/ui/page-header/page-header.component.ts @@ -0,0 +1,15 @@ +import { Component, input } from '@angular/core'; + +/** Shared heading block for pages and page sections. */ +@Component({ + selector: 'app-page-header', + standalone: true, + templateUrl: './page-header.component.html', + styleUrl: './page-header.component.scss', +}) +export class PageHeaderComponent { + readonly title = input(null); + readonly subtitle = input(null); + readonly eyebrow = input(null); + readonly level = input<1 | 2 | 3>(1); +} diff --git a/webapp/src/styles.scss b/webapp/src/styles.scss index 1885b80f..a0eb6b7c 100644 --- a/webapp/src/styles.scss +++ b/webapp/src/styles.scss @@ -129,6 +129,16 @@ body { --sg-radius-md: 12px; --sg-radius-lg: 18px; + /* Shared heading scale */ + --sg-page-title-size: clamp(23px, 2vw, 28px); + --sg-page-title-weight: 700; + --sg-page-title-line-height: 1.18; + --sg-page-title-letter-spacing: -0.02em; + --sg-section-title-size: clamp(17px, 1.3vw, 19px); + --sg-section-title-weight: 700; + --sg-section-title-line-height: 1.3; + --sg-section-title-letter-spacing: -0.01em; + --sg-blue-highlight: #3d7cff; /* Backdrop for a keyword match that resolved to no topic. Topic-bound matches carry their topic's colour instead. */