Show the app version on the About screen
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 88/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- react-native, typescript
- Lĩnh vực
- mobile
Hướng nghiên cứu
Bắt đầu với apps/mobile/src/app/about.tsx, adapter appVersion() trong apps/mobile/src/adapters/device-lab.ts và mẫu test tương ứng trong apps/mobile/src/one-turn.test.ts. Thêm khóa nội dung phiên bản vào cả hai tệp locale và một preview stub trong apps/mobile/preview/src/stubs/adapters.ts; cập nhật cấu hình ảnh chụp màn hình About trong apps/mobile/preview/shots.mjs. Chạy các bài test mobile và copy được liệt kê cùng với typecheck; hoàn tất khi About hiển thị phiên bản đã bản địa hóa có thể chọn và các ảnh chụp màn hình Light và Deep sea được yêu cầu có trong cả hai locale.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 11
- Fork
- 0
- Merge trung bình
- 10 phút
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DojoCodingLabs/hermit
-
docs good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
DojoCodingLabs/hermit#73 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
device-lab
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
DojoCodingLabs/hermit#45 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
device-lab
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
DojoCodingLabs/hermit#44 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
device-lab
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DojoCodingLabs/hermit#43 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-friendly docs good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
DojoCodingLabs/hermit#39 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của DojoCodingLabs/hermit
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
superlinked/sie#1033 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
remix-run/react-router#15838 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/ci bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
melgarafael/DeskcommCRM#5290 ·
Maintainer thường phản hồi trong vòng 1 ngày