212 Commits
Author SHA1 Message Date
Kaj Schittecat 0e156f8caa Merge #857 (oumike): unified web console, with security follow-ups
# Conflicts:
#	deploy/apps/lang/bg.lang
#	deploy/apps/lang/cs.lang
#	deploy/apps/lang/de.lang
#	deploy/apps/lang/el.lang
#	deploy/apps/lang/es.lang
#	deploy/apps/lang/fr.lang
#	deploy/apps/lang/hu.lang
#	deploy/apps/lang/it.lang
#	deploy/apps/lang/nl.lang
#	deploy/apps/lang/pl.lang
#	deploy/apps/lang/pt-br.lang
#	deploy/apps/lang/ro.lang
#	deploy/apps/lang/ru.lang
#	deploy/apps/lang/sr.lang
#	deploy/apps/lang/uk.lang
#	src/ui-touch/i18n_builtin.h
2026-11-16 11:33:06 +01:00
Kaj Schittecat 7c5faf99de Merge #858 (Languskhan): city locator from GPS and a boundary file, with follow-ups
# Conflicts:
#	deploy/apps/lang/bg.lang
#	deploy/apps/lang/cs.lang
#	deploy/apps/lang/de.lang
#	deploy/apps/lang/el.lang
#	deploy/apps/lang/es.lang
#	deploy/apps/lang/fr.lang
#	deploy/apps/lang/hu.lang
#	deploy/apps/lang/it.lang
#	deploy/apps/lang/nl.lang
#	deploy/apps/lang/pl.lang
#	deploy/apps/lang/pt-br.lang
#	deploy/apps/lang/ro.lang
#	deploy/apps/lang/ru.lang
#	deploy/apps/lang/sr.lang
#	deploy/apps/lang/uk.lang
2026-11-16 11:04:07 +01:00
Kaj Schittecat ed4ab0dc9e Merge #809 (oumike): Tanmatsu standalone web-flashable build, with follow-ups 2026-11-16 11:03:28 +01:00
Kaj SchittecatandClaude Opus 5.5 f16a1a91b1 touch: city locator reads in slices, clears without a fix, Home name opt-in
Follow-ups on #858:
- cities.bin (about 2 MB for California) was read in one f.read() on the
  main loop, which stopped the UI and the mesh for seconds. It is now read
  4 KB per loop pass through an internal-RAM bounce buffer (SD transfers
  never land in PSRAM directly), and starts over if the card goes away.
- With the GPS off the place clears at once, and after 10 minutes without
  a fix, instead of staying on Home for good.
- Home keeps the node name unless Settings, GPS, City on Home is switched
  on (off by default). The pop-up still says where you are.
- CAP_CITY_LOCATOR in device_caps.h (SD card, GPS, PSRAM, not the Pager)
  replaces the -D flags in platformio.ini, so every board that can run it
  gets it.
- The pop-up, the read error and the new switch are translated in all 15
  languages.
- tools/make_cities.py moved to scripts/build/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 11:03:23 +01:00
Kaj SchittecatandClaude Opus 5.5 92628e1aa6 Tanmatsu standalone: composer Enter sends flags right, flashing needs a port
Follow-ups on #809:
- Enter in the Tanmatsu chat composer copied the text byte by byte, so a
  flag emoji went out as its private-use placeholder. It now goes through
  composerAppendDisplayText like the Send button, which expands the
  placeholder into its regional-indicator pair.
- build.sh standalone-flash without -p tried every USB serial port. Any
  ESP32-P4 passes esptool's chip check, so a T-Display P4 or CrowPanel P4
  on the same desk would get the Tanmatsu image (or an erase). -p is now
  required and the available ports are listed when it is missing. An
  erase failure also stops the flash instead of carrying on.
- The installer text promised that WADAMESH data is kept. The merged image
  is written from 0x0 and wipes NVS, so it now says what survives
  (identity, contacts, chats on locfd) and what starts fresh (settings,
  Wi-Fi, the setup wizard). It also explains how to tell the P4 and C6
  ports apart instead of saying to pick the first one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 10:56:06 +01:00
Kaj SchittecatandClaude Opus 5.5 f73b4f5757 touch: Tanmatsu 24 px composer icons carry only their two glyphs
The 24 px app-icon cut from #862 held all 89 app icons for the two the
chat composer draws (quick replies and Send), about 12.7 KB of the
Tanmatsu's flash. A 'composer' icon set cuts just those two. The 24 px
person font is guarded to the Tanmatsu (and doc captures) like it,
instead of every large-UI board.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 10:47:50 +01:00
Michael A. CojocariandCopilot c3f13faa53 feat(web): Lua app settings in the web console; Cyberspace 1.1 (#854)
- An app's manifest can list "config" fields (text, password, bool, number).
  The Settings tab shows an Apps group with a page for each such app, and
  saves the values into the app's own wada.store keys: the live store when
  the app is open, the .sav file otherwise. Only declared keys can be
  written; passwords are never sent back to the browser.
- Text that reads as a number (an all-digit password) is saved with a mark
  so it loads back as the same string. Other values keep the old typing.
- Cyberspace 1.1: email, a one-time password (signs in at the next open,
  then erased) and "Stay signed in". Fixes "remember" stored as the
  number 0 being read as on. Host test covers both.
- SDK page, apps README and LUA_APPS.md document "config".

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-15 19:42:09 -05:00
Michael A. CojocariandCopilot a6233fe8d8 Tanmatsu: larger nav icons, F-key hints beside buttons, repeater admin layout (#861)
- Tab bar: 24 px icons (was 16) with a small 14 px F-key outline beside each,
  instead of a large shape drawn around it; same on the Condense Nav rail.
  Adds person_font24 for the Contacts icon.
- Chat composer: the Quick Replies and Emoji F-key shapes sit beside their
  buttons instead of over them; the Quick Replies icon is 24 px (ui_icons_24)
  and Send matches the other chips. The text box narrows to fit.
- Repeater admin (two-column landscape): cards go under the shorter column,
  so a tall card beside a short one leaves no gap; a single column is centred.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-15 19:25:30 -05:00
Michael A. CojocariandCopilot ae740ea209 Tanmatsu: try each USB serial port when flashing standalone (#806)
The Tanmatsu shows two USB serial ports (ESP32-P4 and ESP32-C6), whose names
swap between replugs. As in camillia-mt, build once, then try each port. With
--chip esp32p4, esptool aborts on the C6 before writing anything. The port that
worked is recorded for build-upload-monitor.sh to monitor. -p/PORT still pins
a single port.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-15 19:11:25 -05:00
Michael A. CojocariandCopilot 9abe1fcfe4 Tanmatsu: standalone web-flashable build target (#806)
Add a standalone Tanmatsu image that the web flasher can install. It
replaces the badge.team launcher and keeps the locfd data partition at
the same offset. The AppFS/app-store build is unchanged.

- tanmatsu: new wadamesh_standalone.csv (2x6M OTA, locfd @0xC20000) and
  build.sh modes standalone / standalone-flash -p PORT [--erase]
- p4-release.sh builds wadamesh-tanmatsu(-merged).bin; release.sh (beta)
  publishes out/p4_<tag>; gen-flasher-meta emits manifest-tanmatsu.json
- build-all-targets.sh (tanmatsu_standalone), build-upload-monitor.sh
  (--tanmatsu)
- site, flasher page and docs: beta-only install button, launcher
  restore via recovery.tanmatsu.cloud

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-15 19:11:25 -05:00
Michael A. CojocariandCopilot b13b8131e5 feat(web): device approval for sensitive actions and a live Dashboard tab (#854)
- Factory reset, power off, OTA install, SD format/restore, and backup
  import/delete/download/restore from the browser now wait for Allow on the device.
  The grant is single-use and expires after 30 s.
- New Dashboard tab, now the default: battery, signal, radio, packets,
  connections, memory, storage, contacts, and recently heard nodes.
- Note: the console pages' own labels are not translated yet (future work).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-14 15:53:21 -05:00
Kaj SchittecatandClaude Opus 5.5 c8575a0556 follow-up #841: compile the FatFs C sources in prep, Apple clang refuses -std=c++17 with -x c
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 15:50:00 +01:00
Kaj Schittecat 405f533817 Merge PR #841: Support >2GB .pmtiles files 2026-11-14 15:49:22 +01:00
Michael A. CojocariandCopilot a386d4087d Web console: Settings tab with every device setting, and a themed redesign (#854)
The browser drives the device's own Settings pages instead of a second copy of
them: WebSettingsEngine.h builds a category page out of sight, describes its
widgets as JSON over /term (kit rows record themselves while the web session is
on), applies changes by setting widgets and sending the events a tap would,
and tears the page down, all in one UI-loop call. New settings show up on the
web with no extra work and save through the device's own code.

- settings.html: category sidebar, cards per page, one Save bar for all
  changes, write-only secrets, device confirms and a confirm for danger
  actions, sub-pages with breadcrumbs, reconnect after a restart.
- theme.css: shared tokens; every page follows the browser's light/dark mode.
- index, mesh, files, screen and the approval overlay restyled on it.
- /settings route (gated like Mesh) and a settings flag in /api/info.

Tested: T-Deck Pro, Heltec V4 TFT and T-Deck Plus builds; host tests
(56 pass); pages checked in headless Chrome against a mock device.
Not yet tested on hardware.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-13 22:16:13 -05:00
Michael A. CojocariandCopilot 7c3b43f64c web: unified web console with on-device approval (phase 1, #854)
- One gzipped console (Mesh / Screen / Files tabs) served on the device's
  web port; page sources live in web/console/ and are generated into
  WebConsoleAssets.h by scripts/build/gen-web-console.py (pre-build hook).
- New browsers ask on the device (Allow / Always allow / Deny); trusted
  browsers are stored in NVS. The 6-digit code remains as a fallback.
- Files tab requests a File Transfer session through the same approval.
- Remote page: single "Web console" toggle, trusted-browser list,
  "Disconnect all browsers". Separate VNC page removed.
- Approval prompt is suppressed while the lock screen is up.

Tested: builds for LilyGo_TDeck_Pro_v1_1_companion_radio_touch and
heltec_v4_tft_companion_radio_usb_tcp_touch (no File Transfer); host
tests pass (56/0/2) incl. new test_web_session_auth. Not device-tested.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-13 20:38:41 -05:00
Martin Kremers eac02c2161 lvgl: fix use-after-free on deleted scroll_obj and pending async deletes
Fixes the beta_102 T-Deck LoadProhibited panic and a related async bug.

scroll_obj: LVGL 8.4 resets an indev only for act_obj/last_obj. After
lv_indev_wait_release() (via popupClose()), scroll_obj survives for the
throw. A sheet closed mid-scroll leaves it dangling, and the next press
crashes in _lv_indev_scroll_handler. patch_lvgl_scroll_uaf.py also
resets the indev on scroll_obj delete, as LVGL 9 does. SCROLL/SCROLL_END
handlers must still not delete synchronously (throw handler skips
reset_query).

async del: LVGL 8.4 never cancels queued lv_obj_del_async(), so freed
objects get deleted again. patch_lvgl_async_del.py cancels pending
deletes in obj_del_core() and frees info/timer before the call in
lv_async_timer_cb(). Both halves are required, or a double free occurs.

Patches are idempotent, fail closed on version drift, and are wired
into all PlatformIO, Tanmatsu, P4 and web builds. ASan tests in
test/lvgl_scroll_uaf and test/lvgl_async_del_uaf: stock LVGL fails,
patched LVGL is clean.
2026-11-13 16:07:40 +01:00
Kaj SchittecatandClaude Opus 5.5 2e71e5b512 Merge #826: ThinkNode M9 board init, charger sense, 20 MHz SD, IMU/compass, LR1110 wrapper
Language rows from both sides kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:23:32 +01:00
TinkeringDao 63f40f27ed fix(m9): hardware init, charger sense, SD clock, IMU/compass, and LR1110 wrapper
Scope ThinkNode M9 board support and UI integration cleanly off main:
- variants/thinknode_m9: move M9LR1110Wrapper.h under variants/thinknode_m9 (matching Pager's CustomLR1121Wrapper.h pattern without shadowing core RadioLibWrappers.h) and calibrate LR1110 from STDBY_RC per Semtech SWDR001
- variants/thinknode_m9: 3-state USB VBUS + LGS4056HDA DONE# charger sense, ADC2 Wi-Fi contention filter, 20 MHz SD SPI clock, SPI CS pre-park, GPIO46 key LED mirror, deep-sleep wake/isolation, QMI8658A IMU gestures, MMC5603NJ auto-SR heading, and L76K GPS wake/ESD pin release
- src/main.cpp, DataStore.cpp, MyMesh.cpp, HardwareRtcClock.cpp, WadaNmeaLocationProvider.h, UITask.cpp: gate all M9/LR1110 paths under HAS_THINKNODE_M9 / HAS_M9_IMU / HAS_M9_KEYBOARD / USE_LR1110 so non-M9 targets retain identical RAM, flash, and SPIFFS behavior
- deploy/apps/lang/*.lang & test/test_m9_board.cpp: add .lang entries (leaving generated i18n_builtin.h untouched) and host unit tests for M9 board peripherals
2026-11-11 14:07:47 +01:00
Kaj SchittecatandClaude Opus 5.5 010b675ee5 idf: exFAT builds on the IDF boards; deflated emoji carry #616's sequences
- patch_idf_fatfs_exfat.py also defines FF_USE_LABEL as 0 when sdkconfig leaves
  CONFIG_FATFS_USE_LABEL out: exFAT's dir_read() tests it in plain C, so the
  Tanmatsu, T-Display P4 and CrowPanel P4 builds stopped at ff.c with #812.
- gen-emoji-deflated.py emits the kSequences table and emoji_deflated.cpp
  defines emojiGlyphSequenceLookup, which #616 calls; the Tanmatsu failed to link.
- test_emoji_deflated checks every sequence against the raw table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:01:30 +01:00
Kaj SchittecatandClaude Opus 5.5 cdfd383dfe host tests: build test_lua_json (#788) against the Lua core
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 11:36:20 +01:00
Kaj SchittecatandClaude Opus 5.5 919af1cc47 Merge #616 (TerryTel93): emoji pack from the SD card, rebased on main
Follow-ups in the merge, from the review:
- emojiRememberRecent copies the picked text first: a Recent cell points into
  s_emoji_recent, and the shift overwrote it before the copy into slot 0.
- The text menu's Emoji opens the emoji set (it passed k_emoji_items, which
  marked the sheet as special characters, so nothing was remembered).
- Without a pack the picker is the plain grid it always was: no tabs, no
  Recent, and hearts never show as a "More" tab (they sit under Smileys).
- Removed wada_shape_flag_codepoint, which nothing called.
- emoji_data.c regenerated with the merged add-emoji.py (the eight bot emoji
  from beta_102 kept); the EmojiGlyph typedef stays on one line.
- .lang rows for the tab names in all 15 languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 11:36:20 +01:00
Kaj Schittecat 78f88efd2b Merge #788 (oumike): Cyberspace app, wada.net.request over verified https, wada.json, label:on_press 2026-11-11 11:31:51 +01:00
Kaj Schittecat 5da1ca2716 Merge #812 (zmiguel): exFAT microSD support 2026-11-11 11:29:45 +01:00
Kaj SchittecatandClaude Opus 5.5 4f4c11df5d Merge PR #631 (oumike: i18n: translations from #611)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 15:25:03 +01:00
Kaj SchittecatandClaude Opus 5.5 fae96adfb4 touch: eight more emoji for a channel bot, repeater paths in the Lua SDK
Ice cube, the red, yellow, green and blue circles, oncoming car, hiking boot
and the police light render now. Noto moved its PNGs under 2D/, so the bake
script follows it.

on_message gains m.hops and m.path on floods, rx_log and on_packet gain
p.path on floods, and wada.mesh.repeats returns the repeaters heard as a
second value. Requested by jadestarwatcher on Discord.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 13:38:26 +01:00
Kaj Schittecat 52e8b0d81d Merge PR #784 (oumike): touch(T-Deck Pro): e-paper fonts, settings buttons, no status-bar name, chat header (#767) 2026-11-10 11:47:39 +01:00
Kaj Schittecat 1e5f83c534 Merge PR #773 (Ender436: ProTreck 1.3: local sun/twilight/moon times) 2026-11-10 11:44:21 +01:00
José Valdiviesso 136b209f81 Support >2GB .pmtiles files
Signed-off-by: José Valdiviesso <zmiguel.alves@gmail.com>
2026-11-06 19:09:25 +01:00
José Valdiviesso c6ccb08d90 exFAT microSD support
Signed-off-by: José Valdiviesso <zmiguel.alves@gmail.com>
2026-11-06 18:38:40 +01:00
CarpeNoctemandCopilot 7dd9abd92d ebook: centre image placeholders again, with blank lines kept
6587555 left-aligned the placeholders because centred ones, often as wide as
the text column, looked wrong. That broke tapping: a tap opens a picture only
in the middle third of the screen, and a short left-aligned placeholder sits
entirely in the left third, where a tap turns the page instead.

Centre a placeholder that fits on one line (padding it with spaces, since the
page is one left-aligned label), and keep the blank line above and below it.
A placeholder that wraps stays left-aligned.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: CarpeNoctem <cryptomax@pm.me>
2026-11-03 13:20:16 +11:00
CarpeNoctemandCopilot 6587555f5e ebook: set image placeholders off with blank lines, not centred
Placeholders are often as wide as the text column, so centring looked wrong.
A blank line above and below now sets each one apart. text_lines ignores the
empty line after a trailing newline, so lines() adds it back; the harness
wrapper now matches the firmware there.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: CarpeNoctem <cryptomax@pm.me>
2026-11-03 12:27:04 +11:00
CarpeNoctemandCopilot cc7867cd35 ebook: show image placeholders in angle brackets
Angle brackets read more clearly than square ones. Comments, tests and the
store description follow.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: CarpeNoctem <cryptomax@pm.me>
2026-11-03 11:54:12 +11:00
CarpeNoctemandCopilot fc9b679c29 ebook: centre image placeholders
A placeholder that fits on one line is padded with spaces to the middle of the
text column. Tests also check that an image inside a paragraph gets a line of
its own.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: CarpeNoctem <cryptomax@pm.me>
2026-11-03 11:09:05 +11:00
CarpeNoctemandCopilot 6edc5ce162 ebook: stub image display behind a proposed wada.ui.image call
Adds an Images menu row (always / on tap / never) that appears only when the
firmware has wada.ui.image, which it does not yet. Without it the app behaves
exactly as before (placeholders only). With it: on tap shows a picture fit to
the screen from the placeholder (tap, i key or menu row), always gives a
picture a page of its own, and never ignores taps on the placeholder. The
default stays never until the firmware call exists.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: CarpeNoctem <cryptomax@pm.me>
2026-11-03 10:42:32 +11:00
CarpeNoctemandCopilot 13ef64c5c8 ebook: show images as [image: alt text] placeholders
Use the img alt text when the book gives one, including images wrapped in
svg (common for covers), and ignore closing img tags so one image makes one
placeholder.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: CarpeNoctem <cryptomax@pm.me>
2026-11-03 10:40:12 +11:00
Ender436 470ccb9b35 Merge branch 'ALLFATHER-BV:main' into protreck-local-time 2026-11-01 17:10:45 -07:00
CarpeNoctemandCopilot 7a20ff02bd ebook: survive store.get returning a table; keep saved positions under the store's line limit
On beta_101 store.get(key) of a missing key returns the store's own table,
not nil (storeGet reads the default from stack slot 2, which is the table by
then), so the first launch called :gmatch on a table. Only strings and numbers
count as stored values now, and the harness reproduces the quirk for this app.

The store reloads lines of at most 191 bytes, so the serialized reading
positions are capped at 180 bytes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: CarpeNoctem <cryptomax@pm.me>
2026-11-02 03:02:13 +11:00
CarpeNoctemandCopilot f98155ec9d Add Ebook app: read stored-zip .epub books from the app folder
Pure-Lua reader using wada.fs: chapters, three text sizes, remembered
position, touch/trackball/jog-wheel/keyboard navigation. Includes
scripts/ebook-prep.py to repack epubs uncompressed, harness scenarios,
and a store page entry.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: CarpeNoctem <cryptomax@pm.me>
2026-11-02 01:41:34 +11:00
Michael A. CojocariandClaude Opus 5.5 d1571d91ca lua: Cyberspace app, wada.net.request over verified https, wada.json, label:on_press
A client for cyberspace.online (cIRC rooms, C-Mail, the Feed) as a store app,
and the SDK pieces it needed:

- wada.net.request{url, method, headers, body, max}: any method, request
  headers, the real status code. https:// runs in a one-shot TLS task with the
  chain verified against the ISRG roots (CAP_LUA_HTTPS: off on the P4 boards,
  where TLS runs on the C6 unverified, and on the 2 MB Heltec V4).
- wada.json.decode/encode in C; 64-bit integers come back as exact text.
- label:on_press(fn): a label becomes a tap / long-press / cursor target.
- wada.store: get(key) with no default returned the store table for a missing
  key; flush wrote past its 192-byte line buffer; changes now reach the card
  within 2 s instead of only on close.

Host tests: test/test_lua_json.cpp and scripts/lua-harness/cyberspace/run.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01He9DHEuLWYQHXVBnNzzD6E
2026-10-30 20:36:57 -04:00
Michael A. CojocariandClaude Opus 5.5 5e846f27fb touch(T-Deck Pro): e-paper fonts, settings buttons, no status-bar name (#767, WIP)
- epd_font_NN.c: the UI faces cut from Montserrat SemiBold at 1 bpp for the
  black-and-white panel (gen-touch-fonts.sh generate_ui_epd). Anti-aliased
  Medium strokes were thresholded to ragged, uneven lines; 1 bpp SemiBold
  draws one stroke width. The Medium ui_font_NN.c are compiled out on the Pro,
  and the semibold role uses the same faces.
- Settings buttons: one smaller face (12 px) for every button, wrapping a
  title that does not fit instead of cutting it (the Firmware card).
- The node name leaves the status bar (no room beside the clock, and its
  marquee was a panel update every step); it sits centred over Home, the
  widget grid and the app drawer. Off Home the clock takes the left corner.
  "Hide device name" is hidden on the Pro.
- Settings section subtitles: dotted instead of a scrolling marquee.
- EPD_DIRTY_LOG (off by default): logs each e-paper update's changed box and
  settings row geometry, for finding what still redraws.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01He9DHAqRzswrcCw39ZcTgB
2026-10-29 20:48:46 -04:00
Michael A. Cojocari 3aa0b90232 i18n: translate the strings that still showed in English (#418)
i18n-scan-unwrapped.py reported 16 user-visible literals that never went
through TR(), so they rendered in English in every language. Wrapped them:
the 30 sec slider label, the Spectrum peak readout (and its two live
formats, which the scan cannot see), the T-Deck Max sleep banner, the File
Transfer status lines and page title, the USB Files title, and the Reboot
Now / Forget confirm buttons. The add-channel menu items and the control
centre's Timer / Screenshot captions were already translated (or unused)
inside their helpers; they are wrapped at the call site too, which the
scanner expects and which is harmless. Three app-page titles assigned
directly (Send advert, Known regions, Blocked users), where the scan cannot
see them, are wrapped as well. "Esc" is a key-cap name and joins SKIP_TEXT.

The sleep banner's English also lost its typo ("Asleep:Tap Screen").

Translated in all 14 languages, along with the Forget-keyboard question
and "Known regions", which were English copies in most files.
i18n_builtin.h regenerated. The scan now reports 0 unwrapped literals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016zE15egJdCZ9nRBZmg1YUq
(cherry picked from commit 6e9b92c278)
(cherry picked from commit dce673f7906b405f777839c1b75e7ab1f9964a8e)
2026-10-29 08:41:53 -04:00
Kaj SchittecatandClaude Opus 5.5 879a452300 lang: rows for every TR() key the files were missing, "Connections" among them
The Settings group heading "Connections" had no row in any language, so it
stayed English (CONNECTIONS above Polish rows). The headings come from
kSettingsGroups through `for (const SettingsGroupDef& g : kSettingsGroups)
... TR(g.title)`, and i18n-audit.py's range-for rule only recognised
`for (auto& x : table)`, so the key never reached the audit. The rule now
takes any element type.

The audit then lists 18 more keys added since the last pass (the old-contact
purge, vibration, browser-build notes, the web location prompt). All 19 get
a row in all 15 files: real translations in de, nl, fr, es, it, pt-br and pl,
English placeholders elsewhere. i18n_builtin.h regenerated (V4 +3.9 KB).
i18n-audit.py: every file ok.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 08:47:50 +01:00
Kaj SchittecatandClaude Opus 5.5 b923ca78fc touch(fonts): accented letters at the size of the text around them, Romanian ș ț drawn at all
At the bigger text sizes (the Large/Huge presets on the T-Deck, M9, V4-R8,
T-Deck Pro, Pager; the large screens and the browser build always) the UI
swaps an 18/20/24/28 px Montserrat into g_font_12/14/16. That face is ASCII
only, so every accented letter came from the fallback chain, which stayed at
12/14/16 px: "Urządzenie", "Dźwięk", "Język" drew their ą ź ę visibly
smaller in Polish, and the same for Czech, Hungarian and Romanian. Only the
Tanmatsu spliced a size-matched Latin font (#129).

initTouchFontFallbacks() now gives every slot the extras at its primary's
own size on every CAP_UI_SIZE board: the full extras_12/14/16 (or the
Pager's extras_20/24) where one exists at that size, otherwise extras_lat_18/
20/24/28 (Latin-1, Latin Extended-A) in front of the biggest full extras for
Greek/Cyrillic/Arabic. extras_lat_18 is new; 18/20/24 are built under the
same board gate as the 18/20/24 px UI faces. Romanian's ș ț Ș Ț (U+0218-021B,
Latin Extended-B, 85 uses in ro.lang) were in no font at all and drew as the
missing-glyph mark: added to the extras, the Latin extras and the SemiBold.

Flash (vs the previous commit): heltec_v4_tft +2.2 KB (94.4%, the V4 has no
text-size setting, so only the Romanian glyphs); T-Deck +37.6 KB (91.2%),
M9 +37.5 KB (89.3%): extras_lat_18 and _24. The 28 px Latin font is only
referenced where a preset reaches 28 px (large screens), and the Pager (98%)
keeps its 20 px extras for its 18 px face instead of linking extras_lat_18.
Tanmatsu application.bin 3,126,480 B (ceiling 3,276,800).

Proof: the browser host build with pl.lang active, Settings before/after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 08:43:49 +01:00
Kaj SchittecatandClaude Opus 5.5 1ee32105de touch(clock): Central Africa and 24 more zones, GPS wake no longer sets a stale time, every SNTP sync reaches the clock
Discord (gadgeteerza, ThinkNode M9, beta_100): no Central Africa zone, the
clock often half an hour behind on a Custom UTC offset, and "Sync clock from
system" with Wi-Fi on not always setting it.

Zones: the saved setting is an index into the zone table, and Custom used to
be "one past the list", so appending zones would have moved it. Custom now
keeps its id (16) forever and the new zones (Central/South/East/West Africa,
Egypt, Eastern/Western Europe, Moscow, Turkey, Arabia, Iran, Gulf, Pakistan,
Nepal, Bangladesh, Indochina, Singapore, Perth, Korea, Adelaide, Brisbane,
New Zealand, Argentina, Mexico City, Newfoundland) sit after it. The picker
shows its own west-to-east order and opens on the current zone.

Half an hour behind: not the offset. WadaNmeaLocationProvider::begin() kept
the parser's pre-rest sentence, so after a GPS saver rest the first loop pass
saw a "valid" fix, the 30-minute re-sync was due, and the clock was set to
the moment the receiver went to rest. begin() now clears the parser, and
UITask::setGpsPower(true) calls syncTime() so the core provider (V4 and
others) gets the same. test_gps_time_sync runs the real provider against a
receiver sending true UTC: the pre-fix provider set the clock 1801 s behind
after a 30-minute rest; now every set is within 1 s.

Sync from system: on the M9 the system clock is the device clock, so the
button copied a clock onto itself. And the Wi-Fi loop wrote only the FIRST
SNTP result into the mesh clock: SNTP's hourly re-syncs set the system clock
only, the PCF8563 kept its old value, and the hourly chip resync (#583)
pulled the clock back to it. Every completed sync is now written through
(SntpClockPush.h, test_sntp_clock_push), and the button with Wi-Fi up
restarts SNTP and says "Clock synced" when the answer lands.

test_time_zones: the legacy ids keep their zones, every zone's offset in
January/July/October, Egypt's DST edges, and all 65536 saved
(tz_zone, time_offs) byte pairs through the exact prefs path to localtime().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 08:19:39 +01:00
Kaj SchittecatandClaude Opus 5.5 d1295124c3 store: serve slimmed .lang files that fit the device's download buffer
The device downloads a language into one buffer of at most 128 KB and reports
anything larger as "Server or connection failed". Every v30 file was over
it (Polish 149 KB, Greek 163 KB), so no language could be downloaded, and
seven were already over it in v29. deploy-apps.sh now publishes from a
staging copy in which pack-lang.py keeps the headers and the last row per key,
drops rows that equal the English key (the device falls back to the key
anyway), and, for a file still over 120 KB, keys no current firmware looks
up. A file over 128 KB aborts the deploy. The repo keeps the full files for
translators. Served v30: 72-107 KB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 16:49:51 +01:00
Ender436 4c5ea958ae ProTreck 1.3: local sun/twilight/moon times
Use wada.sys.datetime() for the status bar and localise the ASTRO event times without changing the astronomy. The local civil date drives the day-of-year, the UTC offset is re-read at draw time (DST and half-hour zones included), and a host without sys.datetime() falls back to UTC with explicit labels. Refresh ASTRO immediately on open and retry when the clock or GPS fix arrives. Add harness scenarios for local time, UTC+13/-10, half-hour zones, a live timezone change, no clock, and the UTC fallback.
2026-10-26 16:06:12 -06:00
Terry Carr 26b93e9ed3 reset format. 2026-10-26 20:47:41 +00:00
Terry Carr a579374481 Add emojiGlyphSequenceLookup function to emoji_data.h
- Introduced a new function `emojiGlyphSequenceLookup` that returns a baked composite image for an exact UTF-8 emoji sequence, or NULL if not found.
- Updated the existing `emojiGlyphLookup` function comment for clarity.
2026-10-26 20:44:24 +00:00
Terry Carr 0a745e0f07 Enhance emoji pack support with regional flags and tag handling 2026-10-26 20:44:24 +00:00
Terry Carr cd0644e6b3 Add optional SD-card emoji pack support
- Introduced EmojiPack.h to handle loading and managing an emoji pack from the SD card.
- Updated UITask.cpp to integrate the emoji pack with existing emoji functionality.
- Implemented functions to read and validate the emoji pack, allowing it to extend the baked-in emoji set.
- Enhanced emoji picker to dynamically include items from the SD card pack, ensuring a seamless user experience.
- Added logic to handle loading the emoji pack in budgeted slices to prevent stalling the UI during boot.
2026-10-26 20:44:23 +00:00