Skip to content

Conversation

@msquance-stem
Copy link
Contributor

@msquance-stem msquance-stem commented Feb 18, 2025

Status

Review progress:

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

What's changed?

  • Creating new course card component in Strapi
  • Adding background colour to the horizontal card
  • Converting subText to introText on the resource cards (introText being a block version of the subText)

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.

@msquance-stem msquance-stem temporarily deployed to teachcomputing-pr-2302 February 18, 2025 15:47 Inactive
@msquance-stem msquance-stem temporarily deployed to teachcomputing-pr-2302 February 18, 2025 15:48 Inactive
@msquance-stem msquance-stem temporarily deployed to teachcomputing-pr-2302 February 18, 2025 15:55 Inactive
@msquance-stem msquance-stem temporarily deployed to teachcomputing-pr-2302 February 24, 2025 11:03 Inactive
Probably needs a bit of tidying up, but its a working start.
Still need to implement all the different grahql queries
…in some extra testing of the older rest features in case we still need them

Added some changes to the graphql base query to include generation of filter and sort params.

Updated the filter factory to support the rest mode (prepended $ sign) and the graphql mode.
…rated over to strapi.

Converted subText to introText on card wrapper (this is a rich text block over a plain text)

Added background color to horizontal card

Changed the embed code to be a span rather than a div, as its being a div in p tag was causing extras p's to be added
…ase query to reflect the change

Fixing sonarcloud issues in the scss
Removing auto generated incorrect test file
Fixing missing require rails_helper in tests
@msquance-stem msquance-stem temporarily deployed to teachcomputing-pr-2302 February 25, 2025 15:56 Inactive
@msquance-stem msquance-stem temporarily deployed to teachcomputing-pr-2302 February 25, 2025 16:20 Inactive
@msquance-stem msquance-stem temporarily deployed to teachcomputing-pr-2302 February 25, 2025 16:37 Inactive
module Strapi
module Mocks
class CourseCardSection < StrapiMock
strapi_component "blocks.course-cards-section"
Copy link
Contributor

Choose a reason for hiding this comment

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

Mr nit-picky here again. We usually have a space between strapi_component and attributes

))
end

it "renders the banner text" do
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be more descriptive to specify "renders the banner text in uppercase" here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, very good point!

Copy link
Contributor

@A-Wheeto A-Wheeto left a comment

Choose a reason for hiding this comment

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

A couple of very minor comments, but up to you if you want to make the changes.

Would it be worth putting some context about the additions of require "rails_helper" in the graphql query tests into the PR description as that's touched quite a lot of files?

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 3, 2025

@tc-deploybot tc-deploybot temporarily deployed to teachcomputing-pr-2302 March 3, 2025 10:12 Inactive
@msquance-stem msquance-stem merged commit 5d605b4 into main Mar 3, 2025
8 checks passed
@msquance-stem msquance-stem deleted the 2958-course-card branch March 3, 2025 10:22
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.

4 participants