Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Resolve one semantic role vocabulary for snapshot kind

Abierto
#3,531 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
android, ios, typescript

Línea de trabajo

Start with formatRole and attachRefs in packages/kernel/src/snapshot.ts, then inspect presenter and selector consumers and the integration role maps in tester-army/e2e nodes.ts. Read the existing snapshot-lines-kind-conformance.test.ts and role contracts; completion requires a role golden table under contracts/fixtures/, representative iOS and Android live controls, and decisions on vocabulary and kind= selector migration.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement needs-triage

Purpose

Snapshot kind is formatRole(type) (packages/kernel/src/snapshot.ts:771), a lowercase class leaf for unmapped types (:467). It ignores heading/roleDescription, and many common controls fall through:

Raw type kind Expected
SecureTextField securetextfield a text field
android.widget.RadioButton radiobutton radio (web already gives radio)
SwitchCompat switchcompat switch
SeekBar seekbar slider (iOS already gives slider)
ReactEditText, TextInputEditText class leaf a text field
MaterialButton class leaf a button
BottomNavigationItemView, TabLayout$TabView class leaf a tab

Integrations keep their own role maps (tester-army/e2e nodes.ts:45-94,187-228,265-300,418).

Required behavior

  • Node-aware role resolution beside formatRole/attachRefs, using class, state, description, and ancestry. A string map alone cannot identify iOS tab children.
  • Presenter and selector consumers updated together.
  • Android and iOS TextView stay distinct.

Open decisions (needed before implementation)

  • Presenter vocabulary versus browser-style roles.
  • Migration semantics for existing kind= selectors.

Completion

Extend snapshot-lines-kind-conformance.test.ts and add a role golden table under contracts/fixtures/. Live: representative iOS and Android controls.

Lands after #3524 and #3527.

Lenguaje dominante
TypeScript
Estrellas
4.9k
Forks
328
Merge medio
11 h 49 min
PR fusionados (30 d)
585

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de callstack/agent-device

Todos los issues de callstack/agent-device

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.