T06g forms structure: form with Cmd-Enter submit, sections, fields, labels, errors, field arrays, inline forms, dirty indicator

This commit is contained in:
ZacharyZhang-NY committed 2026-09-25 10:46:27 -04:00
1 parent 0ca1ff65c7
commit 05ff67ad9f
13 files changed
+850 -78

No files matched your search

+19
View File
@@ -7,6 +7,7 @@ mod numbers;
mod other;
mod pickers;
mod rich;
mod structure;
mod text;
mod values;
@@ -299,6 +300,22 @@ const SCRIPT: &[Step] = &[
Step::Shot("country"),
Step::Key("enter"),
Step::Wait(300),
Step::Click("form-name"),
Step::Key("secondary-a"),
Step::Type("Ada Lovelace"),
Step::Click("form-email"),
Step::Key("secondary-a"),
Step::Type("ada.example.com"),
Step::Wait(400),
Step::Shot("form"),
Step::Hover("form-actions"),
Step::Wait(300),
Step::Shot("form-dirty"),
Step::Key("secondary-a"),
Step::Type("ada@example.com"),
Step::Key("cmd-enter"),
Step::Wait(400),
Step::Shot("form-saved"),
Step::Rest,
];
@@ -351,5 +368,7 @@ fn render(window: &mut Window, cx: &mut App) -> AnyElement {
.child(other::font(window, cx))
.child(other::glyphs(window, cx))
.child(other::regional(window, cx))
.child(structure::form(window, cx))
.child(structure::inline(window, cx))
.into_any_element()
}