Repository navigation
feat(mobile): show the app version on About - #138
Conversation
dbejarano820
left a comment
There was a problem hiding this comment.
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
- 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 aboutshould 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.
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
bf79f1c to
03b5650
Compare
What and why
Closes #31
About now shows the app's version (
HM-SET-08.version, filled withappVersion()fromsrc/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 importexpo-constants; the preview stub gainsappVersionso 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
Checklist
acceptedproposal.apps/mobile/src/about-version.test.tsfailed on the missingappVersionimport before the change.)pnpm check:privacy,pnpm typecheck,pnpm lint,pnpm testandnode scripts/guard/check.mjs --patterns scripts/guard/patterns.txt.packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes.Model path
packages/model,agent,skillsoreval, the prompt, the router, tool descriptions, normalizers, examples or the model file.Screenshots
pnpm build && pnpm shoot about), where the stub's version is0.1.0-preview.1.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.