Repository navigation
feat: credit a game's author on its card and cabinet - #106
Merged
Merged
Conversation
An optional `author:` in the registry (a display name, at most 80 characters, no control characters) is reported by /api/games, shown as "by <author>" on the landing page's card, found by the search box, and named beside the organisation on the hall's cabinet card. For games made by someone other than the arcade's owner, such as Jon McElyea's Forward One and Glomus. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an optional
author:registry field, so a game made by someone other than the arcade's owner is credited by name. It's needed now for Jon McElyea's Forward One and Glomus. Until now the only credit was the McElyea chip in the organisation filter, and nothing named him in words.author:is a display name, trimmed, 1–80 characters, no control characters, and it's optional. Its docstring section is next tofeatured:.author(null when not set), afterfeatured.by <author>line between the address and the tags, escaped. The search box also matches the author (?q=mcelyea).author, and the cabinet card readsMcElyea · by Jon McElyea.Tests: the registry tests accept a name and reject empty, blank, over-long and control-character values. The landing test checks the byline is escaped, appears only on authored cards, and is found by search. The hall test checks a cabinet carries the author, and the characterization test now expects
author: null. Full suite: 707 passed. The card was checked at phone width.Follow-ups, in order:
registry.py, whose sha256 is pinned in its tests. Without this it rejectsauthor:in games.yaml.author: Jon McElyeato the forward-one and glomus entries.drafted by Claude on behalf of Daniel Stephenson
🤖 Generated with Claude Code