UI: Warning-Text verbessert + Antragsteller:in/Landesregierung Labels als Badges
This commit is contained in:
parent
49c1b92753
commit
9c162d14ac
@ -1638,15 +1638,18 @@
|
|||||||
const wpZitateCount = (wp.wahlprogramm?.zitate || []).length;
|
const wpZitateCount = (wp.wahlprogramm?.zitate || []).length;
|
||||||
const noQuotesWarning = (wpScore > 0 && wpZitateCount === 0) ? `
|
const noQuotesWarning = (wpScore > 0 && wpZitateCount === 0) ? `
|
||||||
<div style="margin: 0.5rem 0; padding: 0.5rem; background: #fff3cd; border-left: 3px solid #ffc107; font-size: 0.8rem; color: #856404;">
|
<div style="margin: 0.5rem 0; padding: 0.5rem; background: #fff3cd; border-left: 3px solid #ffc107; font-size: 0.8rem; color: #856404;">
|
||||||
⚠ Keine belegbaren Quellen im Index gefunden — Score basiert auf LLM-Einschätzung, nicht auf verifizierten Programm-Stellen.
|
⚠ Zu diesem Themenkomplex konnten keine konkreten Formulierungen im Wahlprogramm gefunden werden — Score basiert auf der allgemeinen Programmatik der Partei.
|
||||||
</div>
|
</div>
|
||||||
` : '';
|
` : '';
|
||||||
|
|
||||||
|
// Labels: Antragsteller:in und Landesregierung
|
||||||
|
const roleLabels = [];
|
||||||
|
if (wp.istAntragsteller) roleLabels.push('<span style="background:#889e33;color:white;padding:0.1rem 0.4rem;border-radius:3px;font-size:0.75rem;">Antragsteller:in</span>');
|
||||||
|
if (wp.istRegierung) roleLabels.push('<span style="background:#009da5;color:white;padding:0.1rem 0.4rem;border-radius:3px;font-size:0.75rem;">Landesregierung</span>');
|
||||||
|
|
||||||
return `
|
return `
|
||||||
<div style="margin: 0.75rem 0; padding: 0.75rem; background: var(--color-bg); border-radius: 4px;">
|
<div style="margin: 0.75rem 0; padding: 0.75rem; background: var(--color-bg); border-radius: 4px;">
|
||||||
<strong>${wp.fraktion}</strong>
|
<strong>${wp.fraktion}</strong> ${roleLabels.join(' ')}<br>
|
||||||
${wp.istAntragsteller ? ' <span style="color:#889e33">(Antragsteller)</span>' : ''}
|
|
||||||
${wp.istRegierung ? ' <span style="color:#009da5">(Regierung)</span>' : ''}<br>
|
|
||||||
<div style="margin: 0.5rem 0;">
|
<div style="margin: 0.5rem 0;">
|
||||||
Wahlprogramm: <strong>${wp.wahlprogramm?.score || '-'}/10</strong> ·
|
Wahlprogramm: <strong>${wp.wahlprogramm?.score || '-'}/10</strong> ·
|
||||||
Parteiprogramm: <strong>${wp.parteiprogramm?.score || '-'}/10</strong>
|
Parteiprogramm: <strong>${wp.parteiprogramm?.score || '-'}/10</strong>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user