From 5fa764e7e8814854d095410e08d0cfad22027a53 Mon Sep 17 00:00:00 2001 From: taguesokoudjou Date: Fri, 12 Jun 2026 09:10:05 +0200 Subject: [PATCH 1/2] Improve funding list filters and empty-state overview for clearer navigation --- .../person-funding.component.html | 58 ++++- .../person-funding.component.scss | 205 ++++++++++++++---- 2 files changed, 207 insertions(+), 56 deletions(-) diff --git a/webapp/src/app/modules/person-funding/person-funding.component.html b/webapp/src/app/modules/person-funding/person-funding.component.html index 3145736b..4f70a9bf 100644 --- a/webapp/src/app/modules/person-funding/person-funding.component.html +++ b/webapp/src/app/modules/person-funding/person-funding.component.html @@ -273,17 +273,6 @@ } } @else {
-
-

- {{ getUniquePublicationCount() }} - Einzigartige Publikationen -

-

- {{ filteredFunders.length }} - Förderer -

-
-
@@ -291,25 +280,33 @@
Filter nach Position:
} @else {
-

Klicke auf einen Förderer für Details.

+
+ @if (activeFilter !== "all") { + + Filter: {{ getPositionLabel(activeFilter) }} + + } +

Förderübersicht

+

+ @if (activeFilter === "all") { + Alle geförderten Publikationen dieser Person im Überblick. + } @else { + Nur Publikationen mit der gewählten Autorenposition. + } +

+
+
+ {{ + getUniquePublicationCount() + }} + Einzigartige Publikationen +
+
+ {{ + filteredFunders.length + }} + Förderer +
+
+
+ +

+ Wähle links einen Förderer aus, um die zugehörigen Publikationen + anzuzeigen. +

+
+
}
diff --git a/webapp/src/app/modules/person-funding/person-funding.component.scss b/webapp/src/app/modules/person-funding/person-funding.component.scss index 3101f8ce..c9560365 100644 --- a/webapp/src/app/modules/person-funding/person-funding.component.scss +++ b/webapp/src/app/modules/person-funding/person-funding.component.scss @@ -23,39 +23,84 @@ button { padding: 6px 14px; - border: 1px solid #ccc; + border: 1px solid transparent; border-radius: 20px; - background: white; + background: #fff; cursor: pointer; font-size: 14px; + font-weight: 500; + transition: background 0.15s ease, border-color 0.15s ease; - &:hover { - background: #f0f0f0; + &:not(.active):hover { + background: #fafafa; + } + + &.active { + font-weight: 600; + border-width: 2px; + padding: 5px 13px; } } + button:nth-child(2) { - background: #f0f6ff; - color: #0b63ce; - border-color: #bdd4ff; -} + color: #3b82c4; + border-color: #c7dcfa; -button:nth-child(3) { - background: #effaf3; - color: #24834f; - border-color: #bdebcf; -} + &:not(.active):hover { + background: #f5f9ff; + } -button:nth-child(4) { - background: #f6f0ff; - color: #7255d9; - border-color: #d8cafe; -} + &.active { + color: #0b4f9e; + background: #e8f2ff; + border-color: #3b82c4; + } + } -button:nth-child(5) { - background: #fff7e8; - color: #c67500; - border-color: #ffd796; -} + button:nth-child(3) { + color: #3d9a66; + border-color: #b8e6cb; + + &:not(.active):hover { + background: #f4fbf7; + } + + &.active { + color: #1a6b3f; + background: #e8f7ee; + border-color: #3d9a66; + } + } + + button:nth-child(4) { + color: #7c65d9; + border-color: #d5c8f8; + + &:not(.active):hover { + background: #f8f5ff; + } + + &.active { + color: #5b3fc9; + background: #f0ebff; + border-color: #7c65d9; + } + } + + button:nth-child(5) { + color: #d1435f; + border-color: #f8c4ce; + + &:not(.active):hover { + background: #fff5f6; + } + + &.active { + color: #a61e3a; + background: #ffe8ec; + border-color: #d1435f; + } + } } .sort-control { @@ -152,8 +197,12 @@ button:nth-child(5) { display: flex; align-items: center; justify-content: center; - color: #999; - min-height: 200px; + min-height: 280px; + padding: 24px; + background: + radial-gradient(circle at 100% 0%, rgba(200, 217, 255, 0.35), transparent 45%), + linear-gradient(160deg, #fff 0%, #f8faff 100%); + border-color: #dbe3f2; } h3 { @@ -211,8 +260,8 @@ button:nth-child(5) { } .stat-last { - background: #fff7e8; - border-color: #ffd796; + background: #fff1f2; + border-color: #fda4af; } } @@ -257,22 +306,90 @@ button:nth-child(5) { } } -.funding-summary { - margin-bottom: 16px; +.empty-overview { + width: 100%; + text-align: center; - .summary-line { - margin: 0 0 4px 0; - font-size: 14px; - color: #333; - } - - .summary-label { - color: #333; - } - - .summary-value { + &__filter { + display: inline-block; + margin-bottom: 12px; + padding: 4px 12px; + border: 1px solid #dbe3f2; + border-radius: 999px; + background: rgba(255, 255, 255, 0.9); + color: #475569; + font-size: 0.75rem; font-weight: 600; - color: #333; + letter-spacing: 0.02em; + text-transform: uppercase; + } + + &__title { + margin: 0 0 8px; + font-size: 1.125rem; + color: #1e3a5f; + } + + &__subtitle { + margin: 0 0 20px; + color: #64748b; + font-size: 0.875rem; + line-height: 1.5; + } + + &__stats { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 12px; + margin-bottom: 20px; + } + + &__stat { + display: flex; + flex-direction: column; + gap: 6px; + padding: 16px 12px; + border: 1px solid #e0e6f0; + border-radius: 10px; + background: rgba(255, 255, 255, 0.85); + } + + &__stat-value { + font-size: 1.75rem; + font-weight: 700; + line-height: 1.1; + color: #1e3a5f; + } + + &__stat-label { + font-size: 0.8rem; + line-height: 1.35; + color: #64748b; + } + + &__hint { + display: flex; + align-items: flex-start; + gap: 10px; + padding: 12px 14px; + border: 1px dashed #c7d5ea; + border-radius: 10px; + background: rgba(255, 255, 255, 0.7); + text-align: left; + + .material-icons { + flex-shrink: 0; + margin-top: 1px; + font-size: 20px; + color: #3b82c4; + } + + p { + margin: 0; + color: #475569; + font-size: 0.875rem; + line-height: 1.45; + } } } @@ -456,9 +573,9 @@ button:nth-child(5) { } &--last { - background: #fff7e8; - color: #c67500; - border: 1px solid #ffd796; + background: #fff1f2; + color: #be123c; + border: 1px solid #fda4af; } &--unknown { -- 2.56.1 From 3fc0b5ca19a8d4ce01109938cf639316575cbe72 Mon Sep 17 00:00:00 2001 From: taguesokoudjou Date: Mon, 15 Jun 2026 16:52:48 +0200 Subject: [PATCH 2/2] Reduce person-funding component styles below 10 kB CI budget --- .../person-funding.component.scss | 489 +++++++----------- 1 file changed, 182 insertions(+), 307 deletions(-) diff --git a/webapp/src/app/modules/person-funding/person-funding.component.scss b/webapp/src/app/modules/person-funding/person-funding.component.scss index c9560365..72e6d3cd 100644 --- a/webapp/src/app/modules/person-funding/person-funding.component.scss +++ b/webapp/src/app/modules/person-funding/person-funding.component.scss @@ -29,11 +29,6 @@ cursor: pointer; font-size: 14px; font-weight: 500; - transition: background 0.15s ease, border-color 0.15s ease; - - &:not(.active):hover { - background: #fafafa; - } &.active { font-weight: 600; @@ -45,61 +40,25 @@ button:nth-child(2) { color: #3b82c4; border-color: #c7dcfa; - - &:not(.active):hover { - background: #f5f9ff; - } - - &.active { - color: #0b4f9e; - background: #e8f2ff; - border-color: #3b82c4; - } + &.active { color: #0b4f9e; background: #e8f2ff; border-color: #3b82c4; } } button:nth-child(3) { color: #3d9a66; border-color: #b8e6cb; - - &:not(.active):hover { - background: #f4fbf7; - } - - &.active { - color: #1a6b3f; - background: #e8f7ee; - border-color: #3d9a66; - } + &.active { color: #1a6b3f; background: #e8f7ee; border-color: #3d9a66; } } button:nth-child(4) { color: #7c65d9; border-color: #d5c8f8; - - &:not(.active):hover { - background: #f8f5ff; - } - - &.active { - color: #5b3fc9; - background: #f0ebff; - border-color: #7c65d9; - } + &.active { color: #5b3fc9; background: #f0ebff; border-color: #7c65d9; } } button:nth-child(5) { color: #d1435f; border-color: #f8c4ce; - - &:not(.active):hover { - background: #fff5f6; - } - - &.active { - color: #a61e3a; - background: #ffe8ec; - border-color: #d1435f; - } + &.active { color: #a61e3a; background: #ffe8ec; border-color: #d1435f; } } } @@ -114,9 +73,7 @@ color: #333; font-size: 14px; - span { - color: #555; - } + span { color: #555; } select { border: 0; @@ -146,9 +103,7 @@ flex-wrap: wrap; } - .sort-control { - margin-left: auto; - } + .sort-control { margin-left: auto; } table { width: 100%; @@ -164,14 +119,7 @@ tr { cursor: pointer; - - &:hover { - background: #f5f5f5; - } - - &.selected { - background: #f0f0f0; - } + &.selected { background: #f0f0f0; } } td { @@ -206,13 +154,13 @@ } h3 { - margin: 0 0 16px 0; + margin: 0 0 16px; font-size: 16px; color: #333; } h4 { - margin: 16px 0 8px 0; + margin: 16px 0 8px; font-size: 14px; color: #555; } @@ -221,16 +169,13 @@ .position-stats { display: flex; gap: 12px; - margin-bottom: 16px; + margin: 0 auto 16px; width: fit-content; - margin-left: auto; - margin-right: auto; .stat { - flex: 0.0 auto; min-width: 100px; text-align: center; - background: white; + background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px; @@ -249,20 +194,48 @@ color: #333; } } - .stat-first { - background: #effaf3; - border-color: #bdebcf; - } +} - .stat-middle { - background: #f6f0ff; - border-color: #d8cafe; - } +.stat-first, +.position-badge--first, +.hero-highlight--open, +.publication-detail-grid .access-badge--open { + background: #effaf3; +} - .stat-last { - background: #fff1f2; - border-color: #fda4af; - } +.stat-first { border-color: #bdebcf; } + +.position-badge--first { + color: #24834f; + border: 1px solid #bdebcf; +} + +.hero-highlight--open, +.publication-detail-grid .access-badge--open { + border-color: #bdebcf; + color: #24834f; +} + +.stat-middle, +.position-badge--middle { + background: #f6f0ff; + border-color: #d8cafe; +} + +.position-badge--middle { + color: #7255d9; + border: 1px solid #d8cafe; +} + +.stat-last, +.position-badge--last { + background: #fff1f2; + border-color: #fda4af; +} + +.position-badge--last { + color: #be123c; + border: 1px solid #fda4af; } .publication-list { @@ -290,7 +263,7 @@ padding: 4px 10px; border: 1px solid #d0d0d0; border-radius: 6px; - background: white; + background: #fff; cursor: pointer; font-size: 12px; @@ -320,7 +293,6 @@ color: #475569; font-size: 0.75rem; font-weight: 600; - letter-spacing: 0.02em; text-transform: uppercase; } @@ -378,8 +350,6 @@ text-align: left; .material-icons { - flex-shrink: 0; - margin-top: 1px; font-size: 20px; color: #3b82c4; } @@ -393,19 +363,25 @@ } } -.funding-publication-page { - padding: 16px; -} +.funding-publication-page { padding: 16px; } -.publication-detail-back { +.publication-detail-back, +.publication-more-info { display: inline-flex; align-items: center; - gap: 6px; border: 0; background: transparent; cursor: pointer; } +.publication-detail-back { gap: 6px; } + +.publication-more-info { + gap: 4px; + margin-top: 6px; + padding: 0; +} + .publication-detail-hero { display: flex; justify-content: space-between; @@ -439,7 +415,6 @@ font-size: 0.75rem; font-weight: 700; text-transform: uppercase; - letter-spacing: 0.02em; } } @@ -475,7 +450,6 @@ display: inline-flex; align-items: center; gap: 6px; - flex-shrink: 0; padding: 10px 16px; border: 1px solid #bdd4ff; border-radius: 8px; @@ -484,33 +458,14 @@ font-weight: 600; font-size: 0.875rem; text-decoration: none; - white-space: nowrap; - &:hover { - background: #e3efff; - } - - .material-icons { - font-size: 18px; - } - } -} - -@media (max-width: 720px) { - .publication-detail-hero { - flex-direction: column; - align-items: stretch; - - &__action { - justify-content: center; - } + .material-icons { font-size: 18px; } } } .hero-highlight { display: inline-flex; flex-direction: column; - min-width: 72px; padding: 8px 12px; border: 1px solid #e0e6f0; border-radius: 8px; @@ -527,7 +482,6 @@ font-size: 0.7rem; color: #64748b; text-transform: uppercase; - letter-spacing: 0.03em; } &--badge { @@ -539,12 +493,6 @@ color: #475569; } - &--open { - border-color: #bdebcf; - background: #effaf3; - color: #24834f; - } - &--closed { border-color: #e0e6f0; background: #f8fafc; @@ -560,24 +508,6 @@ font-size: 0.8rem; font-weight: 700; - &--first { - background: #effaf3; - color: #24834f; - border: 1px solid #bdebcf; - } - - &--middle { - background: #f6f0ff; - color: #7255d9; - border: 1px solid #d8cafe; - } - - &--last { - background: #fff1f2; - color: #be123c; - border: 1px solid #fda4af; - } - &--unknown { background: #f1f5f9; color: #64748b; @@ -585,179 +515,123 @@ } } -.publication-detail-grid { +$g: '.publication-detail-grid'; + +#{$g} { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 12px; +} - .publication-detail-main, - .publication-detail-side { - display: grid; - gap: 12px; - min-width: 0; - } +#{$g} .publication-detail-main, +#{$g} .publication-detail-side { + display: grid; + gap: 12px; + min-width: 0; +} - .publication-detail-section { - border: 1px solid #e0e6f0; - border-radius: 10px; - padding: 18px; - background: #fff; +#{$g} .publication-detail-section { + border: 1px solid #e0e6f0; + border-radius: 10px; + padding: 18px; + background: #fff; - h3 { - margin: 0 0 14px; - font-size: 1rem; - color: #1e3a5f; - } - - &--funding { - background: #fafbfd; - } - } - - .publication-overview, - .publication-abstract { - margin: 0; - color: #334155; - line-height: 1.65; - } - - .publication-detail-facts { - display: grid; - gap: 12px; - margin: 0; - - div { - display: grid; - grid-template-columns: 130px minmax(0, 1fr); - gap: 12px; - } - - dt { - color: #64748b; - font-size: 0.875rem; - } - - dd { - margin: 0; - word-break: break-word; - color: #1e293b; - } - } - - .tag-list { - display: flex; - flex-wrap: wrap; - gap: 6px; - margin: 0; - padding: 0; - list-style: none; - - &--compact .tag { - font-size: 0.75rem; - padding: 3px 8px; - } - } - - .tag { - padding: 4px 10px; - border-radius: 999px; - background: #f0f6ff; - border: 1px solid #dbeafe; - color: #1e40af; - font-size: 0.8rem; - line-height: 1.3; - } - - .access-badge { - display: inline-flex; - padding: 4px 10px; - border-radius: 999px; - font-size: 0.8rem; - font-weight: 600; - background: #f1f5f9; - color: #64748b; - - &--open { - background: #effaf3; - color: #24834f; - } - - &--closed { - background: #f8fafc; - color: #475569; - } - } - - .access-actions { - display: flex; - flex-wrap: wrap; - gap: 10px; - align-items: center; - } - - .inline-action { - display: inline-flex; - align-items: center; - gap: 4px; - color: #0b63ce; - font-weight: 600; - font-size: 0.875rem; - text-decoration: none; - - .material-icons { - font-size: 16px; - } - } - - .warning-badge { - display: inline-flex; - padding: 4px 10px; - border-radius: 999px; - background: #fef2f2; - border: 1px solid #fecaca; - color: #b91c1c; - font-size: 0.8rem; - font-weight: 600; - } - - .citation-year-table { - border-collapse: collapse; - - th, - td { - padding: 2px 0; - font-weight: normal; - text-align: left; - vertical-align: top; - } - - th { - padding-right: 20px; - font-weight: 600; - color: #334155; - white-space: nowrap; - } - - td { - color: #1e293b; - } + h3 { + margin: 0 0 14px; + font-size: 1rem; + color: #1e3a5f; } } -@media (max-width: 960px) { - .publication-detail-grid { - grid-template-columns: 1fr; - } +#{$g} .publication-overview, +#{$g} .publication-abstract { + margin: 0; + color: #334155; + line-height: 1.65; +} + +#{$g} .publication-detail-facts { + display: grid; + gap: 12px; + margin: 0; +} + +#{$g} .publication-detail-facts div { + display: grid; + grid-template-columns: 130px minmax(0, 1fr); + gap: 12px; +} + +#{$g} .publication-detail-facts dt { + color: #64748b; + font-size: 0.875rem; +} + +#{$g} .publication-detail-facts dd { + margin: 0; + word-break: break-word; + color: #1e293b; +} + +#{$g} .tag-list { + display: flex; + flex-wrap: wrap; + gap: 6px; + margin: 0; + padding: 0; + list-style: none; +} + +#{$g} .tag, +#{$g} .access-badge, +#{$g} .warning-badge { + display: inline-flex; + padding: 4px 10px; + border-radius: 999px; + font-size: 0.8rem; +} + +#{$g} .tag { + background: #f0f6ff; + border: 1px solid #dbeafe; + color: #1e40af; + line-height: 1.3; +} + +#{$g} .access-badge { + font-weight: 600; + background: #f1f5f9; + color: #64748b; +} + +#{$g} .access-badge--closed { + background: #f8fafc; + color: #475569; +} + +#{$g} .inline-action { + display: inline-flex; + align-items: center; + gap: 4px; + color: #0b63ce; + font-weight: 600; + font-size: 0.875rem; + text-decoration: none; + + .material-icons { font-size: 16px; } +} + +#{$g} .warning-badge { + background: #fef2f2; + border: 1px solid #fecaca; + color: #b91c1c; + font-weight: 600; } .publication-item { padding: 8px 0; border-bottom: 2px solid #5b5555; cursor: pointer; - - &:hover { - background: #f9f9f9; - } } .publication-title { @@ -767,30 +641,31 @@ word-break: break-word; display: block; } -.publication-more-info { - display: flex; - align-items: center; - gap: 4px; - margin-top: 6px; - border: 0; - background: transparent; - padding: 0; - cursor: pointer; -} + +.mehr-infos-label, +.publication-link-icon { color: #1976d2; } .mehr-infos-label { font-size: 0.8rem; - color: #1976d2; font-weight: 500; } .publication-link-icon { display: flex; align-items: center; - color: #1976d2; - flex-shrink: 0; - .material-icons { - font-size: 16px; + .material-icons { font-size: 16px; } +} + +@media (max-width: 720px) { + .publication-detail-hero { + flex-direction: column; + align-items: stretch; + + &__action { justify-content: center; } } } + +@media (max-width: 960px) { + #{$g} { grid-template-columns: 1fr; } +} -- 2.56.1