Skip to content

feat(mobile): show the app version on About - #138

Merged
juancguerrerodev merged 10 commits into
DojoCodingLabs:mainfrom
jlaran:feat/about-version
Nov 27, 2026
Merged

juancguerrerodev merged 10 commits into
DojoCodingLabs:mainfrom
jlaran:feat/about-version

Conversation

@jlaran

@jlaran jlaran commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Closes #31

About now shows the app's version (HM-SET-08.version, filled with appVersion() from src/adapters/device-lab) in a small, soft, selectable line under the body, so people can copy it into a bug report. The screen doesn't import expo-constants; the preview stub gains appVersion so the preview still builds, and the About shot now runs in en as well as es-419.

Vision fit

Open and checkable: anyone filing a bug can say exactly which build they run, now that preview APKs are on GitHub Releases.

Non-negotiables

  • This keeps every non-negotiable in AGENTS.md as it is.
  • Or it changes one, and this is the accepted RFC: #

Checklist

  • It closes one issue, linked above, or it's a small fix (a typo, a broken link, a wrong comment). A feature has an accepted proposal.
  • I wrote the failing test first. It fails without this change and passes with it. (apps/mobile/src/about-version.test.ts failed on the missing appVersion import before the change.)
  • These pass: pnpm check:privacy, pnpm typecheck, pnpm lint, pnpm test and node scripts/guard/check.mjs --patterns scripts/guard/patterns.txt.
  • No new network call, telemetry, analytics, ads or crash reporting. (A new request in an app adapter is explained below, with its host, skill and risk.)
  • No new dependency, or the reason for each one is below.
  • Every UI string is in packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes.
  • Tests, fixtures and screenshots use made-up data only.

Model path

  • This doesn't touch the model path: packages/model, agent, skills or eval, the prompt, the router, tool descriptions, normalizers, examples or the model file.
  • It does. The eval numbers from before and after are below, run as docs/evals.md says. No held-out case was tuned on.

Screenshots

  • No UI change.
  • UI change. Each changed screen is below, in both themes and both languages, with made-up data. Taken with the preview harness (pnpm build && pnpm shoot about), where the stub's version is 0.1.0-preview.1.
Light Deep sea
es-419
en
about-dark-en about-light-es-419

Agent

Claude Code (Claude Opus 5.5) helped: it wrote the failing test, the copy keys, the screen line, the stub and the shot change, and ran the gates and the preview shots. I read and ran every line.

@jlaran
jlaran marked this pull request as ready for review November 27, 2026 04:41

@dbejarano820 dbejarano820 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for picking this up, and for keeping it so tight. It's exactly what #31 asked for: the version comes through src/adapters, the screen never imports expo-constants, the preview stub has appVersion, and the About shot now runs in both languages.

I checked out the branch and ran every gate locally (privacy, typecheck, lint, the full test suite and the PR guard), and they all pass. CI is green too. I also put the old about.tsx back, and the new test fails on the missing appVersion import. With only selectable removed it fails again, so the test really holds both parts of the issue. Nice work.

One thing before we merge

  1. Two of the four screenshots are missing. The issue's "Done when" (and AGENTS.md, for any UI change) asks for About in light and Deep sea, in es-419 and en. The PR has Deep sea in en and light in es-419, but not light in en or Deep sea in es-419. Now that the About shot uses core(...) (apps/mobile/preview/shots.mjs:121), pnpm build && pnpm shoot about should make all four. Please attach the other two and put all four in the Screenshots table, which is empty right now.

Optional, not blocking

  • Please sign off the commit (git commit -s --amend, then force-push). CONTRIBUTING.md recommends it.

Thanks again. Once the screenshots are in, this is ready to go.

jlaran and others added 10 commits November 27, 2026 12:30
Unit tests for base64ToBytes, utf8Decode and decodeBase64Text,
decodeEntities, htmlToText, plainText, clip and splitAddresses, with
made-up people and example.com addresses. oneLine() stays out (its own
issue) and text.ts is unchanged.

Closes DojoCodingLabs#37
utf8Decode() decoded overlong sequences (C0 80 to U+0000) and encoded
surrogates (ED A0 80 to a lone U+D800). Only the shortest form is UTF-8
and it never encodes U+D800 to U+DFFF (RFC 3629), so each byte of such a
sequence now becomes U+FFFD, as a standard decoder answers. The vault's
decoder in packages/core already refuses both.

Closes DojoCodingLabs#142
A small voseo matcher with its own tests, and a test that no value in
es-419.json matches. Only forms that can't be read another way are
listed. Word edges are (?<!\p{L}) and (?!\p{L}) with the u and i flags,
since \b doesn't count accented letters as letters. No locale changes.

Closes DojoCodingLabs#38
The site's Spanish now calls the lab "Laboratorio del teléfono" and its
report an "informe", as the app does. The lab's kicker is tested against
the app's HM-SET-10.title in both languages. common.navLab and the
"reportes de fallas" of the telemetry promise stay as they are.

Closes DojoCodingLabs#36
…table.mjs

Both scripts now parse their command line with node:util parseArgs in
strict mode. --help and -h print the usage from each file's header and
exit 0. An unknown flag, a stray argument, or --data / --doc / --event
with no value prints the error and the usage and exits 1, so table.mjs no
longer rewrites docs/devices.md on a typo and validate.mjs no longer tries
to open a file named --help. The workflow's --event, --github-output and
--comment call works as before.

Closes DojoCodingLabs#35

Signed-off-by: RibeiroMD <174728106+Ribeiro-MD@users.noreply.github.com>
Updated role validation to trim whitespace and count code points correctly.
Updated bot name handling to use capBotName function and removed MAX_BOT_NAME_CHARS constant.
About shows HM-SET-08.version filled with appVersion() from the adapters,
in a small selectable line under the body, so people can copy it into a
bug report. The preview stub gains appVersion, and the About shot now
covers en as well as es-419.

Closes DojoCodingLabs#31
@juancguerrerodev
juancguerrerodev merged commit 03b5650 into DojoCodingLabs:main Nov 27, 2026
4 checks passed
@juancguerrerodev

Copy link
Copy Markdown
Contributor

¡Gracias, Juan Carlos! Entraron los cinco: #138, #139, #141, #143 y #144, y #148 entra en cuanto pase CI. Un favor para los próximos: marca la casilla "I read and ran everything in this pull request, and I can explain it" en la plantilla. 🦀

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.

Show the app version on the About screen

5 participants