github-samples / github-samples/tailspin-toys

Show a catalog summary on the home page

Open
#6 0 comments 0 reactions 0 assignees View on GitHub

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-testid attributes
  • 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

Open the contributing guide

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.