Skip to content

Retire the merchandise page while there is nothing to sell #208

Description

@openipc-ai

Part of #206 (Phase 0). Depends on nothing.

Why

/merchandise shows one T-shirt with a link to an outside shop. It is linked from nowhere: not the navbar, not the footer, not the sitemap, not any of the seven new pages. The route comment in config/routes.rb:102-104 says it was kept because "the shop is expected back, plausibly through Open Collective, and deleting them would mean writing it all again". Decision taken for this epic: retire it. A page nobody can reach is not a shop, and one product card is not worth carrying through a restyle and three languages. When there is something to sell, the page is written for what is sold.

What to change

  • Remove the route and its comment (config/routes.rb:102-105), PagesController#merchandise (the only action here with a hardcoded English @page_title), app/views/pages/merchandise.html.erb, and the T-shirt image if nothing else uses it.
  • Remove pages.merchandise and its children from config/locales/pages.{en,ru,zh}.yml, and the unused nav.store key from the three top-level locale files.
  • Remove the page from test/controllers/legacy_pages_test.rb (the smoke entry and merchandise lists each product once at lines 61-65).
  • /merchandise then falls through to the catch-all like every other retired URL. No redirect: there is no page that stands for it.

Done means

  • GET /merchandise answers like any unknown path.
  • i18n-tasks unused drops by the number of keys removed and missing stays clean.
  • bin/rails test green; rubocop adds nothing to the touched files.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions