Commit Graph
442 Commits
Author SHA1 Message Date
James Babcock ed20f63322 Add "all files access" permission to the Android permissions dialog 2026-10-03 13:08:58 -07:00
James Babcock 68625fad1e Fix styling on the pairing page 2026-10-03 13:02:47 -07:00
James Babcock ed375aa9c0 Mark 2.3.2.14 as validated for firmware install 2026-10-03 12:50:00 -07:00
James Babcock 16fc0bcfb6 Fix padding in notifications; reorder settings in Customization section
<details>
<summary>Prompts Used</summary>
User: On the single notification view (focusing a notification on the bottom bar, or in the notifications app), the page title "Notification" and the notification itself can overlap, depending on configured font size.

Opus 5.5:
> I fixed the overlap in the single-notification view, but I haven't checked it on the glasses. The build and typecheck pass.
>
> **Cause:** In `drawDetailContent` (`app/ui/notifications.ts`), the "Notification" title was drawn at y=21, but the icon and the app-name/time line under it were at fixed spots (y=36 and y=42). Only the body text below them moved with the font. Small-font line heights go up to 21px, and once the line height passes about 15px, the title runs into the app-name line.
>
> **Fix:** The header now sits below the title's text line: 3px below it, then a row as tall as the icon or the text line, whichever is bigger. The app name is centred vertically against the icon, and the body starts 4px below that row. At the 12px default everything lands exactly where it did before, so only larger fonts look different. The menu on the right was never affected.
>
> This covers both places you hit it: the bottom-bar tray and the Notifications app's detail view. The pop-up for a new notification uses the same view, so it gets the fix too.
>
> One thing I left alone: this title sits at (24, 21), but list screens like the Notifications list put their title at (18, 10). So the title jumps a little when you open a notification from the list. Moving it to (18, 10) would make the two match and give large fonts about 11px more room. Say if you want that.

<hr>

User: Thanks. Next up, in the Customization section of the Settings app, reorder the settings so that Font is first.

Opus 5.5:
> Font is now the first row in Settings > Customization, whichever app-switcher position is set (left/right, bottom or popup). The other rows keep their order: app switcher position, then the bottom/popup-only rows, then Battery indicators, Animations and Time format.
>
> The change is in `customizationRows()` in `app/ui/dashboard/settings-menus.ts`. Nothing else relies on the row order, and the build passes. I haven't installed it on a device.
</details>
2026-10-03 01:29:59 -07:00
James Babcock 71fade31f9 Notifications in the bottom bar are focusable 2026-10-03 01:15:42 -07:00
James Babcock 96e155ebb0 Add centered/popup version of app switcher; plus various UI tweaks 2026-10-02 23:36:51 -07:00
James Babcock 295922effd Various UI tweaks
Fix missing submenu indicators and change their appearance. Clean up
styling in the Terminal app and move Settings to the top-level menu.
Remove right padding from the bottom bar.
2026-10-02 12:19:25 -07:00
James Babcock eff32d4a5a Tweak padding/spacing in various apps 2026-10-02 10:56:49 -07:00
James Babcock 756e21feb8 Option to combine top bar with the app switcher 2026-10-02 00:45:17 -07:00
James Babcock eab839f811 Merge branch 'main' into switcher-on-bottom 2026-10-01 22:59:04 -07:00
James Babcock 566592c074 Add Dense style for battery indicators 2026-10-01 22:56:09 -07:00
James Babcock ee8b98d1b0 Refine the UI of app-switcher-on-bottom UI 2026-10-01 18:31:11 -07:00
James Babcock 8f99779f98 Add an option to move the app switcher to the right or bottom, and adjust screen depth if bottom 2026-10-01 02:40:13 -07:00
James Babcock c451883836 Version 0.8.1 2026-09-30 22:06:37 -07:00
James Babcock 2ff764d6ea Move Terminal and Navigate settings out of the Settings app and into their respective apps 2026-09-30 21:52:56 -07:00
James Babcock 4bc3551135 Glanceboard has separately configurable font 2026-09-30 21:10:11 -07:00
James Babcock 7d8f03ffe5 Clean up unused code
Mostly remnants of iOS porting, where some things were temporarily in
typescript but became shared kotlin
2026-09-30 13:54:50 -07:00
James Babcock 2c088378bd Lint 2026-09-30 13:38:12 -07:00
James Babcock 81b7f3df64 Remove some unused test code 2026-09-30 13:37:28 -07:00
James Babcock f7fa4addc0 Merge branch 'microphone-fixes' 2026-09-29 20:34:09 -07:00
James Babcock 06146c2b08 Introduce oxlint, and fix lint warnings 2026-09-29 11:54:22 -07:00
James Babcock cb6dddd120 Add a video player, launched by selecting a video file from the Files app 2026-09-28 14:11:04 -07:00
James Babcock deaa93fead Wake the screen on wear faster after charging 2026-09-28 12:04:15 -07:00
James Babcock 2052e268b0 Add touch-down event to simulated and watch inputs 2026-09-28 02:34:08 -07:00
James Babcock 10865fc0cb Merge branch 'main' into microphone-fixes 2026-09-27 23:19:03 -07:00
James Babcock 45d2ece0d2 Optimize phone CPU usage 2026-09-27 23:16:41 -07:00
James Babcock e879c58d9c EvenHub phone UI: add top bar, add open icon 2026-09-27 21:38:04 -07:00
James Babcock c6949fde3b Reorder Done and Follow-up options in voice input dialog 2026-09-27 18:50:43 -07:00
James Babcock 48a2bd1757 Putting on the glasses auto-wakes the screen 2026-09-27 18:27:38 -07:00
James Babcock 77bda86ede Fix line-wrapping on EvenHub permissions dialog 2026-09-27 18:22:49 -07:00
James Babcock 8798198f4d Fix crash on install of larger EvenHub apps 2026-09-27 18:22:44 -07:00
James Babcock c007186e05 Fix crash on install of larger EvenHub apps 2026-09-27 18:14:50 -07:00
James Babcock 80f16c0cd6 Merge branch 'main' of https://github.com/jimrandomh/faceclaw into microphone-fixes 2026-09-27 17:57:23 -07:00
James Babcock 3601a998a3 CPU usage optimizations 2026-09-27 16:33:43 -07:00
James Babcock aeeea5ead3 Animations in EvenHub menus; closer style matching 2026-09-26 22:46:30 -07:00
James Babcock 0217d4b1ea Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-09-26 21:34:53 -07:00
James Babcock f473855710 Add animation preferences menu 2026-09-26 20:42:08 -07:00
JMO fb2a6a3759 Merge remote-tracking branch 'upstream/main' into pr36-revive 2026-09-26 19:29:19 -07:00
James Babcock e6ec542f56 Version 0.8.0 2026-09-26 14:57:24 -07:00
James Babcock 7d0becfaa7 Fix some microphone-related bugs, add a debug panel 2026-09-26 14:12:29 -07:00
James BabcockandKalani Helekunihi e8d2f5ade9 Fix argument order, sizing, and interleaving bugs in microphone handling
Adapted from commit dd43d476b023acfcaab4bdee942c98fd30d83f50 in
https://github.com/jimrandomh/g2flash/pull/4.

Co-Authored-By: Kalani Helekunihi <i@am.guru>
2026-09-26 11:57:40 -07:00
James Babcock 51edaee883 Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-09-25 23:53:23 -07:00
James Babcock c9447a1056 Tweak the layout of the voice input dialog 2026-09-25 23:53:10 -07:00
James BabcockandClaude Opus 5.5 1812818ae2 Stop leaking the remaining JS ArrayBuffers passed to Java
The same NativeScript conversion leak as the frame path (see
java-direct-buffer.ts) applied to every other ArrayBuffer handed to a
Java ByteBuffer parameter:

- Shell scenes (submitShellScene on the bridge and the preview display),
  submitted on every shell render, which the frame-path fix predates.
  These now go through a reused JavaDirectBuffer like frames do.
- Glyph, firmware-glyph and image atlas registration, Mapbox image
  decode, the preview placeholder bitmap, firmware hash/write, binary
  file writes and the EvenHub privacy-policy download, plus the Kotlin
  protocol smoke test. These are rare or large, so they cross through a
  new copyToJavaByteBuffer: a fresh Java direct buffer per call that is
  freed normally, rather than one pinned for the life of the isolate.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 22:28:45 -07:00
Chris LeeandClaude Opus 5 8cdee83ff4 Windows: decide a surface's visibility when the call is queued, not before
connect() registers window surfaces in a loop that reads the foreground
window once, before the loop, then awaits each surface's configure call
before queuing its visibility. On a fresh process restoreOpenApps runs at
the same time and focuses windows as it relaunches them. The bridge runs
Java calls in order, so a visibility decided before the await lands after
the focus change's own calls and undoes them: the old foreground can stay
visible and cover the new one, and a later window switch doesn't clear
it, because a switch only hides the window being left.

configureWindowSurface now also accepts visibility as a function, asked
after the configure call, when the visibility call is queued. The display-
attach loops (glasses and preview), the display-mode, per-app layout and
vertical-position changes, and an in-process window's height-mode change
pass one. Launch paths that pass a literal false are unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-25 22:24:22 -07:00
Chris LeeandClaude Opus 5 54eae0c6b9 Stop leaking every submitted frame's pixel buffer in native memory
Passing a JS ArrayBuffer to a Java ByteBuffer parameter leaks it in
@nativescript/android 9.0.4 through 9.1.1: JsArgConverter wraps the backing store with
NewDirectByteBuffer and takes a JNI global ref that it never deletes. The
ref keeps the ByteBuffer reachable, so makeInstanceWeakAndCheckIfAlive
always answers "alive", the JS finalizer re-arms, and V8 never frees the
ArrayBuffer. submitSurfaceFrame passed a fresh copy of each frame this way,
so every frame leaked a full surface (576x260, 640x452 or 640x480 bytes)
plus one global ref, including frames that Java then discards as unchanged.
The draw-list buffer and buzzer payloads leaked the same way.

Each payload now goes through a reused Java direct ByteBuffer
(app/native/java-direct-buffer.ts): JS writes into it through an
ArrayBuffer.from view, and the Java object itself is passed, which takes
NativeScript's ordinary object path. Every consumer (SurfaceCompositor
applyAndComposite, playBuzzerSequence) copies before returning, so one
buffer per JS context is safe.

Covered: the communicator bridge (frames, draw lists, buzzer, which also
carries EvenHub tones), the preview-only display, and all eight worker
apps. Workers submit through the Android getActiveDisplay() (frames) and
worker-buzzer (tones), so the reused buffers live there rather than in
each worker; the worker sources are shared with iOS, whose active display
takes the ArrayBuffer itself. The
smaller one-off crossings (glyph and image atlas registration, the gray
preview helper, firmware and file writes) are left as they are.

tests/java-direct-buffer.test.cjs covers the helper against a fake
ByteBuffer, and the Android worker-buzzer test stubs it.

(Rebased onto main by James Babcock: worker changes moved into
active-display.ts and worker-buzzer.ts.)

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 22:24:22 -07:00
James Babcock f8bed915aa Merge pull request #37 from jmomakesstuff/fix-silent-mode-dead-end
Say how to leave silent mode
2026-09-25 22:14:24 -07:00
James Babcock 459560cd72 Fix a frozen menu in the notification modal 2026-09-25 22:06:44 -07:00
James Babcock cc1ae93fde Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-09-25 14:55:58 -07:00
James Babcock 6ec050cc39 Compass calibration readiness visible by default 2026-09-25 14:40:11 -07:00