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

fix(receipts): Remove purchase receipt view & refactor payment status display #478

Merged
merged 5 commits into from
May 27, 2023

Conversation

marfavi
Copy link
Member

@marfavi marfavi commented May 24, 2023

Closes #477.

  • PurchaseReceiptListEntry widget now has 'tappable' set to false, disabling purchase receipts.
  • Timestamp has been added below the purchase/swipe status in ReceiptListEntry.
  • Updated PaymentStatus string values to provide clearer descriptions.
  • Renamed 'purchaseStatus' field to 'status' across multiple generic receipt widgets.
  • Refactored PurchaseReceiptListEntry to show price differently (or hide it), based on status.
  • misc: Updated _formatter to _formatDate/_formatDateTime in ReceiptListEntry and ReceiptCard.
  • misc: Removed rounded edges from ReceiptListEntry.

… display

This commit closes #477.
- `PurchaseReceiptListEntry` widget now has 'tappable' set to false, disabling purchase receipts.
- Updated `PaymentStatus` string values to provide clearer descriptions.
- Renamed 'purchaseStatus' field to 'status' across multiple generic receipt widgets.
- Refactored `PurchaseReceiptListEntry` to show price differently (or hide it), based on status.
- misc: Updated `_formatter` to `_formatDate` in `ReceiptListEntry` and `ReceiptCard`.
- misc: Removed rounded edges from `ReceiptListEntry`.
@marfavi marfavi enabled auto-merge (squash) May 24, 2023 15:40
@ghost
Copy link

ghost commented May 24, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@marfavi marfavi disabled auto-merge May 24, 2023 15:45
@marfavi marfavi enabled auto-merge (squash) May 24, 2023 15:45
@marfavi marfavi requested a review from fremartini May 24, 2023 15:45
@codecov
Copy link

codecov bot commented May 24, 2023

Codecov Report

Merging #478 (e9e0cb1) into develop (75a22dc) will increase coverage by 0.08%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop     #478      +/-   ##
===========================================
+ Coverage    67.76%   67.85%   +0.08%     
===========================================
  Files          101      101              
  Lines         1120     1120              
===========================================
+ Hits           759      760       +1     
+ Misses         361      360       -1     
Flag Coverage Δ
unittests 67.85% <100.00%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...tures/purchase/domain/entities/payment_status.dart 69.23% <100.00%> (+7.69%) ⬆️

Copy link
Member

@fremartini fremartini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but we need to clarify why Purchases no longer need to be able to be opened

@marfavi marfavi requested a review from fremartini May 27, 2023 19:56
Copy link
Member

@fremartini fremartini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address my previous comments regarding Strings.dart

@marfavi marfavi requested a review from fremartini May 27, 2023 20:29
@marfavi marfavi merged commit b30ed85 into develop May 27, 2023
@marfavi marfavi deleted the hide-price-on-rejected-receipts branch May 27, 2023 20:41
@marfavi marfavi mentioned this pull request May 28, 2023
marfavi added a commit that referenced this pull request May 30, 2023
# New features
* show status on receipts (#468)
* show timestamp on receipt list entry (#478)

# Fixes
* Fix showing raw html in error messages (#463)
* fix(tickets): Fix multiple `CoffeeCard`s sharing the same product id (#471)
* fix: Avoid type casting 204 return types from API (#479)
* fix(receipts): Remove purchase receipt view & refactor payment status display (#478)
* Added awaits for useTicket and FetchReceipts (#464)

# Code refactoring and added tests
* test(utils): Improve String.capitalize() and add tests (#472)
* Refactor and test Leaderboard (#443)
* Refactor payment (#465)
* Refactor environment logic (#469)
* refactor(settings): tidy up `settings_page.dart` (#473)
* Restructure settings (#481)
* Refactor and test login (#483)
* refactor and test voucher (#480)
* Refactor and test register (#486)
* Refactor and test products (#482)

# Chores
* chore: update Bloc packages (#475)
* chore: bump flutter required version to 3.10.2 (#476)
* Migrate to Dart 3 and Flutter 3.10.0 (#452)

# Developer related
* migrate to fpdart (#457)
* Install the CodeSee workflow (#467)
* Update README.md to show coverage on develop branch (#484)
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.

User shouldn't be able to view a purchase receipt when it looks so similar to a swipe receipt
2 participants