Add the README, screenshots, legacy CI moved to manual, cleanups

Root README for the new layout; legacy/README.md points back. Legacy Gitea and
GitHub workflows run only by hand from legacy/ and the Gitea one does not
publish unless asked. Fix compiler warnings.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
SpriteandClaude Sonnet 5.5 committed 2026-11-23 01:12:48 +00:00
1 parent 17f81c60c8
commit 5258ac22ad
16 files changed
+175 -26

No files matched your search

+7 -7
View File
@@ -470,7 +470,7 @@ test "an app dropped in an empty cell stays there; the rest stay packed" {
assert_eq(cells[0], Some({ col: 0, row: 0, w: 1, h: 1, }))
assert_eq(cells[2], Some({ col: 3, row: 2, w: 1, h: 1, }))
// and it survives a save and a load
let back = load_json(save_json(s.m.home), Ref::new(1)).unwrap()
let back = load_json(save_json(s.m.home), Ref(1)).unwrap()
assert_eq((back[2].x, back[2].y), (3, 2))
}
@@ -737,7 +737,7 @@ test "the old WebView build's home screen is brought over once" {
#|"ultra.home.kind.1":"1","ultra.home.str.1":"Clock","ultra.home.wid.1":"12","ultra.home.h.1":"136",
#|"ultra.home.w.1":"3","ultra.home.cx.1":"1","ultra.home.cy.1":"2",
#|"ultra.home.kind.2":"0"}
let next = Ref::new(1)
let next = Ref(1)
let slots = legacy_import(legacy, next)
assert_eq(slots.length(), 2)
assert_eq((slots[0].kind, slots[0].str), (App, "c.chrome/.Main"))
@@ -745,8 +745,8 @@ test "the old WebView build's home screen is brought over once" {
(slots[1].wid, slots[1].w, slots[1].rows, slots[1].x, slots[1].y),
(12, 3, 2, 1, 2),
)
assert_eq(legacy_import("{}", Ref::new(1)).length(), 0)
assert_eq(legacy_import("garbage", Ref::new(1)).length(), 0)
assert_eq(legacy_import("{}", Ref(1)).length(), 0)
assert_eq(legacy_import("garbage", Ref(1)).length(), 0)
let s = Sim::new()
s.run(update(s.m, Restore(saved=None, legacy=Some(legacy))))
assert_eq(s.m.home.length(), 2)
@@ -772,11 +772,11 @@ fn slot_app(c : String) -> @grid.Slot {
///|
test "load_json rejects what is not a layout and drops nameless slots" {
assert_true(load_json("nope", Ref::new(1)) is None)
assert_true(load_json("{}", Ref::new(1)) is None)
assert_true(load_json("nope", Ref(1)) is None)
assert_true(load_json("{}", Ref(1)) is None)
let r = load_json(
"{\"slots\":[{\"kind\":\"app\"},{\"kind\":\"app\",\"str\":\"a\"}]}",
Ref::new(1),
Ref(1),
).unwrap()
assert_eq(r.length(), 1)
}