Implement variety attribute - #35
Merged
Merged
Conversation
- Add attribute_variety migration (variety_id + attribute_id, unique pair, cascade both) - Add attributes() BelongsToMany on Variety and varieties() on Attribute - Add Additional Attributes multi-select (preloaded, group/value label) to VarietyResource and ProductResource inline repeater - Filter ProductResource attribute_group_id options by selected category via attribute_group_category; clear group on category change; always include current record value to avoid edit-page validation failures - Update VarietyResourceTest with pivot attach and cascade-delete coverage - Fix PageFactory slug to use Str::uuid() to avoid cross-test uniqueness collisions - Update AGENTS.md, IMPLEMENTATION.md, ShoFlow db doc.md Co-authored-by: Cursor <cursoragent@cursor.com>
- Add ColorPicker to VarietyResource and ProductResource repeater so admins can manually set or override the hex color (e.g. #ff8516) - Add ColorColumn to the variety table to render the color swatch - Fix critical bug: Variety saving hook now only auto-fills color and attribute_value when attribute_id actually changes (isDirty check), preserving any manually set color on subsequent saves - Fix PageResourceTest to use PageStatusEnum::PUBLISHED explicitly so the conditional published_at validation never triggers randomly - Fix tooltip typo: variety_attribute -> attribute_variety Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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.
No description provided.