Skip to content

Hide Travel (Arriving/Departing) section on My Plan#16

Merged
Kitkatnik merged 1 commit intomainfrom
Kitkatnik/hide-travel
Apr 26, 2026
Merged

Hide Travel (Arriving/Departing) section on My Plan#16
Kitkatnik merged 1 commit intomainfrom
Kitkatnik/hide-travel

Conversation

@Kitkatnik
Copy link
Copy Markdown
Collaborator

Summary

  • Hides the Travel section (Arriving / Departing inputs) on /plan by wrapping the block in <% if false %>...<% end %> in app/views/plan/index.html.erb.
  • Comments out the matching MOCK_TRAVEL constant and @travel = MOCK_TRAVEL assignment in app/controllers/plan_controller.rb so the controller does no work for a hidden feature.
  • Code is preserved (not deleted) so the section can be restored later by uncommenting two pairs of lines.

Test plan

  • bin/dev, sign in, visit /plan — Travel heading and date inputs are gone; rest of the page (intro + day-by-day schedule) renders normally.
  • Server log shows no @travel / MOCK_TRAVEL errors on reload.

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.
@railway-app
Copy link
Copy Markdown

railway-app Bot commented Apr 26, 2026

🚅 Deployed to the ruby-embassy-pr-16 environment in ruby-embassy

Service Status Web Updated (UTC)
ruby-embassy ✅ Success (View Logs) Web Apr 26, 2026 at 5:18 am

@railway-app railway-app Bot temporarily deployed to ruby-embassy / ruby-embassy-pr-16 April 26, 2026 05:15 Destroyed
@Kitkatnik Kitkatnik merged commit 4b8c748 into main Apr 26, 2026
6 checks passed
@Kitkatnik Kitkatnik deleted the Kitkatnik/hide-travel branch April 26, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant