Switch UI Patterns from 2.0.x-dev to ~1.0 version and add the UI Patterns Field Formatters module

Created on 23 September 2023, about 1 year ago
Updated 5 October 2023, about 1 year ago

Problem/Motivation

🌱 [2.0.x] Roadmap Active

Rebuild on top of Drupal Core SDC

If Single directory components in core Active lands in Drupal Core and if its architecture is compatible with our goals, we will be able to do a loose integration in the 1.x branch, adding SDC as a discovery, so becoming a SDC consumer.

However, the 2.x branch brings us the opportunity to rebuild UI Patterns on top of SDC in order to:

  • become a SDC provider, so other modules can use components provided by UI Patterns (with a raw API unfortunately)
  • make the ui patterns codebase lighter, focusing on the extra layer (variant,library, previews...) and the exposition to Drupa lAPI (render arrays, twig function, configurable plugins...)

It will also be the opportunity of renaming:

  • "fields" to "slots"
  • "settings" to "props"

In order to adopt terms more commonly used in the industry:

Integrate a subset of ui_patterns_settings

UI Patterns Settings is great and is becoming a central part of the ecosystem. It would be nice to implement a subset of this module directly in UI Patterns 2.x in order to extends the API around props and build forms for them.

Proposed resolution

  • Change drupal/ui_patterns to ~1.0 in the composer.json file
  • Add the UI Patterns Field Formatters ~2.0.0 module and enable it by default
  • Enable the UI Patterns Display Suite module
  • Enable the UI Patterns Field Group module
  • Disable the SDC Display module by default, but keep it as an experimental module
  • Disable the No Markup module by default, but keep it as an experimental module

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ✅ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release varbase-10.0.0-beta2 , varbase_components-2.0.0-alpha25

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Issue #3389272 : Switched UI Patterns from 2.0.x-dev to ~1.0 version and added the UI Patterns Field Formatters module
📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇯🇴Jordan Rajab Natshah Jordan

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

Comments & Activities

Production build 0.71.5 2024