Show the app version on the About screen
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 88/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- react-native, typescript
- Bereich
- mobile
Rechercherichtung
Beginne mit apps/mobile/src/app/about.tsx, dem appVersion()-Adapter in apps/mobile/src/adapters/device-lab.ts und dem passenden Testmuster in apps/mobile/src/one-turn.test.ts. Füge den Versions-Textschlüssel zu beiden Locale-Dateien und einen Preview-Stub in apps/mobile/preview/src/stubs/adapters.ts hinzu; aktualisiere die About-Screenshot-Konfiguration in apps/mobile/preview/shots.mjs. Führe die aufgeführten Mobile- und Copy-Tests sowie den Typecheck aus; fertig ist die Aufgabe, wenn About eine auswählbare lokalisierte Version anzeigt und die angeforderten Screenshots in den Varianten Light und Deep sea in beiden Locales vorhanden sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Why
The bug form asks for "the version on the About screen", but About doesn't show one. Now that preview APKs are on GitHub Releases, people need it to say which build they run (ROADMAP.md, Now: preview APKs).
What to do
Today About is apps/mobile/src/app/about.tsx (copy keys HM-SET-08.*). The app's version is already read for the Device lab report by appVersion() in apps/mobile/src/adapters/device-lab.ts, from Constants.expoConfig?.version.
- Test first: add
apps/mobile/src/about-version.test.ts(node:test). It readssrc/app/about.tsxand checks that the screen shows the copy keyHM-SET-08.versionfilled withappVersion().apps/mobile/src/one-turn.test.tsreads a screen's source the same way. Watch it fail. - Add
HM-SET-08.versiontopackages/copy/locales/en.json("Version {version}") andpackages/copy/locales/es-419.json("Versión {version}"). - In
about.tsx, show it under the body text as a small, soft line, and make it selectable so people can copy it into a bug report. - The preview harness replaces everything in
src/adapterswithapps/mobile/preview/src/stubs/adapters.ts. AddappVersionthere, returning a version like "0.1.0-preview.1", so the preview still builds. - Take the screenshots. The About shot in
apps/mobile/preview/shots.mjsusesother(...), which shoots es-419 only; switch it tocore(...)for English too, or take them on a phone.
Done when
- About shows the app's version: on a dev build, the one in
apps/mobile/app.json; on a preview APK, the tag's version, which the release workflow writes intoapp.jsonbefore it builds. - The line is selectable.
- The pull request has screenshots of About in light and Deep sea, es-419 and en.
How to check
pnpm --filter @hermit/mobile test
pnpm --filter @hermit/copy test
pnpm --filter @hermit/mobile typecheck
With the preview harness (Apple silicon Mac today): cd apps/mobile/preview && pnpm build && pnpm shoot about.
Keep in mind
- The string lives in
packages/copy, in both locales, with the same{version}placeholder and no em or en dashes. - Don't import
expo-constantsin the screen. Screens get phone facts throughsrc/adapters, which the preview replaces. - The tagline, the signature and the disclaimer on About are brand lines kept as they are on purpose (see the comment at the top of
about.tsx). Leave them alone.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 11
- Forks
- 0
- Ø Merge
- 10 Min.
- Gemergte PRs (30 T.)
- 6
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus DojoCodingLabs/hermit
-
docs good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 87/100
DojoCodingLabs/hermit#73 ·
Maintainer antworten meist innerhalb von 1 Tag
-
device-lab
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
DojoCodingLabs/hermit#45 ·
Maintainer antworten meist innerhalb von 1 Tag
-
device-lab
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
DojoCodingLabs/hermit#44 ·
Maintainer antworten meist innerhalb von 1 Tag
-
device-lab
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
DojoCodingLabs/hermit#43 ·
Maintainer antworten meist innerhalb von 1 Tag
-
agent-friendly docs good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
DojoCodingLabs/hermit#39 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in DojoCodingLabs/hermit
Ähnliche Issues
-
bug zoo
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
software-mansion/runntime#151 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 86/100
sidebandstudio/clawtrate#728 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement github_actions help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
tranquilo-art/tranquilo-app#254 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Tfoucher5/fuzzy-toolkit#44 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug tooling
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
endora-commerce/endora-commerce#1978 ·
Maintainer antworten meist innerhalb von 1 Tag