Hive Hive
Sign in

refactor(meadows): rename products to meadows

GitHub issue · Closed

Metadata
Source
tuist/hive #28
Updated
Jun 24, 2026
Domains
Hive
Details

Summary

  • Renames the Products data model to Meadows end to end to reflect that each record represents a domain boundary rather than a product. Module namespace Hive.Products.* becomes Hive.Meadows.*; schemas, controllers, and LiveViews follow (ProductMeadow, ProductRepositoryMeadowRepository, ProductWebhookControllerMeadowWebhookController, SettingsLive.Product(s)SettingsLive.Meadow(s)).
  • Updates routes: /settings/products[/:id]/settings/meadows[/:id]; /webhooks/products/:product_id/.../webhooks/meadows/:meadow_id/....
  • Adds a new migration (20260611000001_rename_products_to_meadows.exs) that renames the 4 tables, the product_id columns, primary keys, indexes, and the visibility check constraint. Historical migrations are left untouched.
  • Updates AGENTS.md/CLAUDE.md and the VitePress docs site (tagline + per-meadow scoping copy) to use meadow terminology. Marketing prose that uses “product” generically (e.g. “product teams”, “shape of product work”) is intentionally left alone. The Hive instance branding surface (Auth.product_name, @product_name assign) is preserved since it is unrelated to the data model.

Testing

  • mix compile --warnings-as-errors
  • MIX_ENV=test mix ecto.drop && mix ecto.create && mix ecto.migrate
  • mix test (306 tests, 0 failures)
Comments

No GitHub comments yet.