WIP: feat: Cosmetic title replaces clickable username on leaderboard #145
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "typosaurus/134-cosmetic-title-replaces-clickable-username-on-leaderboard"
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?
Unfinished
This pull request is incomplete.
What was built
Summary
When a player equips a Code Farm cosmetic title (e.g. "Serial Refactorer"), the Game leaderboard sidebar displays the title text instead of the player's clickable username. The username is no longer visible, the entry is not a link to the player's farm page, and other players cannot navigate to the farm from the leaderboard.
Steps to Reproduce
Expected Behaviour
The cosmetic title should be displayed as a decorative label or badge alongside the username, not as a replacement for it. The username should remain visible and linked to the player's farm page so that other players can still click through.
Actual Behaviour
The leaderboard entry shows only the title text (e.g. "Serial Refactorer") instead of the player's clickable username. The username is hidden and the entry is not a hyperlink to the player's farm page.
Environment
Not provided.
Reported by D-04got10-01 via DevPlace.
Acceptance criteria
Commits
a8ba5dee81b9-8dee1f2ffc979516bca3c9910b8ea359d9adad2242c5c3b4Run
Cost: 0.1081 USD · Nodes: 16 · Verification: make test
Closes #134
Outcome: done Changed: devplacepy/static/css/game.css:249-274 Verified by: `node --check devplacepy/static/js/GameFarm.js` — syntax clean; `python3 -c` CSS brace check — 101/101 balanced, OK. Full test suite not runnable due to Python 3.11 environment (project requires 3.12+); changes are JS/CSS only. Findings: The JS template (title inside anchor, `${entry.username}${titleHtml}`) was already committed in a6fd91b and is correct. The uncommitted CSS change adds `min-width: 80px` to `.game-lb-name` so the anchor never shrinks to 0px in the 280px sidebar. `.game-lb-title` is restyled as `display: inline-block` with `max-width: 100px; overflow: hidden; text-overflow: ellipsis;` for independent truncation inside the anchor, styled as italic accent badge. The title leading space (`" <span..."`) provides visual separation without CSS margin. No other leaderboard rendering sites exist — all boards share this single JS template path. Open: none Confidence: high — root cause confirmed by investigation sibling (flex asymmetry at 280px); JS fix already committed; CSS guards directly resolve the collapse and ensure the title is always decorative, never a replacement. Typosaurus-Run: b99050b08d5a4dc996c2175d228fe8cf Typosaurus-Node: 9516bca3c9914bcdab26ec17b52dfa07 Typosaurus-Agent: @nadia Refs: #134Checkout
From your project repository, check out a new branch and test the changes.