a2ui-project / a2ui-project/a2ui
Renderer Guide: Consider using `formatNumber` instead of `formatString` for initial basic catalog support
- Lenguaje dominante
- TypeScript
- Estrellas
- 16.4k
- Forks
- 1.3k
- Merge medio
- 2 d 13 h
- PR fusionados (30 d)
- 134
Descripción
As discussed in PR #1497 (https://github.com/a2ui-project/a2ui/pull/1497#discussion_r3416494545), we should consider using `formatNumber` instead of `formatString` in the initial bootstrap steps of the `renderer_guide.md`.
Currently, the guide suggests implementing `formatString`, which requires relatively complex string expression parsing in the core library (e.g., parsing expressions like `Some string then ${myFunction(someNestedFunction(/someDataModelValue))}`). Using `formatNumber` instead would allow implementing the smallest possible subset of the basic catalog for meaningful end-to-end testing.
This change will also require updating the `00_` scaffolding examples to use `formatNumber` instead of `formatString`.
Guía de contribución
Línea de trabajo
Look at the renderer_guide.md file and the 00_ scaffolding examples. Find where formatString is currently used and replace it with formatNumber. Verify the changes by checking if the basic catalog still works for end-to-end testing.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- typescript
- Área
- documentation
- Tipo de issue
- Documentación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Tranquilo
- Claridad
- Bien especificado
- Aptitud para principiantes
- 70/100