Change URL links in components to use $ref: ui-patterns://url for better admin UI/UX and extra validation

Created on 21 May 2025, about 1 month ago

Problem/Motivation

Limited linking in the default Drupal SDC method

Steps to reproduce

When editing a view mode, or field formatter using the UI Patterns under Manage display
Then a limited string type has no validation for URL or a local path

Proposed resolution

UI Patterns ~2.0 provides number of refs
Use $ref: "ui-patterns://url" in all link props
like

    url:
      type: string
      title: URL Link
      description: Simple URL link for heading.
      $ref: "ui-patterns://url"

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
  • ➖ UX/UI designer responsibilities
  • ➖ 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 update type

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

User interface changes

After the change

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
📌 Task
Status

Active

Version

3.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