Skip to content

Conversation

@A-Wheeto
Copy link
Contributor

Status

Review progress:

  • Browser tested
  • Front-end review completed
  • Tech review completed

What's changed?

  • Added new Strapi component Horizontal card with asides
  • Added mocks, tests and previews

Steps to perform after deploying to production

If the production environment requires any extra work after this PR has been deployed detail it here. This could be running a Rake task, migrating a DB table, or upgrading a Gem. That kind of thing.

Copy link
Contributor

@msquance-stem msquance-stem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one point that could be potentially refactored

classes = ["horizontal-card-with-asides-component__wrapper white-bg"]
if @color_theme
classes << cms_color_theme_class(@color_theme, "left")
classes << "#{@color_theme}-theme"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should move this into the return of cms_color_theme_class method as I think we always need the two together?

I think we have this in a few places.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice idea, I'll take a look at adding this in.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Taking a look at this in more detail, I don't actually need the classes << "#{@color_theme}-theme" line.
I lifted this from the existing horizontal banner component, the class is only needed on that component as it applies the i belong flag when it has the i-belong-theme class applied.

@A-Wheeto A-Wheeto temporarily deployed to teachcomputing-pr-2338 March 11, 2025 08:53 Inactive
Copy link
Contributor

@msquance-stem msquance-stem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@A-Wheeto A-Wheeto temporarily deployed to teachcomputing-pr-2338 March 18, 2025 09:43 Inactive
@msquance-stem msquance-stem force-pushed the 2990-strapi-component---horizontal-card-with-aside branch from 7533171 to 430c33e Compare March 18, 2025 15:30
@msquance-stem msquance-stem temporarily deployed to teachcomputing-pr-2338 March 18, 2025 15:30 Inactive
@sonarqubecloud
Copy link

@msquance-stem msquance-stem merged commit 6458615 into main Mar 18, 2025
8 checks passed
@msquance-stem msquance-stem deleted the 2990-strapi-component---horizontal-card-with-aside branch March 18, 2025 15:50
@A-Wheeto A-Wheeto mentioned this pull request Mar 24, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants