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>
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>
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>
- 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>
- 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>
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>
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>
- 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>
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>
- 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>
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.
- 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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
- 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
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)
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>
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>
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>
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>
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.
- 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.
- 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.