-
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
refactor: opening hours #541
Conversation
e63c907
to
4b47b7b
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main-prerelease #541 +/- ##
==================================================
Coverage ? 72.56%
==================================================
Files ? 130
Lines ? 1578
Branches ? 0
==================================================
Hits ? 1145
Misses ? 433
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Uses the flutter-native TimeOfDay class, which has localized time formatting. This has been extended with comparison methods <= and isInTimeslot. Timeslot class simplifies with this change. Simplify DateService to only contain one getter. Make sure of fpdart's Option instead of null values. Use None for closed days. Clean up tests and use NiceMocks for mocking.
Awaiting dev build to publish so we can smoke test. Otherwise looks OK |
Fix opening hours to match the cafe Uses the flutter-native TimeOfDay class, which has localized time formatting. This has been extended with comparison methods <= and isInTimeslot. Timeslot class simplifies with this change. Simplify DateService to only contain one getter. Make sure of fpdart's Option instead of null values. Use None for closed days. Clean up tests, add more tests, and use NiceMocks for mocking. --------- Co-authored-by: Omid Marfavi <[email protected]>
Fix opening hours to match the cafe
Uses the flutter-native TimeOfDay class, which has localized time formatting.
This has been extended with comparison methods <= and isInTimeslot.
Timeslot class simplifies with this change.
Simplify DateService to only contain one getter.
Make sure of fpdart's Option instead of null values. Use None for closed days.
Clean up tests, add more tests, and use NiceMocks for mocking.