-
Notifications
You must be signed in to change notification settings - Fork 2
Course Cards Component #2302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Course Cards Component #2302
Conversation
4294538 to
ebf62ac
Compare
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
0b3b534 to
07d13c9
Compare
Fixing missing require rails_helper in tests
| module Strapi | ||
| module Mocks | ||
| class CourseCardSection < StrapiMock | ||
| strapi_component "blocks.course-cards-section" |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, very good point!
A-Wheeto
left a comment
There was a problem hiding this 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?
|



Status
Review progress:
What's changed?
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.