Check the everyday screens at 200% text

Aberta
#22 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
72/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
react-native, typescript

Direção de pesquisa

Start in apps/mobile/preview/shots.mjs and read the existing fontScale: 2 entries; first get the preview harness running as described there. Add shots for the eight listed routes, run pnpm build and pnpm shoot x2, then inspect each image and its audit output. Done when all eight shots pass and any layout fixes have light and Deep sea screenshots at 100% and 200% in both locales.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

help wanted ui

Why

The app tells people "Hermit's screens are built for up to 200%" (HM-SET-07.textSizeOver), but the preview harness checks only some screens at that size. ROADMAP.md, Now: the everyday loop, with fewer rough edges.

What to do

Today the fontScale: 2 list in apps/mobile/preview/shots.mjs covers the chat, two approval sheets, the wallet, Welcome, Activity, Settings and empty Memories. It misses Reminders, the calendar choice, Messages, Email accounts, the vault, Memories with items, the night shift and the morning briefing.

  1. Get the preview harness running in apps/mobile/preview. Today it finds a browser only on an Apple silicon Mac; the help wanted issue "Let the preview harness run on Linux and Windows" fixes that.
  2. Add one entry per missing screen to the fontScale: 2 list, written like the existing ones, with the routes reminders, calendar, messages, mail, vault, memories, night and briefing, and file names ending in -x2.
  3. Run pnpm build and pnpm shoot x2. Look at every picture, and read the line shoot.mjs prints for it: contrast, icons, touch targets and slips.
  4. Where text is cut off, overlaps, or pushes a control out of reach, fix the layout in the screen (apps/mobile/src/app/<route>.tsx) or, when the problem is shared, in apps/mobile/src/components/kit.tsx. Keep each fix as small as it can be.

Done when

  • Each of the eight screens has a 200% shot in shots.mjs.
  • pnpm shoot x2 prints no errors and no audit problems for them.
  • Every screen you changed has screenshots in the pull request at 100% and 200%, in light and Deep sea, es-419 and en.
  • The pull request lists the screens that needed no fix.

How to check

cd apps/mobile/preview
pnpm build
pnpm shoot x2

Then, from the repository root, pnpm --filter @hermit/mobile test (it runs the accessibility scan in src/a11y-scan.test.ts) and the gates.

Keep in mind

  • Fix layout, not words. If a string must change, change it in both packages/copy/locales/en.json and es-419.json, with no em or en dashes.
  • Keep touch targets at 48 dp or more, as the kit does, and keep every control's role and label.
  • A change in kit.tsx moves many screens: shoot the whole set (pnpm shoot) and check nothing else moved.
  • Made-up data only: the shots use apps/mobile/preview/src/fake.
Linguagem predominante
TypeScript
Estrelas
11
Forks
0
Merge médio
10min
PRs com merge (30d)
6

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de DojoCodingLabs/hermit

Todas as issues de DojoCodingLabs/hermit

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.