Skip to content

Implement variety attribute - #35

Merged
bahman026 merged 5 commits into
adminfrom
implement_variety_attribute
Jun 20, 2026
Merged

Implement variety attribute#35
bahman026 merged 5 commits into
adminfrom
implement_variety_attribute

Conversation

@bahman026

Copy link
Copy Markdown
Owner

No description provided.

bahman026 and others added 5 commits June 20, 2026 14:28
- 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>
@bahman026
bahman026 merged commit 5692d53 into admin Jun 20, 2026
1 check passed
@bahman026
bahman026 deleted the implement_variety_attribute branch June 20, 2026 11:16
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