- Issue created by @mherchel
- Assigned to megclaypool
- last update
over 1 year ago Custom Commands Failed - @megclaypool opened merge request.
- First commit to issue fork.
- last update
over 1 year ago Build Successful - Status changed to Needs review
over 1 year ago 3:18am 19 June 2023 - Issue was unassigned.
- Status changed to Needs work
over 1 year ago 1:47pm 19 June 2023 - ๐บ๐ธUnited States smustgrave
FYI should avoid assigning tickets to yourself unless you're a maintainer
https://www.drupal.org/docs/develop/issues/issue-procedures-and-etiquett... โShould just leave a comment you'll be working on it
Seems this MR is causing failures.
- last update
over 1 year ago Build Successful - Status changed to Needs review
over 1 year ago 3:15am 20 June 2023 - Status changed to Needs work
over 1 year ago 1:49pm 20 June 2023 - ๐บ๐ธUnited States mherchel Gainesville, FL, US
This is failing coding standards. There's also a lot of unrelated whitespace changes that should not be made here.
- First commit to issue fork.
- last update
over 1 year ago Build Successful - Status changed to Needs review
over 1 year ago 8:19am 30 August 2023 - ๐ท๐ธSerbia finnsky
Hello all!
Pushed new MR with different approach.
We write components to make them reusable not only in node or node--teaser.
It should be encapsulated component which can appear in paragraphs, cards wherever.It keeps all inner css inside. Its external geometry still controlled by `.node__meta` css class.
https://en.bem.info/methodology/css/#external-geometry-and-positioningPlease review!
Thanks - last update
over 1 year ago Build Successful - Status changed to Needs work
over 1 year ago 2:53pm 30 August 2023 - ๐บ๐ธUnited States smustgrave
To see if this passes tests you can include sdc as an olivero dependency.
Just FYI until SDC is marked stable it can't be merged to olivero so these tickets for olivero and sdc will ultimately be postponed until that. But it's good to have them ready :)
- ๐ท๐ธSerbia finnsky
@smustgrave
Yep. I know. Just want to to understand how it should/may look like in future. - First commit to issue fork.
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - Status changed to Needs review
8 months ago 1:44pm 21 April 2024 - ๐บ๐ธUnited States smustgrave
smustgrave โ changed the visibility of the branch 3365377-olivero-convert-node to hidden.
- Status changed to Needs work
8 months ago 5:24pm 28 April 2024 - ๐บ๐ธUnited States smustgrave
Have not yet reviewed but see latest MR has a number of test failures.
- First commit to issue fork.
- ๐บ๐ธUnited States eojthebrave Minneapolis, MN
The test failures are due to this error:
Drupal\Core\Render\Component\Exception\InvalidComponentException: [avatar] NULL value found, but an object is required in Drupal\Core\Theme\Component\ComponentValidator->validateProps() (line 203 of core/lib/Drupal/Core/Theme/Component/ComponentValidator.php).
Caused by the fact that the `author_picture` variable in the node template file is sometimes set, and sometimes not. For example if the feature is disabled in the theme, or if the user has no picture. This results in the `avatar` prop getting set to NULL, and the above error. The fix appears to be to not pass an `avatar` prop if we have no value for author_picture. I've added a commit that does that, though it's possible there are better approaches I couldn't figure out a way using Twig to conditionally set just one key in an object.
Let's see if there are any more failures after fixing that.
- ๐ฎ๐ณIndia mithun s Bangalore
Mithun S โ made their first commit to this issueโs fork.
- Status changed to Needs review
6 months ago 10:26am 19 June 2024 - ๐ฎ๐ณIndia mithun s Bangalore
Rebased the branch with latest changes from the target branch. The MR seems to be passing the test cases.
Please review the MR. Changing the status to Needs Review.
Thank you! - First commit to issue fork.
- ๐ฎ๐ณIndia ahsannazir
The SDC component for meta is working as expected. Attaching screenshot for reference.
- Status changed to Needs work
6 months ago 3:13pm 27 June 2024 - Status changed to Needs review
6 months ago 5:27pm 27 June 2024 - ๐บ๐ธUnited States smustgrave
Tried revisiting this one but still have concerns about the missing/changing class names.
- Status changed to Needs work
4 months ago 1:15pm 28 August 2024 - ๐บ๐ธUnited States smustgrave
@shweta__sharma if tagging for issue summary update mind leaving a comment also.
- Status changed to Needs review
4 months ago 5:13pm 29 August 2024 - Status changed to Needs work
3 months ago 2:03pm 17 September 2024 - ๐บ๐ธUnited States smustgrave
I think this needs a rebase as nightwatch keeps failing (re-ran twice)
- Status changed to Needs review
3 months ago 2:17pm 17 September 2024 - ๐ท๐ธSerbia finnsky
finnsky โ changed the visibility of the branch 3365377-metadata to hidden.
- ๐ท๐ธSerbia finnsky
finnsky โ changed the visibility of the branch 3365377-metadata to active.
- ๐บ๐ธUnited States smustgrave
Rebase seems good. I did a standard install on 11.x and verified the meta data appears unchanged.
Still a little iffy about the class changes but won't hold the issue up over it.
- Assigned to pdureau
- ๐ซ๐ทFrance pdureau Paris
pdureau โ changed the visibility of the branch 3365377-metadata to hidden.
- ๐ซ๐ทFrance pdureau Paris
Mandatory fixes
Slots are not typed
So let's remove the
type: object
here:metadata: title: Metadata description: Additional metadata type: object
Consistent slot notation
The 2 slots have different notations, one with a block and a print node, one with only a block:
{% block avatar %}{{ avatar }}{% endblock %} {% block metadata %}{% endblock %}
It is better to stay consistent. My personal preference would be no blocks (see: ๐ฑ Clarify SDC documentation by toning down Twig blocks promotion Active ), but if there is a
block
I would advise to add also the print node.A summary (without the
only
andwith_context
keywords, for clarity):Deprecated Twig filter: `spaceless`
The spaceless filter is deprecated as of Twig 3.12. While not a full replacement, you can check the whitespace control features.
Other feedbacks
As always, the
attributes
prop declaration is not necessary because automatically added to all components, but it doesn't hurt to add it so keep if you want:attributes: title: Attributes description: Meta attributes. type: Drupal\Core\Template\Attribute
In
attributes
andauthor_attributes
, using a PHP Namespace as a prop type is not JSON schema valid and is skipping the SDC validator. However, describing an Attribute object with JSON Schema is complex without a reference resolver, so we can let it like that for now.