The group page before a tournament works better on phones, and hidden picks stay hidden
Why it matters: Before a tournament starts you can check your group's entries on a phone, and players who hide their picks can rely on them staying private.
Before a tournament starts, the group page on phones and in the apps used to show the old wide table. It now looks like the live leaderboard. Each row shows the player’s name, team number and tiebreaker, and you can tap it to see the six picks and the team handicap. On your own entry, the expanded row also has Edit Team.
If a player has chosen to hide their picks, their row shows a lock and “Hidden”, and their picks aren’t sent to your screen at all. Other changes:
- Before a tournament starts, entries are listed in the order they were entered.
- If you turn on hidden picks in your profile, it now applies right away to your entries in tournaments that haven’t started. Group lists show the change straight away.
- On the desktop table, hidden picks now say “Hidden”.
- Empty placeholder entries, such as a new group’s host or a pending invitation, are no longer listed.
- In the global pool on phones, your own entries are always shown, even when they fall beyond the first 50.
Under the hood: One rule decides whether a player’s picks are hidden from you, and the phone and desktop layouts both use it. Some old pages that could show other members’ entry details were removed.
Commits (2)
-
4a6b0d5Pre-tournament group leaderboard on phones, with hidden picks (T2) -
8369c5bPre-tournament leaderboard: Claude audit 1 fixes
Files Changed (22)
app/controllers/entrant_groups_controller.rb | 10 -- app/controllers/groups_controller.rb | 42 +++++-- app/controllers/user_profiles_controller.rb | 23 +--- app/models/entrant_group.rb | 7 ++ app/models/user.rb | 10 ++ app/views/entrant_groups/_entrant_group.html.erb | 57 --------- .../entrant_groups/_entrant_group.json.jbuilder | 2 - app/views/entrant_groups/index.html.erb | 45 ------- app/views/entrant_groups/index.json.jbuilder | 1 - app/views/entrant_groups/show.html.erb | 15 --- app/views/entrant_groups/show.json.jbuilder | 1 - app/views/groups/_leaderboardb.html.erb | 83 ------------- app/views/groups/_mobile_pre_entry_row.html.erb | 74 ++++++++++++ app/views/groups/_mobile_pre_leaderboard.html.erb | 38 ++++++ app/views/groups/_scores.html.erb | 120 ------------------- app/views/groups/_teams.html.erb | 16 +-- app/views/groups/show.html.erb | 7 +- app/views/teams/_my_teams.html.erb | 104 ----------------- config/routes.rb | 7 +- test/integration/group_pre_leaderboard_test.rb | 194 ++++++++++++++++++++++++++++++- test/integration/m1_group_screen_test.rb | 16 +++- test/models/entrant_group_picks_hidden_test.rb | 22 ++++ 22 files changed, 403 insertions(+), 491 deletions(-)