Open an Account's profile at /players/<username>: rows, show more, empty and not-found #390
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
spec
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#391 Link to profiles from the site navigation and the Game page
amaurycoudr/chess-project
#389 Read an Account's profile and its decided Games over the wire, in an ADR superseding 0034
amaurycoudr/chess-project
Reference
amaurycoudr/chess-project#390
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#366
What to build
Anyone can open
/players/<username>and see the Account's username, "Joined ", and its decided Games newest first. Each row shows when the Game ended, the Account's Color, the opponent (a username linked to their profile, or "Guest" as plain text), the result from the Account's side (won, lost, drawn) and how it ended, and opens the Game page. "Show more" loads older Games. An Account with no Games says so; an unknown username shows a not-found page; a username typed in another case opens the profile and corrects the address without a new history entry. The document title is the username. See #366, Front.The view lives in the games vertical beside "My games" and renders the same game row, so the opponent link also appears in "My games". The route's loader primes the profile query and "show more" pages through an infinite query from the vertical's query options factory. Not-found reuses the Game page's pattern. Every new string is in the Paraglide catalogue in English and French (ADR 0025).
A new e2e spec walks the main story: a Player signs up and, seated against a Guest in a second browser context, plays a Game the Guest resigns; a third, signed-out context opens the profile by its address, reads the username, the join month and one row "won" by Resignation, then opens the row and reaches the Game page.
Seam: The front views (the profile view) and e2e
Acceptance criteria
mentioned in issue #391
mentioned in issue #366
mentioned in issue #389
marked this issue as related to #366
marked this issue as related to #389
marked this issue as related to #391
mentioned in commit
24dfeff71amentioned in commit
06d374b14ementioned in commit
83865b66edmentioned in commit
4e2a203cd9mentioned in commit
0101533097mentioned in merge request !531