feat: crew-driven actions — queue + tick engine, NEXT TURN, team builder, task strip (#44, v0.10.0) #46

Merged
kamilkrzywda merged 20 commits from feat/crew-driven-actions into master 2026-10-03 03:07:42 +02:00
Showing only changes of commit 1cabea7972 - Show all commits
+4 -2
View File
@@ -32,8 +32,10 @@ export function TeamBuilder({ type, hopCount, roster, tasks, onQueue }: {
const duration = lead ? computeDuration(type, hopCount ?? 0, lead, helpers) : null // CrewDto ⊇ CrewMember
const leadReason = (c: CrewDto) => {
const t = tasks.find((x) => x.leadCrewId === c.id && x.status === 'PENDING')
return t ? `${t.type} ALREADY QUEUED` : null
const leads = tasks.find((x) => x.leadCrewId === c.id && x.status === 'PENDING')
if (leads) return `${leads.type} ALREADY QUEUED`
const helps = tasks.find((x) => x.helperCrewIds.includes(c.id) && x.status === 'PENDING')
return helps ? `COMMITTED: ${helps.type}` : null
}
const helperReason = (c: CrewDto) => {
const t = tasks.find((x) => (x.leadCrewId === c.id || x.helperCrewIds.includes(c.id)) && (x.status === 'ACTIVE' || x.status === 'PENDING'))