diff --git a/service/scripts/orgminer_pipeline/pipeline_config.json b/service/scripts/orgminer_pipeline/pipeline_config.json index 6ab783d6..33189288 100644 --- a/service/scripts/orgminer_pipeline/pipeline_config.json +++ b/service/scripts/orgminer_pipeline/pipeline_config.json @@ -32,7 +32,8 @@ "www.uni-due.de", "uni-due.de", "www.esaga.uni-due.de", - "esaga.uni-due.de" + "esaga.uni-due.de", + "bibliography.uni-due.de" ], "crawl": { "generated_entities_file": "entities.json", 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/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 @@ +
}
+
+ + + {{ 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..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; @@ -159,15 +138,14 @@ .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: 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); } } @@ -178,71 +156,33 @@ 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: 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); + } +} - &.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); } } .unavailable { margin-top: 32px; - max-width: 68ch; + width: 100%; background: var(--sg-surface-muted); .mat-mdc-card-content { @@ -257,13 +197,6 @@ table.mx { 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 097477ea..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 @@ -1,44 +1,37 @@ -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 { PageContainerComponent } from '../../../shared/ui/page-container/page-container.component'; import { ChartThemeService } from '../../../shared/services/chart-theme.service'; import { CredentialService } from '../../../shared/services/credential.service'; -import { - ARROW_BACK_ICON, - PERSON_OFF_ICON, - WARNING_ICON, -} from '../../../shared/ui/icons'; -import { 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 +40,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 +55,23 @@ interface MetricRow { MatButtonModule, MatCardModule, MatIconModule, - MatTableModule, MatTooltipModule, + DataTableComponent, MultiplierNetworkGraphComponent, - ScoreBarComponent, CareerStageChipComponent, ChipComponent, + MethodologyNoteComponent, + MultiplierRoleScoresComponent, + PageContainerComponent, ], 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 +96,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 +126,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 +189,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/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/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/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/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, + })} %`; +} 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. */