Problem/Motivation

When using UI patterns in a view and adding view fields to the slots of a pattern. If you want to remove a row you can't

Steps to reproduce

Create a view using UI Patterns
Add an option to one of the slots (view field for example)
Save everything
Edit the view and try and remove that option

Proposed resolution

Be able to remove options from the slots

Remaining tasks

User interface changes

API changes

Data model changes

Comments

smustgrave created an issue. See original summary.

smovs’s picture

Assigned: Unassigned » smovs
haritha c’s picture

I tested this issue using Drupal 10.4 with UI Patterns 2.0 installed via:

composer require 'drupal/ui_patterns:^2.0'

Steps I followed:

Installed UI Patterns and enabled necessary submodules.
Created a View and added UI Patterns as a row format.
Successfully added and removed fields from the View.
Checked Layout Builder integration, and I was able to add and remove fields from UI Patterns slots.
Cleared cache using drush cache:rebuild, and everything worked fine.
Conclusion:
I couldn't reproduce the issue. UI Patterns fields are appearing correctly in Views and Layout Builder.

Can you check if you're using the latest version and clear caches (drush cr) to see if the issue persists?

smovs’s picture

Assigned: smovs » Unassigned
Status: Active » Postponed (maintainer needs more info)

Hi @smustgrave

I couldn't reproduce this issue in my local environment (PHP 8.3, Drupal Core 11.1.5, UI Patterns 2.0.3)

My steps to reproduce:
- created a view;
- added a field, and configured it as a Component per Item;
- saved the view and checked that changes had been applied (everything was ok).
- removed the field in the view edit form without any issues.

Can you please double-check this issue on your side? If it happens again please let us know with more details. Thank you

smovs’s picture

I double-checked with Drupal 11.3.7, PHP 8.3, and the current UI Patterns 2.0.x branch. I didn't reproduce this issue. I assume it was fixed during the module development process.

smovs’s picture

Status: Postponed (maintainer needs more info) » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.