-
Notifications
You must be signed in to change notification settings - Fork 9
feat(cat-voices): Using new stream source for WorkspaceBloc #3785
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
feat(cat-voices): Using new stream source for WorkspaceBloc #3785
Conversation
| } | ||
|
|
||
| void _handleActiveAccountIdChange(CatalystId? id) { | ||
| if (isClosed) return; |
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.
you're closing _activeAccountIdSub on close. This shouldn't be necessary but won't hurt either
catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/workspace/workspace_bloc.dart
Show resolved
Hide resolved
catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/workspace/workspace_bloc.dart
Outdated
Show resolved
Hide resolved
catalyst_voices/packages/internal/catalyst_voices_blocs/lib/src/workspace/workspace_bloc.dart
Show resolved
Hide resolved
...t_voices/packages/internal/catalyst_voices_blocs/lib/src/workspace/workspace_bloc_cache.dart
Show resolved
Hide resolved
...ces/packages/internal/catalyst_voices_repositories/lib/src/proposal/proposal_repository.dart
Outdated
Show resolved
Hide resolved
...ces/packages/internal/catalyst_voices_repositories/lib/src/proposal/proposal_repository.dart
Outdated
Show resolved
Hide resolved
...s/packages/internal/catalyst_voices_view_models/lib/src/proposal/user_proposal_overview.dart
Outdated
Show resolved
Hide resolved
...s/packages/internal/catalyst_voices_view_models/lib/src/proposal/user_proposal_overview.dart
Outdated
Show resolved
Hide resolved
|
|
||
| extension _ProposalPublishExt on ProposalPublish { | ||
| static ProposalPublish getStatus({required bool isFinal, required DocumentRef ref}) { | ||
| if (isFinal && DocumentRef is SignedDocumentRef) { |
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.
DocumentRef is SignedDocumentRef hmmm
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.
Yeah it's not needed because its already final
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.
It was about checking if type is different type. DocumentRef is SignedDocumentRef, instead or variable ref is SignedDocumentRef
📚 Docs PreviewThe docs for this PR can be previewed at the following URL: https://docs.dev.projectcatalyst.io/voices/chore/use-new-db-in-workspace |
...ackages/internal/catalyst_voices_models/lib/src/proposal/proposals_collaboration_status.dart
Outdated
Show resolved
Hide resolved
damian-molinski
left a comment
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.
I think there are few unnecessary checks (if(isClosed) return;), especially in stream listeners methods but overall LGTM
* feat: adding translations * chore: update workspace page * chore: update user proposals * feat: workspace proposal filter * chore: adding new implemention of proposal brief * feat: workspace proposal tab * feat: adding new proposal invites * chore: move widgets in widget dir * feat: adding empty state for proposal invites * feat: updating filters * feat: updating filters options * feat: proposal invites count * fix: spelling * chore: review update * feat: adding new options to filters and brief data * feat(cat-voices): Using new stream source for WorkspaceBloc (#3785) * feat: working integration * chore: use bloc instead of cubit * chore: final changes * chore: selfreview * feat: review update * fix: readme * chore: rename factory constructor * feat: merge collaborators status enum into one * fix: format
Description
Using new stream source for worksapce bloc
Please confirm the following checks