From 5ddb92abc30546d2ac9ac5827453466759ad03cf Mon Sep 17 00:00:00 2001 From: Katya Sarmiento <5871075+Kitkatnik@users.noreply.github.com> Date: Sun, 26 Apr 2026 01:14:33 -0400 Subject: [PATCH] Hide Travel section on My Plan Wraps the Arriving/Departing block in `<% if false %>` and comments out the MOCK_TRAVEL constant so the section can be restored later by uncommenting two pairs of lines. --- app/controllers/plan_controller.rb | 12 ++++++------ app/views/plan/index.html.erb | 26 ++++++++++++++------------ 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/app/controllers/plan_controller.rb b/app/controllers/plan_controller.rb index 06f027f..9fed34c 100644 --- a/app/controllers/plan_controller.rb +++ b/app/controllers/plan_controller.rb @@ -1,9 +1,9 @@ class PlanController < ApplicationController - # Travel times are mocked until we wire up arrival_at/departure_at on User. - MOCK_TRAVEL = { - arrival: "2026-04-29T15:30", - departure: "2026-05-02T20:00" - }.freeze + # Travel section hidden in view — see app/views/plan/index.html.erb. + # MOCK_TRAVEL = { + # arrival: "2026-04-29T15:30", + # departure: "2026-05-02T20:00" + # }.freeze def index @plan_items_by_day = current_user.plan_items @@ -11,6 +11,6 @@ def index .sort_by { |pi| [ ScheduleItem::DAY_META.keys.index(pi.schedule_item.day) || 99, pi.schedule_item.sort_time.to_i ] } .group_by { |pi| pi.schedule_item.day } - @travel = MOCK_TRAVEL + # @travel = MOCK_TRAVEL end end diff --git a/app/views/plan/index.html.erb b/app/views/plan/index.html.erb index f5370a1..919676b 100644 --- a/app/views/plan/index.html.erb +++ b/app/views/plan/index.html.erb @@ -10,20 +10,22 @@ Your personal conference itinerary.
- <%# Travel times are view-only mock for now; backend wiring comes later. %> -