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>
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>
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>
Long-pressing an app in the drawer now opens a menu (Add to home or
Remove from home, App info, Uninstall) instead of adding it straight to
home. Uninstall fires ACTION_DELETE for the app's package (needs
REQUEST_DELETE_PACKAGES) and is hidden for system apps, which apps.json
now flags. When the uninstalled app leaves the reloaded list, its home
slot is removed too.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XicVK7N1cmDdm1ZwpHAxFD
Dragging a widget over apps used to move it in the order, but a wide widget
can't fit beside earlier apps, so the packed flow kept pushing it below them.
A widget now always goes to the cell under it (MOVE_CELL) and the apps flow
around it; apps still reorder by dragging over each other.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYASJ6JNxhYwNNJK7ypK2V
The page measures how many rows fit down to the bottom of the screen (GRID)
and app.py lays out that many, so the space below the apps is real cells.
Apps and widgets still pack in order with no holes; dragging one over another
moves it in the order as before. Dragging it over an empty cell (MOVE_CELL)
leaves it pinned there (saved as ultra.home.cx/cy, new keys so build 21's
pins are ignored); dropping it moves anything pinned underneath back into the
flow, and dragging it back over an app returns it to the order.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYASJ6JNxhYwNNJK7ypK2V
Home rows shrink to 64px with 8px gaps and 40px icons, and the space above
and below the Windows panel is trimmed, so about two more rows of apps fit
on a phone screen. widget_rows and the resize test follow the new rows.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYASJ6JNxhYwNNJK7ypK2V
The page measures how many rows fit down to the bottom of the screen (GRID)
and app.py lays the grid out with that many, so the empty space is real cells.
Each slot can be pinned to a cell (hx, hy, saved); dragging pins every slot
where it shows, carries the lifted one to the cell under the finger
(MOVE_CELL), and on drop moves whatever it covers to the first free cells.
Unpinned slots (new apps, displaced ones) flow densely into free cells. The
Move earlier/later menu items go, since order no longer sets the place.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYASJ6JNxhYwNNJK7ypK2V
The home grid gets one more column than the drawer (5 on a phone, 6 on wider
screens), 76px rows with 16px gaps and 44px icons. Widgets still snap to whole
rows; widget_rows and the resize test follow the new row size.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYASJ6JNxhYwNNJK7ypK2V
Home rows now share one height (an app tile's) and widgets span whole rows of
it, so they line up with the apps. The grid packs densely, so apps fill free
cells next to a widget instead of leaving holes. Resizing snaps to whole rows.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYASJ6JNxhYwNNJK7ypK2V
CI stamps each APK's versionCode with the workflow run number and uploads
version.json next to it. The launcher checks that file on start (at most
every 6 hours) and from a new "Check for updates" item in the home menu;
when it is newer, it streams the APK into a PackageInstaller session and
commits it, so Android asks to confirm (or, on Android 12+ once the
launcher installed itself, may install it without asking).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K2oqEoAKVaiTwCNSqRHQUn
Holding a widget and letting go puts it in edit mode (resize handles). Now
pressing the widget's body in that mode picks it up right away, without
another long press: drag it to a new spot and it drops back into edit mode
so it can be resized or moved again. The handles still resize. Natively, the
page marks the widget in edit mode in placeWidgets, and its WidgetView takes
the press as a drag (widgetGrab) instead of passing it to the widget.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0126xtn5CLB47ph1Njd7frgW
Swiping down to the app drawer puts the cursor in its search box. A WebView
won't show the keyboard for a script focus(), so the shell does it through
new Android.showKeyboard/hideKeyboard bridge calls; closing the drawer hides
it again. Pick mode (adding apps) stays keyboard-free.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0169wSWnZqnXBsJKMPAiCCNG
Home is now fully blank apart from the Windows panel; add a clock widget
for the time. Drops the clock_time/clock_date imports, the TICK message
and its 5s timer, the shell's tick() on resume and is24Hour().
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KxeCBaCjz7Sp1PhdznewhY
Holding a widget and letting go without moving now shows handles on its
right edge, bottom edge and corner (plus a Remove / Done bar). Dragging
them snaps the widget to whole grid columns and half rows, within the
provider's min/max resize size and resize mode, which the shell reports
through widgetLimits. Widgets keep their width in columns (0 = full row),
saved with the rest of the home screen.
The shell keeps the system's edge-swipe gestures off the handles and only
calls updateAppWidgetSize when a widget's size actually changes (with the
sizes list on Android 12+), not on every scroll.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PuFQh1zV94TcKboMuS7t35
A long press now lifts the slot instead of opening its menu. Moving the
finger slides it live to the slot under the finger and letting go drops
it there; letting go without moving opens the menu as before. index.html
does the dragging (and stops the page scrolling or swiping the drawer
under a lifted slot). Native widget views take their own touches, so
WidgetView forwards the moves after its long press as widgetDrag(x, y)
and the release as widgetDrop(moved).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JfvcrzLMTeE68CpNffNDvE
Moved out of codegod100/ultra with its history (examples/launcher is now web/).
ultra is a git submodule; pixi tasks build web/app.wasm with it and run the
browser test. CI runs that test and builds the APK, signed with the same
committed debug key, and republishes the launcher-latest release.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011TQdaz3C1f3xEJM6PFzWE6
The home screen now starts empty under the clock. Long-press it to add
apps (the drawer opens in a pick mode) or widgets, and long-press a slot
to move or remove it. Swiping down opens the drawer with every app and a
search; long-press there adds an app to home, swipe up closes it.
Widgets are real AppWidgetHostViews layered over the WebView at the
slots the page reports after each render, with Android's bind and
configure screens on add and native long-press for their menu.
ultra gains on_longpress(msg, arg) for this.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019EEjkJVV72Lu8ndDVWg5BT
examples/launcher is the home screen as an ultra app: clock, app search
(Enter opens the first match), icon grid and a pinned dock kept in
localStorage. android/ is a dependency-free Java shell that serves it to
a transparent WebView over the wallpaper, answers apps.json and icon
PNGs from LauncherApps, and bridges launch/app info/settings/wallpaper.
CI builds the APK and publishes it as the launcher-latest release.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019EEjkJVV72Lu8ndDVWg5BT
Every widget in examples/ui now drives live state: a button playground
(variant/size toggles feed a preview with a click counter), a profile
form whose Save unlocks on name + terms and shows a self-hiding toast,
a password-strength meter, a billing calculator, a progress bar that
animates with after(), and an invoice table with search, status filter,
sort, row selection, click-to-cycle status, live totals, and delete via
dialog with undo. The theme choice persists in localStorage. The e2e
test covers each of these.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jc29Kw5cQntD1tbNNCyTZs
shadcn/ui is React + Tailwind + Radix, so port its look instead:
ultra/ui.css carries the neutral theme tokens (light-dark(), so the OS
scheme or a .dark/.light class picks the palette) and the component
styles; ultra/ui.py emits matching markup and ARIA state for button,
card, input, label, badge, checkbox, switch, tabs, toggle group, dialog,
alert, progress, separator, kbd and table.
Runtime gains on_escape() for closing dialogs. build copies ui.css next
to app.wasm. New examples/ui gallery; counter, todo, bench and life are
restyled with the components, and the e2e test covers the gallery.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jc29Kw5cQntD1tbNNCyTZs
examples/bench: js-framework-benchmark style keyed table (1k/10k rows,
append, update every 10th, swap, select, remove, clear) with an in-page
timing panel and suite runner.
examples/life: Game of Life drawn as up to 22,500 DOM cells per frame,
with FPS, frame-time graph and per-phase costs.
Runtime: frame(msg, arg) for animation loops, onRender timing hook,
keyed diff with prefix/suffix skip + LIS moves, single-op list clear
and replace, cached DataView for string decoding.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EUBY3yhtbC1KFrhMTrVLB2
Add pixi.toml (lpython 0.22, python, nodejs from conda-forge) with build,
serve, test and install-playwright tasks, and commit pixi.lock. Drop the
hand-rolled `setup` downloader; the build tool now takes lpython from PATH,
builds several apps at once, and gains a `test` command that serves the
repo on a free port and runs the Playwright test.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TeZL3vPsPVXbdcF1eH1HHU
Runtime (ultra.js), LPython API (ultra.py), build tool with LPython 0.22
setup, boot stub and global-array wasm patch, counter and todo demos,
Playwright smoke test.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B3d2hq8ijQrPnVRee2NscG