Commit Graph
35 Commits
Author SHA1 Message Date
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 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
Claude a880573afb Keep widgets until the app drawer slides over them
Opening the drawer unmarked the widget slots, so the native widget views
were hidden at once, before the drawer had painted. Now the widgets stay
put under the drawer and the shell clips them above its edge each frame
as it slides down, hiding them once it covers the screen. On close they
come back only after the page has painted without the drawer.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NFvkdqdrRGWHGq1LUzzK7L
2026-10-26 05:14:04 +00:00
Claude 8e2f2e8192 Long-press menu in the app drawer, with Uninstall
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
2026-10-22 07:30:57 +00:00
Claude c3f3e4eedb Let a widget be dragged onto any row, including the top
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
2026-10-22 06:53:31 +00:00
Claude d782c9c645 Let apps be dropped into empty rows below, keeping the rest packed
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
2026-10-22 06:36:25 +00:00
Claude b031cff81e Back to five home columns
This reverts commit 146c735. V wants more rows, not more columns.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYASJ6JNxhYwNNJK7ypK2V
2026-10-22 06:33:39 +00:00
Claude 146c735b1b Six home columns with smaller tiles
The home grid gets 6 columns (7 on wider screens), 60px rows, 36px icons and
smaller labels, so more icons fit in each row and on the screen.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYASJ6JNxhYwNNJK7ypK2V
2026-10-22 06:30:09 +00:00
Claude 20b2cf199c Remove the drawer pull bar from the top of the home screen
Swipe down still opens the drawer; the bar was only a hint.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016tBSNsqzyqdsTFC7hq9LUg
2026-10-22 06:23:40 +00:00
Claude 68c8cf6aa3 Fit more rows on one screen: 64px rows, 8px gaps, tighter top
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
2026-10-22 06:22:49 +00:00
Claude 0b4bf7bf63 Revert pinned home cells: apps flow into free space again
This reverts commit 5682d51. Pinning every slot on the first drag left apps
stranded alone in rows on the phone; V wants the home to pack apps densely
with no holes, as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYASJ6JNxhYwNNJK7ypK2V
2026-10-22 06:20:07 +00:00
Claude 5682d51a56 Make the home grid run to the bottom of the screen with cells you drop into
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
2026-10-22 06:14:04 +00:00
Claude 205c7dbed2 Start a new widget at its natural width in whole columns
The shell's widgetLimits now reports the provider's natural width ("w"), and
when a widget is added the page turns it into grid columns (WIDGET_COLS), so a
small widget takes the columns it needs instead of the whole row. Resizing
still snaps to whole columns and rows.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYASJ6JNxhYwNNJK7ypK2V
2026-10-22 06:02:10 +00:00
Claude 43cb884a5d Hide a live widget's label so it can't peek out beside the native view
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ScMbiX5uANzSZVWSQdXdtQ
2026-10-22 06:00:04 +00:00
Claude b4e2d8618e Fit more rows on the home screen and let it hold 200 slots
Rows shrink to 72px with 12px gaps (tiles are 70px), and the home screen's
slot limit goes from 40 to 200 (its arrays are already 512 long).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NYASJ6JNxhYwNNJK7ypK2V
2026-10-22 05:58:37 +00:00
Claude 8dd46b20a5 Fit more on the home screen: five columns, shorter rows, smaller icons
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
2026-10-22 05:47:42 +00:00
Claude 3f64b32df8 Snap widgets to whole rows and let apps fill the cells beside them
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
2026-10-22 02:17:11 +00:00
Claude 8426bd3b0a Update the launcher in place from the launcher-latest release
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
2026-10-22 01:14:41 +00:00
Claude 9278de14aa Move a widget by dragging it while it shows resize handles
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
2026-10-22 00:26:34 +00:00
Claude 53a23a6a0e Show widgets without a frame unless they are being moved or resized
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FWhL9YLFgc9rnbwZqKeoDF
2026-10-22 00:23:35 +00:00
Claude be2371deb0 Focus the drawer's search and raise the keyboard when the drawer opens
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
2026-10-21 23:54:41 +00:00
Claude ce815d72c2 Remove the built-in clock and date from the home screen
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
2026-10-21 23:54:01 +00:00
Claude d7bd24b817 Resize widgets by dragging handles on their edges
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
2026-10-21 23:46:31 +00:00
Claude d8b51496ae Search the widget picker by widget name or the app it comes from
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KNP1cMweg13VdKrtriNJ5C
2026-10-21 23:43:14 +00:00
Claude a387ff9708 Press and hold a home app or widget to drag it to a new spot
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
2026-10-21 22:30:58 +00:00
Claude 7aabe57afa Give every module-level array the same size so lists stop overlapping
The first dozen apps in the drawer (and the first widgets in the picker)
showed blank icons because their data-icon held another app's component
name. ultra's build pairs LPython's array allocations with the module
globals in an order that doesn't match source order, so comps got a
256-slot region and rows past 256 wrote over icons[0..]; wlabels/wprovs
got 40-slot regions. Making all twelve arrays i32[512] keeps every
pairing disjoint.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-21 15:11:04 -07:00
Claude 8196e06391 Retry icons the shell couldn't draw; draw from the listed activities
On a phone the first dozen apps in the drawer kept coming back without an
icon. Icons are now drawn from the LauncherActivityInfo objects apps.json
was built from (falling back to resolveActivity), failures are logged
under "ultra" with the reason, and the page asks again for any icon that
came back empty, up to three times with backoff.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019EEjkJVV72Lu8ndDVWg5BT
2026-10-21 21:45:59 +00:00
Claude ab03efd389 Launcher: home panel with a Windows button that opens Recents
The panel under the clock holds a Windows button. Android lets only
accessibility services open Recents, so a minimal RecentsService does
just performGlobalAction(GLOBAL_ACTION_RECENTS); until the user turns
it on, the button opens Accessibility settings instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M9yVmqTBBDyq8bEYt2rVq6
2026-10-21 19:03:52 +00:00
Claude a52108e95f Launcher: deliver icons through the bridge instead of intercepted image requests
Icons loaded as <img src="icon?c=..."> through shouldInterceptRequest
kept failing on a real phone for the first screenful of apps and for
every widget, even with retries. The page now asks the shell for icons
by key (Android.loadIcons); the shell draws them on one background
thread and returns them in batches of data: URIs via ultraIcons(). An
icon that can't be drawn shows as a blank disc.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019EEjkJVV72Lu8ndDVWg5BT
2026-10-21 19:01:50 +00:00
Claude 70fc005e90 Launcher: fix broken app and widget icons
The WebView requests a screenful of icons at once on several threads,
and loading and drawing icon drawables concurrently failed for that first
batch (and for every widget icon). Icons are now drawn one at a time
under a lock from a mutated drawable, widget icons fall back to the app
icon, and failures are logged under the "ultra" tag. The page retries a
failed icon twice and then shows a blank disc instead of a broken image.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019EEjkJVV72Lu8ndDVWg5BT
2026-10-21 18:43:08 +00:00
Claude 3ed5afbafc Launcher: blank home with added apps and widgets, swipe-down drawer
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
2026-10-21 18:01:25 +00:00
Claude 9443761b4a Add an Android home-screen launcher built with ultra
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
2026-10-21 15:36:59 +00:00