Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(Product input row): new PriceCategoryChip to display the category_tag localized #1296

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

raphodn
Copy link
Member

@raphodn raphodn commented Jan 20, 2025

What

Following changes in #1291 we can now display the price's product data as readonly.
But there was an issue when displaying the category_tag label (for a raw product price), we were missing a translation mecanism (similar to the existing PriceOrigins & PriceLabels components).

Fixes this by creating a new PriceCategoryChip

Screenshot

Before After
image image

Extra notes

Todo in the future:

  • improve PriceOrigins & PriceLabels to avoid having the v-if at the top
  • rename PriceOrigins & PriceLabels to add "Chip" in their name

@raphodn raphodn changed the title refactor(Price): new PriceCategoryChip to display the category_tag localized refactor(Product input row): new PriceCategoryChip to display the category_tag localized Jan 20, 2025
@raphodn raphodn merged commit 16a6711 into master Jan 20, 2025
9 of 10 checks passed
@raphodn raphodn deleted the raphodn/price-category-chip-translated branch January 20, 2025 08:56
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