Problem/Motivation
Single directory components (SDC) is a new way to theme Drupal. Instead of scattering related files around your theme, they're contained to one directory. The primary issue for SDC is at #3313520: Single-directory components in core.
As part of SDC's roadmap (see #3345922: Single Directory Components module roadmap: the path to beta and stable), we want to convert an Olivero component to use SDC. For this task I'm choosing the tabs component, which includes markup, CSS, and JS.
This issue is of course blocked on actually getting SDC into core. See #3340712: Add Single Directory Components as a new experimental module.
Testing instructions
- Apply the the code from the #3340712: Add Single Directory Components as a new experimental module issue. Note you can download the plain diff and apply it via
git apply - Apply the code from this MR
- Clear caches
- Test tabs when logged in (View, Edit, etc tabs)
Issue fork drupal-3347235
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3347235-
changes, plain diff MR !4498
- 3347235-create-new-sdc
changes, plain diff MR !3621
Comments
Comment #3
mherchelAdding testing instructions.
Comment #4
mherchelComment #5
smustgrave commentedSeems to have some failures https://dispatcher.drupalci.org/job/drupal_patches/171690/console
Comment #6
mherchelThis can't pass until SDC is committed to core. The failures are because the tabs component is missing (because SDC is currently non-existent in core)
Comment #7
smustgrave commentedSaw that after I placed my comment. So moving to postponed until that gets committed.
Comment #9
e0ipsoSDC is committed to core. Let's put this back in scope.
Comment #10
e0ipsoComment #13
kostyashupenkoPlease correct me if i'm wrong.
I have no permissions to change target branches (because actual target branch should be 11.x). I also have no permissions to close merge requests.
So i created new MR against 11.x and cherry-picked commits of Mike in there. Going to complete this issue soon today
Comment #14
kostyashupenkoActually... how to complete this issue?)))
The main problem here is a dependency to `sdc` core module. But... this module is not required by standard profile installation https://git.drupalcode.org/project/drupal/-/blob/11.x/core/profiles/stan...
which means we can't just.. declare dependency in olivero theme to sdc module, rewrite twig files, remove drupal library from olivero.libraries.yml, etc. Main thing is what if on existing web-sites sdc is disabled? So after migration to the latest drupal they will lose tabs visual coz module sdc is not enabled (and actually not sure, maybe they will get fatal error coz olivero have dependency to the module which is disabled). And not sure if there is plans to have sdc module enabled by default in standard profile installation.
Anyways, any thoughts?
Comment #15
smustgrave commentedYou can add sdc to standard profile for testing. But technically this would be postponed until sdc is marked stable
Comment #16
xmacinfoDeleted comment.
Comment #18
quietone commentedThe Olivero theme was approved for removal in #3590816: [policy, no patch] Deprecate Olivero and move to contrib.
The deprecation work is in #3595082: [meta] Tasks to deprecate the Olivero theme and the removal work in #3595085: [meta] Tasks to remove the Olivero theme.
Comment #19
quietone commentedComment #20
quietone commented