Skip to content
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

Review card subclass of BlogPost card #1936

Merged
merged 11 commits into from
Dec 17, 2024
Merged

Review card subclass of BlogPost card #1936

merged 11 commits into from
Dec 17, 2024

Conversation

burieberry
Copy link
Contributor

@burieberry burieberry commented Dec 13, 2024

  • Updated RatingsSummary field: now it can display half stars
  • Extend BlogApp for ReviewBlog class
  • Added new ReviewBlog, author, and review post instances
  • Review post isolated and embedded templates

ReviewBlog instance with embedded Review card:
review-blog

Review card isolated template:
review-isolated-1

review-isolated-2

@burieberry burieberry requested a review from a team December 13, 2024 22:39
Comment on lines +10 to +12
// @ts-expect-error using own template
export class Review extends BlogPost {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Extending a card def and changing one of its templates gives error about "incorrectly extending BlogPost class" "types of property 'isolated' are incompatible"

Copy link

github-actions bot commented Dec 13, 2024

Host Test Results

    1 files  ±0      1 suites  ±0   19m 59s ⏱️ -4s
712 tests ±0  710 ✔️ ±0  2 💤 ±0  0 ±0 
717 runs  ±0  715 ✔️ ±0  2 💤 ±0  0 ±0 

Results for commit 4e796e8. ± Comparison against base commit b7cfbfa.

♻️ This comment has been updated with latest results.

@burieberry burieberry requested a review from a team December 17, 2024 15:54
@@ -267,21 +268,19 @@ class BlogAppTemplate extends Component<typeof BlogApp> {
</:contentHeader>
<:grid>
{{#if this.query}}
<div class='content-scroll-container'>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed duplicate scroll-container div (already exists in CardsGrid component)

@@ -225,6 +225,7 @@ class BlogAppTemplate extends Component<typeof BlogApp> {
@title={{or @model.title ''}}
@tagline={{or @model.description ''}}
@thumbnailURL={{or @model.thumbnailURL ''}}
@icon={{@model.constructor.icon}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

option to display card type icon

@burieberry burieberry merged commit bcfe08e into main Dec 17, 2024
41 checks passed
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.

1 participant