github-samples / github-samples/tailspin-toys
Show a catalog summary on the home page
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 8
- Forks
- 53
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 4
Description
The home page jumps straight into the featured games grid without giving visitors a sense of the catalog's size or quality. Adding a small summary — such as the total number of games and the average star rating — gives backers useful at-a-glance context and makes the landing page feel more alive. This builds entirely on data already available in the data layer.
Acceptance criteria
- The home page displays the total number of games in the catalog
- The home page displays the average star rating across games that have a rating
- The summary handles edge cases gracefully (no games, or no rated games)
- The summary follows the project's styling and accessibility guidelines and includes
data-testidattributes - A data-access helper computes the summary deterministically, with unit test coverage, and Playwright e2e tests verify it renders on the home page
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the home page and trace the existing data layer that supplies the featured games. Add the catalog summary for total and rated-game average, including empty-state behavior, then add unit coverage for the deterministic helper and Playwright e2e coverage for rendering, styling, accessibility, and data-testid attributes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- playwright, typescript
- Domain
- backend, frontend, testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100