🚸 Testimonials - add ability to format body

Open
#2,810 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
graphql, nextjs, typescript
Domain
api, frontend

Research direction

Start with components/blocks/testimonialsCard.tsx and helpers/getTestimonials.ts, then inspect how testimonial data is currently loaded. Confirm the card renders testimonial body markdown as HTML and that the data is sourced through GraphQL rather than directly from the JSON file.

Written by the indexing model from the issue text.

Description

Recently @tiagov8 tried to add a testimonial with a link to SSW People and an internal link.

Image

The markdown was rendered as plain text - after investigating the issue, it was noted that the prop was raw rendered in:
https://github.com/SSWConsulting/SSW.Website/blob/9020ce04258a31402b088d489f10ce830fa40c0f/components/blocks/testimonialsCard.tsx

Data was sourced directly from the json in:
https://github.com/SSWConsulting/SSW.Website/blob/main/helpers/getTestimonials.ts

  • Testimonial card - Render markdown text as html
  • API - source data through graphql (not directly from json file)
Dominant language
HTML
Stars
14
Forks
10
Avg merge
13h 51m
Merged PRs (30d)
38

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SSWConsulting/SSW.Website

All issues in SSWConsulting/SSW.Website

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.