Implement the 017-combat-conditions feature that adds D&D 5e status conditions to combatants with icon tags, color coding, and a compact toggle picker in the encounter tracker

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Lukas
2026-03-06 11:29:39 +01:00
parent 78c6591973
commit febe892e15
22 changed files with 1301 additions and 62 deletions

View File

@@ -15,6 +15,7 @@ export function App() {
setHp,
adjustHp,
setAc,
toggleCondition,
} = useEncounter();
return (
@@ -34,7 +35,7 @@ export function App() {
/>
{/* Combatant List */}
<div className="flex flex-1 flex-col gap-1 overflow-y-auto">
<div className="flex flex-1 flex-col gap-1">
{encounter.combatants.length === 0 ? (
<p className="py-12 text-center text-sm text-muted-foreground">
No combatants yet add one to get started
@@ -51,6 +52,7 @@ export function App() {
onSetHp={setHp}
onAdjustHp={adjustHp}
onSetAc={setAc}
onToggleCondition={toggleCondition}
/>
))
)}