DecisionObject
Steuert den vorbereiteten Ersatzvorschlag mit Kandidatenwahl, Nachrichtenbearbeitung, Freigabe, Versandfolge und zeitlich begrenztem Rückgängigmachen.
src/components/site/mix/DecisionObject.tsxSource contract in German. The marked authoring notes below retain their original language.
Usage contract
Use through the documented parent
Entry point: src/components/site/mix/ZainDemo.astro
- Decision-Demo ist eingefroren; nur synthetische Beispieldaten. Freigabe und Nachrichtenversand bleiben Simulation. Feste do-/zd-IDs und globale Selektoren erlauben derzeit nur eine Demo pro Seite; Fokuswechsel, Rückgängig-Zeit und Reduced Motion erhalten.
Examples
No dedicated demo is assigned. Use the documented entry point and consumers below; this is not evidence of a missing runtime component.
API
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
export type Check = {t: string; src: string; d: string};export type Msg = {ch: string; to: string; icon: UiIconName; t: string; d: string; text: string; tpl: {name: string; text: string}[]};export type Cand = {ini: string; name: string; first: string; gen: string; rank: string; fit: string; why: string; open: string; fallback: string; checks: Check[]; msgs: Msg[]};type State = 'solution' | 'plan' | 'hold' | 'running' | 'sent' | 'done' | 'manual' | 'next' | 'nextDone';DecisionObject({cands, others, problem, problemSub, quote, locale='de'}: {locale?:'de'|'en';cands: Record<string, Cand>; others: {name: string; why: string}[]; problem: string; problemSub: string; quote: string})Source usage
Website reference
This is static source evidence. A reachable module may contain conditional or unused branches. External consumers and staged static pages are outside this scan. No status authorizes deletion.
Website
Preview
- src/pages/en/vorschlag/home-mix-r3.astro
- src/components/site/pages/HomeMixPage.astro
- src/components/site/mix/ZainDemo.astro
- src/components/site/mix/DecisionObject.tsx
Consumers in source
Direct static, dynamic and type imports. Imports do not prove that a branch renders or that a proposal is published.
Dependencies
@/lib/demo-copy·src/lib/demo-copy.ts@/components/LeetReady·src/components/LeetReady.tsxreact@/components/ui/button·src/components/ui/button.tsx@/components/ui/card·src/components/ui/card.tsx@/components/ui/switch·src/components/ui/switch.tsx@/components/ui/zicon·src/components/ui/zicon.tsx@/components/ui/icons·src/components/ui/icons.ts@/components/ui/tooltip·src/components/ui/tooltip.tsx@/components/ui/dropdown-menu·src/components/ui/dropdown-menu.tsx@/components/ui/dialog·src/components/ui/dialog.tsx