Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleAdd 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:

...

:

...

Total Transaction Points → Transaction balance

...

We can see the discussion about this in this thread: https://rbidigital.slack.com/archives/C067D4XK9D5/p1724350040702039

...

Expand
titleImprove Loyalty Transactions Screen

File: src/components/intl-loyalty/points-balance.tsx
Changes:

Attention - Some labels have changed, but Figma has not been updated

:

Total Transaction Points → Transaction balance

  • Points Used → Points Burned

  • Label “Balance“ to “Points Balance“

  • Label “Total“ to “Transaction balance“

  • Add “ - “ before “Points burned”

    • Add “-“ only in numbers greater than 0'

      • points used: 0

      • points used: -123

  • Add field “Initial points balance“

    • Calculate value: totalPoints - pointsEarned - poinstUsed

  • Add field “Final points balance“

  • Add “bonusPoints” on “pointsEarned”

image-20240821-173423.pngImage Removed

image-20240828-191133.pngImage Added

Expand
titleImprove Recent Orders Screen

File: src/components/customer-orders/order-timeline-item.tsx
Changes:

  • Attention - Some labels have changed, but Figma has not been updated:

    • Total Transaction Points → Transaction balance

    • Points Used → Points Burned

  • 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“

    • use transaction?.loyaltyTransaction?.pointsBalance

  • Add field “Points earned“

  • Add field “Points burned“

    • Add “-“ only in numbers greater than 0'

      • points used: 0

      • points used: -123

  • Add field “Transaction balance“

    • pointsEarned - pointsUsed consider bonusPoints as well

  • Add field “Final points balance“

    • transaction?.loyaltyTransaction?.pointsBalance + (pointsEarned - pointsUsed) consider debits as well

image-20240821-173524.png

...