Skip to content

Conversation

@oidacra
Copy link
Member

@oidacra oidacra commented Feb 2, 2026

Summary

Add search/filter capability to the roles dropdown in the comment and assign form, improving usability when working with workflows that have many assignable roles.

CleanShot 2026-02-02 at 12 06 52@2x

Changes Made

Frontend

  • Enhanced roles dropdown in dot-comment-and-assign-form.component.html with PrimeNG filter functionality
  • Added filter, filterBy, and filterPlaceholder properties to enable searchable dropdown
  • Filter searches by role label with internationalized "search" placeholder text

Technical Details

This is a UX improvement that leverages PrimeNG's built-in dropdown filtering capabilities. The change adds three properties to the existing p-dropdown component:

  1. [filter]="true" - Enables the filter input box
  2. filterBy="label" - Configures filtering to match against the role's label property
  3. [filterPlaceholder]="'search' | dm" - Displays localized "search" placeholder text using dotCMS's dm pipe

The dropdown already uses appendTo="body" to prevent z-index issues, which ensures the filter input will render correctly in modal contexts.

Breaking Changes

None

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed
  • E2E tests added/updated (if applicable)

Related Issues

Closes #33061

Additional Notes

This is a minimal, focused change that improves the user experience without modifying any business logic or data structures. The PrimeNG dropdown component handles all filter functionality internally, making
this a low-risk enhancement.

…form

- Add filter functionality to role dropdown in DotCommentAndAssignFormComponent
- Enable filtering by role label with [filter]=true and filterBy=label
- Add translated filter placeholder using 'search' | dm pipe
- Improves UX when dealing with large lists of roles
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds PrimeNG dropdown filtering to the “Assign to role” selector in the comment/assign wizard step so users can quickly search roles in workflows with many assignable roles.

Changes:

  • Enabled p-dropdown filtering (filter, filterBy="label", filterPlaceholder) on the roles dropdown in the comment/assign form.
  • Added a unit test asserting the dropdown’s filter-related inputs are enabled when the form is assignable.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
core-web/apps/dotcms-ui/src/app/view/components/_common/forms/dot-comment-and-assign-form/dot-comment-and-assign-form.component.html Enables PrimeNG dropdown filtering and sets a localized filter placeholder for role search.
core-web/apps/dotcms-ui/src/app/view/components/_common/forms/dot-comment-and-assign-form/dot-comment-and-assign-form.component.spec.ts Adds coverage ensuring the role dropdown filtering inputs are configured when assignable is true.

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Filtering based on KeyPress not working when assigning user in WorkFlow assign actions

5 participants