nashtech-garage / yas

YAS: Yet Another Shop, a sample microservices project in Java
MIT License
1.61k stars 419 forks source link

#1183 Feat: Modal for selecting the display-type of Product Option and configuring the Storefront view to integrate with the display-type #1263

Closed khanhduzz closed 1 week ago

khanhduzz commented 2 weeks ago

Model for customize Product Option in Backoffice and improve Storefront UI

The origin issue: #1183 [Storefront][Product] - Show Product Color Options as colored label instead text name label

Overview:

Backoffice:

Screenshot 2024-11-12 094226

Screenshot 1 Screenshot 2
Select display type Select display value

Storefront page:

Screenshot 2024-11-05 165658

Screenshot 2024-11-05 165706

github-actions[bot] commented 2 weeks ago

Product Coverage Report

Overall Project 78.16% -0.04% :x:
Files changed 95.45% :green_apple:


File Coverage
ProductOptionValueGetVm.java 100% :green_apple:
ProductPostVm.java 100% :green_apple:
ProductPutVm.java 100% :green_apple:
ProductOptionValueDisplay.java 100% :green_apple:
ProductVariationPutVm.java 100% :green_apple:
ProductVariationPostVm.java 100% :green_apple:
ProductService.java 77.99% -0.1% :green_apple:
mochacr0 commented 2 weeks ago

@khanhduzz The product option chips look great. However, the delete button is currently integrated within the chip value, which means clicking anywhere on the chip will remove it. Could we add a separate remove button outside the chip value? This change would help prevent accidental deletions by making the delete action more distinct.

Current: Screenshot 2024-11-08 113217

Propose: Screenshot 2024-11-08 113343

khanhduzz commented 2 weeks ago

Hi @mochacr0, your suggestion to enhance the badges is great, but for now, let's focus solely on functionality. Our website is currently facing issues with product creation and updates. We can create a new ticket to address and improve badge upgrades later. Thanks for your all comments, I will check it out and refactor code for more readable and consistent.

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed for 'storefront'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed for 'backoffice'

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed for 'product'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
86.7% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud