You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While in other contexts such as PriceCard.vue, the same coloring algorithm may be meaningful, it appears not to be in the context of ProofFooterRow.vue.
Steps to reproduce the behavior:
Have some proofs available with zero, one, and more than one prices
Finding a more meaningful color coding that also respects proof.receipt_price_count, in addition to proof.price_count:
// symbols are pseudo namedif(this.price_count===0){return'error'}elseif(this.price_count<this.receipt_price_count){return'warning'}elseif(this.price_count===this.receipt_price_count){return'success'}elseif(this.price_count>this.receipt_price_count){return'error'}
A determination of whether the PriceCountChip component is used in PriceCard, or ProofFooterRow, would also be required.
The text was updated successfully, but these errors were encountered:
Regarding the "consumption-related fields" (receipt_price_count), it's not always equivalent to the price_count, for instance if you buy multiple quantities of the same item. so it's tricky right now to have a hard rule. see #1169
What
As a user, you may find the colour coding of the price count chip misleading, used on the respective component:
open-prices-frontend/src/components/PriceCountChip.vue
Lines 22 to 33 in 580ea07
While in other contexts such as PriceCard.vue, the same coloring algorithm may be meaningful, it appears not to be in the context of ProofFooterRow.vue.
Steps to reproduce the behavior:
Expected behavior
Finding a more meaningful color coding that also respects
proof.receipt_price_count
, in addition toproof.price_count
:A determination of whether the PriceCountChip component is used in PriceCard, or ProofFooterRow, would also be required.
The text was updated successfully, but these errors were encountered: