Removal proposal: Deprecate `NavMenu` in favour of MUI's `Menu`
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
- 50/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- react, storybook, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
The NavMenu and NavMenuLink component files and their exports are the entry point; the MuiMenu/MuiMenuItem overrides live in DiamondDSTheme. Step 1 is self-contained: add @deprecated JSDoc pointing to Menu with Button and MenuItem, tag the existing stories deprecated with a [DEP] marker in the sidebar, and add a changelog note. Done means the Storybook build passes and the sidebar shows the tag. Steps 2 and 3 depend on a maintainer decision, so confirm before starting them.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
We don't need our own NavMenu, because MUI's Menu can be overridden and extended through the theme.
NavMenu is a Button that opens a Menu, with a chevron, brand-coloured paper and link-styled items. We'll deprecate it first, then move its styling into the theme, then remove it.
Steps
| Step | What | When |
|---|---|---|
| 1. Mark as deprecated | Add @deprecated JSDoc to NavMenu and NavMenuLink, pointing to Menu with a Button and MenuItem. Add a deprecated Storybook tag with a [DEP] marker in the sidebar. Add a changelog note. Behaviour is unchanged. |
Chosen next release |
| 2. Replace with the theme | If kept, move the brand paper and item styling into the MuiMenu and MuiMenuItem overrides in DiamondDSTheme. Replace the NavMenu stories with a Menu example, and add a migration snippet to the docs. |
Together or shortly after step 1 |
| 3. Remove | Remove NavMenu, NavMenuLink and their exports. Add a Breaking changelog entry. Before this, check that known consumers no longer import NavMenu. |
~Three months after step 1 |
- Ngôn ngữ chính
- TypeScript
- Star
- 9
- Fork
- 4
- Merge trung bình
- 4 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 DiamondLightSource/sci-react-ui
-
Proposal: ship guidance as markdown inside the packageCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởaccepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DiamondLightSource/sci-react-ui#325 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DiamondLightSource/sci-react-ui#283 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Change Proposal: Make the border tokens translucent so they keep their contrast on any elevationĐang mởneeds-triage
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 42/100
DiamondLightSource/sci-react-ui#388 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
DiamondLightSource/sci-react-ui#384 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
DiamondLightSource/sci-react-ui#383 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của DiamondLightSource/sci-react-ui
Issue tương tự
-
Amélioration du résumé regĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
MTES-MCT/monitorenv#3257 ·
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
salesforce/sa11y#1022 ·
-
area/web platform/ios type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anomalyco/opencode#67504 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Kartographer map markers lose their geo: link on non-English wikisCó thể đã có người làm @playlikeboy đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
openzim/mwoffliner#3014 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Report: Bloomberg HTĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày