Skip to content

Conversation

@wizlif
Copy link
Collaborator

@wizlif wizlif commented Mar 6, 2023

Signed-off-by: Isaac Obella wizlif@users.noreply.github.com

Xazin and others added 9 commits March 4, 2023 19:49
…logging-auth-repo

fix: add manual logging to auth repo
Signed-off-by: Isaac Obella <wizlif@users.noreply.github.com>
Signed-off-by: Isaac Obella <wizlif@users.noreply.github.com>
Signed-off-by: Isaac Obella <wizlif@users.noreply.github.com>
Signed-off-by: Isaac Obella <wizlif@users.noreply.github.com>
Signed-off-by: Isaac Obella <wizlif@users.noreply.github.com>
@wizlif wizlif force-pushed the ft/370/migrate-to-basic-models-from-freezed branch from 59229d8 to 7e0deee Compare March 6, 2023 13:12
@codecov
Copy link

codecov bot commented Mar 6, 2023

Codecov Report

Merging #372 (7e0deee) into development (023d67e) will decrease coverage by 4.16%.
The diff coverage is 46.37%.

@@               Coverage Diff               @@
##           development     #372      +/-   ##
===============================================
- Coverage        66.55%   62.39%   -4.16%     
===============================================
  Files              157      195      +38     
  Lines             4010     4851     +841     
===============================================
+ Hits              2669     3027     +358     
- Misses            1341     1824     +483     
Impacted Files Coverage Δ
.../crowdaction_details/crowdaction_details_bloc.dart 0.00% <0.00%> (ø)
...on/crowdaction_getter/crowdaction_getter_bloc.dart 0.00% <0.00%> (ø)
...on_participants/crowdaction_participants_bloc.dart 0.00% <0.00%> (ø)
.../application/participation/participation_bloc.dart 0.00% <0.00%> (ø)
...pation/top_participants/top_participants_bloc.dart 0.00% <0.00%> (ø)
lib/domain/commitment/commitment.dart 0.00% <0.00%> (ø)
lib/domain/crowdaction/crowdaction_comment.dart 0.00% <0.00%> (ø)
...structure/crowdaction/crowdaction_comment_dto.dart 0.00% <0.00%> (ø)
lib/presentation/auth/auth_screen.dart 1.96% <0.00%> (ø)
...b/presentation/auth/widgets/verification_code.dart 89.65% <0.00%> (+2.98%) ⬆️
... and 76 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@wizlif wizlif added the WIP Work In Progress do not merge label Mar 6, 2023
@wizlif wizlif requested a review from Xazin March 9, 2023 09:32
@wizlif wizlif linked an issue Mar 9, 2023 that may be closed by this pull request
await _mapUpdateProfilePhotoToState(emit, event),
resendCode: (event) async => await _mapResendCodeToState(emit, event),
);
if (event is _InitialEvent) {
Copy link
Member

Choose a reason for hiding this comment

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

This screams of Switch.

Maybe we can add a const to each event (parent class and need to override), eg.
const eventName = "SIGN_IN_WITH_PHONE";


const factory AuthEvent.updated(
Either<AuthFailure, AuthSuccess> failureOrCredential,
Either<AuthFailure, $auth_success.AuthSuccess> failureOrCredential,
Copy link
Member

Choose a reason for hiding this comment

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

Why can't it just be AuthSuccess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WIP Work In Progress do not merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[IMPROVEMENT]: Migrate to basic models from freezed

2 participants