Logo
Explore Help
Register Sign In
cameleer/cameleer-server
1
0
Fork 0
You've already forked cameleer-server
Code Issues 45 Pull Requests Actions Packages Projects Releases Wiki Activity
Files
816096f4d1b6d5c68873722e8dbe94b7fa5dd0d4
cameleer-server/ui/src/pages/Alerts/RuleEditor/ReviewStep.tsx

12 lines
234 B
TypeScript
Raw Normal View History

feat(ui/alerts): rule editor wizard shell + form-state module Wizard navigates 5 steps (scope/condition/trigger/notify/review) with per-step validation. form-state module is the single source of truth for the rule form; initialForm/toRequest/validateStep are unit-tested (6 tests). Step components are stubbed and will be implemented in Tasks 20-24. prefillFromPromotion is a thin wrapper in this commit; Task 24 rewrites it to compute scope-adjustment warnings. Deviation notes: - FormState.targets uses {kind, targetId} to match AlertRuleTarget DTO field names (plan draft had targetKind). - toRequest casts through Record<string, unknown> so the spread over the Partial<AlertCondition> union typechecks. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-20 13:57:30 +02:00
import type { FormState } from './form-state';
export function ReviewStep({
form: _form,
setForm: _setForm,
}: {
form: FormState;
setForm?: (f: FormState) => void;
}) {
return <div>Review step &mdash; TODO Task 24</div>;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 931ms Template: 115ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API