A new way to pick your team
Why it matters: Picking your six golfers is quicker: search a compact list, watch your team fill up as you go, then review it and add your tiebreaker before you save.
Picking your team has a new layout, on the site and in the apps:
- A compact A–Z list of the field. Start typing a name to narrow it down. Search ignores accents, and accented names sort where you’d expect, so Åberg is with the As.
- A “Your Team (n/6)” tray stays at the bottom of the screen and shows how many golfers you’ve picked. It moves out of the way while you type, so the on-screen keyboard has room.
- A review sheet shows your picks and your tiebreaker, with Clear all, Save My Team and Keep Browsing. When you edit a team, you can open the review sheet before you’ve picked all six golfers.
Saving is also more dependable. A team must be six different golfers from this tournament’s field, with a tiebreaker that’s a whole number between -200 and 200. If a save fails, your picks stay on screen with a message instead of being lost, and a failed save no longer leaves an entry with no golfers. Going back to the picker after saving no longer shows your old picks, which could undo your edit if you saved again. If deleting an entry fails, you see the error and your team is unchanged.
In the Android and iPhone apps, the picker opens full screen so a stray swipe can’t close it, and on iPhone it has a Done button. Screen readers now hear when golfers are added or removed, and keyboard focus goes to a sensible place after you close the review sheet or clear your team.
Under the hood: The whole team and tiebreaker are now checked together on the server and saved in a single step, so a save either fully succeeds or changes nothing.
Commits (3)
-
65e46d2Team picker: compact A-Z list, a Your Team tray, and a review sheet (T1) -
0050aa8Team picker: Claude audit 1 fixes -
b04c921Team picker: zoom doesn't hide the tray; focus after Clear all goes to the tray heading (Claude audit 2 lows)
Files Changed (29)
.../eyeonmajors/PathConfigurationTest.kt | 12 ++ app/controllers/entrant_groups_controller.rb | 255 ++++++++----------------- .../controllers/search_box_controller.js | 75 -------- .../controllers/team_builder_controller.js | 320 ------------------------------ .../controllers/team_picker_controller.js | 273 +++++++++++++++++++++++++-- app/models/team_selection.rb | 66 ++++++- app/views/entrant_groups/_golfers_list.html.erb | 61 ------ .../entrant_groups/_golfers_search_box.html.erb | 66 ------- .../entrant_groups/_save_cancel_buttons.html.erb | 11 -- .../_selected_golfer_template.html.erb | 18 -- .../_selected_golfers_6pack.html.erb | 13 -- app/views/entrant_groups/_team_picker.html.erb | 244 +++++++++++++++++++++++- .../entrant_groups/_tiebreaker_field.html.erb | 24 --- app/views/entrant_groups/edit.html.erb | 48 +----- app/views/entrant_groups/new.html.erb | 41 +---- app/views/entrant_groups/new_stage.html.erb | 152 --------------- app/views/shared/_tournament_banner.html.erb | 4 +- config/hotwire_native/android_v1.json | 11 ++ config/hotwire_native/ios_v1.json | 10 + docs/mobile/feature-parity.md | 4 +- ios/EyeOnMajors/AppDelegate.swift | 3 + ios/EyeOnMajorsTests/AppSetupTests.swift | 6 + ios/EyeOnMajorsTests/PathConfigurationTests.swift | 10 + test/application_system_test_case.rb | 12 ++- test/controllers/entrant_groups_controller_test.rb | 140 ++++++++++++-- test/controllers/groups_controller_test.rb | 4 +- test/models/team_selection_test.rb | 59 ++++++- test/native/routing_cases.json | 8 +- test/system/team_picker_test.rb | 116 +++++++++++ 29 files changed, 1029 insertions(+), 1037 deletions(-)