Compatibility with the newly stable paragraphs widget

Created on 28 May 2022, about 2 years ago
Updated 21 February 2023, over 1 year ago

Problem/Motivation

Right now Bricks can't be used with the "Paragraphs (stable)" widget (machine name paragraphs). There is code meant to make it compatible, but if you try using it you get a WSOD. The widget is newly stable, it's quite lovely, and it's required for features like Paragraphs Library, so Bricks should support it.

Steps to reproduce

- Edit the form display options of a node type with a bricks_revisioned field (probably happens with bricks too) and choose the "Paragraphs (stable)" widget.
- Go to the /node/add form for that node type.
- Find the paragraphs widget for your bricks field and try to add a paragraph of any type.
- Watch nothing happen on screen, and observe the ajax error in the network tab: 'Error: Class "Paragraph" not found in bricks_field_widget_paragraphs_form_alter() (line 284 of /app/docroot/modules/contrib/bricks/bricks.module).'

Proposed resolution

Either fix the integration with the paragraphs widget, or offer a bricks_tree_paragraph widget that wraps the paragraphs widget.

Remaining tasks

Decide whether to fix the integration or remove it and add a new widget.

User interface changes

Working UI instead of AJAX WSOD.

API changes

I don't think anyone can be using the paragraphs widget now, so I don't think it's a problem to remove support for the widget, if that's the route that's decided on. Otherwise there would be no changes.

Data model changes

None.

๐Ÿ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States ksenzee Seattle area

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024