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:
parent
d585f3be5a
commit
1c0918a4a3
@ -426,11 +426,28 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.badge-equiv-hint {
|
.badge-equiv-hint {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
color: var(--red);
|
color: var(--green);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
padding: 0 2px;
|
padding: 0 2px;
|
||||||
cursor: default;
|
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 ──────────────────────────────────────────────────────────── */
|
/* ── Folder Sidebar ──────────────────────────────────────────────────────────── */
|
||||||
|
|||||||
@ -363,8 +363,12 @@ function renderMechanicListHtml(plan) {
|
|||||||
const hintHtml = suggestions.map(s =>
|
const hintHtml = suggestions.map(s =>
|
||||||
`<span class="badge-equiv-hint">→ ${escHtml(s.ability)} (${escHtml(s.job)})?</span>`
|
`<span class="badge-equiv-hint">→ ${escHtml(s.ability)} (${escHtml(s.job)})?</span>`
|
||||||
).join('');
|
).join('');
|
||||||
return suggestions.length > 0
|
const noEquivHint = isMissing && suggestions.length === 0
|
||||||
? `<span class="badge-with-hint">${badgeHtml}${hintHtml}</span>`
|
? `<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;
|
: badgeHtml;
|
||||||
}).join('');
|
}).join('');
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user