Repository navigation
Conversation
A planting can now choose one of its crop's alternate names (eg. "lauki" for calabash, "aubergine" for eggplant) and shows it instead of the crop's primary name. - plantings.alternate_name_id, validated to belong to the planting's crop - Planting#display_name, used on cards, the planting page, garden lists, the member page, the homepage and the RSS/ICS feeds - planting form offers the crop's alternate names, preselecting the one that was searched for - crop autosuggest shows the matched alternate name, eg. "aubergine (eggplant)", via matched_alternate_name in the search JSON Part of #554 Co-Authored-By: Claude Sonnet 5 <[email protected]>
CloCkWeRX
approved these changes
Sep 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A crop like calabash can have alternate names such as "lauki". Search already found crops by alternate name (#4132); this lets a planting use one and display it in place of the crop's primary name.
plantings.alternate_name_id(FK, nullified if the alternate name is deleted). Validated to belong to the planting's crop.Planting#display_namereturns the chosen alternate name, else the crop name. Used on planting cards, the planting page (with the crop name shown alongside), garden lists, the member page, the homepage and the RSS/ICS feeds.alternate_names#indexaccepts acrop_idfilter to feed it.matched_alternate_namein the search JSON). Picking it preselects that name on the planting form.Not changed: the API's
crop_name, and other members' plantings in the "same latitude" list, which still show the crop name.Part of #554
🤖 Generated with Claude Code