Teammates, shared-name detection, and a reworked player page - #31
Merged
Conversation
The daily rollup now tracks time pairs of players spend on the same server (rolling PlayerPartner totals above a tunable daily threshold) and counts per-player polls and server occurrences, all derived from the archived snapshots. A name whose occurrences-per-poll ratio crosses a threshold is a shared name: it gets a corner-bracket ratio badge next to its name, is excluded from teammate tracking, and every player listing can hide such names with an eye toggle whose filtering and pagination run in SQL. The player page is restructured into Playtime (default, game types with a toggleable map column), Activity (recent servers from retained snapshots), Clans, and Teammates tabs; the old /maps route redirects into Playtime. Online links point at the single server or the activity tab when a name is on several servers at once. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
The daily rollup now derives three things from the archived snapshots: rolling per-pair "time played together" totals (
PlayerPartner, thresholded so passing encounters are dropped), and per-playerpollCount/occurrenceCountcounters whose ratio — the average servers-at-once — identifies shared names likenameless tee(badge next to the name, excluded from teammate tracking, hideable in every player listing via an eye toggle whose filtering, counting, and pagination run in SQL). The player page is restructured into Playtime (default at the bare path, game types with a toggleable map column), Activity (recent servers from the snapshots retained in Postgres, backed by a newGameServerClientindex), Clans, and Teammates tabs, with the old/mapsURL redirecting into Playtime. "Online" links go to the server, or to the Activity tab when a name is on several servers at once; playtime and last-seen values in listings link to the player's Playtime and Activity tabs. The clan page's past-members checkbox is replaced by a matching "inactive" eye toggle.🤖 Generated with Claude Code