a2ui-project / a2ui-project/a2ui

Renderer Guide: Consider using `formatNumber` instead of `formatString` for initial basic catalog support

Đang mở Phù hợp với người mới
#1,656 1 bình luận 0 reaction 1 người được giao Được @josemontespg nhận Xem trên GitHub
component: samples component: specification onboarding P2 type: documentation type: feature/enhancement
Ngôn ngữ chính
TypeScript
Star
16.4k
Fork
1.3k
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
134

Mô tả

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`.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
typescript
Lĩnh vực
documentation
Loại issue
Tài liệu
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
70/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.