Commit Graph
21 Commits
Author SHA1 Message Date
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 0a9f4f5ec9 Depend on the ultra conda package instead of the ultra submodule
ultra >=0.1.19 comes from prefix.dev/nandi-testing; build and serve use its
`ultra` CLI and the test runner imports ultra_tool.make_server. The old
pixi.lock is dropped until one can be generated against that channel.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011TQdaz3C1f3xEJM6PFzWE6
2026-10-21 21:20:51 +00:00
Claude 4665afb4cb CI: fetch Playwright's Chromium with the runner's Node 22
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011TQdaz3C1f3xEJM6PFzWE6
2026-10-21 21:11:59 +00:00
Claude b3c0d7ee10 Point the ultra submodule at nandi-conda/ultra, where ultra moved
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011TQdaz3C1f3xEJM6PFzWE6
2026-10-21 21:10:28 +00:00
Claude 95530d5cbb CI: time-box the web job and fetch Playwright's Chromium with its system deps
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011TQdaz3C1f3xEJM6PFzWE6
2026-10-21 21:00:55 +00:00
Claude 075d97b5b4 Make the launcher a standalone repo
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
2026-10-21 20:49:40 +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 d34b753434 Sign launcher builds with a committed debug key so updates install in place
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019EEjkJVV72Lu8ndDVWg5BT
2026-10-21 18:49:04 +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 f766453bba Drop the hidden resumeWhilePaused manifest attribute; move CI actions to Node 24 versions
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019EEjkJVV72Lu8ndDVWg5BT
2026-10-21 15:39:04 +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
Claude 7c6a68b26e Make the component gallery fully reactive
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
2026-10-21 08:13:28 +00:00
Claude 4679a0d48b Add shadcn/ui-style components: ui.css theme + ui.py helpers
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
2026-10-21 08:05:32 +00:00
Claude 76e1e40487 Add bench and life performance examples
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
2026-10-20 02:49:12 +00:00
Claude 217c93a609 Manage toolchain with pixi
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
2026-10-20 02:37:53 +00:00
Claude 21d1ef092a ultra: Elm-style LPython -> wasm frontend framework
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
2026-10-20 02:26:54 +00:00