- Issue created by @gauravvvv
- Status changed to Needs review
over 1 year ago 3:20am 22 June 2023 - last update
over 1 year ago 29,509 pass - 🇮🇳India gauravvvv Delhi, India
I have attached the patch with new component for menu footer. please review
- Status changed to RTBC
over 1 year ago 2:30pm 22 June 2023 - 🇺🇸United States smustgrave
Verified on 11.x that the block renders the same as before.
- last update
over 1 year ago 29,554 pass - last update
over 1 year ago 29,554 pass - last update
over 1 year ago 29,560 pass - last update
over 1 year ago 29,566 pass - last update
over 1 year ago 29,572 pass - Status changed to Needs work
over 1 year ago 3:01pm 3 July 2023 - 🇫🇮Finland lauriii Finland
-
+++ b/core/profiles/demo_umami/components/menu-footer/menu-footer.component.yml @@ -0,0 +1,45 @@ +# Everything in this file is optional. Still, the file needs to exist. Adding
Should we remove comments here? Seems like a lot to include all of this in every component.
-
+++ b/core/profiles/demo_umami/components/menu-footer/menu-footer.twig @@ -0,0 +1,25 @@ + 'block-' ~ configuration.provider|clean_class,
Shouldn't configuration be documented in the schema? Wondering if this should be triggering schema validation 🤔
-
+++ b/core/profiles/demo_umami/themes/umami/templates/components/navigation/block--system-menu-block--footer.html.twig @@ -1,25 +1,9 @@ + title_attributes: title_attributes,
Should we use
only
here to avoid passing down context?
-
- Status changed to Needs review
over 1 year ago 4:06am 4 July 2023 - last update
over 1 year ago 29,802 pass - 🇮🇳India gauravvvv Delhi, India
Addressed feedback in #4, attached interdiff for same. please review
- Status changed to Needs work
over 1 year ago 1:49pm 5 July 2023 - Status changed to Needs review
over 1 year ago 1:35pm 6 July 2023 - last update
over 1 year ago 29,803 pass - 🇮🇳India gauravvvv Delhi, India
Removed dump, attached interdiff. please review
- Status changed to RTBC
over 1 year ago 10:35pm 9 July 2023 - 🇺🇸United States smustgrave
Seems points in #4 have been addressed.
- last update
over 1 year ago 29,803 pass - last update
over 1 year ago 29,809 pass - last update
over 1 year ago 29,813 pass - last update
over 1 year ago 29,816 pass - last update
over 1 year ago 29,816 pass - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
over 1 year ago Waiting for branch to pass - last update
over 1 year ago 29,874 pass - last update
over 1 year ago 29,878 pass - Status changed to Needs work
over 1 year ago 5:54am 25 July 2023 - e0ipso Can Picafort
My main concern is about coupling between the component and the host template. This is an issue that happens when refactoring existing code, and will likely be less so when writing components from scratch.
-
+++ b/core/profiles/demo_umami/components/menu-footer/menu-footer.component.yml @@ -0,0 +1,48 @@ +$schema: https://git.drupalcode.org/project/sdc/-/raw/1.x/src/metadata.schema.json
$schema: https://git.drupalcode.org/project/drupal/-/raw/10.1.x/core/modules/sdc/...
-
+++ b/core/profiles/demo_umami/components/menu-footer/menu-footer.component.yml @@ -0,0 +1,48 @@ +name: Umami footer
It took me a moment to find this, so I am posting it.
https://www.drupal.org/docs/develop/user-interface-standards/interface-t... →
It seems this is the correct capitalization (sentence like), according to our style guide.
-
+++ b/core/profiles/demo_umami/components/menu-footer/menu-footer.component.yml @@ -0,0 +1,48 @@ + configuration: + type: array + label: configuration + plugin_id: + type: string + label: Plugin Id
Accordig to the use of this below, this is not an array but an object.
Also, I believe we should simplify this and skip this. This couples the component to a block, which is not desirable. Moreover, this is only used to build up a set of classes.
IMHO we should have a prop that allows the host template pass additional classes if we need them. Hence the block will send the provider, but something else will not.
Same principle applies to the plugin_id.
-
+++ b/core/profiles/demo_umami/components/menu-footer/menu-footer.component.yml @@ -0,0 +1,48 @@ + type: string
This is an invalid key. Slots do not provide an schema, only some basic metadata.
Maybe replace with:
content: title: Content
-
+++ b/core/profiles/demo_umami/components/menu-footer/menu-footer.component.yml similarity index 100% rename from core/profiles/demo_umami/themes/umami/css/components/navigation/menu-footer/menu-footer.css rename from core/profiles/demo_umami/themes/umami/css/components/navigation/menu-footer/menu-footer.css rename to core/profiles/demo_umami/components/menu-footer/menu-footer.css
The menu-footer.css should be free of references to host template classes.
-
+++ b/core/profiles/demo_umami/components/menu-footer/menu-footer.twig @@ -0,0 +1,25 @@ + 'block', + 'block-' ~ configuration.provider|clean_class, + 'block-' ~ plugin_id|clean_class, + 'menu-footer-wrapper',
The internal component template should be independent from where it's placed. IMO we should not reference Drupal constructs like "block", or "menu".
This same comment may apply elsewhere in the patch.
-
+++ b/core/profiles/demo_umami/themes/umami/templates/components/navigation/block--system-menu-block--footer.html.twig @@ -1,25 +1,12 @@ +{% embed 'demo_umami:menu-footer' with { + attributes: attributes, + title_prefix: title_prefix, + title_suffix: title_suffix, + label: label, + title_attributes: title_attributes, + content: content, + configuration: configuration, + plugin_id: plugin_id, +} only %} + +{% endembed %}
Here we are not passing the content slot as a twig block, instead we are passing it as an undocumented prop.
Also, we should use the simplified syntax when the label and the name of the variable are the same.
foo: foo,
becomes
foo,
-
- Status changed to Needs review
over 1 year ago 3:02am 11 August 2023 - last update
over 1 year ago Composer error. Unable to continue. - 🇮🇳India gauravvvv Delhi, India
I have addressed above feedback, only point 6 is left. Attached interdiff for same
- last update
over 1 year ago 29,960 pass - Status changed to Needs work
over 1 year ago 4:44pm 17 August 2023 - First commit to issue fork.
- Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 1 year ago Not currently mergeable. - @finnsky opened merge request.
- 🇷🇸Serbia finnsky
What i see now. We have
- 2 footer blocks which contains title and content
- 2 equal menus (footer menu and recipe tags)Will try with this approach
- last update
about 1 year ago Custom Commands Failed - 🇷🇸Serbia finnsky
Pushed footer block. Gonna check menu in separated commit.
- Status changed to Needs review
about 1 year ago 7:22am 3 September 2023 - Status changed to Needs work
about 1 year ago 4:56pm 3 September 2023 - 🇺🇸United States smustgrave
CC failure.
Also if ✨ Create new SDC component for Footer promo Closed: duplicate is being combined will need an issue summary update.
- last update
about 1 year ago 30,137 pass - Status changed to Needs review
about 1 year ago 7:22pm 3 September 2023 - 🇫🇷France andypost
There's already
blockrecipe
in dictionary so it's ok to update it with new block - Status changed to Needs work
about 1 year ago 8:00pm 3 September 2023 - 🇮🇳India mrinalini9 New Delhi
smustgrave → credited mrinalini9 → .
- 🇺🇸United States smustgrave
Closed ✨ Create new SDC component for Footer promo Closed: duplicate as a duplicate.
Tagging for issue summary update now.
- Status changed to Needs review
about 1 year ago 2:10pm 5 September 2023 - Status changed to RTBC
about 1 year ago 2:50pm 5 September 2023 - 🇺🇸United States smustgrave
Before
After
So only difference I see is that the image is smaller but actually seems better. Think this is good.
- last update
about 1 year ago 30,138 pass - last update
about 1 year ago 29,418 pass, 116 fail - Status changed to Needs review
about 1 year ago 7:25am 8 September 2023 - 🇺🇸United States smustgrave
@lauriii this good to be marked back to RTBC?
- Status changed to RTBC
about 1 year ago 1:40pm 20 September 2023 - 🇺🇸United States smustgrave
Going to remark but if you get a chance @lauriii
- last update
about 1 year ago 30,170 pass - last update
about 1 year ago 30,170 pass - last update
about 1 year ago 30,207 pass - last update
about 1 year ago 30,365 pass - Status changed to Needs review
about 1 year ago 4:16pm 27 September 2023 - 🇫🇮Finland lauriii Finland
Moving to needs review to resolve the discussion in the MR
- last update
about 1 year ago 30,360 pass, 2 fail - last update
about 1 year ago 30,362 pass - 🇺🇸United States smustgrave
Believe random familiar. Rerunning tests.
- Status changed to RTBC
about 1 year ago 11:18pm 1 October 2023 - 🇺🇸United States smustgrave
As I thought was random
Before
After
May need submaintainer sign off but the image changed in sign, see before/after screenshots. But personally I think it looks better and actually shows the full image, so marking it.
- Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
about 1 year ago Waiting for branch to pass - last update
about 1 year ago 30,379 pass - last update
about 1 year ago 30,384 pass - last update
about 1 year ago 30,386 pass - last update
about 1 year ago 30,395 pass - last update
about 1 year ago 30,399 pass - last update
about 1 year ago 30,412 pass - last update
about 1 year ago 30,417 pass - last update
about 1 year ago 30,422 pass 7:12 39:15 Running- last update
about 1 year ago 30,427 pass 31:21 13:21 Running-
lauriii →
committed 0852886c on 11.x
Issue #3368102 by finnsky, Gauravvvv, smustgrave, lauriii, e0ipso,...
-
lauriii →
committed 0852886c on 11.x
-
lauriii →
committed 407fb39c on 10.2.x
Issue #3368102 by finnsky, Gauravvvv, smustgrave, lauriii, e0ipso,...
-
lauriii →
committed 407fb39c on 10.2.x
- Status changed to Fixed
about 1 year ago 8:37am 25 October 2023 Automatically closed - issue fixed for 2 weeks with no activity.