List page delete-failure markup is duplicated between own and earlier failure blocks
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ó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 67/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- angular, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Đọc các template ResourceListPage trong apps/demo-material và apps/demo-tailwind, sau đó so sánh chúng với tệp được tạo src/app/pages/resource-list-page.ts. Tìm phần markup báo lỗi theo từng danh mục bị lặp trong các khối deleteFailure() và earlierDelete.failure(). Tách phần đó thành một ng-template dùng chung và render từ cả hai khối; hoàn tất khi các thông báo giống nhau vẫn xuất hiện trong từng trường hợp lỗi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Noticed in review of #93.
ResourceListPage's template (both apps/demo-material and apps/demo-tailwind, plus the generated src/app/pages/resource-list-page.ts) now has two separate blocks that render the same unauthenticated/forbidden explanation: one for deleteFailure() (the page's own failed delete) and one for earlierDelete.failure() (an earlier delete that settled after a round trip). The category-specific markup (sign-in link or "not allowed" text) is copied verbatim between the two.
The own-failure block already had this shape before #93; #93 just adds a second copy for the earlier-failure case.
Suggestion: factor the category message into a shared <ng-template #failureDetail let-failure> and render it via ngTemplateOutlet from both blocks, so a wording change only needs to happen once. Same shape would apply to create/edit's own SaveFailure rendering if the two end up converging later.
Not urgent, purely a maintainability nit - no behavior is affected.
- Ngôn ngữ chính
- TypeScript
- Star
- 2
- Fork
- 2
- Merge trung bình
- 9 giờ 17 phút
- Pull request đã merge (30 ngày)
- 48
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 pidrang/pidrang
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue layer: library pkg: cli
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 92/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue layer: demo
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue layer: demo
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue layer: demo
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pidrang/pidrang
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vercel-labs/ui#540 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accepted ai-dev ai-implementing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
livesport/homer#218 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
normalizePropName strips `#` characters from Figma property names instead of only the `#id` suffixĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
figma/code-connect#419 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Negative values skip k/M abbreviation and medium decimal format on line, stacked-area, and tooltipĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
britecharts/britecharts#1255 ·
Maintainer thường phản hồi trong vòng 1 ngày