ui-panels, ui-shell: tests follow the contract; serde_json for the shell's command trials

This commit is contained in:
bflatastic
2026-11-21 22:02:35 +07:00
parent 88c8e079e9
commit 53aff18738
4 changed files with 4 additions and 2 deletions
Generated
+1
View File
@@ -4405,6 +4405,7 @@ dependencies = [
"eframe",
"egui",
"serde",
"serde_json",
"web-time",
]
@@ -4,7 +4,7 @@
use craft_behavior::IconId;
use craft_ui::buttons::IconButton;
use craft_ui::choice::Segmented;
use craft_ui::contract::{Bind, Entry, ListDrag, RowAlign, Show as _, ShowContainer as _};
use craft_ui::contract::{Bind, Entry, ListDrag, Props as _, RowAlign, Show as _, ShowContainer as _};
use craft_ui::layout_components::{Row, Stack};
use craft_ui::sections::{DropAction, FooterAction, FooterBar, ReorderableSections, SectionKey, SectionLayout, SectionSpec};
use craft_ui::testing::{Fixture, pointer, trial};
+1
View File
@@ -52,6 +52,7 @@ craft-theme = { workspace = true }
craft-ui-test-kit = { workspace = true }
craft-window = { workspace = true }
egui = { workspace = true }
serde_json = { workspace = true }
[[test]]
name = "it"
+1 -1
View File
@@ -659,7 +659,7 @@ impl<'a, S> AppShell<'a, S> {
if let Some(bar) = bar_extent.filter(|_| !bare) {
let target = PlaceTarget { body: regions.body, bar, held };
let zone = DropZone::new(ui.layer_id(), regions.body);
landed = zone_target::<OptionsBarDrag, _>(ui, ui.id().with("options_place"), zone, &target);
landed = zone_target::<OptionsBarDrag, _>(ui, ui.scope_id().with("options_place"), zone, &target);
}
show_slots(ui, true, app);
if let Some(dialogs) = WindowDialogs::existing(ui.ctx(), &window) {