Replacement badge visually distinguishes between less/more opinioated recommendations
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ó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 58/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- nuxt, typescript
Hướng nghiên cứu
Bắt đầu trong repo npmx.dev bằng cách grep 'replacement' hoặc 'badge' trong các component để tìm nơi badge module-replacements được render và cách dữ liệu replacement được lấy từ gói module-replacements. Đọc các manifest được export của gói (dist/main.d.ts liệt kê các danh mục native/micro-utility/preferred) để xem mỗi replacement thuộc danh mục nào, rồi ánh xạ danh mục 'preferred' sang biến thể badge màu xanh thông tin trong khi giữ màu hổ phách cho native và micro-utility. Hoàn thành nghĩa là trang của gói hiển thị màu xanh cho các replacement ưu tiên, màu hổ phách trong các trường hợp còn lại, được xác minh bằng một build cục bộ hoặc bộ test hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the feature
The module replacements package has three different categorizations for replacements, ranking from less to more opinionated: native, micro utility and preferred. Currently npmx exclusively uses the yellow/amber variant for the badge. From my perspective we could improve the semantics here, and make them map more closely to the semantics of module replacements, by using an informational (blue) variant of the badge for the preferred replacements.
That makes the semantics nicer imo:
amber: “You should really do something different here”
And blue: “Fyi you could also go with something else here”
And it would look something like this (in this particular example there's an added benefit that you can more easily distinguish between a vulnerability warning and a replacement suggestion):
The manifests are exposed from the module replacements package https://npmx.dev/package-code/module-replacements/v/3.0.0/dist%2Fmain.d.ts#L7 so it’s possible to get the data. Maybe it could also be contributed upstream to module-replacements (although there’s the other distinction at play around how involved the replacement is too, but worth exploring).
Additional information
- Would you be willing to help implement this feature?
Final checks
- Read the contribution guide.
- Check existing issues.
- Ngôn ngữ chính
- TypeScript
- Star
- 3.6k
- Fork
- 533
- Merge trung bình
- 4 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 37
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 npmx-dev/npmx.dev
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
a11y front
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
npmx-dev/npmx.dev#2914 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
front i18n
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
npmx-dev/npmx.dev#2831 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
back stale stale-to-close
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
npmx-dev/npmx.dev#2511 · 4 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
front needs discussion ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
npmx-dev/npmx.dev#2275 · 5 bình luận · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của npmx-dev/npmx.dev
Issue tương tự
-
[Feature]: 建议导入源后,自动切换到新导入的源Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
lyswhut/lx-music-desktop#3026 ·
-
area: ci type: test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
schlessera/brain-kit#2769 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Read a vector index's quantization back on Neo4j 2026.10, which reports vector.quantization.typeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
liberation-data/drivine#231 ·
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
alveusgg/alveusgg#2502 · 3 bình luận ·
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 78/100
Maintainer thường phản hồi trong vòng 1 ngày