- Issue created by @markconroy
- @markconroy opened merge request.
- Status changed to Needs review
almost 2 years ago 10:30am 14 March 2023 - 🇺🇸United States smustgrave
Only postponing until the parent issue makes it in. Since this can be looked at but it can't be truly reviewed (as the parent may need changes) or move forward.
Tagging for Needs Review Queue though so when the parent gets committed and this gets moved back to NW we can prioritize
- Status changed to Needs work
almost 2 years ago 1:57pm 20 April 2023 - 🇺🇸United States smustgrave
Imagine the MR will have to rebased. Current MR has some failures.
- last update
almost 2 years ago Build Successful - last update
almost 2 years ago 29,303 pass - Status changed to Needs review
almost 2 years ago 6:47pm 20 April 2023 - 🇮🇪Ireland markconroy
It was mentioned on Slack that Umami maintainers do not want to allow the use of experimental modules in the umami profile.
I had forgotten that we weren’t going to use experimental features, I got so excited about using SDC. The fear is that if we use experimental modules
- They are not encouraged for general users, and
- They might be removed from Drupal core if they don’t become stable.
However, given that experimental modules in reality don't seem to actually get removed and given there are not concerns related to data storage in the SDC module (it's only templating changes), I'm happy as an Umami maintainer for us to override our policy on experimental modules for SDC.
- Status changed to RTBC
almost 2 years ago 11:43pm 22 April 2023 - 🇺🇸United States smustgrave
Won't hold up but applying patch I get
test.patch:73: trailing whitespace.
test.patch:88: trailing whitespace.
warning: 2 lines add whitespace errors
Applied the patch on a fresh Umami install and checking the cards on the homepage nothing seemed to change. Attaching some screenshots.
Reviewing the MR the changes look good and right along the time of component/atomic structure.
Let me know if there's anything else you want me to check!
- last update
almost 2 years ago 29,305 pass - last update
over 1 year ago 29,307 pass - last update
over 1 year ago 29,307 pass - last update
over 1 year ago 29,303 pass - Status changed to Needs review
over 1 year ago 9:19am 25 April 2023 - 🇮🇪Ireland markconroy
@smustgrave Thanks for that review and moving to RTBC. I've actually gone and updated the MR to move all the card components to their own directory, so I can (later) add in more directories beside it for other view modes. Can you give it another review?
New directory structure will allow us to do something like this:
components --content ----card ------card ------card-common ------card-alt ----teaser ------teaser ------teaser-large ----search-result ------search-result ------search-result-promoted ------search-result-event ------search-result-archived
- Status changed to RTBC
over 1 year ago 2:54pm 26 April 2023 - Status changed to Needs work
over 1 year ago 8:12pm 26 April 2023 - 🇺🇸United States moshe weitzman Boston, MA
Looks like we lost some steam here, right near the end. Anyone available to address the feedback?
- 🇮🇪Ireland markconroy
Sorry @moshe weitzman
I've just been snowed under with work for the past couple of weeks and haven't had a chance to get back to this yet.
- e0ipso Can Picafort
I updated the parent issue to 🌱 [META] Create Single Directory Components for the Umami theme Active .
- Assigned to mortona2k
- last update
over 1 year ago 29,420 pass, 2 fail - last update
over 1 year ago 29,420 pass, 2 fail - last update
over 1 year ago 29,420 pass, 2 fail - last update
over 1 year ago 29,420 pass, 2 fail - 🇺🇸United States mortona2k Seattle
1. Classes
I moved the classes array out of the component templates and into node templates. I think they can also be safely removed from the node templates. If we keep them in, it will inject a bunch of classes potentially for future use, but currently aren't used.One exception is .view-mode-card. I don't think this is an appropriate class to use in a component, because it targets a view mode named card, not a card component, which we are creating. Instead, I used .umami-card, with .umami-card--common and .umami-card--common-alt variations.
I changed node__title and node__content to umami-card__title and umami-card__content.
2.1 Title
I used a slot for the title, but have an h2.umami-card__title element in the component, which wraps it.
This way, the component template defines the h2 tag, and the content can be whatever is passed through. In this case, it's a span, with a bunch of classes on it.
Having done this, I am leaning towards stripping things down to just what is needed for the component instead of trying to support unknown variations. - last update
over 1 year ago 29,421 pass - last update
over 1 year ago 29,423 pass - last update
over 1 year ago 29,423 pass - Status changed to Needs review
over 1 year ago 10:24pm 9 June 2023 - 🇺🇸United States mortona2k Seattle
I could use some feeback on this.
Last round of changes make the card--common and card--common-alt components extend the card template.
Any thoughts on how we're using props and slots?
- 🇮🇪Ireland markconroy
Thanks @mortona2k
This looks really good now. I've only read through the code, not actually tested it yet. I'll try get it tested later this week.
- Status changed to Needs work
over 1 year ago 8:01pm 12 June 2023 - last update
over 1 year ago 29,434 pass - Status changed to Needs review
over 1 year ago 12:53am 19 June 2023 - e0ipso Can Picafort
I didn't check the changes (and I don't think I am qualified to talk about CSS), but I still see several unresolved threads in the MR. Did you consider those as well?
- last update
over 1 year ago 29,434 pass 6:06 5:00 Running- last update
over 1 year ago 29,426 pass, 3 fail - 🇺🇸United States mortona2k Seattle
I made the changes I could for those. I marked some of them as pending review, not sure if I'm doing that right.
I have a few questions on some of the threads, otherwise it's as close as I can get atm.
- Status changed to Needs work
over 1 year ago 5:08pm 21 June 2023 - 🇺🇸United States smustgrave
Seems the failures are from passing NULL in
{{ node.type.entity.label() }}
Wonder if you have to pass that in as a slot value?
- e0ipso Can Picafort
@smustgrave if the component is embedded without context leaks, then you need to pass the label as well. IMHO a card component should not depend on a node object, but a label seems reasonable. In any case, mapping it into context should do.
- 🇺🇸United States smustgrave
@mortona2k do you want to give that a shot? So I can stay in the review role.
Seems the only failures in the MR are due to that node object being empty.
- last update
over 1 year ago 29,440 pass - last update
over 1 year ago 29,440 pass - Status changed to Needs review
over 1 year ago 2:30am 22 June 2023 - 🇺🇸United States mortona2k Seattle
I added a read_more_label property, set with node.type.entity.label() in the node templates.
Do I need to set a default value, or does defining the property take care of that?
- Status changed to RTBC
over 1 year ago 12:01am 24 June 2023 - 🇺🇸United States smustgrave
I don't think a default is needed but will let committer decide.
Think this is actually good to go!
Applied the MR and compared the cards on the homepage vs without the MR and they appear unchanged. - Status changed to Needs work
over 1 year ago 3:56am 24 June 2023 - e0ipso Can Picafort
I left a bunch more comments. I think we are getting very close. Thanks for figuring all this out together!
Some of the comments on the metadata apply to all the components in here.
- First commit to issue fork.
- Status changed to Needs review
over 1 year ago 1:51pm 5 July 2023 - last update
over 1 year ago 29,447 pass - Status changed to Needs work
over 1 year ago 4:38pm 17 July 2023 - 🇺🇸United States smustgrave
Seems a number of open threads. If some are done can they least be marked with a comment. Know you can't always resolve the thread.
- First commit to issue fork.
- Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
over 1 year ago Not currently mergeable. - @finnsky opened merge request.
- Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
over 1 year ago Not currently mergeable. - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
over 1 year ago Not currently mergeable. - last update
over 1 year ago Custom Commands Failed - Status changed to Needs review
over 1 year ago 4:47pm 26 August 2023 - 🇷🇸Serbia finnsky
Hello all!
I'm happy that SDC in core because i'm big fan of components development. So:
I created new MR with different approach:
- From my point of view components should be abstract and not related to Drupal view modes, fields, content types or whatever.
- All that 3 cards absolutely same. So what for to create 3 components?
- Read More link should be independent component. It is reusable now. even if used only in cards.
- Title also pretty useful component in terms of typography. I added it without CSS because typography not designed well yet.Minor updates:
- Changed spacing policy to CSS Grid. Some small visual layout regressions appear. But i don't think they are critical.
- BEMified components to have cleaner styles inheritance.
- removed label-items class in theme preprocess. It has default margin-bottom. What is bad in terms of BEM:
https://en.bem.info/methodology/css/#external-geometry-and-positioningPlease review!
Thanks - Status changed to Needs work
over 1 year ago 5:27pm 26 August 2023 The Needs Review Queue Bot → tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 29,472 pass - Status changed to Needs review
over 1 year ago 10:16pm 26 August 2023 - Status changed to Needs work
over 1 year ago 10:47pm 26 August 2023 The Needs Review Queue Bot → tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.
- 🇫🇷France andypost
@finnsky please update MR to use 11.x as target branch instead of 10.1
- last update
over 1 year ago 30,063 pass - Status changed to Needs review
over 1 year ago 7:16am 27 August 2023 - last update
over 1 year ago 30,053 pass, 7 fail - last update
over 1 year ago 30,053 pass, 7 fail - Issue was unassigned.
- Status changed to Needs work
over 1 year ago 5:01am 1 September 2023 - e0ipso Can Picafort
Moving back to Needs Work, since there are a bunch of unresolved tasks.
- last update
over 1 year ago 30,128 pass, 7 fail - last update
over 1 year ago 30,138 pass - Status changed to Needs review
over 1 year ago 6:37am 2 September 2023 - last update
over 1 year ago 30,138 pass - Status changed to Needs work
over 1 year ago 6:13pm 4 September 2023 - 🇺🇸United States smustgrave
For review purposes can the issue summary be updated to match what's in the MR. Current IS talks about a card component which resulted in a title, readmore, and card components. Think that should be documented.
Thanks this looks really good!
- Status changed to Needs review
over 1 year ago 2:39pm 5 September 2023 - Status changed to RTBC
over 1 year ago 7:51pm 8 September 2023 - 🇺🇸United States smustgrave
Applied the MR and verified that the cards still render the same as before.
- last update
over 1 year ago 30,149 pass - last update
over 1 year ago 30,149 pass - last update
over 1 year ago 30,152 pass, 1 fail - last update
over 1 year ago 30,157 pass - last update
over 1 year ago 30,164 pass 30:10 28:55 Running- last update
over 1 year ago 30,171 pass - last update
over 1 year ago 30,208 pass - last update
over 1 year ago 30,209 pass - last update
over 1 year ago 30,363 pass - last update
over 1 year ago 30,364 pass - last update
over 1 year ago 30,363 pass - last update
over 1 year ago 30,374 pass - last update
over 1 year ago 30,380 pass - last update
over 1 year ago 30,380 pass - last update
over 1 year ago 30,385 pass - last update
over 1 year ago 30,395 pass - last update
over 1 year ago 30,400 pass - last update
over 1 year ago 30,400 pass - last update
over 1 year ago 30,417 pass - last update
over 1 year ago 30,423 pass -
justafish →
committed aac1528b on 11.x
Issue #3347672 by mortona2k, finnsky, markconroy, Gauravvvv, smustgrave...
-
justafish →
committed aac1528b on 11.x
- 22c836de committed on 11.x
Create new SDC component for Umami (card view mode) - #3347672
- 22c836de committed on 11.x
-
justafish →
committed 2508928a on 10.2.x
Issue #3347672 by mortona2k, finnsky, markconroy, Gauravvvv, smustgrave...
-
justafish →
committed 2508928a on 10.2.x
- Status changed to Fixed
over 1 year ago 12:36pm 20 October 2023 - 🇬🇧United Kingdom justafish London, UK
Committed and pushed to 11.x and 10.2.x - thanks!
Automatically closed - issue fixed for 2 weeks with no activity.