core icon indicating copy to clipboard operation
core copied to clipboard

[TASK] Content Palette: Disable Non-Allowed Favorite Content Types

Open rjvelazco opened this issue 10 months ago • 2 comments

Description

Currently, all user-favorited content types are displayed as active, regardless of whether they are permitted by the current page's constraints.

To improve the user experience and prevent "illegal" content placement attempts, we need to implement a conditional state for these items. Favorites that are not allowed on the specific page being edited should remain visible (to maintain the user's curated list) but should be visually and functionally disabled.

Acceptance Criteria

  • [ ] Validation Logic: Implement a check for each favorite item against the "Allowed Content Types" of the active page/container.
  • [ ] Visual State: Apply a "disabled" UI state (e.g., reduced opacity, grayscale icon, and pointer-events: none) to favorites that are not permitted on the page.
  • [ ] Sorting Implementation: Refactor the list rendering to follow a dual-tier alphabetical sort:
  • Tier 1: Permitted favorites, sorted alphabetically (A-Z).
  • Tier 2: Prohibited favorites, sorted alphabetically (A-Z).
  • [ ] Interaction: Ensure disabled favorites cannot be dragged into the UVE workspace.

Priority

Medium

Additional Context

This task follows the product decision to keep favorites visible at all times (rather than hiding them) to ensure the UI remains consistent for the user across different pages, while still providing clear feedback on what can be used in the current context.

rjvelazco avatar Jan 07 '26 15:01 rjvelazco

Passed QA

  • dotCMS docker image: [dotcms/dotcms:trunk]

Video

https://github.com/user-attachments/assets/c76916fc-44b7-4e2d-b17c-9f7d330cecbd

ihoffmann-dot avatar Jan 14 '26 15:01 ihoffmann-dot