← All updates

Site admin tools that work on a phone

Feature
Date:
2026-12-02
Changes:
38bfe12 · 1 commit

Why it matters: When a score is wrong during a live tournament, the people running the site can now correct it from a phone, without waiting until they're at a computer.

The screens we use to run EyeOnMajors now work on a phone. You won’t see these pages yourself, but they affect how quickly we can fix problems during a tournament.

  • Fixing scores: the page for correcting a golfer’s score by hand during a live tournament now shows a phone-friendly list with a large Edit button. On a computer, the table scrolls instead of cutting off the Edit column.
  • One admin menu: every admin page now has the same menu, which scrolls sideways on a phone.
  • Users list: this page used to show without any styling and listed only the newest 200 accounts. It now pages through every account, 50 at a time.
  • Email previews and archived groups: both pages now fit on a phone. The email preview scrolls inside its own box, and sending works as before.

One change you might notice: on the news page, a page number with a leading zero, such as 02, now opens the right page.

Under the hood: New automated tests check these pages at phone and desktop widths. We also broke the layouts on purpose to confirm that a test fails each time.

Commits (1)
  • 38bfe12 Admin on phones (phase 5, slice 1): an admin menu, and four screens usable at 390px
Files Changed (20)
app/controllers/admin/users_controller.rb      |  12 ++-
app/controllers/golf/posts_controller.rb       |   2 +-
app/views/admin/archived_groups/index.html.erb | 110 ++++++++++-----
app/views/admin/dashboard/show.html.erb        |   1 -
app/views/admin/event_emails/index.html.erb    |   1 -
app/views/admin/event_emails/preview.html.erb  | 222 ++++++++++++-------------------
app/views/admin/events/edit.html.erb           |   1 -
app/views/admin/events/field.html.erb          |   1 -
app/views/admin/events/new.html.erb            |   1 -
app/views/admin/events/orphans.html.erb        |   4 +-
app/views/admin/events/run_updater.html.erb    |   1 -
.../admin/events/update_golfer_score.html.erb  |  42 ++++---
app/views/admin/group_emails/show.html.erb     |   1 -
app/views/admin/shared/_breadcrumbs.html.erb   |  56 --------
app/views/admin/shared/_nav.html.erb           |  32 +++++
app/views/admin/users/index.html.erb           |  76 +++++++----
app/views/layouts/eom_v4.html.erb              |   1 +
docs/mobile/feature-parity.md                  |   2 +-
test/controllers/admin/mobile_admin_test.rb    | 150 +++++++++++++++++++++
test/system/admin_mobile_test.rb               |  92 +++++++++++++
20 files changed, 523 insertions(+), 285 deletions(-)

← All updates