Show line-ups before kickoff, bind form and table widgets, rewrite the press wording

- Live ticker: the paused live state carries both starting elevens; the ticker lists
  them until the first report. A single match no longer gets an empty strip above the
  score, repeated status lines are gone, whistles carry no club badge, dates are
  written out.
- Desk: "Die letzten Spiele" and the table place curve are fed by the engine
  (desktop-widgets read: recent, rankCurve) and belong to the default layout; the own
  crest widget is bound.
- News: the German press templates are rewritten to one plain sentence each (the
  catalogue accepts a single sentence now); the reference snapshots follow, and the
  catalogue test can rewrite them with --update. Mailbox texts show world spellings
  of clubs and players and the euro sign.
- Small type raised in advertising, lineup, news, toto, transfer and others; the
  transfer market column no longer runs under its scrollbar.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-14 12:36:33 +01:00
1 parent bd20960f90
commit 9708b720b2
33 files changed
+418 -373

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
.advertising-boards {position:absolute;left:0;right:0;top:0;height:310dp;border:2dp var(--border);border-radius:18dp;background-color:#13232e40;}
.advertising-board {position:absolute;min-width:0;min-height:0;padding:16dp 12dp 40dp;border:2dp var(--border);border-radius:12dp;background-color:transparent;decorator:linear-gradient(180deg,#90a6b51c,#6b83950d);color:var(--text);font-size:28dp;display:flex;align-items:center;justify-content:center;}
.advertising-board:hover {background-color:#c5d9e726;}
.advertising-board small {position:absolute;left:0;right:0;width:100%;bottom:10dp;text-align:center;font-size:22dp;line-height:25dp;color:var(--muted);}
.advertising-board small {position:absolute;left:0;right:0;width:100%;bottom:10dp;text-align:center;font-size:28dp;line-height:25dp;color:var(--muted);}
.advertising-board small>span,.advertising-free {display:block;width:100%;text-align:center;white-space:nowrap;}
.advertising-free {font-size:28dp;line-height:31dp;color:#bdcdd8;}
.advertising-board.selected,.advertising-card.selected {border-color:var(--accent);}
+1 -1
View File
@@ -61,7 +61,7 @@
.alm-no-crest {display:block;font-size:28dp;line-height:31.2dp;text-align:center;}
.alm-list-score {height:82dp;flex-direction:column;gap:3dp;}
.alm-list-score-value {display:block;height:52dp;line-height:52dp;font-size:40dp;white-space:nowrap;}
.alm-list-score-phase {display:block;height:27dp;line-height:27dp;font-size:22dp;white-space:nowrap;color:var(--muted);}
.alm-list-score-phase {display:block;height:27dp;line-height:27dp;font-size:26dp;white-space:nowrap;color:var(--muted);}
.alm-match-meta {position:absolute;left:28dp;right:28dp;top:111dp;height:31.2dp;display:flex;align-items:center;justify-content:center;font-size:28dp;color:var(--muted);}
.alm-match-meta span {display:block;width:100%;max-width:100%;text-align:center;line-height:31.2dp;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.alm-summary {position:absolute;left:0;top:132dp;width:2612dp;height:360dp;padding:20dp 28dp;border:2dp var(--border);border-radius:18dp;background-color:var(--soft);}
+2 -2
View File
@@ -100,7 +100,7 @@ body.matchday {--entry-focus:#efb2aa;--entry-selected:#d48c7b26;--entry-accent-b
.entry-manager-roster-row {display:flex;align-items:center;gap:20dp;min-height:120dp;margin-bottom:24dp;}
.entry-manager-roster-row>.entry-manager-face {position:relative;width:90dp;height:120dp;border-radius:10dp;}
.entry-manager-roster-row>div:last-child {display:flex;flex-direction:column;gap:10dp;min-width:0;flex:1;}
.entry-manager-roster-row small {display:block;font-size:23dp;color:var(--muted);}
.entry-manager-roster-row small {display:block;font-size:28dp;color:var(--muted);}
.entry-manager-roster-row strong {display:block;font-size:29dp;font-weight:normal;}
.entry-manager-roster-row>div>span {display:block;font-size:28dp;line-height:1.3;}
.entry-manager-roster>p {position:absolute;left:28dp;right:28dp;bottom:28dp;margin:0;font-size:28dp;color:var(--muted);}
@@ -128,7 +128,7 @@ body.matchday {--entry-focus:#efb2aa;--entry-selected:#d48c7b26;--entry-accent-b
.entry-club-crest {display:flex;align-items:center;justify-content:center;width:120dp;height:120dp;border-radius:12dp;background-color:#e8eef2;flex-shrink:0;}
.entry-club-crest>.image-frame {flex-shrink:0;}
.entry-club-choice>strong {display:block;font-size:30dp;font-weight:normal;text-align:center;line-height:1.2;flex-shrink:0;}
.entry-club-choice>small {display:block;font-size:23dp;text-align:center;color:var(--muted);flex-shrink:0;}
.entry-club-choice>small {display:block;font-size:28dp;text-align:center;color:var(--muted);flex-shrink:0;}
.entry-club-choice:disabled {opacity:0.35;}
.entry-club-lock {position:absolute;right:18dp;top:18dp;}
.entry-no-clubs {margin:80dp 0;text-align:center;font-size:34dp;color:var(--muted);}
+1 -1
View File
@@ -60,7 +60,7 @@
.files-views .files-entry-icon {width:42dp;height:42dp;line-height:1.2;margin-right:22dp;border:0dp;border-radius:0;}
.files-views .files-entry-icon .image-frame {margin:0;}
.files-views .files-entry-copy strong {font-size:31dp;margin-bottom:10dp;}
.files-views .files-entry-copy>span {font-size:22dp;line-height:1.3;color:var(--muted);opacity:1;}
.files-views .files-entry-copy>span {font-size:28dp;line-height:1.3;color:var(--muted);opacity:1;}
.files-standard-badge {flex-shrink:0;font-size:19dp;border:2dp var(--border);border-radius:10dp;padding:7dp 10dp;margin-left:14dp;color:var(--muted);}
.files-views .files-heading {font-size:46dp;margin:0 0 18dp;}
.files-views .files-intro {font-size:29dp;line-height:1.4;color:var(--muted);opacity:1;margin:0 0 36dp;}
+1 -1
View File
@@ -17,7 +17,7 @@
.lineup-col-7 {width:200dp;}
.lineup-name {font-size:30dp;}
.lineup-detail {font-size:28dp;}
.lineup-status {display:block;width:100%;font-size:24dp;letter-spacing:0;white-space:nowrap;}
.lineup-status {display:block;width:100%;font-size:28dp;letter-spacing:0;white-space:nowrap;}
.lineup-head {height:48dp;background-color:#2b3946;border-bottom:2dp var(--border);color:var(--muted);font-size:28dp;}
.lineup-head .lineup-cell {height:46dp;}
.lineup-head .lineup-col-1>span {text-align:left;}
+6
View File
@@ -121,3 +121,9 @@ body.matchday {--live-bg:#242426;--live-surface:#302f34ec;--live-wash:#efc7ce0a;
.live-review-card {display:block;padding:36dp;border:2dp var(--live-line);border-radius:24dp;}
.live-review-card .live-scoreline {height:108dp;}
.live-review-card p {display:block;width:100%;font-size:31dp;color:var(--live-muted);margin-top:28dp;line-height:1.4;text-align:center;}
.live-coverage.solo {display:none;}
.live-lineups {display:flex;gap:60dp;padding:34dp 42dp;}
.live-lineup-side {display:block;flex:1;min-width:0;}
.live-lineup-side h3 {display:block;font-size:34dp;font-weight:normal;color:var(--live-accent);margin-bottom:14dp;}
.live-lineup-side p {display:block;font-size:30dp;color:var(--live-muted);}
.live-lineup-row {height:62dp;display:flex;gap:16dp;align-items:center;border-bottom:2dp var(--live-line);font-size:32dp;}
File diff suppressed because it is too large. Load diff
+4 -4
View File
@@ -9,7 +9,7 @@
.news-masthead {position:absolute;left:6dp;right:6dp;top:0;height:180dp;padding-bottom:34dp;display:flex;align-items:center;justify-content:space-between;gap:36dp;}
.news-brand {display:flex;align-items:center;gap:34dp;min-width:0;}
.news-wordmark {padding:8dp 24dp 15dp;border:2dp #ff8c8c25;border-radius:15dp;background-color:#c92736;color:#fff6f4;font-size:86dp;font-weight:bold;font-style:italic;letter-spacing:-5dp;line-height:1;}
.news-brand p {margin-bottom:12dp;color:var(--muted);font-size:26dp;letter-spacing:2dp;}
.news-brand p {margin-bottom:12dp;color:var(--muted);font-size:28dp;letter-spacing:2dp;}
.news-brand h2 {font-size:48dp;line-height:1.1;font-weight:normal;letter-spacing:-1dp;}
.news-owner {display:flex;align-items:center;gap:24dp;min-width:0;}
.news-owner>div {text-align:right;}
@@ -20,7 +20,7 @@
.news-tabs {display:flex;align-items:stretch;padding:7dp;border:2dp var(--border);border-radius:17dp;background-color:var(--panel);gap:5dp;flex-shrink:0;}
.news-tabs .news-tab {display:flex;align-items:center;justify-content:center;gap:18dp;min-width:240dp;height:65dp;padding:12dp 22dp;border:0dp;border-radius:11dp;background-color:transparent;color:var(--muted);font-size:30dp;}
.news-tabs .news-tab.active {background-color:var(--selected);color:var(--text);}
.news-tab-count {min-width:40dp;padding:3dp 9dp;border-radius:8dp;background-color:var(--panel);color:var(--text);font-size:26dp;text-align:center;}
.news-tab-count {min-width:40dp;padding:3dp 9dp;border-radius:8dp;background-color:var(--panel);color:var(--text);font-size:28dp;text-align:center;}
.news-search {display:flex;align-items:center;gap:16dp;min-width:0;max-width:760dp;flex:1;margin-left:auto;padding:16dp 22dp;border:2dp var(--border);border-radius:13dp;background-color:var(--input);}
.news-search input {min-width:0;width:100%;margin:0;padding:0;border:0dp;border-radius:0dp;background-color:transparent;color:var(--text);font-size:28dp;line-height:1.4;}
.news-search-symbol {position:relative;width:27dp;height:27dp;flex-shrink:0;margin-right:9dp;border:3dp var(--muted);border-radius:14dp;}
@@ -35,7 +35,7 @@
.news-message-copy {flex:1;min-width:0;}
.news-message-meta {display:flex;align-items:center;gap:20dp;margin-bottom:13dp;font-size:28dp;line-height:1.4;color:var(--muted);}
.news-category {padding-left:20dp;border-left:2dp var(--border);}
.news-new {padding:2dp 12dp;border:2dp var(--border);border-radius:7dp;background-color:var(--selected);color:var(--accent);font-size:24dp;}
.news-new {padding:2dp 12dp;border:2dp var(--border);border-radius:7dp;background-color:var(--selected);color:var(--accent);font-size:28dp;}
.news-message-title {display:flex;justify-content:flex-start;align-items:center;max-width:100%;padding:0;margin:0 0 12dp;border:0dp;border-radius:3dp;background-color:transparent;color:var(--text);font-size:35dp;font-weight:normal;line-height:1.3;text-align:left;}
.news-message.is-unread .news-message-title {font-weight:bold;}
.news-message-title:hover {background-color:transparent;color:var(--accent);}
@@ -81,7 +81,7 @@ body.matchday .news-detail-box {background-color:#2c2c32fc;}
.news-widget-feed {position:absolute;left:0;right:0;top:70dp;bottom:8dp;padding:0 28dp 16dp;display:flex;flex-direction:column;gap:10dp;overflow:hidden;}
.news-widget-row {display:flex;align-items:flex-start;gap:14dp;padding:10dp 0 18dp;border-bottom:1dp var(--border);}
.news-widget-copy {display:flex;flex-direction:column;gap:8dp;min-width:0;flex:1;}
.news-widget-date {font-size:24dp;color:var(--muted);}
.news-widget-date {font-size:28dp;color:var(--muted);}
.news-widget-title {font-size:28dp;line-height:1.25;font-weight:normal;max-height:62.5dp;overflow:hidden;}
.news-widget-dot {width:10dp;height:10dp;border-radius:5dp;background-color:transparent;flex-shrink:0;margin-top:8dp;}
.news-widget-row.unread .news-widget-dot {background-color:var(--accent);}
+1 -1
View File
@@ -17,7 +17,7 @@
.postpone-summary.target {right:0;}
.postpone-summary h3 {display:block;margin:0 0 12dp;height:32dp;line-height:32dp;font-size:28dp;font-weight:normal;}
.postpone-summary p {display:block;margin:0;font-size:28dp;line-height:1.35;}
.postpone-summary small {display:block;margin-top:10dp;font-size:23dp;line-height:27dp;color:var(--muted);}
.postpone-summary small {display:block;margin-top:10dp;font-size:28dp;line-height:27dp;color:var(--muted);}
.postpone-summary small.valid,.friendly-date-summary .valid {color:var(--accent);}
.postpone-cancel {position:absolute;right:16dp;top:16dp;width:52dp;height:52dp;padding:0;font-size:36dp;background-color:transparent;border:0dp;}
.calendar-day.friendly-date {color:#a9dccb;}
+1 -1
View File
@@ -109,7 +109,7 @@
.postmatch-eleven-list ol {padding:0;}
.postmatch-eleven-notice {font-size:28dp;line-height:1.3;margin-bottom:18dp;}
.postmatch-nominee-row {display:flex;align-items:center;gap:30dp;min-height:99dp;border-bottom:1dp var(--border);padding:10dp 0;}
.postmatch-position {font-size:23dp;background-color:var(--panel);border:1dp var(--border);border-radius:12dp;padding:12dp;min-width:90dp;text-align:center;}
.postmatch-position {font-size:28dp;background-color:var(--panel);border:1dp var(--border);border-radius:12dp;padding:12dp;min-width:90dp;text-align:center;}
.postmatch-nominee-copy {display:flex;flex-direction:column;gap:8dp;min-width:0;flex:1;}
.postmatch .postmatch-nominee-name {border:0;padding:0;justify-content:flex-start;text-align:left;font-size:31dp;}
.postmatch .postmatch-nominee-club {display:flex;align-items:center;gap:15dp;border:0;padding:0;justify-content:flex-start;font-size:28dp;color:var(--muted);}
+1 -1
View File
@@ -32,7 +32,7 @@
.stadium-facility-art {position:absolute;display:block;}
.stadium-art-overlay {position:absolute;display:block;pointer-events:none;}
.stadium-facility>strong {position:absolute;left:0;top:133dp;display:block;width:391dp;height:31.2dp;line-height:31.2dp;font-size:28dp;font-weight:normal;text-align:center;white-space:nowrap;color:#d3e2ed;}
.stadium-facility-caption {position:absolute;left:0;top:168.2dp;display:block;width:391dp;height:25.3dp;line-height:25.3dp;font-size:23dp;text-align:center;white-space:nowrap;color:#95b7c2;}
.stadium-facility-caption {position:absolute;left:0;top:168.2dp;display:block;width:391dp;height:25.3dp;line-height:25.3dp;font-size:25dp;text-align:center;white-space:nowrap;color:#95b7c2;}
.stadium-nav {position:absolute;left:0;top:1772dp;width:2612dp;height:92dp;display:flex;}
.stadium-nav-button {width:856dp;height:92dp;padding:12dp 24dp;margin-right:22dp;font-size:29dp;border:2dp #c5d9e726;border-radius:12dp;background-color:#b6cad510;flex-shrink:0;}
.stadium-nav-button:last-child {margin-right:0;}
+2 -2
View File
@@ -12,7 +12,7 @@
.toto-match-row {position:absolute;left:28dp;right:28dp;height:82dp;padding:5dp 12dp;border-bottom:2dp var(--border);display:flex;align-items:center;gap:20dp;}
.toto-match-row.striped {background-color:var(--soft);}
.toto-match-number {width:90dp;flex-shrink:0;font-size:28dp;}
.toto-match-league {width:90dp;flex-shrink:0;font-size:23dp;text-align:right;color:var(--muted);white-space:nowrap;}
.toto-match-league {width:90dp;flex-shrink:0;font-size:28dp;text-align:right;color:var(--muted);white-space:nowrap;}
.toto-match-teams {display:flex;align-items:center;gap:10dp;flex:1;min-width:0;}
.toto-match-teams>div {display:flex;align-items:center;flex:1;min-width:0;}
.toto-home {justify-content:flex-end;}
@@ -37,7 +37,7 @@
.toto-paper-caption>small {font-size:22dp;line-height:26.4dp;}
.toto-field {position:absolute;top:182dp;width:221.619792dp;height:1066dp;}
.toto-column-heading {position:absolute;left:0;top:0;width:100%;height:74dp;padding:0 12dp;border:0dp;border-bottom:3dp transparent;border-radius:0dp;background-color:transparent;color:#bd302c;display:flex;align-items:center;justify-content:space-between;gap:8dp;}
.toto-column-heading>span {display:block;font-size:23dp;white-space:nowrap;}
.toto-column-heading>span {display:block;font-size:28dp;white-space:nowrap;}
.toto-column-heading>strong {display:block;width:34dp;height:36dp;line-height:36dp;text-align:center;flex-shrink:0;font-size:28dp;font-weight:normal;background-color:#bd302c;color:#fff8ed;}
.selected-column .toto-column-heading {border-bottom-color:#bd302c;background-color:#bd302c0a;}
.toto-column-heading:hover {background-color:#bd302c13;}
+7 -7
View File
@@ -10,7 +10,7 @@
.transfer-complete .transfer-roster {width:2612dp;}
.transfer-roster>header {position:absolute;left:0;right:0;top:0;height:50dp;display:flex;align-items:center;justify-content:space-between;gap:20dp;}
.transfer-roster h2,.transfer-market header h2 {font-size:30dp;font-weight:normal;line-height:35dp;}
.transfer-roster>header>span {display:block;font-size:23dp;line-height:27dp;color:var(--muted);white-space:nowrap;}
.transfer-roster>header>span {display:block;font-size:28dp;line-height:32dp;color:var(--muted);white-space:nowrap;}
.transfer-roster-scroll {position:absolute;left:0;right:0;top:58dp;bottom:48dp;border:2dp var(--border);border-radius:16dp;background-color:var(--soft);overflow:auto;}
.transfer-roster-table {min-width:1250dp;width:100%;font-size:34dp;}
.transfer-roster-row {display:flex;height:86dp;align-items:center;}
@@ -26,11 +26,11 @@
.transfer-player-name {display:block;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.transfer-listed {color:#df9990;}
.transfer-list-marker {display:block;width:20dp;flex-shrink:0;color:#d68e85;font-size:16dp;}
.transfer-roster-note {position:absolute;left:0;right:0;bottom:0;font-size:23dp;line-height:27dp;color:var(--muted);}
.transfer-roster-note {position:absolute;left:0;right:0;bottom:0;font-size:28dp;line-height:32dp;color:var(--muted);}
.transfer-trait {display:inline-block;min-width:32dp;text-align:center;font-size:28dp;color:var(--muted);}
.transfer-nation {display:inline-block;width:36dp;height:24dp;flex-shrink:0;text-transform:uppercase;font-size:20dp;line-height:24dp;color:var(--muted);}
.transfer-nation {display:inline-block;width:36dp;height:24dp;flex-shrink:0;text-transform:uppercase;font-size:26dp;line-height:24dp;color:var(--muted);}
.transfer-market {position:absolute;left:1514.96875dp;top:0;bottom:0;width:1097.03125dp;overflow:auto;}
.transfer-market-content {position:relative;width:1087.03125dp;height:1598dp;}
.transfer-market-content {position:relative;width:1062dp;height:1598dp;}
.transfer-market-content>header {position:absolute;left:0;right:0;top:0;height:60dp;display:flex;align-items:center;justify-content:space-between;gap:20dp;}
.transfer-market-content>header>span {font-size:28dp;line-height:31dp;color:var(--muted);white-space:nowrap;}
.transfer-name-search {position:absolute;left:0;right:0;top:72dp;height:78dp;display:flex;gap:16dp;}
@@ -48,7 +48,7 @@
.transfer-market-attributes strong {font-weight:normal;color:var(--text);}
.transfer-empty {position:absolute;left:0;right:0;top:180dp;text-align:center;font-size:29dp;color:var(--text);}
.transfer-empty small {display:block;width:100%;margin-top:20dp;font-size:28dp;color:var(--muted);}
.transfer-market-pages {position:absolute;left:0;right:0;top:938.71875dp;height:54dp;display:flex;align-items:center;justify-content:space-between;gap:16dp;font-size:23dp;color:var(--muted);}
.transfer-market-pages {position:absolute;left:0;right:0;top:938.71875dp;height:54dp;display:flex;align-items:center;justify-content:space-between;gap:16dp;font-size:28dp;color:var(--muted);}
.transfer-market-pages>span {display:block;white-space:nowrap;}
.transfer-market-pages button {min-width:70dp;height:46dp;padding:0;font-size:33dp;}
.transfer-preview {position:absolute;left:0;right:0;top:1004.71875dp;height:159.28125dp;padding:14dp 22dp;border:2dp var(--border);border-radius:12dp;background-color:var(--soft);}
@@ -67,7 +67,7 @@
.transfer-strengths>header {height:54dp;display:flex;align-items:center;justify-content:space-between;gap:20dp;}
.transfer-strengths>header>nav {display:flex;gap:12dp;}
.transfer-strengths button {height:50dp;min-width:128dp;padding:6dp 16dp;font-size:28dp;}
.transfer-strengths p {font-size:23dp;color:var(--muted);white-space:nowrap;}
.transfer-strengths p {font-size:28dp;color:var(--muted);white-space:nowrap;}
.transfer-strengths p>strong {font-weight:normal;color:var(--text);margin-left:10dp;}
.transfer-strengths>div {display:flex;gap:12dp;margin-top:12dp;}
.transfer-strengths>div>section {flex:1;min-width:0;text-align:center;border-left:1dp var(--border);}
@@ -75,7 +75,7 @@
.transfer-strengths section>span {display:block;width:100%;font-size:28dp;line-height:31dp;color:var(--muted);white-space:nowrap;}
.transfer-strengths section>strong {display:block;width:100%;margin-top:10dp;font-size:42dp;line-height:48dp;font-weight:normal;color:var(--accent);}
.transfer-business {position:absolute;left:0;right:0;top:1468dp;height:130dp;}
.transfer-business>p {position:absolute;left:0;right:0;bottom:74dp;font-size:23dp;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.transfer-business>p {position:absolute;left:0;right:0;bottom:74dp;font-size:28dp;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.transfer-business>div {position:absolute;left:0;right:0;bottom:0;height:62dp;display:flex;gap:18dp;}
.transfer-business button {flex:1;min-width:0;height:62dp;font-size:28dp;}
.transfer-actions {position:absolute;left:0;right:0;bottom:0;height:94dp;display:flex;gap:18dp;}
+3 -3
View File
@@ -63,7 +63,7 @@ body.silver .desk-calendar-month {background-color:#b76264;}body.matchday .desk-
.mood-track {position:relative;display:block;margin-top:14dp;height:14dp;border-radius:7dp;background-color:var(--soft);}
.mood-track i {display:block;height:100%;border-radius:7dp;background-color:var(--accent);}
.desk-curve-picture {position:relative;margin:0 21dp;}.desk-curve-picture>.image-frame {position:absolute;left:0;top:0;}
.curve-start,.curve-end {position:absolute;bottom:0;display:block;font-size:24dp;color:var(--muted);}.curve-start {left:3%;}.curve-end {right:3%;}
.curve-start,.curve-end {position:absolute;bottom:0;display:block;font-size:28dp;color:var(--muted);}.curve-start {left:3%;}.curve-end {right:3%;}
.desk-curve-legend {height:110dp;padding:16dp 30dp 26dp;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14dp 28dp;font-size:28dp;line-height:1.25;}
.desk-curve-legend>span {display:flex;align-items:center;gap:12dp;min-width:0;}.desk-curve-legend span>span {display:block;min-width:0;}
.desk-curve-legend i {display:block;width:40dp;border-top:5dp var(--accent);flex-shrink:0;}
@@ -75,7 +75,7 @@ body.silver .desk-calendar-month {background-color:#b76264;}body.matchday .desk-
.desk-form>div>span>span {display:block;}.desk-form .form-S {background-color:#527f73;}.desk-form .form-N {background-color:#a96059;}.desk-form strong {display:block;font-weight:normal;}
.desk-card-note {position:absolute;left:24dp;right:24dp;bottom:22dp;text-align:center;font-size:28dp;color:var(--muted);}
.desk-duels {position:absolute;left:20dp;right:20dp;top:70dp;bottom:24dp;display:flex;align-items:center;text-align:center;}
.desk-duels>div {display:flex;flex-direction:column;align-items:center;gap:10dp;flex:1;}.desk-duels strong {display:block;font-size:56dp;line-height:1;font-weight:normal;}.desk-duels small {display:block;font-size:24dp;color:var(--muted);}
.desk-duels>div {display:flex;flex-direction:column;align-items:center;gap:10dp;flex:1;}.desk-duels strong {display:block;font-size:56dp;line-height:1;font-weight:normal;}.desk-duels small {display:block;font-size:28dp;color:var(--muted);}
.desk-card.desk-utility {border:0dp;border-radius:0dp;decorator:none;backdrop-filter:none;overflow:visible;display:flex;flex-direction:column;align-items:center;gap:12dp;color:#f1f6f9;}
.desktop-utility-icon {height:178dp;width:80%;display:flex;align-items:center;justify-content:center;border:2dp #c5d9ed59;border-radius:28dp;decorator:linear-gradient(135deg,#dce5ef40,#829bb12b);}
.desk-utility>strong {display:block;font-size:28dp;font-weight:normal;}
@@ -103,7 +103,7 @@ body.silver .desk-calendar-month {background-color:#b76264;}body.matchday .desk-
.widget-gallery-item {position:absolute;width:784dp;height:660dp;padding:24dp;border:2dp var(--border);border-radius:26dp;background-color:var(--soft);}
.gallery-widget-preview {position:relative;width:100%;height:320dp;overflow:hidden;background-color:var(--soft);border-radius:18dp;}
.gallery-preview-card {position:absolute;transform-origin:50% 50%;pointer-events:none;backdrop-filter:none;}
.gallery-description {padding:22dp 6dp 16dp;}.gallery-description>small {display:block;font-size:21dp;color:var(--muted);}.gallery-description h2 {font-size:31dp;font-weight:bold;margin:10dp 0;}.gallery-description p {font-size:28dp;color:var(--muted);margin:0;line-height:1.3;}
.gallery-description {padding:22dp 6dp 16dp;}.gallery-description>small {display:block;font-size:28dp;color:var(--muted);}.gallery-description h2 {font-size:31dp;font-weight:bold;margin:10dp 0;}.gallery-description p {font-size:28dp;color:var(--muted);margin:0;line-height:1.3;}
.gallery-actions {position:absolute;left:24dp;right:24dp;bottom:24dp;display:flex;align-items:center;justify-content:space-between;gap:14dp;}
.gallery-actions select {width:200dp;font-size:28dp;padding:14dp 18dp;height:64dp;}
.gallery-actions button {display:flex;align-items:center;justify-content:center;gap:12dp;width:420dp;padding:14dp 18dp;font-size:28dp;height:64dp;}
+2 -2
View File
@@ -67,7 +67,7 @@ Die UI ruft diese über `DataSource::read_almanac` und `read_statistics` direkt
- `frames` in Minutenfolge: Anpfiff, jedes Ereignis (Tor, Chance, Karten, Verletzung, Wechsel, Elfmeter), Halbzeit, Wiederanpfiff, Abpfiff; je Spiel Stand, Chancen, Gelb, Rot, Elfmeter, Spieler auf dem Feld. `events` (fortlaufend) mit Überschrift und Satz, Spieler, Seite, Stand.
- `conference`: die übrigen Spiele des Tages im Almanach-Format.
- `standings` (Live-Tabelle) je Frame: pro Liga eines Ticker-Spiels die Tabelle vor dem Spieltag plus alle Spiele dieser Runde im Anstoß mit dem Stand der Minute (beim Abpfiff das gewertete Ergebnis); Zeilen mit `rank`, `previousRank`, `team`, `played`, `won`, `drawn`, `lost`, `goalsFor`, `goalsAgainst`, `points`. In der Aufzeichnung trägt ein Frame nur die Tabellen, die sich in ihm geändert haben (der erste alle); `kind: frame` liefert den vollständigen Stand bis dahin. Der angehaltene Live-Anstoß liefert `standings` ebenso: je Ligagruppe mit einem Live-Spiel die Tabelle mit den Ständen der laufenden Spiele. Fehler: `live_unavailable` (noch kein Anstoß), `live_no_human_match`, `stale_live_revision`, `stale_live_fixture`, `invalid_live_sequence`.
- **Live mit Eingriffen:** `session.advance {live: true}` startet den Anstoß in einem eigenen Ablauf, der nach der ersten Minute eines laufenden Live-Spiels eines Menschen anhält (eine gewertete Partie, z. B. ein Forfeit, läuft ohne Halt durch). Solange er steht, liefert `read_live` `{live: true, status: "paused", minute, matches}`: je Live-Spiel Stand, Manager je Seite und die bisherigen Ereignisse (`goal`, `miss`, `yellow`, `second_yellow`, `red`, `injury` mit Minute, Seite, Spieler, Vorlage); Wechsel zeigt der `lineup`-Read. Die vollständige Aufzeichnung folgt nach dem Abpfiff. Alle anderen Befehle antworten `live_running`, bis der Spieltag vorbei ist.
- **Live mit Eingriffen:** `session.advance {live: true}` startet den Anstoß in einem eigenen Ablauf, der nach der ersten Minute eines laufenden Live-Spiels eines Menschen anhält (eine gewertete Partie, z. B. ein Forfeit, läuft ohne Halt durch). Solange er steht, liefert `read_live` `{live: true, status: "paused", minute, matches}`: je Live-Spiel Stand, Manager je Seite und die bisherigen Ereignisse (`goal`, `miss`, `yellow`, `second_yellow`, `red`, `injury` mit Minute, Seite, Spieler, Vorlage); `lineups` nennt je Seite die Startelf (oder `null`, wenn die Mannschaft ohne Spieler antritt); Wechsel zeigt der `lineup`-Read. Die vollständige Aufzeichnung folgt nach dem Abpfiff. Alle anderen Befehle antworten `live_running`, bis der Spieltag vorbei ist.
## Commands
@@ -116,7 +116,7 @@ Aus der Welt: `nationId` und `crestAssetId` der Teams (`TeamRef`) und `photoAsse
Nach der Übergabe (MVP_FOR_CLAUDE.md): A Schreibtisch (dieser Stand) → B Vorbereitung (Kader, Aufstellung, Taktik, Training, Lager) → C Geschäft (Bank, Stadion, Transfers, Verträge, Werbung) → D Live-Ticker → E Eingriff und Nachspiel → F Manager und Presse. Je Lieferung Read- und Command-Tests.
- `desktop-widgets`: reine Session-Desk-Projektion mit zehn optionalen Warnprädikaten, eigener Platz-/Stärkeangabe und optionalem bestätigtem Gegner. Fananzahl ist ausdrücklich kein Stimmungsprozent. Keine zusätzlichen Commands oder Persistenzfelder.
- `desktop-widgets`: reine Session-Desk-Projektion mit zehn optionalen Warnprädikaten, eigener Platz-/Stärkeangabe und optionalem bestätigtem Gegner. Fananzahl ist ausdrücklich kein Stimmungsprozent. Keine zusätzlichen Commands oder Persistenzfelder. Dazu `rankCurve` (Tabellenplätze des eigenen Vereins im Saisonverlauf) und `recent` (die letzten sechs aufgezeichneten Spiele aus dem Almanach: `form` S/U/N, `score` aus eigener Sicht, `opponent`, `home`).
- `indoor-standings`: reiner Club-Read aus der vorhandenen Originalprojektion. `teamId`, `tournaments`, `rows[{rank, points, team:{id,name}}]` (16 beziehungsweise leer vor dem ersten Turnier), `footer`, `indoor`, `scoring: null | {value, places:[{rank,points}]}`. Die Wertung sind Punkte, keine Geldbeträge; Slot-/Spriteformatierung bleibt aus dem Transport. Keine Qualifikations- oder Ziehungsmutatoren, keine zusätzlichen Commands.
+48 -1
View File
@@ -8650,6 +8650,29 @@ std::vector<std::pair<std::string, ui::MailboxMessage>> ui_mailbox(const ModernS
std::vector<std::pair<std::string, ui::MailboxMessage>> out;
ui::MailboxState box;
try { box = ui::mailbox_state_from_game(g, manager); } catch (const std::exception&) { return out; }
// The stored texts name players and clubs in the fixed-width spelling of the mailbox
// ("URBIG", "HAMBURG"). Where the world has its own spelling the read shows that one;
// longer names first, so a club's full name wins over a part of it.
std::vector<std::pair<std::string, std::string>> spellings;
for (size_t t = 0; t < g.world_club_name.size(); ++t)
if (!g.world_club_name[t].empty())
spellings.emplace_back(ui::original_to_utf8(g.club_name(int(t))), g.world_club_name[t]);
for (size_t p = 0; p < g.player_last.size() && p < g.players.size(); ++p)
if (!g.player_last[p].empty())
spellings.emplace_back(ui::original_to_utf8(g.player_name(int(p))), g.player_last[p]);
std::erase_if(spellings, [](const auto& s) { return s.first.size() < 3 || s.first == s.second; });
std::stable_sort(spellings.begin(), spellings.end(), [](const auto& a, const auto& b) { return a.first.size() > b.first.size(); });
spellings.erase(std::unique(spellings.begin(), spellings.end(), [](const auto& a, const auto& b) { return a.first == b.first; }), spellings.end());
const auto letter = [](unsigned char c) { return std::isalnum(c) || c >= 0x80; };
const auto respell = [&](std::string& text) {
for (const auto& [stored, world] : spellings)
for (size_t at = text.find(stored); at != std::string::npos; at = text.find(stored, at)) {
const bool whole = (at == 0 || !letter(static_cast<unsigned char>(text[at - 1]))) &&
(at + stored.size() == text.size() || !letter(static_cast<unsigned char>(text[at + stored.size()])));
if (whole) text.replace(at, stored.size(), world), at += world.size();
else at += stored.size();
}
};
std::map<std::string, int> seen;
for (auto& m : box.messages) {
uint32_t hash = 2166136261u; // FNV-1a
@@ -8672,6 +8695,12 @@ std::vector<std::pair<std::string, ui::MailboxMessage>> ui_mailbox(const ModernS
if (whole) clean.append(m.text, i, length), i += length;
else ++i;
}
respell(clean);
// amounts carry the two-letter currency mark of the stored texts
for (size_t at = clean.find(" EU"); at != std::string::npos; at = clean.find(" EU", at + 1))
if (at > 0 && std::isdigit(static_cast<unsigned char>(clean[at - 1])) &&
(at + 3 == clean.size() || !letter(static_cast<unsigned char>(clean[at + 3]))))
clean.replace(at, 3, " €");
m.text = std::move(clean);
out.emplace_back(std::move(id), std::move(m));
}
@@ -8753,7 +8782,18 @@ cli::Json ModernSession::read_live(const cli::Json& request) const {
events.push_back(O{{"minute", value}, {"kind", kKinds[code]}, {"side", side_team == home ? "home" : "away"},
{"player", person(player)}, {"other", person(assistant)}, {"headline", headline}, {"body", body}});
}
matches.push_back(O{{"events", std::move(events)},
// the elevens that started, for the teams that play with their players
cli::Json::Object starters;
for (int side = 0; side < 2; ++side) {
const int team = side ? away : home;
if (!fields_players(g_, team)) { starters[side ? "away" : "home"] = nullptr; continue; }
const SquadRange range = squad_range(team);
cli::Json::Array eleven;
for (size_t s = 0; s < range.count && s < 11; ++s)
if (const int p = g_.squad_slots.at(range.first + s) & 0x0fff; p != 0x0fff) eleven.push_back(plain_name(p));
starters[side ? "away" : "home"] = std::move(eleven);
}
matches.push_back(O{{"events", std::move(events)}, {"lineups", std::move(starters)},
{"home", O{{"id", modern::ui_team_id(g_, home)}, {"name", club_label(home)}}},
{"away", O{{"id", modern::ui_team_id(g_, away)}, {"name", club_label(away)}}},
{"homeManagerId", hm >= 0 ? cli::Json(modern::ui_manager_id(g_, hm)) : cli::Json(nullptr)},
@@ -8964,7 +9004,14 @@ cli::Json ModernSession::ui_read(const cli::Json& request, uint64_t revision) co
matching && !desk.national_team ? curve.current_position : std::nullopt,
matching ? curve.strength : std::nullopt);
}
// the own club's table places of the season so far and its last recorded matches
A places;
if (!desk.national_team)
for (const auto &sample : desk.rank_curves[0].samples)
if (sample.source_rank >= 0 && sample.source_rank < 24) places.push_back(int64_t(sample.source_rank + 1));
return modern::ui_snapshot(g_, context, request_id, O{{"kind", "desktop-widgets"},
{"rankCurve", std::move(places)},
{"recent", modern::recent_results(g_, modern::ui_team_id(g_, g_.manager_teams[size_t(manager)]), 6)},
{"own", summary(g_.manager_teams[size_t(manager)],
desk.national_team ? std::nullopt : desk.table_position, desk.strength)},
{"opponent", std::move(opponent)}, {"warnings", std::move(warnings)},
+19
View File
@@ -1146,6 +1146,25 @@ cli::Json live_fixture(const ModernState& g, uint32_t after_date, uint32_t until
// cards, the result, clean sheets), one goalkeeper, three defenders, four midfielders and
// three forwards. Nothing is drawn at random and no rating of the original is used; the
// current strength of a player only breaks ties.
cli::Json recent_results(const ModernState& g, const std::string& club_id, size_t count) {
A rows;
for (const auto& s : seasons_of(g))
for (const auto& m : s.matches) {
if (m.home >= s.clubs.size() || m.away >= s.clubs.size()) continue;
const bool home = s.clubs[m.home].id == club_id;
if (!home && s.clubs[m.away].id != club_id) continue;
const int own = home ? m.home_goals : m.away_goals, other = home ? m.away_goals : m.home_goals;
int balance = own - other;
if (!balance && m.decided == 2)
balance = home ? int(m.home_shootout) - int(m.away_shootout) : int(m.away_shootout) - int(m.home_shootout);
rows.push_back(O{{"form", balance > 0 ? "S" : balance < 0 ? "N" : "U"},
{"score", std::to_string(own) + ":" + std::to_string(other)},
{"opponent", s.clubs[home ? m.away : m.home].name}, {"home", home}});
}
if (rows.size() > count) rows.erase(rows.begin(), rows.end() - std::ptrdiff_t(count));
return rows;
}
cli::Json team_of_the_day(const ModernState& g, uint32_t from_date, uint32_t until_date) {
std::map<std::string, int> runtime; // world player id -> runtime index
for (size_t p = 0; p < g.world_player_id.size(); ++p)
+3
View File
@@ -50,6 +50,9 @@ cli::Json live_fixture(const ModernState& g, uint32_t after_date, uint32_t until
// Modern's eleven of the day per league with a human match in the kickoff (3-4-3), chosen from
// the recorded facts of that league's matches; empty when a line is short of players.
cli::Json team_of_the_day(const ModernState& g, uint32_t from_date, uint32_t until_date);
// The last `count` recorded matches of a club (world club id), oldest first: each
// {form: "S"|"U"|"N", score: "own:other", opponent, home}. A shoot-out counts for its winner.
cli::Json recent_results(const ModernState& g, const std::string& club_id, size_t count);
// The ticker's headline and sentence for one event (kind as AlmanacEventKind); `home`/`away` is the
// score after it. Deterministic: the variant follows from the event's facts.
std::pair<std::string, std::string> ticker_phrase(int kind, const std::string& team, const std::string& who,
+20
View File
@@ -0,0 +1,20 @@
// SPDX-License-Identifier: GPL-3.0-only
#pragma once
#include <array>
#include <chrono>
#include <string>
namespace bmh::modern_ui {
// An ISO date (2027-01-02) as the interface writes it: "Sa., 2. Januar 2027".
// Anything else is returned unchanged.
inline std::string ui_long_date(const std::string &iso) {
if (iso.size() != 10 || iso[4] != '-' || iso[7] != '-') return iso;
for (size_t i : {0u, 1u, 2u, 3u, 5u, 6u, 8u, 9u}) if (iso[i] < '0' || iso[i] > '9') return iso;
const int y = std::stoi(iso.substr(0, 4)), m = std::stoi(iso.substr(5, 2)), d = std::stoi(iso.substr(8, 2));
const auto ymd = std::chrono::year_month_day{std::chrono::year(y), std::chrono::month(unsigned(m)), std::chrono::day(unsigned(d))};
if (!ymd.ok()) return iso;
static constexpr std::array<const char *, 12> months{"Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"};
static constexpr std::array<const char *, 7> weekdays{"So.", "Mo.", "Di.", "Mi.", "Do.", "Fr.", "Sa."};
return std::string(weekdays[std::chrono::weekday{std::chrono::sys_days(ymd)}.c_encoding()]) + ", " + std::to_string(d) + ". " + months[size_t(m - 1)] + " " + std::to_string(y);
}
} // namespace bmh::modern_ui
+2
View File
@@ -147,6 +147,8 @@ Json default_desktop() {
objects["crest"] = object(8, 0, 2, 2, true, true);
objects["opponent-crest"] = object(10, 0, 2, 2, true, true);
objects["warnings"] = object(6, 2, 4, 2, true, true);
objects["own-curve"] = object(2, 4, 4, 2, true, true);
objects["results"] = object(6, 4, 4, 2, true, true);
objects["trash"] = object(14, 6, 1, 1, true, true);
for (const auto &route : desktop_routes()) {
const auto id = "app-" + route;
+2 -1
View File
@@ -318,7 +318,8 @@ Json engine_live_progress(const Json &previous, const Json &state, const Json &b
} catch (const std::exception &) {}
out["matches"].push_back({{"id", id}, {"home", home}, {"away", away}, {"owners", owners}, {"competition", competition},
{"attendance", m.value("attendance", Json())}, {"weather", m.value("weather", Json())}});
{"attendance", m.value("attendance", Json())}, {"weather", m.value("weather", Json())},
{"lineups", m.value("lineups", Json())}});
}
if (out.at("owners").empty() || out.at("matches").empty()) return failure("live_no_human_match");
}
+4 -6
View File
@@ -50,15 +50,13 @@ NewsCatalog engine_news_catalogue(const NewsCatalog &base) {
{"parameters", p},
{"guards", Json::array()},
{"de",
{{"headline", result ? "Ergebnis in {{competition}}"
{{"headline", result ? "{{competition}}: {{score}} gegen {{opponent}}"
: "{{team}} gewinnt {{competition}}"},
{"sentences",
result ? Json::array({"{{team}} und {{opponent}} treffen in "
"{{competition}} aufeinander.",
"Das Ergebnis lautet {{score}}."})
result ? Json::array({"{{team}} spielt {{score}} gegen "
"{{opponent}}."})
: Json::array(
{"{{team}} hat {{competition}} gewonnen.",
"Der Wettbewerb endet mit {{team}} als Sieger."})}}},
{"{{team}} hat {{competition}} gewonnen."})}}},
{"en",
{{"headline", result ? "Result in {{competition}}"
: "{{team}} win {{competition}}"},
+3 -1
View File
@@ -63,7 +63,7 @@ void App::engine_render() {
const auto &team = desk.at("team"), &person = desk.at("manager");
out = "<div class=\"desktop-layer\"><div class=\"info-bar\"><div class=\"identity\">" + engine_widget_crest(team, 82) +
"<span><strong>" + esc(engine_text(team.at("name"))) + "</strong><small>" + esc(engine_text(person.at("name"))) +
"</small></span></div><div class=\"info-date\">" + esc(meta.at("date").get<std::string>()) + "<small>" +
"</small></span></div><div class=\"info-date\">" + esc(ui_long_date(meta.at("date").get<std::string>())) + "<small>Saison " +
esc(meta.at("season").at("label").get<std::string>()) + "</small></div><div class=\"info-cash\"><small>Guthaben</small><strong id=\"engine-cash\" class=\"" + money_classes(engine_money_minor(desk.at("accounts").at("cash"))) + "\">" +
esc(engine_price(desk.at("accounts").at("cash"))) + "</strong></div></div>";
bool lineup_available = false;
@@ -115,6 +115,8 @@ void App::engine_render() {
} else if (id == "account") {
const auto savings = bank_available ? engine_data_.at("bank").at("data").at("accounts").at("deposit") : desk.at("accounts").at("savings");
body = widget_heading("Vereinskasse", false) + "<div class=\"desk-account-main\"><span>Guthaben</span><strong class=\"" + money_classes(engine_money_minor(desk.at("accounts").at("cash"))) + "\">" + esc(engine_price(desk.at("accounts").at("cash"))) + "</strong></div><div class=\"desk-account-bottom\"><div><span>Sparbuch</span><strong>" + (savings.is_null() ? std::string("—") : esc(engine_price(savings))) + "</strong></div>" + btn("engine-ticket", glyph("ticket", 36) + "<span><span>Eintritt</span><strong>" + (ticket_available ? esc(engine_price(engine_data_.at("stadium").at("data").at("ticketPrice"))) : std::string("—")) + "</strong></span>", "desk-ticket", "id=\"account-ticket\" " + std::string(ticket_available && engine_fresh_ && !engine_busy_ ? "" : "disabled")) + "</div>";
} else if (id == "crest") {
body = widget_heading("Dein Verein", false) + "<div class=\"center\" style=\"padding:30dp;\">" + engine_widget_crest(team, 220) + "<p>" + esc(engine_text(team.at("name"))) + "</p></div>";
} else if (id == "opponent-crest" && desk.at("nextFixture").is_object()) {
const auto &next = desk.at("nextFixture");
const auto &other = next.at(next.at("home").at("id") == team.at("id") ? "away" : "home");
+3 -1
View File
@@ -58,6 +58,8 @@ Json engine_widgets_projection(const Json &bundle) {
return {{"own", summary(d.at("own"))},
{"opponent", opponent},
{"warnings", warnings},
{"fixture", fixture}};
{"fixture", fixture},
{"recent", d.value("recent", Json::array())},
{"rankCurve", d.value("rankCurve", Json::array())}};
}
} // namespace bmh::modern_ui
+31 -1
View File
@@ -12,9 +12,39 @@ std::string App::engine_widget(const std::string &id, const Json &o) {
return engine_news_value_.is_object() ? render_news_widget(o)
: std::string();
if (id != "warnings" && id != "competition" && id != "own-summary" &&
id != "opponent-summary")
id != "opponent-summary" && id != "results" && id != "own-curve")
return {};
const auto data = engine_widgets_projection(engine_data_);
if (id == "results") {
// the last recorded matches, newest on the right; nothing to show before the first one
const auto &rows = data.at("recent");
if (!rows.is_array() || rows.empty())
return widget_heading("Letzte Spiele", false) + "<div class=\"desk-fixture center\"><span>Noch kein Spiel gespielt.</span></div>";
const int w = o.at("w");
const bool wide = o.at("h") == 224;
int won = 0, drawn = 0, lost = 0;
std::string out = widget_heading(rows.size() == 1 ? "Letztes Spiel" : "Die letzten " + std::to_string(rows.size()) + " Spiele", false) + "<div class=\"desk-form\">";
for (const auto &row : rows) {
const auto form = row.value("form", std::string("U"));
++(form == "S" ? won : form == "N" ? lost : drawn);
out += "<div><span class=\"form-" + esc(form) + "\" style=\"width:" + scalar(wide ? 50 : w * .08) + "dp;height:" + scalar(wide ? 50 : w * .08) +
"dp;font-size:" + scalar(wide ? 28 : std::max(28., w * .04)) + "dp;\"><span>" + esc(form) + "</span></span><strong style=\"font-size:" +
scalar(wide ? 29 : std::max(28., w * .035)) + "dp;\">" + esc(row.value("score", std::string())) + "</strong></div>";
}
const auto count = [](int n, const char *one, const char *many) { return std::to_string(n) + " " + (n == 1 ? one : many); };
return out + "</div>" + (wide ? std::string() : "<p class=\"desk-card-note\">" + count(won, "Sieg", "Siege") + " · " + std::to_string(drawn) + " Unentschieden · " + count(lost, "Niederlage", "Niederlagen") + "</p>");
}
if (id == "own-curve") {
const auto &places = data.at("rankCurve");
if (!places.is_array() || places.size() < 2)
return widget_heading("Tabellenplatz", false) + "<div class=\"desk-fixture center\"><span>Die Kurve beginnt nach dem zweiten Spieltag.</span></div>";
// widget_curve draws from the widget values; lend it the engine's series
const Json kept = widget_data_;
widget_data_ = {{"own_curve", places}};
const auto curve = widget_curve(id, o, o.at("w"), o.at("h"));
widget_data_ = kept;
return widget_heading("Tabellenplatz", false) + curve;
}
if (id == "warnings")
return widget_warnings(data.at("warnings"), o);
if (id == "own-summary" || id == "opponent-summary") {
+27 -7
View File
@@ -199,10 +199,29 @@ std::string App::live_ticker_events(const Json &frame, size_t &shown) {
if (live_filter_ == "yellow" && kind != "yellow" && kind != "red" && kind != "second_yellow") continue;
if (live_filter_ == "highlights" && kind != "goal" && kind != "chance" && kind != "miss" && kind != "red" && kind != "second_yellow") continue;
const auto &match = live_match_by_id(fixture.at("matches"), event.at("match_id"));
out += "<article class=\"live-event " + std::string(kind == "goal" ? "is-goal" : "") + "\" data-live-event=\"" + esc(event.at("id").get<std::string>()) + "\">" + live_text(std::to_string(event.at("minute").get<int>()) + "′", "live-event-time") + live_badge(match.at(event.at("side").get<std::string>()), 54) +
out += "<article class=\"live-event " + std::string(kind == "goal" ? "is-goal" : "") + "\" data-live-event=\"" + esc(event.at("id").get<std::string>()) + "\">" + live_text(std::to_string(event.at("minute").get<int>()) + "′", "live-event-time") + (kind == "kickoff" || kind == "interval" || kind == "fulltime" ? "<div class=\"live-badge\" style=\"width:54dp;height:54dp;\"></div>" : live_badge(match.at(event.at("side").get<std::string>()), 54)) +
"<div class=\"live-event-copy\">" + (fixture.at("source") == "engine-recording" && fixture.at("matches").size() == 1 ? std::string() : live_text(match.at("home").at("name").get<std::string>() + " · " + match.at("away").at("name").get<std::string>(), "live-event-owners")) + "<h3>" + live_text(event.at("headline")) + "</h3><p>" + live_text(event.at("body")) + "</p></div>" + live_text(live_score_text(event.at("score")), "live-event-score") + "</article>";
++shown;
}
if (!shown && fixture.at("source") == "engine-recording" && live_filter_ == "all" && frame.at("events").empty()) {
// before the first report: who starts
for (const auto &match : fixture.at("matches")) {
if (live_coverage_ == "single" && match.at("id") != live_selected_match_) continue;
if (!match.contains("lineups") || !match.at("lineups").is_object()) continue;
std::string columns;
for (const auto *side : {"home", "away"}) {
const auto names = match.at("lineups").value(side, Json());
columns += "<div class=\"live-lineup-side\"><h3>" + live_text(match.at(side).at("name")) + "</h3>";
if (names.is_array() && !names.empty()) {
size_t number = 0;
for (const auto &name : names) columns += "<div class=\"live-lineup-row\">" + live_text(std::to_string(++number), "live-roster-number") + live_text(name.get<std::string>(), "live-roster-name") + "</div>";
} else columns += "<p>" + live_text("Aufstellung nicht bekannt.") + "</p>";
columns += "</div>";
}
out += "<div class=\"live-lineups\">" + columns + "</div>";
}
if (!out.empty()) return out;
}
if (!shown) out += "<p class=\"live-note\">" + live_text(fixture.at("source") == "engine-recording" ? "Noch keine Meldungen." : "Für diesen Filter liegt noch keine Demomeldung vor.") + "</p>";
return out;
}
@@ -219,34 +238,35 @@ std::string App::render_live() {
const auto phase_text = live_.finished() ? "Beendet" : phase == "interval" ? "Halbzeit" : live_.speed() ? (recorded ? (phase == "extra_time" ? "Verlängerung" : phase == "shootout" ? "Elfmeterschießen" : "Spiel läuft") : "Aufzeichnung läuft") : (recorded ? "Pausiert" : "Gemeinsam pausiert");
const auto arrow = [&](bool right) { const auto color = theme_ == "silver" ? "#376b84" : theme_ == "matchday" ? "#efb2aa" : "#b5dbd2"; return picture(renderer_.diagram(right ? "live-arrow-right" : "live-arrow-left", "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\"><path d=\"" + std::string(right ? "M7 4l6 6-6 6" : "M13 4l-6 6 6 6") + "\" fill=\"none\" stroke=\"" + color + "\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg>", 72), 36, 36); };
std::string out = "<section id=\"live-stage\" class=\"live-stage\" data-source=\"" + std::string(recorded ? "engine-recording" : "ui-demo-fixture") + "\" data-fixture-id=\"" + esc(fixture.at("fixture_id").get<std::string>()) + "\"><header class=\"live-header\"><div>" + (recorded ? std::string() : live_text("SPIELTAG · LIVE-TICKER", "live-eyebrow")) +
"<h1>" + live_text(live_review_ ? "Ergebnisse & Bericht" : fixture.at("role") == "national" ? "Deutschland · Demo-Länderspiel" : fixture.at("surface") == "indoor" ? "Hallenpartien · 40 Minuten" : recorded ? fixture.at("matches").front().value("competition", std::string("Spieltag")) : std::string("Gemeinsamer Spieltag")) + "</h1></div>" + live_text(recorded ? fixture.value("date", std::string()) : std::string("UI-Demo · vorgegebene Ergebnisse"), "live-demo-tag") + "</header>";
"<h1>" + live_text(live_review_ ? "Ergebnisse & Bericht" : fixture.at("role") == "national" ? "Deutschland · Demo-Länderspiel" : fixture.at("surface") == "indoor" ? "Hallenpartien · 40 Minuten" : recorded ? fixture.at("matches").front().value("competition", std::string("Spieltag")) : std::string("Gemeinsamer Spieltag")) + "</h1></div>" + live_text(recorded ? ui_long_date(fixture.value("date", std::string())) : std::string("UI-Demo · vorgegebene Ergebnisse"), "live-demo-tag") + "</header>";
const auto scoreline = [&](const Json &match) {
const auto &value = live_score_by_id(frame, match.at("id"));
return "<div class=\"live-scoreline\">" + live_text(match.at("home").at("name"), "live-team-name home") + live_badge(match.at("home"), 58) + live_text(live_score_text(value.at("score")), "live-score") + live_badge(match.at("away"), 58) + live_text(match.at("away").at("name"), "live-team-name away") + "</div>";
};
out += "<div id=\"live-underlay\" class=\"live-body\"><div class=\"live-left\"><section class=\"live-panel live-overview\"><nav class=\"live-coverage\">";
out += "<div id=\"live-underlay\" class=\"live-body\"><div class=\"live-left\"><section class=\"live-panel live-overview\"><nav class=\"live-coverage" + std::string(recorded && fixture.at("matches").size() == 1 ? " solo" : "") + "\">";
if (!(recorded && fixture.at("matches").size() == 1))
for (const auto &[id, text] : std::array<std::pair<const char *, const char *>, 3>{{{"all", "Alle Spiele"}, {"single", "Einzelspiel"}, {"conference", "Konferenz"}}})
out += btn("live-coverage", text, live_coverage_ == id ? "selected" : "", "id=\"live-coverage-" + std::string(id) + "\" data-id=\"" + id + "\"");
if (live_coverage_ == "single" && fixture.at("matches").size() > 1) out += btn("live-match-prev", arrow(false), "live-match-arrow", "id=\"live-match-prev\" aria-label=\"Vorherige Tickerpartie\"") + btn("live-match-next", arrow(true), "live-match-arrow", "id=\"live-match-next\" aria-label=\"Nächste Tickerpartie\"");
out += live_text(std::to_string(minute) + ":00", "live-clock") + "</nav><div class=\"live-cards " + std::string(fixture.at("matches").size() == 1 || live_coverage_ == "single" ? "single" : "") + "\">";
if (!(recorded && fixture.at("matches").size() == 1)) out += live_text(std::to_string(minute) + ":00", "live-clock");
out += "</nav><div class=\"live-cards " + std::string(fixture.at("matches").size() == 1 || live_coverage_ == "single" ? "single" : "") + "\">";
for (const auto &match : fixture.at("matches")) {
if (live_coverage_ == "single" && match.at("id") != live_selected_match_) continue;
std::string names;
for (const auto &id : match.at("owners")) for (const auto &person : fixture.at("owners")) if (person.at("id") == id) { if (!names.empty()) names += " · "; names += person.at("name").get<std::string>(); }
out += "<button data-action=\"live-match\" class=\"live-game " + std::string(match.at("id") == live_selected_match_ ? "active" : "") + "\" data-live-match=\"" + esc(match.at("id").get<std::string>()) + "\" data-id=\"" + esc(match.at("id").get<std::string>()) + "\">" + (recorded && fixture.at("owners").size() == 1 ? std::string() : live_text(names, "live-owners")) + scoreline(match) + live_text(std::to_string(minute) + "′ · " + (match.at("owners").size() > 1 ? std::string("Zwei menschliche Manager") : recorded ? match.value("competition", std::string("Eine menschliche Mannschaft")) : std::string("Eine menschliche Mannschaft")), "live-card-caption") + live_text(live_match_info_text(match, fixture.at("surface") == "indoor"), "live-match-info") + "</button>";
out += "<button data-action=\"live-match\" class=\"live-game " + std::string(match.at("id") == live_selected_match_ ? "active" : "") + "\" data-live-match=\"" + esc(match.at("id").get<std::string>()) + "\" data-id=\"" + esc(match.at("id").get<std::string>()) + "\">" + (recorded && fixture.at("owners").size() == 1 ? std::string() : live_text(names, "live-owners")) + scoreline(match) + live_text(recorded && fixture.at("matches").size() == 1 ? std::string(phase_text) + (live_.finished() || minute < 1 ? "" : " · " + std::to_string(minute) + ". Minute") : std::to_string(minute) + "′ · " + (match.at("owners").size() > 1 ? std::string("Zwei menschliche Manager") : recorded ? match.value("competition", std::string("Eine menschliche Mannschaft")) : std::string("Eine menschliche Mannschaft")), "live-card-caption") + live_text(live_match_info_text(match, fixture.at("surface") == "indoor"), "live-match-info") + "</button>";
}
out += "</div></section><section class=\"live-panel live-ticker\"><header class=\"live-panel-heading\"><h2>" + live_text(recorded ? "Ticker" : "Gemeinsamer Live-Ticker") + "</h2>" + (recorded && fixture.at("owners").size() == 1 ? std::string() : live_text(live_coverage_ == "single" ? "Gewählte Partie" : "Alle Manager", "live-small")) + "</header><nav class=\"live-filters\">";
for (const auto &[id, label] : std::array<std::pair<const char *, const char *>, 4>{{{"all", "Alles"}, {"highlights", "Highlights"}, {"goal", "Tore"}, {"yellow", "Karten"}}}) out += btn("live-filter", label, live_filter_ == id ? "selected" : "", "id=\"live-filter-" + std::string(id) + "\" data-id=\"" + id + "\"");
out += "</nav><div id=\"live-ticker\" class=\"live-event-list\" tabindex=\"0\" aria-label=\"Gemeinsamer Ereignisverlauf\">";
size_t shown = 0;
out += live_ticker_events(frame, shown);
out += "</div><footer class=\"live-ticker-footer\">" "<span id=\"live-event-count\" class=\"live-small\">" + esc(std::to_string(shown) + (live_.fixture().at("source") == "engine-recording" ? (shown == 1 ? " Meldung" : " Meldungen") : " Meldungen · feste Aufzeichnung")) + "</span>" + "<span id=\"live-phase-status\" class=\"live-small\">" + esc(phase_text) + "</span></footer></section></div><aside id=\"live-detail\" class=\"live-detail live-panel\"><header class=\"live-panel-heading\"><div class=\"live-detail-heading\"><h2>" + "<span id=\"live-owner-team\">" + esc(owner.at("team").at("name").get<std::string>()) + "</span></h2><p><span id=\"live-owner-name\">" + esc(owner.at("name").get<std::string>()) + "</span>" + "</p></div><nav class=\"live-team-switch\" aria-label=\"Managerdetails wechseln\">" +
out += "</div><footer class=\"live-ticker-footer\">" "<span id=\"live-event-count\" class=\"live-small\">" + esc(recorded && !shown ? std::string() : std::to_string(shown) + (live_.fixture().at("source") == "engine-recording" ? (shown == 1 ? " Meldung" : " Meldungen") : " Meldungen · feste Aufzeichnung")) + "</span>" + "<span id=\"live-phase-status\" class=\"live-small\">" + esc(recorded ? std::string() : std::string(phase_text)) + "</span></footer></section></div><aside id=\"live-detail\" class=\"live-detail live-panel\"><header class=\"live-panel-heading\"><div class=\"live-detail-heading\"><h2>" + "<span id=\"live-owner-team\">" + esc(owner.at("team").at("name").get<std::string>()) + "</span></h2><p><span id=\"live-owner-name\">" + esc(owner.at("name").get<std::string>()) + "</span>" + "</p></div><nav class=\"live-team-switch\" aria-label=\"Managerdetails wechseln\">" +
btn("live-owner-prev", arrow(false), "", "id=\"live-owner-prev\" aria-label=\"Vorheriger Manager\" " + std::string(fixture.at("owners").size() == 1 ? "disabled" : "")) + btn("live-owner-next", arrow(true), "", "id=\"live-owner-next\" aria-label=\"Nächster Manager\" " + std::string(fixture.at("owners").size() == 1 ? "disabled" : "")) + "</nav></header><nav class=\"live-tabs\">";
for (const auto &[id, label] : std::array<std::pair<const char *, const char *>, 5>{{{"team", "Team"}, {"tactics", "Taktik"}, {"opponent", recorded ? "Ergebnisse" : "Gegner"}, {"table", "Live-Tabelle"}, {"stats", "Statistik"}}}) out += btn("live-tab", label, live_tab_ == id ? "selected" : "", "id=\"live-tab-" + std::string(id) + "\" data-id=\"" + id + "\" aria-pressed=\"" + (live_tab_ == id ? "true" : "false") + "\"");
out += "</nav><div id=\"live-detail-body\" class=\"live-detail-body\" tabindex=\"0\">" + live_detail(owner, frame) + "</div><footer class=\"live-detail-footer\">" + btn("live-intervene-lineup", "Aufstellung & Wechsel", "", "id=\"live-lineup-edit\" " + std::string(live_.finished() || (recorded && !live_.running()) ? "disabled" : "")) + "</footer></aside></div>";
out += "<div class=\"live-speed\">" + live_text("+") + "<input id=\"live-speed\" type=\"range\" orientation=\"vertical\" min=\"0\" max=\"4\" step=\"1\" value=\"" + std::to_string(4 - live_.speed()) + "\" aria-label=\"Wiedergabegeschwindigkeit; unten Pause\" aria-valuenow=\"" + std::to_string(live_.speed()) + "\" " + (live_.finished() ? "disabled" : "") + "/><span id=\"live-speed-value\" class=\"live-speed-value\">" + esc(live_.finished() ? "Ende" : live_.speed() ? std::to_string(live_.speed()) + "×" : "Pause") + "</span></div>";
out += "<footer class=\"live-bottom\"><div class=\"live-bottom-actions\">" + btn("live-back", live_.running() ? "Zu Ende spielen" : recorded ? "Zum Schreibtisch" : "Zum Desktop", "", "id=\"live-back\"") + btn("live-pause", live_.speed() ? "Pause" : "Abspielen", "", "id=\"live-pause\" " + std::string(live_.finished() ? "disabled" : "")) + "</div><span id=\"live-playback-status\" class=\"live-bottom-note\">" + esc(live_feedback_.empty() ? std::string(phase_text) + " · " + std::to_string(minute) + (recorded ? "′" : "′ · keine Spielwertänderung") : live_feedback_) + "</span>" +
out += "<footer class=\"live-bottom\"><div class=\"live-bottom-actions\">" + btn("live-back", live_.running() ? "Zu Ende spielen" : recorded ? "Zum Schreibtisch" : "Zum Desktop", "", "id=\"live-back\"") + btn("live-pause", live_.speed() ? "Pause" : "Abspielen", "", "id=\"live-pause\" " + std::string(live_.finished() ? "disabled" : "")) + "</div><span id=\"live-playback-status\" class=\"live-bottom-note\">" + esc(live_feedback_.empty() ? (recorded ? std::string() : std::string(phase_text) + " · " + std::to_string(minute) + "′ · keine Spielwertänderung") : live_feedback_) + "</span>" +
btn(live_.finished() ? "live-review" : "live-next", live_.finished() ? "Zur Auswertung" : live_.running() ? "Nächste Minute" : "Nächste Meldung", "", "id=\"" + std::string(live_.finished() ? "live-review" : "live-next") + "\"") + "</footer>";
return out + live_dialog_markup(owner) + "</section>";
}
+1 -1
View File
@@ -680,7 +680,7 @@ NewsCatalog::NewsCatalog(Json data) : catalogue_(std::move(data)) {
for (const auto *lang : {"de", "en"}) {
const auto &v = t.at(lang);
(void)text(v.at("headline"), 240);
if (!v.at("sentences").is_array() || v.at("sentences").size() < 2 ||
if (!v.at("sentences").is_array() || v.at("sentences").empty() ||
v.at("sentences").size() > 4)
throw editor::Error("invalid_news_catalogue");
for (const auto &s : v.at("sentences"))
+3 -4
View File
@@ -131,8 +131,7 @@ std::string App::render_news() {
std::string content =
"<div id=\"news-underlay\" class=\"news-layout\"><div "
"class=\"news-masthead\"><div class=\"news-brand\"><span "
"class=\"news-wordmark\">kicker</span><div><p>DEIN "
"SPIELJOURNAL</p><h2>Nachrichten</h2></div></div><div "
"class=\"news-wordmark\">kicker</span><div><p>" + std::string(engine_mode_ ? "" : "DEIN SPIELJOURNAL") + "</p><h2>Nachrichten</h2></div></div><div "
"class=\"news-owner\"><div><strong>" +
esc(data.at("club_name").get<std::string>()) + "</strong><p>" +
esc(data.at("date").get<std::string>()) + "</p></div>" +
@@ -187,7 +186,7 @@ std::string App::render_news() {
(data.at("unbound_count").get<size_t>() == 1
? " Altbestand ohne Besitzerbeleg unverändert erhalten"
: " Altbestände ohne Besitzerbeleg unverändert erhalten"));
if(engine_mode_&&!data.at("unsupported").empty())content+=esc(" · "+std::to_string(data.at("unsupported").size())+" weitere Berichte sind noch nicht aufbereitet");
content += "</p>" +
btn("news-undo", glyph("undo", 32) + "<span>Rückgängig</span>",
"news-undo",
@@ -213,7 +212,7 @@ std::string App::render_news() {
btn("close", "<span>×</span>", "close",
"id=\"window-close\" aria-label=\"Fenster schließen\"") +
"<h1>Nachrichten</h1></div><div class=\"content\">" + content +
"</div><div class=\"news-screen-footer\"><span>" + std::string(engine_mode_?"Dein Spieljournal":"Fiktive Meldungen · Modern UI Demo") + "</span><span>Dreierpack Manager</span></div><div "
"</div><div class=\"news-screen-footer\"><span>" + std::string(engine_mode_?"":"Fiktive Meldungen · Modern UI Demo") + "</span><span>Dreierpack Manager</span></div><div "
"class=\"news-homebar\"></div></div>";
}
+2 -2
View File
@@ -204,7 +204,7 @@ std::string App::render_transfer() {
"<section class=\"transfer-overview " +
std::string(complete ? "transfer-complete" : "") +
"\"><header class=\"transfer-heading\"><h2>Kader und "
"Transfermarkt</h2>" + (engine_mode_?"<p id=\"transfer-engine-feedback\" style=\"position:absolute;left:0;right:650dp;bottom:0;font-size:23dp;line-height:27dp;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;\">"+esc(engine_busy_?engine_operation_:engine_notice_)+"</p>":"") + "<div><span>Verfügbares Kapital</span><strong class=\"" + money_classes(engine_mode_?engine_transfer_value_.at("cash").get<int64_t>():snapshot.state.at("cash").get<int64_t>()) + "\">" +
"Transfermarkt</h2>" + (engine_mode_?"<p id=\"transfer-engine-feedback\" style=\"position:absolute;left:0;right:650dp;bottom:0;font-size:28dp;line-height:27dp;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;\">"+esc(engine_busy_?engine_operation_:engine_notice_)+"</p>":"") + "<div><span>Verfügbares Kapital</span><strong class=\"" + money_classes(engine_mode_?engine_transfer_value_.at("cash").get<int64_t>():snapshot.state.at("cash").get<int64_t>()) + "\">" +
esc(transfer_money((engine_mode_ ? engine_transfer_value_.at("cash").get<int64_t>() : snapshot.state.at("cash").get<int64_t>()))) +
"</strong></div></header><div class=\"transfer-columns\"><section "
"class=\"transfer-roster\"><header><h2>Dein Kader</h2><span>" +
@@ -342,7 +342,7 @@ std::string App::render_transfer() {
? "true"
: "false") +
"\" style=\"" +
rect(0, (i - size_t(page) * 6) * 128.7864583, 1087.03125,
rect(0, (i - size_t(page) * 6) * 128.7864583, 1062,
120.7864583) +
"\"");
}
+1
View File
@@ -11,6 +11,7 @@
#include "modern/ui/news_catalog.hpp"
#include "modern/ui/career_files.hpp"
#include "modern/ui/live_match_info.hpp"
#include "modern/ui/date_text.hpp"
#include "modern/ui/script_locator.hpp"
#include "modern/ui/select_menu.hpp"
#include "modern/ui/demo_calendar.hpp"
+1 -1
View File
@@ -66,7 +66,7 @@ void test(Fixture &f) {
if (o.at("widget") == true && o.at("visible") == true)
++visible;
}
require(visible == 8 && desktop_routes().size() == 32,
require(visible == 10 && desktop_routes().size() == 32,
"Default desktop counts wrong");
for (const auto &d : widget_catalogue()) {
bool found = false;
+12 -2
View File
@@ -19,9 +19,19 @@ void no(const Json &value, const std::string &code) {
} // namespace
int main(int argc, char **argv) {
try {
require(argc == 3, "Catalogue and synthetic reference paths required");
// a fourth argument "--update" rewrites the expected snapshots after a deliberate
// change of the catalogue's wording
const bool update = argc == 4 && std::string(argv[3]) == "--update";
require(argc == 3 || update, "Catalogue and synthetic reference paths required");
const auto catalog = NewsCatalog::load(argv[1]);
const auto reference = Json::parse(bmh::editor::read_file(argv[2]));
auto reference = Json::parse(bmh::editor::read_file(argv[2]));
if (update) {
for (auto &test : reference.at("cases"))
test["result"] = catalog.from_event(test.at("event"), test.at("context"));
bmh::editor::write_atomic(argv[2], reference.dump());
std::cout << "reference updated\n";
return 0;
}
require(catalog.registry().size() == 113,
"113 own authored templates registered");
size_t passed = 0, mismatches = 0;
@@ -1 +1 @@
{"source_commit":"7dbf70f5be5505af41fa532e37dd27aced86bd76","catalogue_sha256":"e249142f2635c897803d3016eb05d3f94297a75a013316fd536f82f2ef982339","description":"Synthetic own authored catalogue events and expected HTML-contract snapshots; no original game data.","cases":[{"name":"match-win:club:de","event":{"id":"demo:match-win:8a50928da6fcf6f9","type":"match.result","variant":"win","date":"2027-07-07","scope":{"kind":"club","id":"example-nordstadt","name":"FC Nordstadt"},"data":{"competition":{"id":"example-league","name":"Regionalliga","names":{"de":"Regionalliga","en":"Regional League"},"kind":"league"},"opponent":{"id":"example-hafen","name":"SV Hafenstadt","kind":"club"},"score":{"for":2,"against":1}},"demo":true},"context":{"language":"de"},"result":{"ok":true,"article":{"schema":"bmh-news-article@1","catalogueVersion":1,"id":"evt-1f772e4a07a5042c","eventId":"demo:match-win:8a50928da6fcf6f9","eventType":"match.result","templateId":"match-win","date":"2027-07-07","kind":"fixture","tone":"positive","scope":{"id":"example-nordstadt","name":"FC Nordstadt","kind":"club"},"dedupeKey":"[\"club\",\"example-nordstadt\",\"demo:match-win:8a50928da6fcf6f9\"]","fingerprint":"47ab160ae2128b71","event":{"id":"demo:match-win:8a50928da6fcf6f9","type":"match.result","date":"2027-07-07","scope":{"id":"example-nordstadt","name":"FC Nordstadt","kind":"club"},"data":{"competition":{"id":"example-league","name":"Regionalliga","kind":"league","names":{"de":"Regionalliga","en":"Regional League"}},"opponent":{"id":"example-hafen","name":"SV Hafenstadt","kind":"club"},"score":{"for":2,"against":1}},"variant":"win","templateId":"match-win","demo":true},"language":"de","headline":"Erfolg für FC Nordstadt","body":"FC Nordstadt gewinnt gegen SV Hafenstadt mit 2:1. Die Partie gehörte zu Regionalliga.","translations":{"de":{"headline":"Erfolg für FC Nordstadt","body":"FC Nordstadt gewinnt gegen SV Hafenstadt mit 2:1. Die Partie gehörte zu Regionalliga."},"en":{"headline":"Victory for FC Nordstadt","body":"FC Nordstadt beat SV Hafenstadt 2–1. The match was part of Regional League."}},"demo":true}}},{"name":"match-win:club:en","event":{"id":"demo:match-win:8a50928da6fcf6f9","type":"match.result","variant":"win","date":"2027-07-07","scope":{"kind":"club","id":"example-nordstadt","name":"FC Nordstadt"},"data":{"competition":{"id":"example-league","name":"Regionalliga","names":{"de":"Regionalliga","en":"Regional League"},"kind":"league"},"opponent":{"id":"example-hafen","name":"SV Hafenstadt","kind":"club"},"score":{"for":2,"against":1}},"demo":true},"context":{"language":"en"},"result":{"ok":true,"article":{"schema":"bmh-news-article@1","catalogueVersion":1,"id":"evt-1f772e4a07a5042c","eventId":"demo:match-win:8a50928da6fcf6f9","eventType":"match.result","templateId":"match-win","date":"2027-07-07","kind":"fixture","tone":"positive","scope":{"id":"example-nordstadt","name":"FC Nordstadt","kind":"club"},"dedupeKey":"[\"club\",\"example-nordstadt\",\"demo:match-win:8a50928da6fcf6f9\"]","fingerprint":"47ab160ae2128b71","event":{"id":"demo:match-win:8a50928da6fcf6f9","type":"match.result","date":"2027-07-07","scope":{"id":"example-nordstadt","name":"FC Nordstadt","kind":"club"},"data":{"competition":{"id":"example-league","name":"Regionalliga","kind":"league","names":{"de":"Regionalliga","en":"Regional League"}},"opponent":{"id":"example-hafen","name":"SV Hafenstadt","kind":"club"},"score":{"for":2,"against":1}},"variant":"win","templateId":"match-win","demo":true},"language":"en","headline":"Victory for FC Nordstadt","body":"FC Nordstadt beat SV Hafenstadt 2–1. The match was part of Regional League.","translations":{"de":{"headline":"Erfolg für FC Nordstadt","body":"FC Nordstadt gewinnt gegen SV Hafenstadt mit 2:1. Die Partie gehörte zu Regionalliga."},"en":{"headline":"Victory for FC Nordstadt","body":"FC Nordstadt beat SV Hafenstadt 2–1. The match was part of Regional League."}},"demo":true}}},{"name":"match-win:national:de","event":{"id":"demo:match-win:599266f6a6d2d79b","type":"match.result","variant":"win","date":"2027-07-07","scope":{"kind":"national","id":"national-de","name":"Deutschland","names":{"de":"Deutschland","en":"Germany"}},"data":{"competition":{"id":"example-international","name":"Länderspiel","names":{"de":"Länderspiel","en":"International Match"},"kind":"competition"},"opponent":{"kind":"national","id":"national-at","name":"Österreich","names":{"de":"Österreich","en":"Austria"}},"score":{"for":2,"against":1}},"demo":true},"context":{"language":"de"},"result":{"ok":true,"article":{"schema":"bmh-news-article@1","catalogueVersion":1,"id":"evt-d149e8841f861660","eventId":"demo:match-win:599266f6a6d2d79b","eventType":"match.result","templateId":"match-win","date":"2027-07-07","kind":"fixture","tone":"positive","scope":{"id":"national-de","name":"Deutschland","kind":"national","names":{"de":"Deutschland","en":"Germany"}},"dedupeKey":"[\"national\",\"national-de\",\"demo:match-win:599266f6a6d2d79b\"]","fingerpLine truncated
{"source_commit":"7dbf70f5be5505af41fa532e37dd27aced86bd76","catalogue_sha256":"21bede3ee7a26fcc69357a451211f78dca3e329368e80f458736efa294df8586","description":"Synthetic own authored catalogue events and expected HTML-contract snapshots; no original game data.","cases":[{"name":"match-win:club:de","event":{"id":"demo:match-win:8a50928da6fcf6f9","type":"match.result","variant":"win","date":"2027-07-07","scope":{"kind":"club","id":"example-nordstadt","name":"FC Nordstadt"},"data":{"competition":{"id":"example-league","name":"Regionalliga","names":{"de":"Regionalliga","en":"Regional League"},"kind":"league"},"opponent":{"id":"example-hafen","name":"SV Hafenstadt","kind":"club"},"score":{"for":2,"against":1}},"demo":true},"context":{"language":"de"},"result":{"ok":true,"article":{"schema":"bmh-news-article@1","catalogueVersion":1,"id":"evt-1f772e4a07a5042c","eventId":"demo:match-win:8a50928da6fcf6f9","eventType":"match.result","templateId":"match-win","date":"2027-07-07","kind":"fixture","tone":"positive","scope":{"id":"example-nordstadt","name":"FC Nordstadt","kind":"club"},"dedupeKey":"[\"club\",\"example-nordstadt\",\"demo:match-win:8a50928da6fcf6f9\"]","fingerprint":"47ab160ae2128b71","event":{"id":"demo:match-win:8a50928da6fcf6f9","type":"match.result","date":"2027-07-07","scope":{"id":"example-nordstadt","name":"FC Nordstadt","kind":"club"},"data":{"competition":{"id":"example-league","name":"Regionalliga","kind":"league","names":{"de":"Regionalliga","en":"Regional League"}},"opponent":{"id":"example-hafen","name":"SV Hafenstadt","kind":"club"},"score":{"for":2,"against":1}},"variant":"win","templateId":"match-win","demo":true},"language":"de","headline":"Erfolg für FC Nordstadt","body":"Regionalliga: FC Nordstadt gewinnt mit 2:1 gegen SV Hafenstadt.","translations":{"de":{"headline":"Erfolg für FC Nordstadt","body":"Regionalliga: FC Nordstadt gewinnt mit 2:1 gegen SV Hafenstadt."},"en":{"headline":"Victory for FC Nordstadt","body":"FC Nordstadt beat SV Hafenstadt 2–1. The match was part of Regional League."}},"demo":true}}},{"name":"match-win:club:en","event":{"id":"demo:match-win:8a50928da6fcf6f9","type":"match.result","variant":"win","date":"2027-07-07","scope":{"kind":"club","id":"example-nordstadt","name":"FC Nordstadt"},"data":{"competition":{"id":"example-league","name":"Regionalliga","names":{"de":"Regionalliga","en":"Regional League"},"kind":"league"},"opponent":{"id":"example-hafen","name":"SV Hafenstadt","kind":"club"},"score":{"for":2,"against":1}},"demo":true},"context":{"language":"en"},"result":{"ok":true,"article":{"schema":"bmh-news-article@1","catalogueVersion":1,"id":"evt-1f772e4a07a5042c","eventId":"demo:match-win:8a50928da6fcf6f9","eventType":"match.result","templateId":"match-win","date":"2027-07-07","kind":"fixture","tone":"positive","scope":{"id":"example-nordstadt","name":"FC Nordstadt","kind":"club"},"dedupeKey":"[\"club\",\"example-nordstadt\",\"demo:match-win:8a50928da6fcf6f9\"]","fingerprint":"47ab160ae2128b71","event":{"id":"demo:match-win:8a50928da6fcf6f9","type":"match.result","date":"2027-07-07","scope":{"id":"example-nordstadt","name":"FC Nordstadt","kind":"club"},"data":{"competition":{"id":"example-league","name":"Regionalliga","kind":"league","names":{"de":"Regionalliga","en":"Regional League"}},"opponent":{"id":"example-hafen","name":"SV Hafenstadt","kind":"club"},"score":{"for":2,"against":1}},"variant":"win","templateId":"match-win","demo":true},"language":"en","headline":"Victory for FC Nordstadt","body":"FC Nordstadt beat SV Hafenstadt 2–1. The match was part of Regional League.","translations":{"de":{"headline":"Erfolg für FC Nordstadt","body":"Regionalliga: FC Nordstadt gewinnt mit 2:1 gegen SV Hafenstadt."},"en":{"headline":"Victory for FC Nordstadt","body":"FC Nordstadt beat SV Hafenstadt 2–1. The match was part of Regional League."}},"demo":true}}},{"name":"match-win:national:de","event":{"id":"demo:match-win:599266f6a6d2d79b","type":"match.result","variant":"win","date":"2027-07-07","scope":{"kind":"national","id":"national-de","name":"Deutschland","names":{"de":"Deutschland","en":"Germany"}},"data":{"competition":{"id":"example-international","name":"Länderspiel","names":{"de":"Länderspiel","en":"International Match"},"kind":"competition"},"opponent":{"kind":"national","id":"national-at","name":"Österreich","names":{"de":"Österreich","en":"Austria"}},"score":{"for":2,"against":1}},"demo":true},"context":{"language":"de"},"result":{"ok":true,"article":{"schema":"bmh-news-article@1","catalogueVersion":1,"id":"evt-d149e8841f861660","eventId":"demo:match-win:599266f6a6d2d79b","eventType":"match.result","templateId":"match-win","date":"2027-07-07","kind":"fixture","tone":"positive","scope":{"id":"national-de","name":"Deutschland","kind":"national","names":{"de":"Deutschland","en":"Germany"}},"dedupeKey":"[\"national\",\"national-de\",\"demo:match-win:599266f6a6d2d79b\"]","fingerprint":"777bbef17e4a4bc7","event":{"id":"demo:match-win:599266f6a6d2d7Line truncated