Add Failed and Success states to tester devtool

This commit is contained in:
Héctor Ramón Jiménez 2025-06-04 22:40:32 +02:00
parent 73f5569f28
commit e548372fe0
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
7 changed files with 198 additions and 53 deletions

View file

@ -588,10 +588,10 @@ fn presets() -> impl Iterator<Item = iced::application::Preset<Todos, Message>>
Command::done(Message::Loaded(Err(LoadError::File))),
)
}),
Preset::new("Basic", || {
Preset::new("Carl Sagan", || {
(
Todos::Loaded(State {
input_value: "Bake an apple pie".to_owned(),
input_value: "Make an apple pie".to_owned(),
filter: Filter::All,
tasks: vec![Task {
id: Uuid::new_v4(),