Skip to content

App Updates - #84

Merged
KenVanHoeylandt merged 2 commits into
mainfrom
app-updates
Nov 26, 2026
Merged

KenVanHoeylandt merged 2 commits into
mainfrom
app-updates

Conversation

@KenVanHoeylandt

@KenVanHoeylandt KenVanHoeylandt commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor
  • Brainfuck now includes an editor, output display, file actions, and built-in examples.
  • The ePub Reader adds a recent-books library, reading progress, and tap- or key-based page navigation.
  • To-do tasks can be organized into groups, edited, moved, and managed with deletion confirmations.
  • GPIO adds live pin monitoring and a configurable timeline; Tone adds waveform previews and frequency sweeps.
  • Clock adds fullscreen viewing, and Diceware adds adjustable passphrase length and strength estimates.
  • Calculator supports keyboard controls and calculation history. Breakout and Snake adapt their playfields to screen size and input.
  • Confirmation and alert dialogs are available directly within more apps.
  • Updated usage guidance for several apps.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

Walkthrough

The pull request updates multiple apps with new interfaces, input handling, persistence, and dialog flows. It adds grouped task storage to To-do, recent-book tracking to ePub Reader, and grid-and-timeline views to GPIO. It also changes layout behavior in Breakout and Snake, adds calculator and Tone controls, and updates several apps to use window-manager dialogs. App manifest versions change, and a script is added to increment manifest versions.

Merge Risk: Moderate · up to cb5d1 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

This update reworks several apps. Some saves can destroy existing user data on failure or truncate large files, and the To-do group rename error path can read invalid memory. The Diceware strength display may overstate the strength of its passphrases. These should be fixed or accepted before merging.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Title check Inconclusive The title "App Updates" is vague and generic. The changeset covers many separate app changes, including AudioRecorder, Brainfuck, Breakout, Clock, EpubReader, GPIO, TodoList, Tone, and others. It desc… Replace the title with a short, specific sentence that names the main change. For example, state the main behavior change, such as migrating app dialogs from tactility.alertdialog to window manager dialogs, or name the most significant app …
Passed Passed checks: 3 passed

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "App Updates" is vague and generic. The changeset covers many separate app changes, including AudioRecorder, Brainfuck, Breakout, Clock, EpubReader, GPIO, TodoList, Tone, and others. It describes a broad category of work and does not name the main change. It does not state a specific change, so a teammate scanning history cannot tell the primary change from it.

Resolution

Replace the title with a short, specific sentence that names the main change. For example, state the main behavior change, such as migrating app dialogs from tactility.alertdialog to window manager dialogs, or name the most significant app rework. If the PR covers several unrelated app updates, list the main apps in the title or split the PR by topic.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 11

Note

Due to the large number of review comments, Critical, Major severity comments were prioritized as inline comments.

Minor comments: 11

Apps/AudioRecorder/main/Source/AudioRecorder.cpp: 1

571-571: Minor · Stability & Availability · Quick win

Synchronize access to pendingDeletePath.

After dialog dismissal, another LVGL delete request can reach this guard while the app task clears pendingDeletePath at Line 81 in main.cpp. The new guard reads the same std::string without synchronization. deleteConfirmed does not protect that later clear.

Use a common mutex for the guard, assignment, failure cleanup, and app-task consumption. Copy the pending path to app-task-owned storage before performing deletion.

Apps/Brainfuck/main/Source/Brainfuck.cpp: 1

117-118: Minor · Functional Correctness · Quick win

Apply the script-size limit before saving.

The editor has no size guard. A script with 32,769 ASCII characters can therefore report "Saved", but readScript rejects that same file when the user opens it again.

Reject content larger than MAX_SCRIPT_SIZE before opening the destination. Show a size error and leave the existing file unchanged. Keep empty scripts and scripts of exactly 32,768 bytes valid.

Apps/Breakout/main/Source/Breakout.cpp: 1

420-420: Minor · Functional Correctness · Quick win

Keep the rounded brick grid inside the field.

With a 320-by-150 wrapper, scale is 0.75 and areaW is 225. The rounded brickW and brickGap are 21 and 2. Ten columns therefore occupy 228 pixels. brickOffsetX becomes -1, so both outer columns extend beyond the field.

Calculate brick widths and gaps from a shared pixel budget, or scale brick boundaries before calculating their widths. Keep the complete grid within areaW, including at fractional scales.

Apps/Clock/main/Source/ClockUi.cpp: 1

559-560: Minor · Functional Correctness · Quick win

Record fullscreen before the null-content return.

setFullscreen returns early when context->content is null. In that case it does not store fullscreen. applyMenuChoice runs on the app task after the menu bit is set, and it does not check whether the clock widgets exist. If the window manager destroys the widgets before the choice is applied, the fullscreen selection is lost. buildUi reapplies fullscreen only when context->fullscreen is true, so the rebuilt window does not enter fullscreen.

Store the requested state before the null check. buildUi then applies it on the next build. The face switch does not need this change because it stores context->analog before the rebuild.

Suggested fix

 void setFullscreen(Context* context, bool fullscreen) {
+    context->fullscreen = fullscreen;
     if (context->content == nullptr) {
         return;
     }
-    context->fullscreen = fullscreen;
     context->toolbar ...
Apps/GPIO/main/Source/Gpio.cpp: 1

683-684: Minor · Functional Correctness · Quick win

Publish each action and its value as one unit.

requestAction writes actionValue and then action (Apps/GPIO/main/Source/Gpio.cpp:186-187). gpioRunAction takes the action with exchange at line 683 and reads actionValue at line 684. Both reads happen before lvgl_lock() at line 686. A publication that runs between those two reads replaces the value, so the first action runs with the second action's value. A ACTION_REMOVE for GPIO 4 can then remove GPIO 7 instead. The second action remains pending and removes GPIO 7 again on the next run, so GPIO 4 stays on the timeline.

A second publication before the app task consumes the first also overwrites the unconsumed action, because the slot holds one command.

Use a command queue that stores each action with its value, and keep pending commands until the app task consumes them. The consumer must take each command as one unit. With no intervening publication, the same queue must still remove GPIO 4.

Apps/TodoList/main/Source/TodoStore.cpp: 1

214-214: Minor · Functional Correctness · Quick win

Preserve UTF-8 boundaries when shortening group names.

A name containing 23 ASCII letters followed by é has 25 bytes. This resize retains only the first byte of é, which creates invalid UTF-8 for the directory and tab name.

Truncate at a complete code-point boundary within the byte limit.

Apps/Tone/manifest.properties: 1

9-9: Minor · Functional Correctness · Quick win

Update the app description to match the new controls.

The description advertises mono/stereo selection and nine frequency presets. The new UI has no channel selector, uses stereo output, and provides eight presets. It also changes white noise to frequency-dependent held noise.

Update this description so users do not look for unavailable controls.

Apps/Tone/main/Source/ToneUi.cpp: 1

720-721: Minor · Functional Correctness · Quick win

Read the menu action and its value as one atomic handoff.

requestAction writes actionValue and then action as two separate atomic stores. toneRunAction exchanges action and then loads actionValue as a second, separate step, and both happen before lvgl_lock(). If a second menu selection publishes between those two steps, toneRunAction can dispatch the value from the second selection with the action from the first. For example, it can open the frequency dialog for a value that belongs to a different menu entry.

The handoff must publish the action and its value as one unit, and the consumer must take both in one operation. A single packed atomic word (for example, std::atomic<uint64_t> holding both fields) is one way to do this. Any such change must update the field declarations in Tone.h:37-38 and every reader and writer of these fields.

Scripts/bump-versions.py: 2

51-51: Minor · Functional Correctness · Quick win

Accept whitespace around the property separator.

For version.name = 0.10.0 and version.code = 10, both checks fail. The script leaves both values unchanged, then reports success. The supplied publisher parser accepts these entries because it strips each key after splitting on =.

Split each property on = and compare the stripped key. Keep canonical entries working.

Also applies to: 56-56


59-59: Minor · Data Integrity & Integration · Quick win

Replace the complete version-code value.

For version.code=000, int() returns 0. This replacement changes only the first zero and writes version.code=100, not version.code=1. Reconstruct the property with new_code instead of searching for the normalized old integer.

Apps/Snake/main/Source/main.cpp: 1

49-49: Minor · Functional Correctness · Quick win

Do not discard the selected difficulty when lvgl_try_lock fails.

When lvgl_try_lock fails on line 49, snakeStartGame is skipped. The selection dialog result has already been consumed, so no dialog is open and no game starts. The selection is lost silently, and the app does not reopen the selection dialog. The base revision has the same behavior in its selection branch, so this predates the PR. It can be fixed as a follow-up in this area.

The failure branch must either keep the selected difficulty for a later start or show the selection dialog again, so the user can continue. Choose one of these behaviors. The lock-success path must stay unchanged.

Nitpick comments: 1

Apps/EpubReader/main/Source/EpubReaderAsync.cpp: 1

199-200: Trivial · Performance & Scalability · Quick win

Cache cumulative spine sizes when the book opens.

Each progress update scans every archive entry for every spine item. The new scroll-end handler performs this work after dragging too, while holding the LVGL lock. Cache spine sizes and prefix totals once per book. Then calculate progress from the current chapter's cached values. This removes repeated O(spine items × archive entries) work from reader input. (raw.githubusercontent.com)

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 15b1343e-b630-4e5e-853e-37cc07577a8d
Commits

Reviewing files that changed from the base of the PR and between c58181f and cb5d1e8.

Files ignored due to path filters: 2

  • Apps/AirMouse/icon.svg is excluded by !**/*.svg
  • Apps/AirMouse/icon_mono.svg is excluded by !**/*.svg
Files selected for processing: 97

  • Apps/AirMouse/manifest.properties
  • Apps/AudioRecorder/main/Source/AudioRecorder.cpp
  • Apps/AudioRecorder/main/Source/AudioRecorder.h
  • Apps/AudioRecorder/main/Source/main.cpp
  • Apps/AudioRecorder/manifest.properties
  • Apps/Brainfuck/README.md
  • Apps/Brainfuck/main/Source/Brainfuck.cpp
  • Apps/Brainfuck/main/Source/Brainfuck.h
  • Apps/Brainfuck/main/Source/main.cpp
  • Apps/Brainfuck/manifest.properties
  • Apps/Breakout/README.md
  • Apps/Breakout/main/Source/Breakout.cpp
  • Apps/Breakout/main/Source/Breakout.h
  • Apps/Breakout/manifest.properties
  • Apps/Calculator/main/Source/Calculator.cpp
  • Apps/Calculator/main/Source/Calculator.h
  • Apps/Calculator/manifest.properties
  • Apps/Clock/README.md
  • Apps/Clock/main/Source/Clock.cpp
  • Apps/Clock/main/Source/ClockUi.cpp
  • Apps/Clock/main/Source/ClockUi.h
  • Apps/Clock/manifest.properties
  • Apps/Diceware/README.md
  • Apps/Diceware/main/Source/Diceware.cpp
  • Apps/Diceware/main/Source/Diceware.h
  • Apps/Diceware/main/Source/main.cpp
  • Apps/Diceware/manifest.properties
  • Apps/Doom/main/Source/main.cpp
  • Apps/Doom/manifest.properties
  • Apps/EpubReader/README.md
  • Apps/EpubReader/main/Source/EpubReader.cpp
  • Apps/EpubReader/main/Source/EpubReader.h
  • Apps/EpubReader/main/Source/EpubReaderAsync.cpp
  • Apps/EpubReader/main/Source/EpubReaderUI.cpp
  • Apps/EpubReader/main/Source/EpubService.cpp
  • Apps/EpubReader/main/Source/EpubService.h
  • Apps/EpubReader/main/Source/epub_parser.c
  • Apps/EpubReader/main/Source/epub_parser.h
  • Apps/EpubReader/main/Source/main.cpp
  • Apps/EpubReader/main/Source/material_symbols_shared_20.c
  • Apps/EpubReader/main/Source/material_symbols_shared_32.c
  • Apps/EpubReader/manifest.properties
  • Apps/GPIO/README.md
  • Apps/GPIO/main/Source/Gpio.cpp
  • Apps/GPIO/main/Source/Gpio.h
  • Apps/GPIO/main/Source/main.cpp
  • Apps/GPIO/manifest.properties
  • Apps/GfxBenchmark/main/Source/Main.cpp
  • Apps/GfxBenchmark/manifest.properties
  • Apps/MystifyDemo/main/Source/Main.cpp
  • Apps/MystifyDemo/manifest.properties
  • Apps/MystifySpiDemo/ili9341-panel-settings/main/Source/main.cpp
  • Apps/MystifySpiDemo/manifest.properties
  • Apps/MystifySpiDemo/mystifyspidemo/main/Source/Main.cpp
  • Apps/Screensaver/manifest.properties
  • Apps/Screensaver/screensaver/main/Source/main.cpp
  • Apps/SerialConsole/main/Source/ConnectView.cpp
  • Apps/SerialConsole/manifest.properties
  • Apps/Snake/README.md
  • Apps/Snake/main/Source/Snake.cpp
  • Apps/Snake/main/Source/Snake.h
  • Apps/Snake/main/Source/SnakeHelpers.h
  • Apps/Snake/main/Source/SnakeUi.c
  • Apps/Snake/main/Source/SnakeUi.h
  • Apps/Snake/main/Source/main.cpp
  • Apps/Snake/manifest.properties
  • Apps/TamaTac/main/Source/TamaTac.cpp
  • Apps/TamaTac/main/Source/TamaTac.h
  • Apps/TamaTac/main/Source/main.cpp
  • Apps/TamaTac/manifest.properties
  • Apps/TodoList/README.md
  • Apps/TodoList/main/Source/TodoList.cpp
  • Apps/TodoList/main/Source/TodoList.h
  • Apps/TodoList/main/Source/TodoStore.cpp
  • Apps/TodoList/main/Source/TodoStore.h
  • Apps/TodoList/main/Source/main.cpp
  • Apps/TodoList/manifest.properties
  • Apps/Tone/README.md
  • Apps/Tone/main/Source/Tone.h
  • Apps/Tone/main/Source/ToneSynth.cpp
  • Apps/Tone/main/Source/ToneSynth.h
  • Apps/Tone/main/Source/ToneUi.cpp
  • Apps/Tone/main/Source/main.cpp
  • Apps/Tone/manifest.properties
  • Apps/TwoEleven/main/Source/TwoEleven.cpp
  • Apps/TwoEleven/main/Source/TwoEleven.h
  • Apps/TwoEleven/main/Source/TwoElevenHelpers.h
  • Apps/TwoEleven/main/Source/TwoElevenUi.c
  • Apps/TwoEleven/main/Source/main.cpp
  • Apps/TwoEleven/manifest.properties
  • Apps/UnitLcdGfxDemo/main/Source/Main.cpp
  • Apps/UnitLcdGfxDemo/manifest.properties
  • Apps/Voidskim/main/Source/main.cpp
  • Apps/Voidskim/manifest.properties
  • Apps/WebServer/manifest.properties
  • Apps/WebServer/webserver/main/Source/main.cpp
  • Scripts/bump-versions.py
Files with no reviewable changes: 2

  • Apps/EpubReader/main/Source/material_symbols_shared_20.c
  • Apps/EpubReader/main/Source/material_symbols_shared_32.c

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Comment thread Apps/Diceware/main/Source/Diceware.cpp Resolved
Comment thread Apps/TodoList/main/Source/TodoList.cpp Resolved
Comment thread Apps/TodoList/main/Source/TodoStore.cpp Resolved
Comment thread Apps/TodoList/main/Source/TodoStore.cpp Resolved
Comment thread Apps/TodoList/main/Source/TodoStore.cpp Resolved
Comment thread Apps/TodoList/main/Source/TodoStore.cpp Resolved
@KenVanHoeylandt
KenVanHoeylandt merged commit c530538 into main Nov 26, 2026
46 checks passed
@KenVanHoeylandt
KenVanHoeylandt deleted the app-updates branch November 26, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant