Skip to content

feat(scout-for-lol): add friend row, game sentence row, sticker, setup row, tip list and champion card - #5255

Merged
shepherdjerred merged 2 commits into
mainfrom
scout-redesign-a4a-rows
Nov 28, 2026
Merged

shepherdjerred merged 2 commits into
mainfrom
scout-redesign-a4a-rows

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #5245 (domain components), #5209 and #5208. Tracker AI-967. The
second half of W0-A4 (charts and page states) is the next PR in the stack; the
whole is about 3,800 lines, so it is split as the brief allows.

Why

The Players, Server, Home, Player, Champion and public champion pages share a
set of rows and cards: a friend with a rank, a game as a plain sentence, a
weekly award, a setup as rows of icons, generated tips and a champion on the
index. They belong in the design system, built on the soft surface primitives
and friendly.css variables, before any page composes them.

What

All in design-system/src/domain/rows/ (the flat domain/ directory is at the
repository's file budget), exported through the existing ./domain/* map.

  • FriendRow: initial, name, rank, the latest game as a sentence, an optional
    live dot and a "You" pill. The default layout is the Players list (crest
    first); place switches to the server ladder (place first, crest last).
  • GameSentenceRow: a champion face with its win or loss mark, or a friend's
    initial with a champion badge, then the sentence ("Won as Ahri, 9/2/11,
    +21 LP", or "RiverQuartz won as Jinx with you, 10/3/9"), the time and an
    optional highlight spark. A friend's name leads the sentence and is cut with
    an ellipsis rather than wrapping the row.
  • Sticker: a weekly award with a face (a person or a champion) and a spark.
  • SetupRow: runes, summoner spells, items and skill order as icon rows with
    words, as a set or as a sequence with chevrons, the win rate, the games
    behind it and an optional pick rate on the right. Icons come through the
    game asset helpers.
  • TipList: generated tips, one sentence each, led by the ability icons they
    are about (a lane icon sits in a disc). reverse adds the other side's tips
    in a closed native <details> that shows the first tip while closed.
  • ChampionCard: face, name, lane, win rate, games, lane win rate and tier.
    ChampionFace gains the 72px size it uses.
  • Champion cards lay out from the top and pin the tier pill to the bottom, so a
    grid's names, roles, win rates and game counts line up and the cards stay
    equal height.
  • Every rate shows one decimal ("52.0%", "65.0%"): formatPercent, the one
    formatter the win-rate bar, the setup row and the champion card use. The
    50% "even" label is a threshold, not a rate, and the charts in the next PR
    show LP and gold, so they have no percentages to format.
  • Rules are in styles/friendly-rows.css; values follow d9, d10 and d11 CSS.
  • Copy follows briefs/COPY.md. The components carry labels and facts
    ("Unranked", "You", "In a game now", "Picked 61%", "Wins lane 53.8%"); none
    explains a page. Story data is facts only.
  • A story per component with real champion and item art, long names, empty and
    one-row cases.

Demo

New components, so there is no prior state. Rendered from the Storybook build,
modern dark and light, at 1440 and 390.

Review fixes (before and after)

Before After
Champion cards, 1440, dark: cards without a lane line sat lower
Champion cards, 1440, light
Setup row, 1440, dark: "52%"
Setup row with pick rate, 1440
Win-rate rows, 900, light
Win-rate rows, 390
Win-rate range and extremes

All stories

Story Dark Light
Friend rows, Players (1440)
Friend rows, Players (390)
Friend rows, ladder (1440)
Friend rows, ladder (390)
Friend row, long name (390)
Game sentences, recent games (1440)
Game sentences, recent games (390)
Game sentences, a friends feed (1440)
Game sentences, a friends feed (390)
Game sentence, long name (390)
Stickers, awards (1440)
Stickers, awards (390)
Sticker, long text (390)
Setup rows, full setup (1440)
Setup rows, full setup (390)
Tips with the other side closed (1440)
Tips with the other side closed (390)
Tips, long text (390)
Champion cards, index (1440)
Champion cards, index (390)
Champion card, long name (390)

Verification

  • bun run test:e2e in packages/scout-for-lol/packages/design-system: 993 passed (after the review fixes), every story in modern dark, modern light and classic light with the page-error, broken-image and axe checks.
  • bun run test in the same package: 106 unit tests pass, including rows.test.tsx (sentences and LP formatting, latest line, friend, sticker, setup and tip markup, card output, small samples) and the one-decimal rate tests for the formatter, the bar and its range ends, the setup row and the card.
  • eslint, tsc and prettier are clean for the touched files.
  • Screenshots were captured with Playwright's Chromium from the built Storybook, not PinchTab: the PinchTab daemon was failing launchctl bootstrap while other agents were running.
  • Extended tier: the package has no extended steps.
  • Not run: live deployment; no page uses these components yet.

🤖 Generated with Claude Code

https://claude.ai/code/session_011u9pQk6p4o3DxofkiZXg8y

@shepherdjerred

shepherdjerred commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner Author

@greptile-apps

greptile-apps Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Automatic reviews are disabled for this repository. Configure in Code Review Settings.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

shepherdjerred and others added 2 commits November 27, 2026 11:43
…p row, tip list and champion card

Why
The Players, Server, Home, Player, Champion and public champion pages share a
set of rows and cards: a friend with a rank, a game as a plain sentence, a
weekly award, a setup as rows of icons, generated tips and a champion on the
index. They belong in the design system, on the soft surface primitives.

What
- `domain/rows/` (the flat `domain/` directory is at the file budget):
  - `FriendRow`: initial, name, rank, the latest game as a sentence, an
    optional live dot, a "You" pill; a `place` switches to the ladder layout.
  - `GameSentenceRow`: a champion face with its result mark, or a friend's
    initial with a champion badge, then "Won as Ahri, 9/2/11, +21 LP" or
    "RiverQuartz won as Jinx with you, 10/3/9", the time and an optional
    highlight spark.
  - `Sticker`: a weekly award with a face and a spark.
  - `SetupRow`: runes, spells and builds as icon rows, in a sequence with
    chevrons or a set, with the win rate, games and an optional pick rate.
  - `TipList`: generated tips led by their ability icons, with the other
    side's tips in a closed native disclosure.
  - `ChampionCard`: face, name, lane, win rate, games, lane win rate and tier.
- A person's name in a row is cut to one line with an ellipsis, with the full
  name kept as text and in `title` (`NameText` from the profile components; the
  sentence lead in a game row does the same).
- `ChampionFace` gains the 72px size the index card uses.
- Rules are in `styles/friendly-rows.css`. Values follow d9, d10 and d11 CSS.
- A story per component with real art, long names and empty cases; the
  catalog test mounts them in its three themes.
- Copy follows `briefs/COPY.md`: the components carry labels and facts, no
  sentence that explains a page.

Verification
- bun run test:e2e in the design-system package: 993 passed, every story in
  modern dark, modern light and classic light with axe.
- 103 design-system unit tests pass, including the new rows tests.
- eslint, tsc and prettier clean for the touched files.
- Stories rendered and inspected at 1440 and 390 in modern dark and light.
- Extended tier: the package has no extended steps.
- Not run: live deployment; no page uses these components yet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011u9pQk6p4o3DxofkiZXg8y
… one decimal

Why
Review of the rows and cards found two problems: champion cards without a lane
line centred their content, so their name, role and win rate sat lower than
their neighbours', and a rate with a zero decimal printed as "52%" beside
"52.6%".

What
- Champion cards lay their content out from the top, and the tier pill is
  pinned to the bottom, so the face, name, role, win rate and game count line
  up across a grid while the cards stay equal height.
- `formatPercent`, the one formatter the win-rate bar, the setup row and the
  champion card use, always renders one decimal: "52.0%", "65.0%", "100.0%".
  Fixed labels (the 50% even mark) are thresholds, not rates, and are
  unchanged. The charts show LP and gold, not rates, so they have no
  percentages to format.
- The win-rate value column is wide enough for "100.0%".
- Tests: the formatter at 0, a whole number, a fraction and 100, the bar and
  its range ends, the setup row (including the pick rate) and the card.

Verification
- bun run test:e2e in the design-system package: every story in modern dark,
  modern light and classic light with axe.
- Design-system unit tests, eslint, tsc and prettier pass.
- Affected stories re-captured at 1440 and 390 in modern dark and light.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011u9pQk6p4o3DxofkiZXg8y
@shepherdjerred
shepherdjerred force-pushed the scout-redesign-a4a-rows branch from eae31d3 to f8f4b4a Compare November 27, 2026 19:44
@shepherdjerred
shepherdjerred marked this pull request as ready for review November 27, 2026 19:44
@shepherdjerred

Copy link
Copy Markdown
Owner Author

@codex review

Automated re-review request for f8f4b4a from the CI review gate.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T19:47:47.311402Z f8f4b4a Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: f8f4b4aed5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shepherdjerred
shepherdjerred merged commit e586a0b into main Nov 28, 2026
8 of 9 checks passed
@shepherdjerred
shepherdjerred deleted the scout-redesign-a4a-rows branch November 28, 2026 01:39
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