[Needs design] Library confusingly lists SDC-sourced and Block-sourced Components together

Created on 9 January 2025, 11 days ago

Overview

Quoting @effulgentsia:

XB's current UI of SDCs and Blocks appearing in the same list in the Library panel is confusing. We'll be implementing an improvement to this that separates them into different lists. However, until then, we'd like to limit demo_mode to only SDCs.

📌 When demo_mode, limit component list to only SDCs, not blocks Active

This issue aims to solve that, to lift the restriction that that issue added.

Proposed resolution

TBD — perhaps designs exist already? If so: please update the title + remove the tag and link to it 🙏

User interface changes

TBD

📌 Task
Status

Active

Version

0.0

Component

Page builder

Created by

🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Needs screenshots

    The change alters the user interface, so before and after screenshots should be added to document the UI change. Make sure to capture the relevant region only. Use a tool such as Aviary on Windows or Skitch on Mac OS X.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @wim leers
  • 🇫🇮Finland lauriii Finland
  • 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

    See, I knew I vaguely recalled seeing that somewhere! 😄 Had no idea how to find it. Thanks, @lauriii! 🙏

  • 🇬🇧United Kingdom longwave UK

    Ah that makes sense but I also think that all these component listings/groupings should be 100% controllable from the server side, we shouldn't have any hardcoded restrictions - we should be flexible in allowing developers to customise the XB UI from PHP wherever possible. This means that even if the library and top bar have groupings (like the Sections/Components split we have at the moment), the number/names of those groups should be sent from the server.

  • 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

    This means that even if the library and top bar have groupings (like the Sections/Components split we have at the moment), the number/names of those groups should be sent from the server.

    Agree 💯, this is the same sort of thing I was trying to say in 📌 Implement saving block settings forms Active but I think you've said it better with

    we should be flexible in allowing developers to customise the XB UI from PHP wherever possible

    - 🙌

  • 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

    @effulgentsia asked me if I have thoughts on how to split up the server-side vs client-side responsibilities here and design the API between them.

    I think this is where having an OpenAPI spec comes in handy. We can use that as the discussion point. I'll open an MR with some changes to demonstrate what @longwave is articulating in #4

  • 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
  • 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10

    Proposed a change to the API spec for the components controller that should power this.

    If we agree with this approach we can move to implementation

  • 🇬🇧United Kingdom longwave UK

    Some nitpicks but the proposal looks good to me in principle.

  • 🇳🇱Netherlands balintbrews Amsterdam, NL

    I took a stab at writing a more descriptive title based on where the conversation went.

    Also, I thought it might be helpful to be aware that the designs for code components ( 🌱 [Meta] Plan for code components Active ) introduce the term, group. See Component groups for code components Postponed . Those are what we previously named category in 📌 Define built-in components and categorization for components Postponed . We may want to resolve that mismatch first before we choose the property name here. I would vote for renaming groups to categories in the code components world.

Production build 0.71.5 2024