Skip to content

Comments

fix: update demo data placeholder link#11

Merged
Rl0007 merged 5 commits intoBuildWithHussain:developfrom
anonymousminati:fix/demo-data
Nov 23, 2025
Merged

fix: update demo data placeholder link#11
Rl0007 merged 5 commits intoBuildWithHussain:developfrom
anonymousminati:fix/demo-data

Conversation

@anonymousminati
Copy link

No description provided.

Refactored create_style_variant to use a color-to-hex mapping and generate image URLs with appropriate background and text colors. This enhances the placeholder image logic, supports more colors, and ensures better text visibility on generated images.
Refactored create_style_variant to use a color-to-hex mapping and generate image URLs with appropriate background and text colors. This enhances the placeholder image logic, supports more colors, and ensures better text visibility on generated images.
# Route should NOT include language prefix - hooks.py handles that
route_slug = f"{product_data['code'].lower()}-{color.lower()}"

# Map your color names to Hex codes
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unnecessary comments..

"Green": "28A745",
"Navy": "000080",
"Gray": "6C757D",
"XS": "333333", # Fallbacks for sizes if needed
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this..

@Rl0007 Rl0007 merged commit a8955f8 into BuildWithHussain:develop Nov 23, 2025
3 of 4 checks passed
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.

3 participants