Closed (fixed)
Project:
Drupal Canvas
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Aug 2025 at 12:56 UTC
Updated:
16 Feb 2026 at 12:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
balintbrewsComment #3
wim leersComment #4
wim leers#3539729: Implement Folder config entity is in!
Comment #5
wim leersComment #6
wim leersRe-scoping per #5.
Comment #7
wim leersComment #8
wim leersComment #9
wim leersPaving the path for #3543533: [PP-1] Display both internal and exposed code components in "Manage library" led me to install the test-only module that provides
status: truecode components. Which in turn surfaced a bug more related to this issue than #3543533: [PP-1] Display both internal and exposed code components in "Manage library".Doing that surfaced an interesting consequence of a loose end from back in January:
JsComponent::createConfigEntity()always setscategory: @todo, which now results in a "@todo"Foldergetting created forComponents, whenever a code component changes fromstatus: falsetostatus: true. Updated test expectations: https://git.drupalcode.org/project/experience_builder/-/merge_requests/1...Comment #11
wim leersPoint 2 in the issue summary has already been implemented in #3545716: Disable Components by default sourced from some of the block plugins provided by core in the Standard profile, and stop using `@todo` as the category/Folder for code components, at the request of @balintbrews at #3545716-8: Disable Components by default sourced from some of the block plugins provided by core in the Standard profile, and stop using `@todo` as the category/Folder for code components.
What's not yet clear to me is how code components can ever have a pre-defined category, which then would determine their
Folder. Would that be a separate piece of metadata in the code component editor UI that is currently missing? Or … is the intent to not have that at all anymore, since why even ask that if the code component can be published and then assigned to whicheverFolder?Tangentially related: #3549726: Remove `category` from `Component` config entities, add `ComponentSourceInterface::determineDefaultFolder()` instead.
Comment #12
wim leersPer #3549726-18: Remove `category` from `Component` config entities, add `ComponentSourceInterface::determineDefaultFolder()` instead, that issue will have implemented #11!
That makes the remaining scope here smaller still.
Comment #13
wim leersComment #14
vipin.mittal18The requirement has changed to simply delete the folder, with no activity for disable. Hence added Acceptance Criteria
Comment #17
lauriiiComment #18
utkarsh_33 commentedOverall changes looks good to me just a small suggestion of adding a toggle tip on the disabled button would be a better UX. Marking it NW for some small changes.
Comment #19
utkarsh_33 commentedAdded the toggle tip. Marking it NR again.
Comment #20
utkarsh_33 commentedI think this is missing tests. Moving it back to NW.
Comment #21
utkarsh_33 commentedI have added test coverage as well. This is ready for review again.
Comment #22
vipin.mittal18Comment #23
vipin.mittal18Comment #24
utkarsh_33 commentedComment #25
kunal.sachdev commentedI was testing this for the case "When the Delete Folder option is disabled, display a tooltip on hover to inform the user that folders with components cannot be deleted." and I noticed a slight delay before the tooltip appears; I believe it should appear instantly on hover for a snappier user experience. Can we fix this?
Comment #26
utkarsh_33 commentedRe #25.
We can use
<Tooltip>component instead of native HTML title attribute but that would require some additional css for it's styling. So we need to decide if that's really important.What currently happens is the title attribute on the UnifiedMenu.Item component is using the native HTML title attribute, which has a built-in delay before the tooltip appears.
Comment #27
vipin.mittal18Re #25.
Yes, this is acceptable. The delay is normal for native HTML tooltips as per browser behaviour, and no changes are required unless a custom tooltip experience is desired.
Comment #28
kunal.sachdev commentedThat makes sense. If using the
<Tooltip>component introduces significant CSS overhead just for this one instance, I understand sticking with the native attribute for now. Since the functionality itself works as intended, I'm moving this to RTBC!!Comment #30
narendrar