AnalogIO / coffeecard_app

Cross-platform coffee card app for Cafe Analog
https://www.cafeanalog.dk/app
MIT License
6 stars 1 forks source link

feat: barista perks #413

Closed fredpetersen closed 1 year ago

fredpetersen commented 1 year ago

Closes #422

Visual: A new section has been added to the tickets page, that shows your perks if your user is registered as Barista+

All purchaseable products are now loaded in the SplashRouter which has now been renamed to MainRedirectionRouter (These products are now also fetched from ProductsControllerV2 instead of V1)

codecov[bot] commented 1 year ago

Codecov Report

Attention: 25 lines in your changes are missing coverage. Please review.

Comparison is base (1def5db) 74.18% compared to head (8df17d8) 72.87%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #413 +/- ## ========================================== - Coverage 74.18% 72.87% -1.31% ========================================== Files 128 130 +2 Lines 1534 1567 +33 ========================================== + Hits 1138 1142 +4 - Misses 396 425 +29 ``` | [Flag](https://app.codecov.io/gh/AnalogIO/coffeecard_app/pull/413/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AnalogIO) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/AnalogIO/coffeecard_app/pull/413/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AnalogIO) | `72.87% <64.28%> (-1.31%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AnalogIO#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/AnalogIO/coffeecard_app/pull/413?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AnalogIO) | Coverage Δ | | |---|---|---| | [...t/data/datasources/product\_remote\_data\_source.dart](https://app.codecov.io/gh/AnalogIO/coffeecard_app/pull/413?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AnalogIO#diff-bGliL2ZlYXR1cmVzL3Byb2R1Y3QvZGF0YS9kYXRhc291cmNlcy9wcm9kdWN0X3JlbW90ZV9kYXRhX3NvdXJjZS5kYXJ0) | `100.00% <100.00%> (ø)` | | | [...ib/features/product/data/models/product\_model.dart](https://app.codecov.io/gh/AnalogIO/coffeecard_app/pull/413?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AnalogIO#diff-bGliL2ZlYXR1cmVzL3Byb2R1Y3QvZGF0YS9tb2RlbHMvcHJvZHVjdF9tb2RlbC5kYXJ0) | `100.00% <100.00%> (ø)` | | | [lib/features/product/domain/entities/product.dart](https://app.codecov.io/gh/AnalogIO/coffeecard_app/pull/413?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AnalogIO#diff-bGliL2ZlYXR1cmVzL3Byb2R1Y3QvZG9tYWluL2VudGl0aWVzL3Byb2R1Y3QuZGFydA==) | `100.00% <100.00%> (ø)` | | | [...ures/product/domain/usecases/get\_all\_products.dart](https://app.codecov.io/gh/AnalogIO/coffeecard_app/pull/413?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AnalogIO#diff-bGliL2ZlYXR1cmVzL3Byb2R1Y3QvZG9tYWluL3VzZWNhc2VzL2dldF9hbGxfcHJvZHVjdHMuZGFydA==) | `100.00% <100.00%> (ø)` | | | [...ures/product/presentation/cubit/product\_cubit.dart](https://app.codecov.io/gh/AnalogIO/coffeecard_app/pull/413?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AnalogIO#diff-bGliL2ZlYXR1cmVzL3Byb2R1Y3QvcHJlc2VudGF0aW9uL2N1Yml0L3Byb2R1Y3RfY3ViaXQuZGFydA==) | `100.00% <100.00%> (ø)` | | | [...ures/product/presentation/cubit/product\_state.dart](https://app.codecov.io/gh/AnalogIO/coffeecard_app/pull/413?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AnalogIO#diff-bGliL2ZlYXR1cmVzL3Byb2R1Y3QvcHJlc2VudGF0aW9uL2N1Yml0L3Byb2R1Y3Rfc3RhdGUuZGFydA==) | `100.00% <100.00%> (ø)` | | | [...et/data/datasources/ticket\_remote\_data\_source.dart](https://app.codecov.io/gh/AnalogIO/coffeecard_app/pull/413?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AnalogIO#diff-bGliL2ZlYXR1cmVzL3RpY2tldC9kYXRhL2RhdGFzb3VyY2VzL3RpY2tldF9yZW1vdGVfZGF0YV9zb3VyY2UuZGFydA==) | `100.00% <100.00%> (+9.52%)` | :arrow_up: | | [...tures/ticket/presentation/cubit/tickets\_cubit.dart](https://app.codecov.io/gh/AnalogIO/coffeecard_app/pull/413?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AnalogIO#diff-bGliL2ZlYXR1cmVzL3RpY2tldC9wcmVzZW50YXRpb24vY3ViaXQvdGlja2V0c19jdWJpdC5kYXJ0) | `100.00% <100.00%> (ø)` | | | [...tures/ticket/presentation/cubit/tickets\_state.dart](https://app.codecov.io/gh/AnalogIO/coffeecard_app/pull/413?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AnalogIO#diff-bGliL2ZlYXR1cmVzL3RpY2tldC9wcmVzZW50YXRpb24vY3ViaXQvdGlja2V0c19zdGF0ZS5kYXJ0) | `100.00% <100.00%> (ø)` | | | [lib/features/user/domain/entities/user.dart](https://app.codecov.io/gh/AnalogIO/coffeecard_app/pull/413?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AnalogIO#diff-bGliL2ZlYXR1cmVzL3VzZXIvZG9tYWluL2VudGl0aWVzL3VzZXIuZGFydA==) | `62.06% <100.00%> (+9.89%)` | :arrow_up: | | ... and [4 more](https://app.codecov.io/gh/AnalogIO/coffeecard_app/pull/413?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AnalogIO) | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/AnalogIO/coffeecard_app/pull/413/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=AnalogIO)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

ghost commented 1 year ago
👇 Click on the image for a new way to code review #### [![Review these changes using an interactive CodeSee Map](https://s3.us-east-2.amazonaws.com/maps.codesee.io/images/github/AnalogIO/coffeecard_app/413/d57f4ede/8df17d8d99fa399fb6a72e28346d35675ea6f01f.svg)](https://app.codesee.io/r/reviews?pr=413&src=https%3A%2F%2Fgithub.com%2FAnalogIO%2Fcoffeecard_app) #### Legend CodeSee Map legend
marfavi commented 1 year ago

I'd suggest to move the "loading the user in the splash screen " functionality into its own PR to speed things up

marfavi commented 1 year ago

I'd suggest to move the "loading the user in the splash screen " functionality into its own PR to speed things up

Done via #528