Planner: Äquivalenz-Hinweise verfeinert

- Grüner Hinweis wenn Äquivalent verfügbar (z.B. → Kerachole (SGE)?)
- Roter Hinweis "→ Kein Äquivalent!" wenn kein Ersatz vorhanden
- Grau-kursiv "→ Job zuordnen" bei Abilities ohne Job-Zuordnung

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
xziino 2026-05-22 12:43:27 +02:00
parent d585f3be5a
commit 1c0918a4a3
2 changed files with 27 additions and 6 deletions

View File

@ -426,11 +426,28 @@
}
.badge-equiv-hint {
font-size: 11px;
color: var(--red);
font-size: 11px;
color: var(--green);
white-space: nowrap;
padding: 0 2px;
cursor: default;
padding: 0 2px;
cursor: default;
}
.badge-no-equiv-hint {
font-size: 11px;
color: var(--red);
white-space: nowrap;
padding: 0 2px;
cursor: default;
}
.badge-job-hint {
font-size: 11px;
color: var(--t3);
white-space: nowrap;
padding: 0 2px;
cursor: default;
font-style: italic;
}
/* ── Folder Sidebar ──────────────────────────────────────────────────────────── */

View File

@ -363,8 +363,12 @@ function renderMechanicListHtml(plan) {
const hintHtml = suggestions.map(s =>
`<span class="badge-equiv-hint">→ ${escHtml(s.ability)} (${escHtml(s.job)})?</span>`
).join('');
return suggestions.length > 0
? `<span class="badge-with-hint">${badgeHtml}${hintHtml}</span>`
const noEquivHint = isMissing && suggestions.length === 0
? `<span class="badge-no-equiv-hint">→ Kein Äquivalent!</span>` : '';
const jobHint = !a.job ? `<span class="badge-job-hint">→ Job zuordnen</span>` : '';
const needsWrap = suggestions.length > 0 || !!noEquivHint || !!jobHint;
return needsWrap
? `<span class="badge-with-hint">${badgeHtml}${hintHtml}${noEquivHint}${jobHint}</span>`
: badgeHtml;
}).join('');