A better experience on your phone
Feature
Why it matters: Following your pool from your phone during a round is quicker and easier.
On phones, EyeOnMajors has a new layout with tabs for Groups, My Teams & Stats and the Pro Leaderboard:
- Group leaderboard: compact rows that you tap to see a team’s six golfers, plus a quick switcher for your groups.
- Messages: conversations are grouped into threads, with unread badges.
- My Teams & Stats: your season at a glance and your team history.
- Pro Leaderboard: position, to par, thru and the cut line, sized for a phone.
Help text that used to appear only on hover now shows on phones too.
Commits (7)
-
c40f21aM1 P1: mobile shell and native navigation -
0f5a7eaM1 P2: group screen from the mocks (header, switcher, expandable rows) -
c58ee69M1 P3: messages as threads, with unread badges -
4567d40M1 P4: My Teams & Stats from the owner's mock -
da5efa9M1 P5: Pro Leaderboard on phones and in the app -
b21b211Thread reaction picker: size it to its emoji grid -
91d1b59M1 P6: tap-friendly help, names on the pre-event list, native toasts
Files Changed (68)
.../java/com/norafoundry/eyeonmajors/AppRoutes.kt | 58 ++++++++++---
.../com/norafoundry/eyeonmajors/ErrorScreens.kt | 3 +-
.../eyeonmajors/EyeOnMajorsApplication.kt | 14 +++
.../NoticeToastRouteDecisionHandler.kt | 47 ++++++++++
.../eyeonmajors/TabRouteDecisionHandler.kt | 36 ++++++++
.../com/norafoundry/eyeonmajors/TabsActivity.kt | 36 +++++++-
.../com/norafoundry/eyeonmajors/WebFragments.kt | 26 ++++++
android/app/src/main/res/drawable/ic_tab_teams.xml | 2 +-
.../{ic_tab_profile.xml => ic_tab_leaderboard.xml} | 2 +-
android/app/src/main/res/layout/activity_tabs.xml | 2 +-
android/app/src/main/res/values/strings.xml | 4 +-
.../norafoundry/eyeonmajors/ActivityLaunchTest.kt | 2 +-
.../com/norafoundry/eyeonmajors/AppRoutesTest.kt | 45 ++++++++--
.../eyeonmajors/PathConfigurationTest.kt | 35 +++++++--
app/controllers/app_tabs_controller.rb | 17 +---
app/controllers/groups_controller.rb | 48 ++++++++++-
app/controllers/messages_controller.rb | 94 +++++++++++++++++++--
app/controllers/teams_controller.rb | 32 +++++++-
app/controllers/user_profiles_controller.rb | 2 +
app/helpers/application_helper.rb | 14 +++
app/helpers/golfers_helper.rb | 26 ++++++
app/helpers/groups_helper.rb | 14 +++
.../controllers/auto_submit_controller.js | 8 ++
.../controllers/bottom_sheet_controller.js | 87 ++++++--------------
app/models/message.rb | 34 ++++++++
app/models/message_thread_read.rb | 12 +++
app/views/admin/archived_groups/index.html.erb | 4 +-
app/views/app_tabs/groups.html.erb | 36 --------
.../entrant_groups/_tiebreaker_field.html.erb | 22 ++----
app/views/golfers/_mobile_leaderboard.html.erb | 30 +++++++
app/views/golfers/index.html.erb | 4 +-
app/views/group_admin/_remove_group.html.erb | 6 +-
app/views/groups/_form.html.erb | 3 +-
app/views/groups/_live_team_row.html.erb | 9 ++-
app/views/groups/_mobile_entry_row.html.erb | 50 +++++++++++
app/views/groups/_mobile_group_header.html.erb | 53 ++++++++++++
app/views/groups/_mobile_leaderboard.html.erb | 47 ++++++++++
app/views/groups/_teams.html.erb | 9 ++-
app/views/groups/find.html.erb | 3 +-
app/views/groups/new.html.erb | 25 +-----
app/views/groups/show.html.erb | 35 ++++++---
app/views/groups/switch.html.erb | 38 +++++++++
app/views/layouts/_mobile_tab_bar.html.erb | 30 +++++++
app/views/layouts/_user_menu.html.erb | 15 ++--
app/views/layouts/eom_v4.html.erb | 66 ++++++++-------
app/views/messages/_bubble.html.erb | 17 +++-
app/views/messages/_reply_form.html.erb | 16 ++++
app/views/messages/_thread_list.html.erb | 52 ++++++++++++
app/views/messages/index.html.erb | 13 +++-
app/views/messages/new.html.erb | 14 +++
app/views/messages/show.html.erb | 14 +++
app/views/shared/_archived_groups_card.html.erb | 5 +-
app/views/shared/_bottom_sheet.html.erb | 7 ++
app/views/teams/_mobile_teams.html.erb | 102 ++++++++++++++++++++++
app/views/teams/index.html.erb | 6 ++-
app/views/user_profiles/show.html.erb | 12 ++-
config/hotwire_native/android_v1.json | 46 +++++++++-
config/routes.rb | 17 +++--
.../20261130300000_create_message_thread_reads.rb | 13 +++
db/schema.rb | 17 ++++-
lib/hotwire_native_chrome.rb | 26 ++++++
test/controllers/launch_fixes_test.rb | 5 +-
test/integration/hotwire_native_test.rb | 27 +++---
test/integration/m1_group_screen_test.rb | 122 ++++++++++++++++++++++++++
test/integration/m1_pro_leaderboard_test.rb | 49 +++++++++++
test/integration/m1_shell_test.rb | 124 +++++++++++++++++++++++++++
test/integration/m1_teams_test.rb | 87 +++++++++++++++++++
test/integration/m1_threads_test.rb | 141 ++++++++++++++++++++++++++++++-
68 files changed, 1817 insertions(+), 300 deletions(-)