Skip to content

feat(scout-for-lol): add the Server page to the app - #5452

Merged
shepherdjerred merged 1 commit into
mainfrom
scout-server-page
Dec 3, 2026
Merged

shepherdjerred merged 1 commit into
mainfrom
scout-server-page

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Why

The redesign's Server page had an endpoint (consumerGuild.server, #5397) and an approved design (D11-Server) but no page. A server's ladder, its week's awards, its duos and what it plays were not visible anywhere in the app.

What

  • /servers/:guildId shows one Discord server: hero (name, who leads and at what rank, head count and where the viewer stands, everyone as initials), the ladder with "See all N", the week's awards, what the server plays, and the best duos with a win/loss tally. An award nobody earned is hidden; an empty server shows its name and a head count only. A server outside the viewer's reach gets a "not available" state, not a retry.
  • Route choice. /servers/:guildId, not /g/:guildId (the admin workspace) and not under /halls or /duels, which are named for what they show. The mockup sidebar also calls them "Servers". It sits under the consumer workspace, so it inherits scout-consumer-player-profiles-enabled.
  • Link helper. serverPath(guildId) in app/src/lib/server/server-path.ts, for Home and Player to link here. Those pages are not edited.
  • Preload-only loader, Loaded.strict, server_page_opened analytics event, and /servers/:guildId path normalisation. servers is deliberately not added to analyticsContextRoute: that gate waits on a guild context registration this page never makes.
  • View logic in app/src/lib/server/ (hero lines, divisions or LP behind, award lines, duo names, tally) with default-tier tests, plus view, loader and route-registration tests.
  • FriendRow and Sticker take an onClick so the router can take over their anchors, and useSpaLink is added. These are byte-identical to the same changes in feat(scout-for-lol): redesign the in-app Player and Players pages #5400 and drop out on restack if feat(scout-for-lol): redesign the in-app Player and Players pages #5400 lands first.
  • Design audit: server joins the matrix as a golden route (16 goldens; 684 to 702 cases). The page checks now wait for network idle before the image snapshot: a page that reads the report lake mounts after the chrome is visible, and the image check otherwise failed on a different case each run. The endpoint's seed block already has what the page needs.

Left out because the endpoint does not provide it: the order of a duo's games (the tally shows wins first, then losses, scaled to at most 12 dots), and a server list in the sidebar (existing chrome, untouched).

Demo

Implementation compared with the D11 mockup (the mockup has no 390 light capture). The seeded server is "Dev Guild 1", so names and numbers differ from the mockup's "Rift Study Group".

1440 dark

Mockup Implementation

1440 light

Mockup Implementation

390 dark

Mockup Implementation

390 light (no mockup capture)

Verification

  • bunx turbo run build typecheck test lint --filter=@scout-for-lol/app --filter=@scout-for-lol/design-system --filter=@scout-for-lol/design-audit: 36 of 36 tasks passed (777 app tests, 127 design-system tests).
  • bun run jscpd, bun run check-directory-file-counts, bunx lefthook run pre-commit: pass.
  • Design audit, the 18 server cases (axe, contrast, keyboard, layout, images) with --workers=1 against an isolated Postgres boot: 18 of 18 passed in five consecutive runs after the page-check change below; goldens unchanged by the rebase onto main. With parallel workers a different case fails the image-load check on each run, on the Vite dev server; CI runs one worker.
  • bun run jscpd and check-directory-file-counts flag one clone and one directory in packages/temporal that come from main (fixed upstream by test(temporal): unblock main verify after the SeaweedFS lifecycle enforcer (#5373) #5446); nothing from this change. The commit ran lefthook with LEFTHOOK_EXCLUDE=jscpd for that reason.
  • Extended tier: none of the touched workspaces has extended steps.
  • Not run: live beta behaviour.

🤖 Generated with Claude Code

https://claude.ai/code/session_011u9pQk6p4o3DxofkiZXg8y

@shepherdjerred

Copy link
Copy Markdown
Owner Author

@greptile-apps

greptile-apps Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

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

@coderabbitai

coderabbitai Bot commented Nov 28, 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

Base automatically changed from scout-server-endpoint to main November 28, 2026 19:37
@shepherdjerred
shepherdjerred force-pushed the scout-server-page branch 3 times, most recently from 6e2082e to 25deeb6 Compare December 3, 2026 03:36
@shepherdjerred
shepherdjerred marked this pull request as ready for review December 3, 2026 03:36
@shepherdjerred

Copy link
Copy Markdown
Owner Author

@codex review

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 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-12-03T04:57:15.137207Z a2c1195 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. Can't wait for the next one!

Reviewed commit: a2c1195d73

ℹ️ 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".

Why
The redesign's Server page had an endpoint (`consumerGuild.server`) and an
approved design (D11-Server) but no page. A server's ladder, its week's
awards, its duos and what it plays were not visible anywhere in the app.

What
- `/servers/:guildId` shows one Discord server: hero (name, who leads and at
  what rank, head count and where the viewer stands, everyone as initials),
  the ladder with "See all N", the week's awards (an award nobody earned is
  hidden), what the server plays, and the best duos with a win/loss tally.
  It sits under the existing consumer access; the server decides scope, and a
  server outside it gets a "not available" state, not a retry.
- The route is `/servers`, not `/g` (the admin workspace) and not under
  `/halls` or `/duels`, which are named for what they show. `serverPath()` is
  exported from `lib/server/server-path.ts` for Home and Player to link here.
- Preload-only loader, `Loaded.strict`, `server_page_opened` analytics event
  and `/servers/:guildId` path normalisation.
- View logic in `lib/server/` (hero lines, division gap, award lines, duo
  names and tally) with default-tier tests, plus view, loader and route tests.
- `FriendRow` and `Sticker` take an `onClick` so a router can take over their
  anchors; `useSpaLink` is the hook the Player PR adds, unchanged.
- Design audit: `server` joins the matrix as a golden route (16 goldens). The
  page checks now wait for network idle before the image snapshot: a page that
  reads the report lake mounts after the chrome is visible, which made the
  image check fail on a different case each run.

Verification
- app, design-system and design-audit: build, typecheck, test, lint (turbo).
- `bun run jscpd`, `bun run check-directory-file-counts`.
- Design audit, 18 `server` cases (axe, contrast, keyboard, layout, images)
  against an isolated Postgres boot.
- Not run: live beta behaviour; the extended tier (no extended steps in the
  touched workspaces).

Claude-Session: https://claude.ai/code/session_011u9pQk6p4o3DxofkiZXg8y

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@shepherdjerred
shepherdjerred merged commit 7b3b4fe into main Dec 3, 2026
7 checks passed
@shepherdjerred
shepherdjerred deleted the scout-server-page branch December 3, 2026 06:14
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