Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Enable the Add to Bundle action in the Pages portlet row menu (hard-coded disabled since PR 34715)

Đang mở Phù hợp với người mới
#38,249 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 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
77/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
angular, java, typescript
Lĩnh vực
content, frontend

Hướng nghiên cứu

Bắt đầu với dot-page-actions.service.ts và spec dot-page-actions.service.spec.ts của nó; so sánh thao tác trên hàng với thao tác Site Browser đang hoạt động được mô tả trong issue. Kiểm tra thao tác đã được bật và lệnh của nó mở hộp thoại bundle cho mã định danh trang, sau đó chạy spec tập trung và các spec Pages portlet hiện có. Hoàn thành khi thao tác được bật cho người dùng có thể push để xuất bản trang, hộp thoại mở cho trang đó và nhận xét cũ được sửa.

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

Mô tả

dotCMS : Push Publishing OKR : Customer Support Team : Maintenance Type : Defect
Problem Statement

In the Pages portlet (/dotAdmin/#/pages), the Add to Bundle item in each page row's action menu is permanently greyed out. It cannot be clicked by any user, including CMS Administrators, so pages cannot be added to a push-publishing bundle from the Pages listing. The same action still works from the Site Browser context menu, so the gap is specific to the Pages listing.

This is a regression from the Angular 21 / PrimeNG 21 migration (#33882). The menu item is hard-coded disabled: true in dot-page-actions.service.ts even though the action is fully wired: the command opens the bundle dialog through the store (showBundleDialog(item.identifier)), and dot-pages.component.html renders <dot-add-to-bundle> when $showBundleDialog() is set. Nothing is missing except the flag.

How the flag got there (all on the issue-33882-primeng-update branch, squashed into main as #34531 on 2026-02-27):

  1. 2025-12-18 — the Pages portlet migration (#34132) scaffolded the item with disabled: true and a doc comment saying the feature was "not wired up in the Pages listing yet", plus a spec asserting the item is disabled.
  2. 2025-12-22 — commit 95965b60 ("update menu handling and improve bundle dialog integration") finished the wiring: the <dot-add-to-bundle> hook went live, the command was added, and disabled: true was removed. The doc comment and the spec assertion were left as they were.
  3. 2026-02-23 — #34715 ("fix tests", "Fixing broken tests in the migration branch") made the stale spec pass by re-adding disabled: true to the service instead of updating the assertion. No review or PR comment discusses it.

The doc comment above the method still says the UI hook "is currently commented out", which is no longer true.

Browser: any. OS: any.

Steps to Reproduce
  1. Log in to dotAdmin as a CMS Administrator.
  2. Open the Pages portlet.
  3. Open the action menu (⋮) on any page row.
  4. Observe Add to Bundle is greyed out and cannot be clicked.
  5. For comparison: open Site Browser, right-click the same page, choose Add to Bundle. The bundle dialog opens normally.
Acceptance Criteria
  • Add to Bundle in the Pages portlet row menu is enabled for users who can push publish the page, and clicking it opens the Add to Bundle dialog with that page's identifier.
  • The doc comment on #addToBundleAction in dot-page-actions.service.ts no longer claims the hook is commented out.
  • dot-page-actions.service.spec.ts asserts the item is enabled and that its command calls showBundleDialog with the page identifier (replacing expect(bundleAction?.disabled).toBe(true)).
  • Existing Pages portlet specs still pass.
dotCMS Version

26.10.12-01 (also present on main as of 2026-10-26).

Severity

Medium - Some functionality impacted

Links
Ngôn ngữ chính
Java
Star
972
Fork
489
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
199

Chuẩn bị môi trường

Mở trong Codespaces

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.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của dotCMS/core

Tất cả issue của dotCMS/core

Issue tương tự

Thêm issue về Java

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.