New Edit Content: the Preview action on a History version does nothing

Đang mở
#38,653 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
56/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start with core-web/libs/edit-content/src/lib/store/features/history/history.feature.ts at the PREVIEW case, then compare how the legacy editor previews a version and review the design decision in #38033. Trace which content types have a preview target and where the History action is rendered; add coverage for dispatch and hiding the action. Done means preview opens the selected version as agreed and types without a target no longer show Preview.

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

Mô tả

dotCMS: New Edit Contentlet Team : Scout Type : Defect
Problem Statement

Each version in the History timeline offers a Preview action. Clicking it has no effect: the store handles the action with an empty case marked as a TODO. Authors expect it to open the version's rendered page, as the legacy editor does from its version list.

Steps to Reproduce
  1. Open a contentlet with several versions in the new editor; open the History tab.
  2. Open the actions menu of any version and click Preview.

Expected: the version is previewed (the rendered page for page or URL-mapped content, or the detail view for other content). Actual: nothing happens, no error.

Acceptance Criteria
  • Preview opens the selected version in the same way the legacy editor previews a version, in a new tab or panel as agreed with design in #38033.
  • Content types with no preview target hide the action instead of showing a dead one.
  • Spec covers the dispatch and the hidden case.
dotCMS Version

main (2026-11-18)

Severity

Minor

Links
  • #38634 pillar; #38033 redesign
  • Code: core-web/libs/edit-content/src/lib/store/features/history/history.feature.ts:693 (PREVIEW case, TODO)
Ngôn ngữ chính
Java
Star
972
Fork
493
Merge trung bình
2 ngày 12 giờ
Pull request đã merge (30 ngày)
228

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.