Rewrite the launcher in MoonBit (old code moves to legacy/) #1

Merged
nandi merged 9 commits from moonbit-rewrite into main 2026-11-23 01:57:10 +00:00
9 Commits
Author SHA1 Message Date
SpriteandClaude Sonnet 5.5 49ea6c54ae CI: run the browser tests on Debian's chromium
Launcher / test (pull_request) Successful in 1m11s
Launcher / apk (pull_request) Skipped
Playwright's Chromium download from cdn.playwright.dev timed out on the runner
(the only failing step; moon tests passed). Install chromium with apt, skip the
Playwright download, and let the tests take CHROMIUM_PATH. The workflow now also
runs tests/android-sim.cjs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 01:49:54 +00:00
SpriteandClaude Sonnet 5.5 a8ce535f37 CI: build the APK in the cluster's android-sdk image
Launcher / test (pull_request) Failing after 5m41s
Launcher / apk (pull_request) Skipped
apk job uses git.site.latha.org/cluster-services/android-sdk:latest; gitea-apk.sh
uses the image's JDK/SDK when present and falls back to installing them
(documented, for use with node:22-bookworm until the image is built).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 01:15:50 +00:00
SpriteandClaude Sonnet 5.5 67b6b58c94 Shell: drop the resetIcons call the page does itself
Launcher / test (pull_request) Failing after 5m46s
Launcher / apk (pull_request) Skipped
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 01:13:19 +00:00
SpriteandClaude Sonnet 5.5 5258ac22ad 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>
2026-11-23 01:12:48 +00:00
SpriteandClaude Sonnet 5.5 17f81c60c8 moon fmt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 01:08:53 +00:00
SpriteandClaude Sonnet 5.5 dccbfd7d86 Add the Android shell, APK build, bridge test, sweet config and CI
android/: HomeActivity (derived from the legacy MainActivity, same package
dev.ultra.launcher and class name as the Qt build so the default-home choice
carries over), Updater reduced to httpGet + PackageInstaller, RecentsService,
manifest and resources, the committed debug keystore. android/build.sh builds
the APK with aapt2, javac, d8, zipalign and apksigner (no Gradle).
tests/android-sim.cjs drives the page against a stub of window.Android.
.sweet.config.yml / .sweet.yml with moon.mod as the annotated version file.
CI: test job (moon test on js and wasm-gc, browser tests) and an apk job that
publishes a Gitea release.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 01:08:35 +00:00
SpriteandClaude Sonnet 5.5 637129aa4e Add the web runtime (DOM patcher, events, host bridge) and a browser e2e
web/ is the js-target MoonBit program: it renders app.view into the DOM with a
keyed patcher, turns pointer/touch/key events into app input, runs effects
against window.Android or demo stand-ins, and exposes window.launcher.* for the
Android shell. tests/e2e.cjs ports the legacy Playwright flows and passes
against the build; scripts/build-web.sh assembles dist/web.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 01:02:08 +00:00
SpriteandClaude Sonnet 5.5 28e0284d9b Add the pure MoonBit core: grid, gestures, updater, vdom, app
grid: packing, pinning, resize steps (port of Layout.js and app.py's grid logic).
gesture: pointer state machine (tap, long press, drag, release, swipe).
updater: release/version parsing and the update decision.
vdom: pure virtual DOM with an HTML-text renderer for tests.
app: Elm-style Model/Msg/update/view with effects as data, persistence (JSON
layout, import of the old WebView build's localStorage), drawer/search, menus,
drag and resize. 60 headless tests drive it through pointer input.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 00:55:16 +00:00
SpriteandClaude Sonnet 5.5 66e8e90da1 Move the existing launcher into legacy/
git mv of everything (web/ android/ qt/ wasi/ android-wasm/ tests/ ci/ pixi.toml
README) so history follows; legacy/ keeps its own .gitignore and a new root
.gitignore starts for the MoonBit project.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-23 00:55:15 +00:00