...
Document Status | Status |
---|
colour | YellowGreen |
---|
title | ReviewReviewED |
---|
|
|
---|
Document Owner(s) | Goncalves, Felipe |
---|
Reviewers | |
---|
🛠️ Potential Solutions
...
Given that the user accesses the Loyalty Transactions, Orders, and Recent Orders screens,
When the transactions are loaded,
Then the system should display the following information in order:
Initial Points
Points Earned (regular points and bonus points)
Points Used burned (displayed as a negative value, e.g., “-60”)
Transaction Points balance (points earned minus points used)
User's Final Points in that order.
...
Expand |
---|
title | Add the “current value points” on GQL to each order |
---|
|
File: src/remote/queries/fragments/intl-loyalty-transaction.ts In const INTLLoyaltyTransactionFragmentForTimeline add: Code Block |
---|
transactionDetails {
person {
currentPoints
}
} |
DOD: Return the currentPoints for each user order. We can verify if this value is reflected on the src/components/intl-loyalty/points-balance.tsx (Layout Transaction) screen. |
Frontend:
We can see the discussion about this in this thread: https://rbidigital.slack.com/archives/C067D4XK9D5/p1724350040702039
The labels are:
...
Expand |
---|
title | Create a Feature Flag |
---|
|
Name suggestion: display-points-balance Local: Intl Tech - Platform Type: Temporary |
...
Expand |
---|
title | Improve Loyalty Transactions Screen |
---|
|
File: src/components/intl-loyalty/points-balance.tsx Changes: Label “Balance“ to “Points Balance“ Label “Total“ to “Total transaction points““Transaction balance“ Add “ - “ before “Points used”burned” Add field “Initial points balance“ Add field “Final points balance“ Add “bonusPoints” on “pointsEarned” Image RemovedImage Added |
Expand |
---|
title | Improve Recent Orders Screen |
---|
|
File: src/components/customer-orders/order-timeline-item.tsx Changes: Attention - Some labels have changed, but Figma has not been updated: Change from Line to Collapsible item - Points Balance Label “Points“ to “Points Balance“ Label “Awarded“ to “Earned“ Label “Redeemed“ to “Used“ Add field “Initial points balance“ Add field “Points earned“ Add field “Poinst used““Points burned“ Add field “Total transaction Points““Transaction balance“ Add field “Final points balance“
Image RemovedImage Added |
Expand |
---|
title | Improve Order Details Screen |
---|
|
File: src/components/points-details-card/index.tsx Changes: Attention - Some labels have changed, but Figma has not been updated: Add field “Initial points balance“ Add “ - “ before “Points used”burned” Add filed “Total transaction points““Transaction balance“ Label “Balance“ to “Final points balance“
Image RemovedImage Added |
Expand |
---|
title | Create new utils with functions to calculate transactions values |
---|
|
Local src/utils/… function to calculate initial points value function to calculate earn points value (earn + bonus) function to calcutate transaction points value (earn + bonus - used) function to calculate final point value (balancePoints + (pointsEarned - pointsUsed) )
|
...