Group host screens that work on a phone, and tidier Green Reads cards
Feature
Why it matters: Group hosts can now manage members, invites and handicaps from a phone without scrolling sideways, and players get cleaner Green Reads cards.
The rest of the screens for running a group and running the site now fit on a phone. Pages no longer scroll sideways, the buttons for each row stay on screen, and buttons and form fields are larger and easier to tap.
- For group hosts: the members list, pending invites and handicaps fold onto a phone screen, with the extra details shown under each name. Removing or reinstating a member asks for confirmation as before. Sending an invite now refreshes the invite list once, where it used to show a second copy of the list inside the first.
- For players: on Green Reads cards, “Read more” stays on one line, category labels wrap neatly and long names are shortened, the title stays on one line, and on phones the follow button on X shows only its logo.
- For site admins: the dashboard, score tools, posts and score warnings now work on a phone, and the formatting toolbar on the post editor is styled properly at every screen size.
Under the hood: Our phone tests used to run at a wider size than intended, because the test browser can’t open a window narrower than 500 pixels. They now imitate a real phone screen and check for sideways scrolling, tap target size and that each row’s buttons are visible.
Commits (1)
-
b6d66f0Admin on phones (phase 5, slice 2): the remaining admin and host screens, and tidier Green Reads cards
Files Changed (49)
app/assets/stylesheets/actiontext.css | 16 +++++ app/assets/stylesheets/application.tailwind.css | 8 +++ app/controllers/group_admin_controller.rb | 7 ++- app/views/admin/dashboard/show.html.erb | 81 ++++++++++++------------ app/views/admin/event_emails/index.html.erb | 4 +- app/views/admin/events/_activity_feed.html.erb | 8 ++-- .../admin/events/_score_updater_card.html.erb | 14 ++-- app/views/admin/events/edit.html.erb | 2 +- app/views/admin/events/field.html.erb | 22 ++++---- app/views/admin/events/new.html.erb | 2 +- app/views/admin/events/orphans.html.erb | 20 +++++- app/views/admin/events/run_updater.html.erb | 26 ++------ .../admin/events/update_golfer_score.html.erb | 2 +- app/views/admin/golfer_results/edit.html.erb | 2 +- app/views/admin/golfers/new.html.erb | 2 +- app/views/admin/posts/_form.html.erb | 4 +- app/views/admin/posts/edit.html.erb | 4 +- app/views/admin/posts/index.html.erb | 53 ++++++++++++---- app/views/admin/posts/new.html.erb | 2 +- app/views/admin/posts/show.html.erb | 10 ++-- app/views/admin/shared/_event_state_badge.html.erb | 11 ++++ app/views/admin/shared/_scrape_phone_list.html.erb | 26 ++++++++ app/views/admin/shared/_scrape_status.html.erb | 20 ++++++ app/views/golf/posts/_desktop_masonry.html.erb | 10 ++-- app/views/golf/posts/_post_card.html.erb | 27 +++++---- app/views/group_admin/_admin_list.html.erb | 27 ++++---- app/views/group_admin/_group_member.html.erb | 34 +++++++---- app/views/group_admin/_members_list.html.erb | 13 +++-- app/views/group_admin/_pending_invites.html.erb | 19 ++++-- app/views/group_admin/_remove_group.html.erb | 4 +- app/views/group_admin/handicaps/edit.html.erb | 4 +- app/views/group_admin/handicaps/index.html.erb | 25 ++++---- app/views/group_admin/handicaps/new.html.erb | 2 +- app/views/group_admin/invites.html.erb | 2 +- app/views/group_admin/new_admin.html.erb | 4 +- app/views/group_admin/show.html.erb | 10 ++-- app/views/layouts/eom_v4.html.erb | 6 ++- app/views/layouts/golf_news.html.erb | 8 ++-- app/views/shared/_twitter_follow_button.html.erb | 5 ++- config/brakeman.ignore | 2 +- docs/mobile/feature-parity.md | 2 +- test/application_system_test_case.rb | 89 +++++++++++++++++++++++++ test/controllers/admin/mobile_admin_test.rb | 62 ++++++++++++++++++ test/controllers/golf/post_card_test.rb | 19 ++++++ test/controllers/group_admin_mobile_test.rb | 54 +++++++++++++++ test/system/admin_mobile_test.rb | 109 +++++++++++++++++++++++++++++-- test/system/green_reads_mobile_test.rb | 62 ++++++++++++++++++ test/system/group_admin_mobile_test.rb | 104 +++++++++++++++++++++++++++++ test/system/team_picker_test.rb | 8 +-- 49 files changed, 843 insertions(+), 214 deletions(-)