Problem/Motivation

#3574244: Add SDC Components Views Format style plugin to Varbase Components
Views-based components (Grid, List, Summary, Table, Unformatted) are implemented as SDC components but are not consistently exposed in the Views UI component selector.

Without an explicit indicator, these components may not appear in the list of available components when configuring a View display. This limits their usability and creates confusion when integrating component-driven rendering with Views.

Additionally, some of the rows slots were loosely defined and did not follow a structured schema, which may impact consistency with component metadata validation.

Proposed resolution

  • Introduce a use_in_views: true flag in the following Views components:
    • views-view-grid
    • views-view-list
    • views-view-summary
    • views-view-table
    • views-view-unformatted
  • Ensure these components are properly detected and listed in the Views component selection UI.
  • Normalize the rows slot definition to:
    • Explicitly declare it as type: array
    • Define items as type: object
    • Provide consistent title and description values

This ensures:

  • Views components are properly exposed in the UI.
  • Metadata follows structured schema standards.
  • Component-driven Views integration works cleanly with Drupal Canvas and Varbase Component architecture.

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
  • ❌ Release

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

  • N/A

Comments

rajab natshah created an issue. See original summary.

rajab natshah’s picture

  • rajab natshah committed e1e88b4d on 5.0.x
    feat: #3574294 Add use_in_views flag for Views view components to expose...

  • rajab natshah committed 48b84480 on 5.0.x
    feat: #3574294 fix(views-view-unformatted): handle SDC slot render...
rajab natshah’s picture

Assigned: rajab natshah » Unassigned
Status: Active » 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.