Pin only pushed commits, with no local overrides: Ziran v0.5.0 (f9f92b46), Kryon b45cc524 (one lock entry, ref master, shared with the Css and Plot master edges), Apps 352901e, Entity b30dd4a and practices 893e5b6f, whose sharpened banners and regenerated Lumi guide clips the narration check now matches. The Library opens each Tao Te Ching chapter on its own picture page: the chapter art and its title, centered together; the text pages follow. The reader keeps the picture page across reflow, and a chapter start or a Contents pick opens it. The 81 approved chapter pictures are included. Breeze now uses Kryon's namespaced widgets (Text.Draw/Text.Props, Button, Image, Modal.ActionModal, Layout, TabBar, LoadingScreen, LoadingIndicator, Shape.Circle) instead of the removed Kryon/Widgets facades. Hosted apps import std/text explicitly, since a short "text" import now names Kryon's widget. AGENTS.md and the Text/Button API checks describe the namespaced forms; two unused test doubles are removed. Build fixes for the new toolchain: the bundle runtime carries Ziran's instruction engine (no BOOTSTRAP=1) and takes the pinned host zi2c for cross builds; the Apps controller's lock context has the manifest's module roots; the app codec generator lists Kryon's raw modules only; the package scripts read ZX revision 28 bundle assets. The Apps controller digest matches the Apps 352901e build. Also included: the stopped lanes' work in this tree (Radio download, Photos install, Lists, Lumi, Habits shop rewards, astral exercise selection, appearance and download recovery) and the raylib-free desktop lane's host modules (app_trace, host_input, host_window, host_clock), inactive unless DESKTOP_HOST is defined. Not included: the crash-recovery lane's picture-window and storage crash-safety changes, which that lane commits itself. Local tests: zi-check (510 modules), native and Android source checks, hosted app checks, build-laws, clean-text-api-check, button-api-check, library-reader-test, library-ui-test, storage-crash-zi-test and native-image-decode-test pass. The bundled Arcade is still ZX revision 26 and waits for an Arcade build on these pins.
83 lines
2.7 KiB
Ziran
83 lines
2.7 KiB
Ziran
#import, file "../src/app/navigation_routes.zi";
|
|
#import, file "../src/app/route_types.zi";
|
|
#import, file "../src/core/types.zi";
|
|
|
|
#program_export
|
|
Answer :: () -> s32 {
|
|
left: AppRoute
|
|
right: AppRoute
|
|
left.screen = ScreenStart
|
|
right.screen = ScreenStart
|
|
if !RoutesEqual(left, right) { return 1 }
|
|
|
|
right.screen = ScreenSettings
|
|
if RoutesEqual(left, right) { return 2 }
|
|
if RoutesNeedTransition(left, right) { return 21 }
|
|
right.screen = ScreenStart
|
|
right.exercise_type = 1
|
|
if RoutesEqual(left, right) { return 3 }
|
|
if !RoutesNeedTransition(left, right) { return 29 }
|
|
left.exercise_type = 1
|
|
right.practice_config_tab = 2
|
|
if !RoutesEqual(left, right) { return 4 }
|
|
left.practice_tab = PRACTICE_TAB_CONFIG
|
|
if RoutesNeedTransition(left, right) { return 22 }
|
|
right.practice_tab = PRACTICE_TAB_CONFIG
|
|
if RoutesEqual(left, right) { return 5 }
|
|
if RoutesNeedTransition(left, right) { return 23 }
|
|
left.practice_config_tab = 2
|
|
if !RoutesEqual(left, right) { return 6 }
|
|
|
|
left.screen = ScreenSettings
|
|
right.screen = ScreenSettings
|
|
right.settings_tab = 2
|
|
if RoutesEqual(left, right) { return 7 }
|
|
if RoutesNeedTransition(left, right) { return 24 }
|
|
left.settings_tab = 2
|
|
right.settings_overview = 1
|
|
if RoutesEqual(left, right) { return 8 }
|
|
if !RoutesNeedTransition(left, right) { return 25 }
|
|
left.settings_overview = 1
|
|
if !RoutesEqual(left, right) { return 9 }
|
|
|
|
left.screen = ScreenProfile
|
|
right.screen = ScreenProfile
|
|
right.profile_view = 1
|
|
if RoutesEqual(left, right) { return 10 }
|
|
left.profile_view = 1
|
|
right.profile_tab = 3
|
|
if RoutesEqual(left, right) { return 11 }
|
|
if RoutesNeedTransition(left, right) { return 26 }
|
|
left.profile_tab = 3
|
|
if !RoutesEqual(left, right) { return 12 }
|
|
|
|
left.screen = ScreenHabits
|
|
right.screen = ScreenHabits
|
|
right.habits_screen_mode = 1
|
|
if RoutesEqual(left, right) { return 13 }
|
|
if !RoutesNeedTransition(left, right) { return 27 }
|
|
left.habits_screen_mode = 1
|
|
right.habits_tab = 2
|
|
if RoutesEqual(left, right) { return 14 }
|
|
if RoutesNeedTransition(left, right) { return 28 }
|
|
left.habits_tab = 2
|
|
if !RoutesEqual(left, right) { return 15 }
|
|
|
|
left.screen = ScreenHabitEdit
|
|
right.screen = ScreenHabitEdit
|
|
if !RoutesEqual(left, right) { return 16 }
|
|
right.habits_tab = 3
|
|
if RoutesEqual(left, right) { return 17 }
|
|
left.screen = ScreenHabitSessionEdit
|
|
right.screen = ScreenHabitSessionEdit
|
|
if RoutesEqual(left, right) { return 18 }
|
|
left.habits_tab = 3
|
|
if !RoutesEqual(left, right) { return 19 }
|
|
|
|
left.screen = ScreenSession
|
|
right.screen = ScreenSession
|
|
right.exercise_type = 99
|
|
if !RoutesEqual(left, right) { return 20 }
|
|
return 42
|
|
}
|