-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
… 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`.
Codecov Report
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this 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
lib/features/receipt/presentation/widgets/list_entry/purchase_receipt_list_entry.dart
Outdated
Show resolved
Hide resolved
lib/features/receipt/presentation/widgets/list_entry/purchase_receipt_list_entry.dart
Show resolved
Hide resolved
There was a problem hiding this 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
# 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)
Closes #477.
PurchaseReceiptListEntry
widget now has 'tappable' set to false, disabling purchase receipts.ReceiptListEntry
.PaymentStatus
string values to provide clearer descriptions.PurchaseReceiptListEntry
to show price differently (or hide it), based on status._formatter
to_formatDate
/_formatDateTime
inReceiptListEntry
andReceiptCard
.ReceiptListEntry
.